![]() |
Open FFBoard
Open source force feedback firmware
|
Go to the source code of this file.
Functions | |
bool | tud_cdc_configure_fifo (tud_cdc_configure_fifo_t const *cfg) |
bool | tud_cdc_n_ready (uint8_t itf) |
bool | tud_cdc_n_connected (uint8_t itf) |
uint8_t | tud_cdc_n_get_line_state (uint8_t itf) |
void | tud_cdc_n_get_line_coding (uint8_t itf, cdc_line_coding_t *coding) |
void | tud_cdc_n_set_wanted_char (uint8_t itf, char wanted) |
uint32_t | tud_cdc_n_available (uint8_t itf) |
uint32_t | tud_cdc_n_read (uint8_t itf, void *buffer, uint32_t bufsize) |
static TU_ATTR_ALWAYS_INLINE int32_t | tud_cdc_n_read_char (uint8_t itf) |
void | tud_cdc_n_read_flush (uint8_t itf) |
bool | tud_cdc_n_peek (uint8_t itf, uint8_t *ui8) |
uint32_t | tud_cdc_n_write (uint8_t itf, void const *buffer, uint32_t bufsize) |
static TU_ATTR_ALWAYS_INLINE uint32_t | tud_cdc_n_write_char (uint8_t itf, char ch) |
static TU_ATTR_ALWAYS_INLINE uint32_t | tud_cdc_n_write_str (uint8_t itf, char const *str) |
uint32_t | tud_cdc_n_write_flush (uint8_t itf) |
uint32_t | tud_cdc_n_write_available (uint8_t itf) |
bool | tud_cdc_n_write_clear (uint8_t itf) |
static TU_ATTR_ALWAYS_INLINE bool | tud_cdc_ready (void) |
static TU_ATTR_ALWAYS_INLINE bool | tud_cdc_connected (void) |
static TU_ATTR_ALWAYS_INLINE uint8_t | tud_cdc_get_line_state (void) |
static TU_ATTR_ALWAYS_INLINE void | tud_cdc_get_line_coding (cdc_line_coding_t *coding) |
static TU_ATTR_ALWAYS_INLINE void | tud_cdc_set_wanted_char (char wanted) |
static TU_ATTR_ALWAYS_INLINE uint32_t | tud_cdc_available (void) |
static TU_ATTR_ALWAYS_INLINE int32_t | tud_cdc_read_char (void) |
static TU_ATTR_ALWAYS_INLINE uint32_t | tud_cdc_read (void *buffer, uint32_t bufsize) |
static TU_ATTR_ALWAYS_INLINE void | tud_cdc_read_flush (void) |
static TU_ATTR_ALWAYS_INLINE bool | tud_cdc_peek (uint8_t *ui8) |
static TU_ATTR_ALWAYS_INLINE uint32_t | tud_cdc_write_char (char ch) |
static TU_ATTR_ALWAYS_INLINE uint32_t | tud_cdc_write (void const *buffer, uint32_t bufsize) |
static TU_ATTR_ALWAYS_INLINE uint32_t | tud_cdc_write_str (char const *str) |
static TU_ATTR_ALWAYS_INLINE uint32_t | tud_cdc_write_flush (void) |
static TU_ATTR_ALWAYS_INLINE uint32_t | tud_cdc_write_available (void) |
static TU_ATTR_ALWAYS_INLINE bool | tud_cdc_write_clear (void) |
TU_ATTR_WEAK void | tud_cdc_rx_cb (uint8_t itf) |
TU_ATTR_WEAK void | tud_cdc_rx_wanted_cb (uint8_t itf, char wanted_char) |
TU_ATTR_WEAK void | tud_cdc_tx_complete_cb (uint8_t itf) |
TU_ATTR_WEAK void | tud_cdc_line_state_cb (uint8_t itf, bool dtr, bool rts) |
TU_ATTR_WEAK void | tud_cdc_line_coding_cb (uint8_t itf, cdc_line_coding_t const *p_line_coding) |
TU_ATTR_WEAK void | tud_cdc_send_break_cb (uint8_t itf, uint16_t duration_ms) |
void | cdcd_init (void) |
bool | cdcd_deinit (void) |
void | cdcd_reset (uint8_t rhport) |
uint16_t | cdcd_open (uint8_t rhport, tusb_desc_interface_t const *itf_desc, uint16_t max_len) |
bool | cdcd_control_xfer_cb (uint8_t rhport, uint8_t stage, tusb_control_request_t const *request) |
bool | cdcd_xfer_cb (uint8_t rhport, uint8_t ep_addr, xfer_result_t result, uint32_t xferred_bytes) |
Variables | |
C | |
bool cdcd_control_xfer_cb | ( | uint8_t | rhport, |
uint8_t | stage, | ||
tusb_control_request_t const * | request | ||
) |
Definition at line 355 of file cdc_device.c.
bool cdcd_deinit | ( | void | ) |
Definition at line 260 of file cdc_device.c.
void cdcd_init | ( | void | ) |
Definition at line 226 of file cdc_device.c.
uint16_t cdcd_open | ( | uint8_t | rhport, |
tusb_desc_interface_t const * | itf_desc, | ||
uint16_t | max_len | ||
) |
Definition at line 295 of file cdc_device.c.
void cdcd_reset | ( | uint8_t | rhport | ) |
Definition at line 282 of file cdc_device.c.
bool cdcd_xfer_cb | ( | uint8_t | rhport, |
uint8_t | ep_addr, | ||
xfer_result_t | result, | ||
uint32_t | xferred_bytes | ||
) |
Definition at line 426 of file cdc_device.c.
|
inlinestatic |
Definition at line 143 of file cdc_device.h.
bool tud_cdc_configure_fifo | ( | tud_cdc_configure_fifo_t const * | cfg | ) |
Definition at line 117 of file cdc_device.c.
|
inlinestatic |
Definition at line 127 of file cdc_device.h.
|
inlinestatic |
Definition at line 135 of file cdc_device.h.
|
inlinestatic |
Definition at line 131 of file cdc_device.h.
TU_ATTR_WEAK void tud_cdc_line_coding_cb | ( | uint8_t | itf, |
cdc_line_coding_t const * | p_line_coding | ||
) |
TU_ATTR_WEAK void tud_cdc_line_state_cb | ( | uint8_t | itf, |
bool | dtr, | ||
bool | rts | ||
) |
uint32_t tud_cdc_n_available | ( | uint8_t | itf | ) |
Definition at line 147 of file cdc_device.c.
bool tud_cdc_n_connected | ( | uint8_t | itf | ) |
Definition at line 127 of file cdc_device.c.
void tud_cdc_n_get_line_coding | ( | uint8_t | itf, |
cdc_line_coding_t * | coding | ||
) |
Definition at line 136 of file cdc_device.c.
uint8_t tud_cdc_n_get_line_state | ( | uint8_t | itf | ) |
Definition at line 132 of file cdc_device.c.
bool tud_cdc_n_peek | ( | uint8_t | itf, |
uint8_t * | ui8 | ||
) |
Definition at line 158 of file cdc_device.c.
uint32_t tud_cdc_n_read | ( | uint8_t | itf, |
void * | buffer, | ||
uint32_t | bufsize | ||
) |
Definition at line 151 of file cdc_device.c.
|
inlinestatic |
Definition at line 86 of file cdc_device.h.
void tud_cdc_n_read_flush | ( | uint8_t | itf | ) |
Definition at line 162 of file cdc_device.c.
bool tud_cdc_n_ready | ( | uint8_t | itf | ) |
Definition at line 123 of file cdc_device.c.
void tud_cdc_n_set_wanted_char | ( | uint8_t | itf, |
char | wanted | ||
) |
Definition at line 140 of file cdc_device.c.
uint32_t tud_cdc_n_write | ( | uint8_t | itf, |
void const * | buffer, | ||
uint32_t | bufsize | ||
) |
Definition at line 171 of file cdc_device.c.
uint32_t tud_cdc_n_write_available | ( | uint8_t | itf | ) |
Definition at line 215 of file cdc_device.c.
|
inlinestatic |
Definition at line 101 of file cdc_device.h.
bool tud_cdc_n_write_clear | ( | uint8_t | itf | ) |
Definition at line 219 of file cdc_device.c.
uint32_t tud_cdc_n_write_flush | ( | uint8_t | itf | ) |
Definition at line 187 of file cdc_device.c.
|
inlinestatic |
Definition at line 106 of file cdc_device.h.
|
inlinestatic |
Definition at line 159 of file cdc_device.h.
|
inlinestatic |
Definition at line 151 of file cdc_device.h.
|
inlinestatic |
Definition at line 147 of file cdc_device.h.
|
inlinestatic |
Definition at line 155 of file cdc_device.h.
|
inlinestatic |
Definition at line 123 of file cdc_device.h.
TU_ATTR_WEAK void tud_cdc_rx_cb | ( | uint8_t | itf | ) |
Definition at line 294 of file global_callbacks.cpp.
TU_ATTR_WEAK void tud_cdc_rx_wanted_cb | ( | uint8_t | itf, |
char | wanted_char | ||
) |
TU_ATTR_WEAK void tud_cdc_send_break_cb | ( | uint8_t | itf, |
uint16_t | duration_ms | ||
) |
|
inlinestatic |
Definition at line 139 of file cdc_device.h.
TU_ATTR_WEAK void tud_cdc_tx_complete_cb | ( | uint8_t | itf | ) |
Definition at line 301 of file global_callbacks.cpp.
|
inlinestatic |
Definition at line 167 of file cdc_device.h.
|
inlinestatic |
Definition at line 179 of file cdc_device.h.
|
inlinestatic |
Definition at line 163 of file cdc_device.h.
|
inlinestatic |
Definition at line 183 of file cdc_device.h.
|
inlinestatic |
Definition at line 175 of file cdc_device.h.
|
inlinestatic |
Definition at line 171 of file cdc_device.h.
|
extern |