N64 controller Joybus target.
More...
N64 controller Joybus target.
◆ JOYBUS_N64_CONTROLLER
| #define JOYBUS_N64_CONTROLLER |
( |
| target | ) |
|
Value:
N64 controller Joybus target.
Definition n64_controller.h:28
Macro to cast to a N64 controller target.
◆ joybus_n64_controller_reset_cb_t
Callback type for N64 controller reset events.
- Parameters
-
| controller | the controller that was reset |
◆ joybus_n64_controller_init()
Initialize an N64 controller.
This function sets up the initial state, and registers SI command handlers for OEM N64 controller commands.
- Parameters
-
| controller | the controller to initialize |
| type | the device type flags |
◆ joybus_n64_controller_set_reset_callback()
Set the reset callback for the controller.
NOTE: Reset callbacks are called from interrupt context, do not perform any blocking operations within the callback.
- Parameters
-
| controller | the controller to set the callback for |
| callback | the callback function |