34#ifndef _FREERTOS_DRIVERS_TINYUSB_TINYUSBCDC_HXX_
35#define _FREERTOS_DRIVERS_TINYUSB_TINYUSBCDC_HXX_
54 inline void rx_available();
55 inline void tx_complete();
83 ssize_t
read(
File *file,
void *buf,
size_t count)
override;
92 ssize_t
write(
File *file,
const void *buf,
size_t count)
override;
98 void *
entry()
override;
const char * name
device name
This class provides a threading API.
Thread for running the tiny usb device stack.
void * entry() override
User entry point for the created thread.
ssize_t write(File *file, const void *buf, size_t count) override
Write to a file or device.
bool select(File *file, int mode) override
Device select method.
Device::SelectInfo selectInfoWrite_
Handles the select for outgoing data (write).
void flush_buffers() override
Instructs the device driver to drop all TX and RX queues.
void enable() override
This will be called once when reference-count goes from 0 to positive.
ssize_t read(File *file, void *buf, size_t count) override
Read from a file or device.
Device::SelectInfo selectInfoRead_
Handles the select for incoming data (read).
void disable() override
This will be called when reference count goes from non-zero to 0.
Select wakeup information.