CDC/HostDevice.h
int available() override
Return the total length of the stream.
Definition: CDC/HostDevice.h:77
void onMount(MountCallback callback)
Application should call this method to receive device connection notifications.
virtual size_t setTxBufferSize(size_t size) override
Sets transmit buffer size.
Definition: CDC/HostDevice.h:72
size_t setRxBufferSize(size_t size) override
Sets receiving buffer size.
Definition: CDC/HostDevice.h:67
Implements CDC interface for a connected serial device.
Definition: CDC/HostDevice.h:47
int peek() override
Read a character without advancing the stream pointer.
Definition: CDC/HostDevice.h:98
bool isFinished() override
Check if all data has been read.
Definition: CDC/HostDevice.h:82
void onUnmount(UnmountCallback callback)
Application should call this method to receive device disconnection notifications.
size_t write(const uint8_t *buffer, size_t size) override
Write chars to stream.
@ RxOnly
int read() override
Read one character and moves the stream pointer.
Definition: CDC/HostDevice.h:87
uint8_t idx
Index or instance value specific to class.
Definition: HostInterface.h:88
void clear(SerialMode mode=SERIAL_FULL) override
Clear the serial port transmit/receive buffers.
Definition: CDC/HostDevice.h:104
size_t readBytes(char *buffer, size_t length) override
Read chars from stream into buffer.
Definition: CDC/HostDevice.h:93
Definition: Delegate.h:20
@ TxOnly
Definition: Libraries/USB/src/USB/CDC/Device.h:25