|
libjoybus
Joybus implementation for 32-bit MCUs
|
Functions | |
| int | joybus_identify (struct joybus *bus, struct joybus_id *response) |
| Identify the target device attached to the Joybus. | |
| int | joybus_identify_async (struct joybus *bus, struct joybus_id *response, joybus_transfer_cb callback, void *user_data) |
| Identify the target device attached to the Joybus, asynchronously. | |
| int | joybus_reset (struct joybus *bus, struct joybus_id *response) |
| Reset the target device attached to the Joybus. | |
| int | joybus_reset_async (struct joybus *bus, struct joybus_id *response, joybus_transfer_cb callback, void *user_data) |
| Reset the target device attached to the Joybus, asynchronously. | |
Identify the target device attached to the Joybus.
| bus | the Joybus to use |
| response | buffer to store the identify response in |
| int joybus_identify_async | ( | struct joybus * | bus, |
| struct joybus_id * | response, | ||
| joybus_transfer_cb | callback, | ||
| void * | user_data ) |
Identify the target device attached to the Joybus, asynchronously.
Calls the provided callback when complete. The response buffer will be populated with a 3-byte response containing the device ID and status.
| bus | the Joybus to use |
| response | buffer to store the identify response in |
| callback | a callback function to call when the transfer is complete |
| user_data | user data to pass to the callback function |
Reset the target device attached to the Joybus.
| bus | the Joybus to use |
| response | buffer to store the reset response in |
| int joybus_reset_async | ( | struct joybus * | bus, |
| struct joybus_id * | response, | ||
| joybus_transfer_cb | callback, | ||
| void * | user_data ) |
Reset the target device attached to the Joybus, asynchronously.
| bus | the Joybus instance to use |
| response | buffer to store the identify response in |
| callback | a callback function to call when the transfer is complete |
| user_data | user data to pass to the callback function |