#include <UART.h>
Definition at line 26 of file UART.h.
◆ UARTPort()
UARTPort::UARTPort |
( |
UART_HandleTypeDef & |
huart | ) |
|
◆ ~UARTPort()
◆ abortReceive()
bool UARTPort::abortReceive |
( |
| ) |
|
◆ abortTransmit()
bool UARTPort::abortTransmit |
( |
| ) |
|
◆ freePort()
◆ getConfig()
UART_InitTypeDef & UARTPort::getConfig |
( |
| ) |
|
◆ getErrors()
uint32_t UARTPort::getErrors |
( |
| ) |
|
◆ getHuart()
UART_HandleTypeDef * UARTPort::getHuart |
( |
| ) |
|
◆ giveSemaphore()
bool UARTPort::giveSemaphore |
( |
bool |
txsem = true | ) |
|
◆ isReserved()
bool UARTPort::isReserved |
( |
| ) |
|
|
inline |
◆ isTaken()
bool UARTPort::isTaken |
( |
| ) |
|
◆ receive()
bool UARTPort::receive |
( |
char * |
rxbuf, |
|
|
uint16_t |
size, |
|
|
uint32_t |
timeout = 10000 |
|
) |
| |
◆ receive_DMA()
bool UARTPort::receive_DMA |
( |
char * |
rxbuf, |
|
|
uint16_t |
size |
|
) |
| |
◆ receive_IT()
bool UARTPort::receive_IT |
( |
char * |
rxbuf, |
|
|
uint16_t |
size |
|
) |
| |
◆ reconfigurePort()
bool UARTPort::reconfigurePort |
( |
UART_InitTypeDef & |
config | ) |
|
◆ registerInterrupt()
bool UARTPort::registerInterrupt |
( |
| ) |
|
Begins to wait on a single UART_BUF_SIZE sized transfer
Definition at line 56 of file UART.cpp.
◆ reservePort()
◆ takeSemaphore()
bool UARTPort::takeSemaphore |
( |
bool |
txsem = true , |
|
|
uint32_t |
blocktime = portMAX_DELAY |
|
) |
| |
◆ transmit()
bool UARTPort::transmit |
( |
const char * |
txbuf, |
|
|
uint16_t |
size, |
|
|
uint32_t |
timeout = 10000 |
|
) |
| |
◆ transmit_DMA()
bool UARTPort::transmit_DMA |
( |
const char * |
txbuf, |
|
|
uint16_t |
size |
|
) |
| |
◆ transmit_IT()
bool UARTPort::transmit_IT |
( |
const char * |
txbuf, |
|
|
uint16_t |
size |
|
) |
| |
◆ uartRxComplete()
void UARTPort::uartRxComplete |
( |
UART_HandleTypeDef * |
huart | ) |
|
|
virtual |
◆ uartTxComplete()
void UARTPort::uartTxComplete |
( |
UART_HandleTypeDef * |
huart | ) |
|
|
virtual |
◆ device
◆ huart
UART_HandleTypeDef& UARTPort::huart |
|
private |
◆ isTakenFlag
bool UARTPort::isTakenFlag = false |
|
private |
◆ lastPos
uint16_t UARTPort::lastPos = 0 |
|
private |
◆ rxbuf_t
char* UARTPort::rxbuf_t = nullptr |
|
private |
◆ rxsemaphore
◆ semaphore
◆ uart_buf
volatile char UARTPort::uart_buf[UART_BUF_SIZE] = {0} |
|
private |
◆ waitingForSingleBytes
bool UARTPort::waitingForSingleBytes = false |
|
private |
The documentation for this class was generated from the following files: