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

Maple state structure. More...

#include <dc/maple.h>

Data Fields

struct maple_driver_list driver_list
 Maple device driver list.
 
struct maple_frame_queue frame_queue
 Maple frame submission queue.
 
maple_port_t ports [MAPLE_PORT_COUNT]
 Maple device info structure.
 
volatile int dma_cntr
 DMA interrupt counter.
 
volatile int vbl_cntr
 VBlank interrupt counter.
 
uint8dma_buffer
 DMA send buffer.
 
volatile int dma_in_progress
 Is a DMA running now?
 
uint8 detect_port_next
 Next port that will be auto-detected.
 
volatile uint8 scan_ready_mask
 Mask of ports that completed the initial scan.
 
int vbl_handle
 Our vblank handler handle.
 
int gun_port
 The port to read for lightgun status, if any.
 
int gun_x
 The horizontal position of the lightgun signal.
 
int gun_y
 The vertical position of the lightgun signal.
 

Detailed Description

Maple state structure.

We put everything in here to keep from polluting the global namespace too much.

Field Documentation

◆ detect_port_next

uint8 maple_state_t::detect_port_next

Next port that will be auto-detected.

◆ dma_buffer

uint8* maple_state_t::dma_buffer

DMA send buffer.

◆ dma_cntr

volatile int maple_state_t::dma_cntr

DMA interrupt counter.

◆ dma_in_progress

volatile int maple_state_t::dma_in_progress

Is a DMA running now?

◆ driver_list

struct maple_driver_list maple_state_t::driver_list

Maple device driver list.

Do not manipulate directly!

◆ frame_queue

struct maple_frame_queue maple_state_t::frame_queue

Maple frame submission queue.

Do not manipulate directly!

◆ gun_port

int maple_state_t::gun_port

The port to read for lightgun status, if any.

◆ gun_x

int maple_state_t::gun_x

The horizontal position of the lightgun signal.

◆ gun_y

int maple_state_t::gun_y

The vertical position of the lightgun signal.

◆ ports

maple_port_t maple_state_t::ports[MAPLE_PORT_COUNT]

Maple device info structure.

◆ scan_ready_mask

volatile uint8 maple_state_t::scan_ready_mask

Mask of ports that completed the initial scan.

◆ vbl_cntr

volatile int maple_state_t::vbl_cntr

VBlank interrupt counter.

◆ vbl_handle

int maple_state_t::vbl_handle

Our vblank handler handle.


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