13 #ifndef PosixUartDriver_HPP 14 #define PosixUartDriver_HPP 81 bool open(
const char*
const device,
130 const char* m_device;
133 static void serialReadTaskEntry(
void* ptr);
137 std::atomic<FwSizeType> m_bytesSent;
138 std::atomic<FwSizeType> m_bytesReceived;
139 std::atomic<bool> m_quitReadThread;
static constexpr FwSizeType TASK_DEFAULT
PlatformSizeType FwSizeType
bool open(const char *const device, UartBaudRate baud, UartFlowControl fc, UartParity parity, FwSizeType allocationSize)
void quitReadThread()
Quit thread.
UartBaudRate
Configure UART parameters.
static constexpr FwTaskPriorityType TASK_PRIORITY_DEFAULT
Status returned by the send call.
PlatformTaskPriorityType FwTaskPriorityType
The type of task priorities used.
FwSizeType ParamType
backwards-compatible parameter type
void start(FwTaskPriorityType priority=Os::Task::TASK_PRIORITY_DEFAULT, Os::Task::ParamType stackSize=Os::Task::TASK_DEFAULT, Os::Task::ParamType cpuAffinity=Os::Task::TASK_DEFAULT)
Os::Task::Status join()
Join thread.
PlatformIndexType FwIndexType
Auto-generated base for PosixUartDriver component.
PosixUartDriver(const char *const compName)