KallistiOS git master
Independent SDK for the Sega Dreamcast
|
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. | |
uint8 * | dma_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. | |
Maple state structure.
We put everything in here to keep from polluting the global namespace too much.
uint8 maple_state_t::detect_port_next |
Next port that will be auto-detected.
uint8* maple_state_t::dma_buffer |
DMA send buffer.
volatile int maple_state_t::dma_cntr |
DMA interrupt counter.
volatile int maple_state_t::dma_in_progress |
Is a DMA running now?
struct maple_driver_list maple_state_t::driver_list |
Maple device driver list.
Do not manipulate directly!
struct maple_frame_queue maple_state_t::frame_queue |
Maple frame submission queue.
Do not manipulate directly!
int maple_state_t::gun_port |
The port to read for lightgun status, if any.
int maple_state_t::gun_x |
The horizontal position of the lightgun signal.
int maple_state_t::gun_y |
The vertical position of the lightgun signal.
maple_port_t maple_state_t::ports[MAPLE_PORT_COUNT] |
Maple device info structure.
volatile uint8 maple_state_t::scan_ready_mask |
Mask of ports that completed the initial scan.
volatile int maple_state_t::vbl_cntr |
VBlank interrupt counter.
int maple_state_t::vbl_handle |
Our vblank handler handle.