KallistiOS  ##version##
 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! More...
 

Data Fields

int cmd
 Command (see Maple commands and responses) More...
 
int dst_port
 Destination port. More...
 
int dst_unit
 Destination unit. More...
 
int length
 Data transfer length in 32-bit words. More...
 
volatile int state
 Has this frame been sent / responded to? More...
 
volatile int queued
 Are we on the queue? More...
 
void * send_buf
 The data which will be sent (if any) More...
 
uint8recv_buf
 Points into recv_buf_arr, but 32-byte aligned. More...
 
struct maple_devicedev
 Does this belong to a device? More...
 
void(* callback )(struct maple_frame *)
 Response callback. More...
 
uint8 recv_buf_arr [1024+32]
 Response receive area. More...
 

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: