UsbSerial.h
Go to the documentation of this file.
virtual size_t readBytes(char *buffer, size_t length)
Read chars from stream into buffer.
void handleEvent(Event event)
void queueFlush()
virtual size_t setTxBufferSize(size_t size)=0
Sets transmit buffer size.
virtual void clear(SerialMode mode=SERIAL_FULL)=0
Clear the serial port transmit/receive buffers.
void setTxWait(bool wait)
Governs write behaviour when UART transmit buffers are full.
Definition: UsbSerial.h:66
bool onDataReceived(DataReceived callback)
Definition: UsbSerial.h:93
uint16_t readMemoryBlock(char *buf, int max_len) override
Read a block of memory.
Definition: UsbSerial.h:71
virtual size_t setRxBufferSize(size_t size)=0
Sets receiving buffer size.
void systemDebugOutput(bool enabled)
Configure serial port for system debug output and redirect output from debugf.
bool onTransmitComplete(TransmitComplete callback)
Definition: UsbSerial.h:99
Delegate< void(Stream &source, char arrivedChar, uint16_t availableCharsCount)> StreamDataReceivedDelegate
Delegate callback type for serial data reception.
Definition: HardwareSerial.h:46
uint8_t uart_options_t
Definition: Components/arch_driver/src/include/driver/uart.h:171
@ UART_OPT_TXWAIT
If buffers are full then uart_write() will wait for free space.
Definition: Components/arch_driver/src/include/driver/uart.h:177
Definition: Libraries/USB/src/USB/CDC/Device.h:26
@ line_break
@ tx_done
@ rx_data
1.9.1