|
libjoybus
Joybus implementation for 32-bit MCUs
|
Functions | |
| int | joybus_n64_rumble_pak_init (struct joybus *bus) |
| Initialize a rumble pak. | |
| int | joybus_n64_rumble_pak_init_async (struct joybus *bus, joybus_transfer_cb callback, void *user_data) |
| Initialize a rumble pak, asynchronously. | |
| int | joybus_n64_rumble_pak_start (struct joybus *bus) |
| Start the motor on a rumble pak. | |
| int | joybus_n64_rumble_pak_start_async (struct joybus *bus, joybus_transfer_cb callback, void *user_data) |
| Start the motor on a rumble pak, asynchronously. | |
| int | joybus_n64_rumble_pak_stop (struct joybus *bus) |
| Stop the motor on a rumble pak. | |
| int | joybus_n64_rumble_pak_stop_async (struct joybus *bus, joybus_transfer_cb callback, void *user_data) |
| Stop the motor on a rumble pak, asynchronously. | |
| int joybus_n64_rumble_pak_init | ( | struct joybus * | bus | ) |
Initialize a rumble pak.
| bus | the bus with a controller with a rumble pak attached |
| int joybus_n64_rumble_pak_init_async | ( | struct joybus * | bus, |
| joybus_transfer_cb | callback, | ||
| void * | user_data ) |
Initialize a rumble pak, asynchronously.
| bus | the bus with a controller with a rumble pak attached |
| callback | a callback function to call when the transfer is complete |
| user_data | user data to pass to the callback function |
| int joybus_n64_rumble_pak_start | ( | struct joybus * | bus | ) |
Start the motor on a rumble pak.
| bus | the bus with a controller with a rumble pak attached |
| int joybus_n64_rumble_pak_start_async | ( | struct joybus * | bus, |
| joybus_transfer_cb | callback, | ||
| void * | user_data ) |
Start the motor on a rumble pak, asynchronously.
| bus | the bus with a controller with a rumble pak attached |
| callback | a callback function to call when the transfer is complete |
| user_data | user data to pass to the callback function |
| int joybus_n64_rumble_pak_stop | ( | struct joybus * | bus | ) |
Stop the motor on a rumble pak.
| bus | the bus with a controller with a rumble pak attached |
| int joybus_n64_rumble_pak_stop_async | ( | struct joybus * | bus, |
| joybus_transfer_cb | callback, | ||
| void * | user_data ) |
Stop the motor on a rumble pak, asynchronously.
| bus | the bus with a controller with a rumble pak attached |
| callback | a callback function to call when the transfer is complete |
| user_data | user data to pass to the callback function |