Sming Framework API
Sming - Open Source framework for high efficiency WiFi SoC ESP8266 native development with C++ language.
|
Hardware serial UARTs. More...
Classes | |
struct | HWSerialMemberData |
Hardware serial member data. More... | |
class | HardwareSerial |
Hardware serial class. More... | |
Macros | |
#define | UART_ID_0 0 |
ID of UART 0. More... | |
#define | UART_ID_1 1 |
ID of UART 1. More... | |
#define | NUMBER_UARTS 2 |
Quantity of UARTs available. More... | |
#define | SERIAL_SIGNAL_DELEGATE 0 |
ID for serial delegate signals. More... | |
#define | SERIAL_SIGNAL_COMMAND 1 |
ID for serial command signals. More... | |
#define | SERIAL_QUEUE_LEN 10 |
Size of serial queue. More... | |
Typedefs | |
typedef Delegate< void(Stream &source, char arrivedChar, uint16_t availableCharsCount)> | StreamDataReceivedDelegate |
Delegate callback type for serial data reception. More... | |
Variables | |
HardwareSerial | Serial |
Global instance of serial port UART0. More... | |
Hardware serial UARTs.
#define NUMBER_UARTS 2 |
Quantity of UARTs available.
#define SERIAL_QUEUE_LEN 10 |
Size of serial queue.
#define SERIAL_SIGNAL_COMMAND 1 |
ID for serial command signals.
#define SERIAL_SIGNAL_DELEGATE 0 |
ID for serial delegate signals.
#define UART_ID_0 0 |
ID of UART 0.
#define UART_ID_1 1 |
ID of UART 1.
typedef Delegate<void(Stream &source, char arrivedChar, uint16_t availableCharsCount)> StreamDataReceivedDelegate |
Delegate callback type for serial data reception.
source | Reference to serial stream |
arrivedChar | Char recieved |
availableCharsCount | Quantity of chars available stream in receive buffer |
HardwareSerial Serial |
Global instance of serial port UART0.