![]() |
Open FFBoard
Open source force feedback firmware
|
Go to the source code of this file.
Functions | |
| TU_ATTR_WEAK void | tusb_time_delay_ms_api (uint32_t ms) |
| bool | tusb_rhport_init (uint8_t rhport, const tusb_rhport_init_t *rh_init) |
| bool | tusb_inited (void) |
| void | tusb_int_handler (uint8_t rhport, bool in_isr) |
| uint8_t const * | tu_desc_find (uint8_t const *desc, uint8_t const *end, uint8_t byte1) |
| uint8_t const * | tu_desc_find2 (uint8_t const *desc, uint8_t const *end, uint8_t byte1, uint8_t byte2) |
| uint8_t const * | tu_desc_find3 (uint8_t const *desc, uint8_t const *end, uint8_t byte1, uint8_t byte2, uint8_t byte3) |
| bool | tu_edpt_claim (tu_edpt_state_t *ep_state, osal_mutex_t mutex) |
| bool | tu_edpt_release (tu_edpt_state_t *ep_state, osal_mutex_t mutex) |
| bool | tu_edpt_validate (tusb_desc_endpoint_t const *desc_ep, tusb_speed_t speed) |
| void | tu_edpt_bind_driver (uint8_t ep2drv[][2], tusb_desc_interface_t const *desc_itf, uint16_t desc_len, uint8_t driver_id) |
| uint16_t | tu_desc_get_interface_total_len (tusb_desc_interface_t const *desc_itf, uint8_t itf_count, uint16_t max_len) |
| bool | tu_edpt_stream_init (tu_edpt_stream_t *s, bool is_host, bool is_tx, bool overwritable, void *ff_buf, uint16_t ff_bufsize, uint8_t *ep_buf, uint16_t ep_bufsize) |
| bool | tu_edpt_stream_deinit (tu_edpt_stream_t *s) |
| static TU_ATTR_ALWAYS_INLINE bool | stream_claim (uint8_t hwid, tu_edpt_stream_t *s) |
| static TU_ATTR_ALWAYS_INLINE bool | stream_xfer (uint8_t hwid, tu_edpt_stream_t *s, uint16_t count) |
| static TU_ATTR_ALWAYS_INLINE bool | stream_release (uint8_t hwid, tu_edpt_stream_t *s) |
| bool | tu_edpt_stream_write_zlp_if_needed (uint8_t hwid, tu_edpt_stream_t *s, uint32_t last_xferred_bytes) |
| uint32_t | tu_edpt_stream_write_xfer (uint8_t hwid, tu_edpt_stream_t *s) |
| uint32_t | tu_edpt_stream_write (uint8_t hwid, tu_edpt_stream_t *s, void const *buffer, uint32_t bufsize) |
| uint32_t | tu_edpt_stream_write_available (uint8_t hwid, tu_edpt_stream_t *s) |
| uint32_t | tu_edpt_stream_read_xfer (uint8_t hwid, tu_edpt_stream_t *s) |
| uint32_t | tu_edpt_stream_read (uint8_t hwid, tu_edpt_stream_t *s, void *buffer, uint32_t bufsize) |
| static void | dump_str_line (uint8_t const *buf, uint16_t count) |
| void | tu_print_mem (void const *buf, uint32_t count, uint8_t indent) |
Variables | |
| tusb_role_t | _tusb_rhport_role [TUP_USBIP_CONTROLLER_NUM] = { TUSB_ROLE_INVALID } |
| char const *const | tu_str_speed [] = {"Full", "Low", "High"} |
| char const *const | tu_str_std_request [] |
| char const *const | tu_str_xfer_result [] |
|
static |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
| uint8_t const * tu_desc_find | ( | uint8_t const * | desc, |
| uint8_t const * | end, | ||
| uint8_t | byte1 ) |
| uint8_t const * tu_desc_find2 | ( | uint8_t const * | desc, |
| uint8_t const * | end, | ||
| uint8_t | byte1, | ||
| uint8_t | byte2 ) |
| uint8_t const * tu_desc_find3 | ( | uint8_t const * | desc, |
| uint8_t const * | end, | ||
| uint8_t | byte1, | ||
| uint8_t | byte2, | ||
| uint8_t | byte3 ) |
| uint16_t tu_desc_get_interface_total_len | ( | tusb_desc_interface_t const * | desc_itf, |
| uint8_t | itf_count, | ||
| uint16_t | max_len ) |
| void tu_edpt_bind_driver | ( | uint8_t | ep2drv[][2], |
| tusb_desc_interface_t const * | desc_itf, | ||
| uint16_t | desc_len, | ||
| uint8_t | driver_id ) |
| bool tu_edpt_claim | ( | tu_edpt_state_t * | ep_state, |
| osal_mutex_t | mutex ) |
| bool tu_edpt_release | ( | tu_edpt_state_t * | ep_state, |
| osal_mutex_t | mutex ) |
| bool tu_edpt_stream_deinit | ( | tu_edpt_stream_t * | s | ) |
| bool tu_edpt_stream_init | ( | tu_edpt_stream_t * | s, |
| bool | is_host, | ||
| bool | is_tx, | ||
| bool | overwritable, | ||
| void * | ff_buf, | ||
| uint16_t | ff_bufsize, | ||
| uint8_t * | ep_buf, | ||
| uint16_t | ep_bufsize ) |
| uint32_t tu_edpt_stream_read | ( | uint8_t | hwid, |
| tu_edpt_stream_t * | s, | ||
| void * | buffer, | ||
| uint32_t | bufsize ) |
| uint32_t tu_edpt_stream_read_xfer | ( | uint8_t | hwid, |
| tu_edpt_stream_t * | s ) |
| uint32_t tu_edpt_stream_write | ( | uint8_t | hwid, |
| tu_edpt_stream_t * | s, | ||
| void const * | buffer, | ||
| uint32_t | bufsize ) |
| uint32_t tu_edpt_stream_write_available | ( | uint8_t | hwid, |
| tu_edpt_stream_t * | s ) |
| uint32_t tu_edpt_stream_write_xfer | ( | uint8_t | hwid, |
| tu_edpt_stream_t * | s ) |
| bool tu_edpt_stream_write_zlp_if_needed | ( | uint8_t | hwid, |
| tu_edpt_stream_t * | s, | ||
| uint32_t | last_xferred_bytes ) |
| bool tu_edpt_validate | ( | tusb_desc_endpoint_t const * | desc_ep, |
| tusb_speed_t | speed ) |
| void tu_print_mem | ( | void const * | buf, |
| uint32_t | count, | ||
| uint8_t | indent ) |
| bool tusb_rhport_init | ( | uint8_t | rhport, |
| const tusb_rhport_init_t * | rh_init ) |
| tusb_role_t _tusb_rhport_role[TUP_USBIP_CONTROLLER_NUM] = { TUSB_ROLE_INVALID } |
| char const* const tu_str_std_request[] |