diff options
| author | hathach <[email protected]> | 2022-12-21 17:46:11 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2022-12-21 17:49:50 +0700 |
| commit | 9e8ea44925e80abd7189ed7a673762527ee3adfd (patch) | |
| tree | 45a54d24a0bd72541da229e44e6ca4164e05e38a /src/class/cdc/cdc_host.h | |
| parent | cd9008e5a9c8da81d9736f7e0bf72c5ba409a7f1 (diff) | |
add tuh_cdc_write_clear, rename read_flush() to read_clear()
Diffstat (limited to 'src/class/cdc/cdc_host.h')
| -rw-r--r-- | src/class/cdc/cdc_host.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/class/cdc/cdc_host.h b/src/class/cdc/cdc_host.h index 476431cc5..02ae69111 100644 --- a/src/class/cdc/cdc_host.h +++ b/src/class/cdc/cdc_host.h @@ -110,6 +110,9 @@ uint32_t tuh_cdc_write(uint8_t idx, void const* buffer, uint32_t bufsize); // Force sending data if possible, return number of forced bytes uint32_t tuh_cdc_write_flush(uint8_t idx); +// Clear the transmit FIFO +bool tuh_cdc_write_clear(uint8_t idx); + //--------------------------------------------------------------------+ // Read API //--------------------------------------------------------------------+ @@ -121,7 +124,7 @@ uint32_t tuh_cdc_read_available(uint8_t idx); uint32_t tuh_cdc_read (uint8_t idx, void* buffer, uint32_t bufsize); // Clear the received FIFO -void tuh_cdc_read_flush (uint8_t idx); +bool tuh_cdc_read_clear (uint8_t idx); //--------------------------------------------------------------------+ // Control Endpoint (Request) API |
