|
libjoybus
Joybus implementation for 32-bit MCUs
|
Data Fields | |
| int(* | byte_received )(struct joybus_target *target, const uint8_t *command, uint8_t byte_idx, joybus_target_response_cb_t send_response, void *user_data) |
| Handle a received command byte. | |
| int(* joybus_target_api::byte_received) (struct joybus_target *target, const uint8_t *command, uint8_t byte_idx, joybus_target_response_cb_t send_response, void *user_data) |
Handle a received command byte.
| target | the target to handle the command |
| command | the command buffer |
| byte_idx | the index of the byte that was just received |
| send_response | a callback function to send the response |
| user_data | user data to pass to the response callback |