|
STM32 core 3.0.1-dev
Arduino core for STM32 based boards: API reference
|
← STM32duino documentation
|
Hardware serial (Uart class) and the SerialN / SerialLPN instances. More...
#include <inttypes.h>#include "api/Common.h"#include "HardwareSerial.h"#include "Stream.h"#include "uart.h"Classes | |
| class | Uart |
| STM32 hardware UART. More... | |
Macros | |
| #define | SERIAL_TX_BUFFER_SIZE 64 |
| Size in bytes of the transmit ring buffer. | |
| #define | SERIAL_RX_BUFFER_SIZE 64 |
| Size in bytes of the receive ring buffer. | |
Enumerations | |
| enum | HalfDuplexMode_t { HALF_DUPLEX_DISABLED , HALF_DUPLEX_ENABLED } |
| Half-duplex mode selection of the Uart(void *, HalfDuplexMode_t) constructor. More... | |
Hardware serial (Uart class) and the SerialN / SerialLPN instances.
| #define SERIAL_RX_BUFFER_SIZE 64 |
Size in bytes of the receive ring buffer.
Can be defined before including this file.
| #define SERIAL_TX_BUFFER_SIZE 64 |
Size in bytes of the transmit ring buffer.
Can be defined before including this file.
| enum HalfDuplexMode_t |
Half-duplex mode selection of the Uart(void *, HalfDuplexMode_t) constructor.
| Enumerator | |
|---|---|
| HALF_DUPLEX_DISABLED | Full-duplex, RX and TX pins are used. |
| HALF_DUPLEX_ENABLED | Half-duplex, only the TX pin is used. |