libdragon
Loading...
Searching...
No Matches
Data Structures | Typedefs
joybus_commands.h File Reference

Joybus command helpers. More...

Go to the source code of this file.

Data Structures

struct  joybus_cmd_n64_accessory_read_port_t
 "N64 Accessory Read" Joybus command structure. More...
 
struct  joybus_cmd_n64_accessory_write_port_t
 "N64 Accessory Write" Joybus command structure. More...
 
struct  joybus_cmd_identify_port_t
 "Identify" Joybus command structure. More...
 
struct  joybus_cmd_eeprom_read_block_t
 "EEPROM Read Block" Joybus command structure. More...
 
struct  joybus_cmd_eeprom_write_block_t
 "EEPROM Write Block" Joybus command structure. More...
 
struct  joybus_cmd_pixelfx_n64_game_id_t
 "PixelFX N64 Game ID" Joybus command structure. More...
 
struct  joybus_cmd_n64_controller_read_port_t
 "N64 Controller Read" Joybus command structure. More...
 
struct  joybus_cmd_gcn_controller_read_port_t
 "GameCube Controller Read" Joybus command structure. More...
 
struct  joybus_cmd_gcn_controller_read_long_port_t
 "GameCube Controller Long Read" Joybus command structure. More...
 
struct  joybus_cmd_n64_accessory_read_port_t.send
 "N64 Accessory Read" command send data More...
 
struct  joybus_cmd_n64_accessory_read_port_t.recv
 "N64 Accessory Read" command receive data More...
 
struct  joybus_cmd_n64_accessory_write_port_t.send
 "N64 Accessory Write" command send data More...
 
struct  joybus_cmd_n64_accessory_write_port_t.recv
 "N64 Accessory Write" command receive data More...
 
struct  joybus_cmd_identify_port_t.send
 "Identify" command send data More...
 
struct  joybus_cmd_identify_port_t.recv
 "Identify" command receive data More...
 
struct  joybus_cmd_eeprom_read_block_t.send
 "EEPROM Read Block" command send data More...
 
struct  joybus_cmd_eeprom_read_block_t.recv
 "EEPROM Read Block" command receive data More...
 
union  joybus_cmd_eeprom_read_block_t.recv.__unnamed15__
 
struct  joybus_cmd_eeprom_write_block_t.send
 "EEPROM Write Block" command send data More...
 
union  joybus_cmd_eeprom_write_block_t.send.__unnamed19__
 
struct  joybus_cmd_eeprom_write_block_t.recv
 "EEPROM Write Block" command receive data More...
 
struct  joybus_cmd_pixelfx_n64_game_id_t.send
 "PixelFX N64 Game ID" command send data More...
 
struct  joybus_cmd_n64_controller_read_port_t.send
 "N64 Controller Read" command send data More...
 
struct  joybus_cmd_n64_controller_read_port_t.recv
 "N64 Controller Read" command receive data More...
 
struct  joybus_cmd_gcn_controller_read_port_t.send
 "GameCube Controller Read" command send data More...
 
struct  joybus_cmd_gcn_controller_read_port_t.recv
 "GameCube Controller Read" command receive data More...
 
struct  joybus_cmd_gcn_controller_read_long_port_t.send
 "GameCube Controller Long Read" command send data More...
 
struct  joybus_cmd_gcn_controller_read_long_port_t.recv
 "GameCube Controller Long Read" command receive data More...
 

Macros

Joybus command metadata values

#define JOYBUS_COMMAND_SKIP_SIZE   1
 Size of a Joybus command to "skip this port" in bytes.
 
#define JOYBUS_COMMAND_METADATA_SIZE   2
 Size of the Joybus command metadata fields in bytes.
 
#define JOYBUS_COMMAND_OFFSET_SEND_LEN   0
 Offset of the Joybus command "send length" field in bytes.
 
#define JOYBUS_COMMAND_OFFSET_RECV_LEN   1
 Offset of the Joybus command "receive length" field in bytes.
 
#define JOYBUS_COMMAND_OFFSET_COMMAND_ID   2
 Offset of the Joybus command "command ID" field in bytes.
 
Joybus command identifiers

#define JOYBUS_COMMAND_ID_RESET   0xFF
 "Reset" Joybus command identifier.
 
#define JOYBUS_COMMAND_ID_IDENTIFY   0x00
 "Identify" Joybus command identifier.
 
#define JOYBUS_COMMAND_ID_N64_CONTROLLER_READ   0x01
 "N64 Controller Read" Joybus command identifier.
 
#define JOYBUS_COMMAND_ID_N64_ACCESSORY_READ   0x02
 "N64 Accessory Read" Joybus command identifier.
 
#define JOYBUS_COMMAND_ID_N64_ACCESSORY_WRITE   0x03
 "N64 Accessory Write" Joybus command identifier.
 
#define JOYBUS_COMMAND_ID_EEPROM_READ_BLOCK   0x04
 "EEPROM Read Block" Joybus command identifier.
 
#define JOYBUS_COMMAND_ID_EEPROM_WRITE_BLOCK   0x05
 "EEPROM Write Block" Joybus command identifier.
 
#define JOYBUS_COMMAND_ID_RTC_IDENTIFY   0x06
 "Real-Time Clock Identify" Joybus command identifier.
 
#define JOYBUS_COMMAND_ID_RTC_READ_BLOCK   0x07
 "Real-Time Clock Read Block" Joybus command identifier.
 
#define JOYBUS_COMMAND_ID_RTC_WRITE_BLOCK   0x08
 "Real-Time Clock Write Block" Joybus command identifier.
 
#define JOYBUS_COMMAND_ID_N64_RANDNET_KEYBOARD_READ   0x13
 "N64 Randnet Keyboard Read" Joybus command identifier.
 
#define JOYBUS_COMMAND_ID_64GB_LINK_CABLE_READ   0x13
 "64GB Link Cable Read" Joybus command identifier.
 
#define JOYBUS_COMMAND_ID_GBA_LINK_CABLE_READ   0x14
 "GBA Link Cable Read" Joybus command identifier.
 
#define JOYBUS_COMMAND_ID_64GB_LINK_CABLE_WRITE   0x14
 "64GB Link Cable Write" Joybus command identifier.
 
#define JOYBUS_COMMAND_ID_GBA_LINK_CABLE_WRITE   0x15
 "GBA Link Cable Write" Joybus command identifier.
 
#define JOYBUS_COMMAND_ID_PIXELFX_N64_GAME_ID   0x1D
 "PixelFX N64 Game ID" Joybus command identifier.
 
#define JOYBUS_COMMAND_ID_GCN_CONTROLLER_READ   0x40
 "GameCube Controller Read" Joybus command identifier.
 
#define JOYBUS_COMMAND_ID_GCN_CONTROLLER_ORIGIN   0x41
 "GameCube Controller Read Origins" Joybus command identifier.
 
#define JOYBUS_COMMAND_ID_GCN_CONTROLLER_RECALIBRATE   0x42
 "GameCube Controller Recalibrate" Joybus command identifier.
 
#define JOYBUS_COMMAND_ID_GCN_CONTROLLER_READ_LONG   0x43
 "GameCube Controller 'Long Read'" Joybus command identifier.
 

Typedefs

typedef joybus_cmd_n64_accessory_read_port_t joybus_cmd_64gb_link_cable_read_port_t
 "64GB Link Cable Read" Joybus command structure.
 
typedef joybus_cmd_n64_accessory_read_port_t joybus_cmd_gba_link_cable_read_port_t
 "GBA Link Cable Read" Joybus command structure.
 
typedef joybus_cmd_n64_accessory_write_port_t joybus_cmd_64gb_link_cable_write_port_t
 "64GB Link Cable Write" Joybus command structure.
 
typedef joybus_cmd_n64_accessory_write_port_t joybus_cmd_gba_link_cable_write_port_t
 "GBA Link Cable Write" Joybus command structure.
 
typedef joybus_cmd_identify_port_t joybus_cmd_reset_port_t
 "Reset" Joybus command structure.
 
typedef joybus_cmd_eeprom_read_block_t joybus_cmd_rtc_read_block_t
 "RTC Read Block" Joybus command structure.
 
typedef joybus_cmd_eeprom_write_block_t joybus_cmd_rtc_write_block_t
 "RTC Write Block" Joybus command structure.
 
typedef joybus_cmd_gcn_controller_read_long_port_t joybus_cmd_gcn_controller_recalibrate_port_t
 "GameCube Controller Recalibrate" Joybus command structure.
 
typedef joybus_cmd_gcn_controller_read_long_port_t joybus_cmd_gcn_controller_origin_port_t
 "GameCube Controller Read Origins" Joybus command structure.
 

Detailed Description

Joybus command helpers.

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