KallistiOS git master
Independent SDK for the Sega Dreamcast
|
Maple frame to be queued for transport. More...
#include <dc/maple.h>
Public Member Functions | |
TAILQ_ENTRY (maple_frame) frameq | |
Send queue handle. | |
Data Fields | |
int | cmd |
Command (see Commands and Responses) | |
int | dst_port |
Destination port. | |
int | dst_unit |
Destination unit. | |
int | length |
Data transfer length in 32-bit words. | |
volatile int | state |
Has this frame been sent / responded to? | |
volatile int | queued |
Are we on the queue? | |
void * | send_buf |
The data which will be sent (if any) | |
uint8 * | recv_buf |
Points into recv_buf_arr, but 32-byte aligned. | |
struct maple_device * | dev |
Does this belong to a device? | |
void(* | callback )(struct maple_state_str *, struct maple_frame *) |
Response callback. | |
uint8 | recv_buf_arr [1024+32] |
Response receive area. | |
Maple frame to be queued for transport.
Internal representation of a frame to be queued up for sending.
maple_frame_t::TAILQ_ENTRY | ( | maple_frame | ) |
Send queue handle.
NOT A FUNCTION!
void(* maple_frame_t::callback) (struct maple_state_str *, struct maple_frame *) |
Response callback.
int maple_frame_t::cmd |
Command (see Commands and Responses)
struct maple_device* maple_frame_t::dev |
Does this belong to a device?
int maple_frame_t::dst_port |
Destination port.
int maple_frame_t::dst_unit |
Destination unit.
int maple_frame_t::length |
Data transfer length in 32-bit words.
volatile int maple_frame_t::queued |
Are we on the queue?
uint8* maple_frame_t::recv_buf |
Points into recv_buf_arr, but 32-byte aligned.
uint8 maple_frame_t::recv_buf_arr[1024+32] |
Response receive area.
void* maple_frame_t::send_buf |
The data which will be sent (if any)
volatile int maple_frame_t::state |
Has this frame been sent / responded to?