KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
maple_frame_t Struct Reference

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)
 
uint8recv_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.
 

Detailed Description

Maple frame to be queued for transport.

Internal representation of a frame to be queued up for sending.

Member Function Documentation

◆ TAILQ_ENTRY()

maple_frame_t::TAILQ_ENTRY ( maple_frame )

Send queue handle.

NOT A FUNCTION!

Field Documentation

◆ callback

void(* maple_frame_t::callback) (struct maple_state_str *, struct maple_frame *)

Response callback.

◆ cmd

int maple_frame_t::cmd

Command (see Commands and Responses)

◆ dev

struct maple_device* maple_frame_t::dev

Does this belong to a device?

◆ dst_port

int maple_frame_t::dst_port

Destination port.

◆ dst_unit

int maple_frame_t::dst_unit

Destination unit.

◆ length

int maple_frame_t::length

Data transfer length in 32-bit words.

◆ queued

volatile int maple_frame_t::queued

Are we on the queue?

◆ recv_buf

uint8* maple_frame_t::recv_buf

Points into recv_buf_arr, but 32-byte aligned.

◆ recv_buf_arr

uint8 maple_frame_t::recv_buf_arr[1024+32]

Response receive area.

◆ send_buf

void* maple_frame_t::send_buf

The data which will be sent (if any)

◆ state

volatile int maple_frame_t::state

Has this frame been sent / responded to?


The documentation for this struct was generated from the following file: