![]() |
F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
|
#include <Drv/LinuxUartDriver/LinuxUartDriver.hpp>
Public Types | |
| enum | UartBaudRate { BAUD_9600 =9600 , BAUD_19200 =19200 , BAUD_38400 =38400 , BAUD_57600 =57600 , BAUD_115K =115200 , BAUD_230K =230400 } |
| Configure UART parameters. More... | |
| enum | UartFlowControl { NO_FLOW , HW_FLOW } |
| enum | UartParity { PARITY_NONE , PARITY_ODD , PARITY_EVEN } |
Public Member Functions | |
| LinuxUartDriver (const char *const compName) | |
| bool | open (const char *const device, UartBaudRate baud, UartFlowControl fc, UartParity parity, U32 allocationSize) |
| void | start (Os::Task::ParamType priority=Os::Task::TASK_DEFAULT, Os::Task::ParamType stackSize=Os::Task::TASK_DEFAULT, Os::Task::ParamType cpuAffinity=Os::Task::TASK_DEFAULT) |
| void | quitReadThread () |
| Quit thread. | |
| Os::Task::Status | join () |
| Join thread. | |
| ~LinuxUartDriver () | |
Public Member Functions inherited from Drv::LinuxUartDriverComponentBase | |
| void | init (FwEnumStoreType instance=0) |
| Initialize LinuxUartDriverComponentBase object. | |
| Drv::InputByteStreamSendPort * | get_send_InputPort (FwIndexType portNum) |
| void | set_Log_OutputPort (FwIndexType portNum, Fw::InputLogPort *port) |
| Connect port to Log[portNum]. | |
| void | set_Time_OutputPort (FwIndexType portNum, Fw::InputTimePort *port) |
| Connect port to Time[portNum]. | |
| void | set_Tlm_OutputPort (FwIndexType portNum, Fw::InputTlmPort *port) |
| Connect port to Tlm[portNum]. | |
| void | set_allocate_OutputPort (FwIndexType portNum, Fw::InputBufferGetPort *port) |
| Connect port to allocate[portNum]. | |
| void | set_deallocate_OutputPort (FwIndexType portNum, Fw::InputBufferSendPort *port) |
| Connect port to deallocate[portNum]. | |
| void | set_ready_OutputPort (FwIndexType portNum, Drv::InputByteStreamReadyPort *port) |
| Connect port to ready[portNum]. | |
| void | set_recv_OutputPort (FwIndexType portNum, Drv::InputByteStreamRecvPort *port) |
| Connect port to recv[portNum]. | |
Public Member Functions inherited from Fw::PassiveComponentBase | |
| void | setIdBase (const U32) |
| Set the ID base. | |
| U32 | getIdBase () const |
Definition at line 24 of file LinuxUartDriver.hpp.
Configure UART parameters.
| Enumerator | |
|---|---|
| BAUD_9600 | |
| BAUD_19200 | |
| BAUD_38400 | |
| BAUD_57600 | |
| BAUD_115K | |
| BAUD_230K | |
Definition at line 36 of file LinuxUartDriver.hpp.
| Enumerator | |
|---|---|
| NO_FLOW | |
| HW_FLOW | |
Definition at line 65 of file LinuxUartDriver.hpp.
| Enumerator | |
|---|---|
| PARITY_NONE | |
| PARITY_ODD | |
| PARITY_EVEN | |
Definition at line 67 of file LinuxUartDriver.hpp.
| Drv::LinuxUartDriver::LinuxUartDriver | ( | const char *const | compName | ) |
Construct object LinuxUartDriver
| compName | The component name |
Definition at line 34 of file LinuxUartDriver.cpp.
| Drv::LinuxUartDriver::~LinuxUartDriver | ( | ) |
Destroy object LinuxUartDriver
Definition at line 305 of file LinuxUartDriver.cpp.
| Os::Task::Status Drv::LinuxUartDriver::join | ( | ) |
Join thread.
Definition at line 399 of file LinuxUartDriver.cpp.
| bool Drv::LinuxUartDriver::open | ( | const char *const | device, |
| UartBaudRate | baud, | ||
| UartFlowControl | fc, | ||
| UartParity | parity, | ||
| U32 | allocationSize | ||
| ) |
Definition at line 38 of file LinuxUartDriver.cpp.
| void Drv::LinuxUartDriver::quitReadThread | ( | ) |
Quit thread.
Definition at line 395 of file LinuxUartDriver.cpp.
| void Drv::LinuxUartDriver::start | ( | Os::Task::ParamType | priority = Os::Task::TASK_DEFAULT, |
| Os::Task::ParamType | stackSize = Os::Task::TASK_DEFAULT, |
||
| Os::Task::ParamType | cpuAffinity = Os::Task::TASK_DEFAULT |
||
| ) |
start the serial poll thread. buffSize is the max receive buffer size
Definition at line 388 of file LinuxUartDriver.cpp.