KallistiOS  2.0.0
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
Public Member Functions | Data Fields
maple_frame 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. NOT A FUNCTION!

Data Fields

int cmd
 Command (see Maple 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_devicedev
 Does this belong to a device?
void(* callback )(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

maple_frame::TAILQ_ENTRY ( maple_frame  )

Send queue handle. NOT A FUNCTION!


Field Documentation

void(* maple_frame::callback)(struct maple_frame *)

Response callback.

int maple_frame::cmd
struct maple_device* maple_frame::dev

Does this belong to a device?

int maple_frame::dst_port

Destination port.

int maple_frame::dst_unit

Destination unit.

int maple_frame::length

Data transfer length in 32-bit words.

volatile int maple_frame::queued

Are we on the queue?

uint8* maple_frame::recv_buf

Points into recv_buf_arr, but 32-byte aligned.

uint8 maple_frame::recv_buf_arr[1024+32]

Response receive area.

void* maple_frame::send_buf

The data which will be sent (if any)

volatile int maple_frame::state

Has this frame been sent / responded to?


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