|
FabGL2 2.0.0
ESP32 Display Controller and Graphics Library for ESP-IDF
|
SerialPort handles UART configuration and communication. More...
#include <serialport.h>
Public Member Functions | |
| bool | breakDetected () |
| Gets the break detected flag. | |
| bool | CTSStatus () |
| Reports the current state of the CTS signal. | |
| bool | DCDStatus () |
| Reports the current state of the DCD signal. | |
| bool | DSRStatus () |
| Reports the current state of the DSR signal. | |
| bool | DTRStatus () |
| Reports the current state of the DTR signal. | |
| void | flowControl (bool enableRX) |
| Allows or prevents the host from sending data. | |
| bool | framingError () |
| Gets the framing error status. | |
| bool | initialized () |
| Checks whether the object is initialized. | |
| bool | overflowError () |
| Gets the overflow error status. | |
| bool | parityError () |
| Gets the parity error status. | |
| bool | readyToReceive () |
| Reports whether RX is active. | |
| bool | readyToSend () |
| Checks whether TX is enabled, based on the received XOFF and on the CTS signal. | |
| bool | RIStatus () |
| Reports the current state of the RI signal. | |
| bool | RTSStatus () |
| Reports the current state of the RTS signal. | |
| void | send (uint8_t value) |
| Sends a byte. | |
| void | sendBreak (bool value) |
| Activates or deactivates the break condition. | |
| void | setBaud (int value) |
| Changes the baud rate. | |
| void | setDTRStatus (bool value) |
| Sets the state of the DTR signal. | |
| void | setFrame (int dataLength, char parity, float stopBits) |
| Changes the frame format. | |
| void | setRTSStatus (bool value) |
| Sets the state of the RTS signal. | |
| void | setSignals (int rxPin, int txPin, int rtsPin=-1, int ctsPin=-1, int dtrPin=-1, int dsrPin=-1, int dcdPin=-1, int riPin=-1) |
| Assigns GPIOs to the serial port signals. | |
| void | setup (int uartIndex, uint32_t baud, int dataLength, char parity, float stopBits, FlowControl flowControl, bool inverted=false) |
| Configures and activates the specified UART. | |
SerialPort handles UART configuration and communication.
Definition at line 67 of file serialport.h.