Sming Framework API
Sming - Open Source framework for high efficiency WiFi SoC ESP8266 native development with C++ language.
HardwareSerial Class Reference
Inheritance diagram for HardwareSerial:

Public Member Functions

 HardwareSerial (const int uartPort)
 
void begin (const uint32_t baud=9600)
 Initialise the serial port. More...
 
int available ()
 Get quantity characters available from serial input. More...
 
int read ()
 Read a character from serial port. More...
 
int readMemoryBlock (char *buf, int max_len)
 Read a block of characters from serial port. More...
 
int peek ()
 Read a character from serial port without removing from input buffer. More...
 
void flush ()
 Clear the serial port receive buffer. More...
 
size_t write (uint8_t oneChar)
 write a character to serial port More...
 
void systemDebugOutput (bool enabled)
 Configure serial port for system debug output. More...
 
void commandProcessing (bool reqEnable)
 Configure serial port for command processing. More...
 
void setCallback (StreamDataReceivedDelegate reqCallback, bool useSerialRxBuffer=true)
 Set handler for received data. More...
 
void resetCallback ()
 Remove handler for received data.
 

Static Public Member Functions

static void IRAM_ATTR uart0_rx_intr_handler (void *para)
 Interrupt handler for UART0 receive events. More...
 
static void delegateTask (os_event_t *inputEvent)
 Trigger task for input event. More...