13 #ifndef LinuxUartDriver_HPP 14 #define LinuxUartDriver_HPP 44 #ifdef TGT_OS_TYPE_LINUX 71 bool open(
const char*
const device,
120 const char* m_device;
123 static void serialReadTaskEntry(
void* ptr);
127 std::atomic<FwSizeType> m_bytesSent;
128 std::atomic<FwSizeType> m_bytesReceived;
129 bool m_quitReadThread;
static constexpr FwSizeType TASK_DEFAULT
PlatformSizeType FwSizeType
Auto-generated base for LinuxUartDriver component.
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)
static constexpr FwTaskPriorityType TASK_PRIORITY_DEFAULT
bool open(const char *const device, UartBaudRate baud, UartFlowControl fc, UartParity parity, FwSizeType allocationSize)
Status returned by the send call.
void quitReadThread()
Quit thread.
PlatformTaskPriorityType FwTaskPriorityType
The type of task priorities used.
FwSizeType ParamType
backwards-compatible parameter type
LinuxUartDriver(const char *const compName)
UartBaudRate
Configure UART parameters.
PlatformIndexType FwIndexType
Os::Task::Status join()
Join thread.