DUNE: Uniform Navigational Environment  2.4.0
Transports::Serial::Task Struct Reference

Public Member Functions

 Task (const std::string &name, Tasks::Context &ctx)
 
void onResourceAcquisition (void)
 
void onResourceRelease (void)
 
 ~Task (void)
 
void onDataTransmission (const uint8_t *p, unsigned int n)
 
void onDataReception (uint8_t *p, unsigned int n, double timeout)
 

Public Attributes

Arguments m_args
 
Hardware::SerialPort * m_uart
 
IMC::Parser m_parser
 

Constructor & Destructor Documentation

Transports::Serial::Task::Task ( const std::string &  name,
Tasks::Context &  ctx 
)
inline
Transports::Serial::Task::~Task ( void  )
inline

References onResourceRelease().

Member Function Documentation

void Transports::Serial::Task::onDataReception ( uint8_t *  p,
unsigned int  n,
double  timeout 
)
inline

References m_parser, and m_uart.

void Transports::Serial::Task::onDataTransmission ( const uint8_t *  p,
unsigned int  n 
)
inline

References m_uart.

void Transports::Serial::Task::onResourceAcquisition ( void  )
inline
void Transports::Serial::Task::onResourceRelease ( void  )
inline

References m_parser, and m_uart.

Referenced by ~Task().

Member Data Documentation

Arguments Transports::Serial::Task::m_args

Referenced by onResourceAcquisition(), and Task().

IMC::Parser Transports::Serial::Task::m_parser
Hardware::SerialPort* Transports::Serial::Task::m_uart
Collaboration diagram for Transports::Serial::Task:
Collaboration graph