add tuh_cdc_peek()

This commit is contained in:
hathach
2022-12-24 01:11:13 +07:00
parent 48f4d8b7f7
commit 48d4a67ec5
5 changed files with 17 additions and 3 deletions

View File

@@ -80,7 +80,7 @@ int32_t tud_cdc_n_read_char (uint8_t itf);
// Clear the received FIFO
void tud_cdc_n_read_flush (uint8_t itf);
// Get a byte from FIFO at the specified position without removing it
// Get a byte from FIFO without removing it
bool tud_cdc_n_peek (uint8_t itf, uint8_t* ui8);
// Write bytes to TX FIFO, data may remain in the FIFO for a while