You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
1.6 KiB

8 months ago
8 months ago
  1. #ifndef _gcn64_requests_h__
  2. #define _gcn64_requests_h__
  3. /* Commands */
  4. #define RQ_GCN64_ECHO 0x00
  5. #define RQ_GCN64_SET_CONFIG_PARAM 0x01
  6. #define RQ_GCN64_GET_CONFIG_PARAM 0x02
  7. #define RQ_GCN64_SUSPEND_POLLING 0x03
  8. #define RQ_GCN64_GET_VERSION 0x04
  9. #define RQ_GCN64_GET_SIGNATURE 0x05
  10. #define RQ_GCN64_GET_CONTROLLER_TYPE 0x06
  11. #define RQ_GCN64_SET_VIBRATION 0x07
  12. #define RQ_GCN64_RAW_SI_COMMAND 0x80
  13. #define RQ_GCN64_BLOCK_IO 0x81
  14. #define RQ_RNT_GET_SUPPORTED_REQUESTS 0xF0
  15. #define RQ_RNT_GET_SUPPORTED_MODES 0xF1
  16. #define RQ_RNT_GET_SUPPORTED_CFG_PARAMS 0xF2
  17. #define RQ_RNT_RESET_FIRMWARE 0xFE
  18. #define RQ_GCN64_JUMP_TO_BOOTLOADER 0xFF
  19. /* Configuration parameters and constants */
  20. #define CFG_PARAM_MODE 0x00
  21. /* Values for mode */
  22. #define CFG_MODE_STANDARD 0x00
  23. #define CFG_MODE_N64_ONLY 0x01
  24. #define CFG_MODE_GC_ONLY 0x02
  25. #define CFG_MODE_2P_STANDARD 0x10
  26. #define CFG_MODE_2P_N64_ONLY 0x11
  27. #define CFG_MODE_2P_GC_ONLY 0x12
  28. #define CFG_MODE_KEYBOARD 0x13
  29. #define CFG_MODE_KB_AND_JS 0x14
  30. #define CFG_MODE_KEYBOARD_2 0x15
  31. #define CFG_PARAM_SERIAL 0x01
  32. #define CFG_PARAM_POLL_INTERVAL0 0x10
  33. #define CFG_PARAM_POLL_INTERVAL1 0x11
  34. #define CFG_PARAM_POLL_INTERVAL2 0x12
  35. #define CFG_PARAM_POLL_INTERVAL3 0x13
  36. #define CFG_PARAM_N64_SQUARE 0x20 // Not implemented
  37. #define CFG_PARAM_GC_MAIN_SQUARE 0x21 // Not implemented
  38. #define CFG_PARAM_GC_CSTICK_SQUARE 0x22 // Not implemented
  39. #define CFG_PARAM_FULL_SLIDERS 0x23
  40. #define CFG_PARAM_INVERT_TRIG 0x24
  41. #define CFG_PARAM_TRIGGERS_AS_BUTTONS 0x25
  42. #define CFG_PARAM_DPAD_AS_AXES 0x31
  43. #define CFG_PARAM_DISABLE_ANALOG_TRIGGERS 0x32
  44. #define CFG_PARAM_SWAP_STICK_AND_DPAD 0x34
  45. #endif