libdragon
Loading...
Searching...
No Matches
Functions
joypad_accessory.c File Reference

Joypad accessory helpers. More...

Functions

void joypad_accessory_reset (joypad_port_t port)
 Reset the accessory state for a Joypad port.
 
void joypad_transfer_pak_wait_timer_init (joypad_port_t port)
 Initialize the Transfer Pak wait timer if necessary.
 
void joypad_accessory_detect_async (joypad_port_t port)
 Detect which accessory is inserted in an N64 controller.
 
void joypad_rumble_pak_toggle_async (joypad_port_t port, bool active)
 Turn the Rumble Pak motor on or off for a Joypad port.
 
void joypad_accessory_xfer_async (joypad_port_t port, joypad_accessory_xfer_t xfer, uint16_t start_addr, void *dst, size_t len, joypad_accessory_io_callback_t callback, void *ctx)
 Read or write data from a Joypad accessory asynchronously.
 
joypad_accessory_error_t joypad_accessory_xfer (joypad_port_t port, joypad_accessory_xfer_t xfer, uint16_t start_addr, void *dst, size_t len)
 Read or write data from a joypad accessory.
 
joypad_accessory_error_t joypad_controller_pak_set_bank (joypad_port_t port, uint8_t bank)
 Select the active bank for a Controller Pak.
 
void joypad_transfer_pak_enable_async (joypad_port_t port, bool enabled)
 Enable or disable the Transfer Pak for a Joypad port.
 
void joypad_transfer_pak_load_async (joypad_port_t port, uint16_t cart_addr, void *dst, size_t len)
 Load data from the GB cartridge inserted in a Transfer Pak.
 
void joypad_transfer_pak_store_async (joypad_port_t port, uint16_t cart_addr, void *src, size_t len)
 Store data on the GB cartridge inserted in a Transfer Pak.
 

Detailed Description

Joypad accessory helpers.

Author
Christopher Bonhage me@ch.nosp@m.rist.nosp@m.opher.nosp@m.bonh.nosp@m.age.c.nosp@m.om