![]() |
Open FFBoard
Open source force feedback firmware
|
Go to the source code of this file.
Classes | |
struct | TU_ATTR_PACKED |
AUDIO Channel Cluster Descriptor (4.1) More... | |
struct | tu_edpt_stream_t |
struct | tu_edpt_stream_t::TU_ATTR_PACKED |
Typedefs | |
typedef struct TU_ATTR_PACKED | tu_edpt_state_t |
Functions | |
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 *p_desc, 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_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_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 void | tu_edpt_stream_open (tu_edpt_stream_t *s, tusb_desc_endpoint_t const *desc_ep) |
static TU_ATTR_ALWAYS_INLINE void | tu_edpt_stream_close (tu_edpt_stream_t *s) |
static TU_ATTR_ALWAYS_INLINE bool | tu_edpt_stream_clear (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_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) |
uint32_t | tu_edpt_stream_write_available (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) |
uint32_t | tu_edpt_stream_read_xfer (uint8_t hwid, tu_edpt_stream_t *s) |
static TU_ATTR_ALWAYS_INLINE void | tu_edpt_stream_read_xfer_complete (tu_edpt_stream_t *s, uint32_t xferred_bytes) |
static TU_ATTR_ALWAYS_INLINE void | tu_edpt_stream_read_xfer_complete_offset (tu_edpt_stream_t *s, uint32_t xferred_bytes, uint32_t skip_offset) |
static TU_ATTR_ALWAYS_INLINE uint32_t | tu_edpt_stream_read_available (tu_edpt_stream_t *s) |
static TU_ATTR_ALWAYS_INLINE bool | tu_edpt_stream_peek (tu_edpt_stream_t *s, uint8_t *ch) |
Variables | |
C | |
typedef struct TU_ATTR_PACKED tu_edpt_state_t |
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 * | p_desc, | ||
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 | ||
) |
|
inlinestatic |
Definition at line 110 of file tusb_private.h.
|
inlinestatic |
Definition at line 104 of file tusb_private.h.
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 | ||
) |
|
inlinestatic |
Definition at line 97 of file tusb_private.h.
|
inlinestatic |
Definition at line 164 of file tusb_private.h.
uint32_t tu_edpt_stream_read | ( | uint8_t | hwid, |
tu_edpt_stream_t * | s, | ||
void * | buffer, | ||
uint32_t | bufsize | ||
) |
|
inlinestatic |
Definition at line 159 of file tusb_private.h.
uint32_t tu_edpt_stream_read_xfer | ( | uint8_t | hwid, |
tu_edpt_stream_t * | s | ||
) |
|
inlinestatic |
Definition at line 143 of file tusb_private.h.
|
inlinestatic |
Definition at line 151 of file tusb_private.h.
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 | ||
) |
|
extern |