DUNE: Uniform Navigational Environment  2019.02.1
UserInterfaces::LCD::Task Struct Reference

Public Member Functions

 Task (const std::string &name, Tasks::Context &ctx)
 
 ~Task (void)
 
void onResourceRelease (void)
 
void onResourceAcquisition (void)
 
void onResourceInitialization (void)
 
void setBackLight (bool state)
 
void setDisplay (bool state)
 
void checkBacklight (void)
 
void enableBacklight (void)
 
void setCursor (unsigned col, unsigned row)
 
void clear (void)
 
void sendByte (uint8_t reg, uint8_t byte)
 
void writeNibble (uint8_t value, uint8_t pin=0x00)
 
void writeByte (uint8_t value, uint8_t pin=0x00)
 
void writeChar (char value)
 
void write (const char *str)
 
void writeLine (const char *str, unsigned nr=0)
 
void refresh (void)
 
void consume (const IMC::LcdControl *msg)
 
void onMain (void)
 

Public Attributes

Arguments m_args
 
Hardware::I2C * m_i2c
 
std::string m_lines [2]
 
std::string m_last_lines [2]
 
double m_last_refresh
 
Hardware::GPIO * m_blight
 
double m_blight_time
 
bool m_blight_state
 
bool m_display_state
 

Static Public Attributes

static const uint8_t c_addr
 
static const unsigned c_row_size
 

Constructor & Destructor Documentation

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

Member Function Documentation

void UserInterfaces::LCD::Task::checkBacklight ( void  )
inline
void UserInterfaces::LCD::Task::clear ( void  )
inline
void UserInterfaces::LCD::Task::consume ( const IMC::LcdControl *  msg)
inline
void UserInterfaces::LCD::Task::enableBacklight ( void  )
inline
void UserInterfaces::LCD::Task::onMain ( void  )
inline
void UserInterfaces::LCD::Task::onResourceAcquisition ( void  )
inline
void UserInterfaces::LCD::Task::onResourceRelease ( void  )
inline
void UserInterfaces::LCD::Task::refresh ( void  )
inline
void UserInterfaces::LCD::Task::sendByte ( uint8_t  reg,
uint8_t  byte 
)
inline
void UserInterfaces::LCD::Task::setBackLight ( bool  state)
inline
void UserInterfaces::LCD::Task::setCursor ( unsigned  col,
unsigned  row 
)
inline
void UserInterfaces::LCD::Task::setDisplay ( bool  state)
inline
void UserInterfaces::LCD::Task::write ( const char *  str)
inline
void UserInterfaces::LCD::Task::writeByte ( uint8_t  value,
uint8_t  pin = 0x00 
)
inline
void UserInterfaces::LCD::Task::writeChar ( char  value)
inline
void UserInterfaces::LCD::Task::writeLine ( const char *  str,
unsigned  nr = 0 
)
inline
void UserInterfaces::LCD::Task::writeNibble ( uint8_t  value,
uint8_t  pin = 0x00 
)
inline

Member Data Documentation

const uint8_t UserInterfaces::LCD::Task::c_addr
static
const unsigned UserInterfaces::LCD::Task::c_row_size
static
Arguments UserInterfaces::LCD::Task::m_args
Hardware::GPIO* UserInterfaces::LCD::Task::m_blight
bool UserInterfaces::LCD::Task::m_blight_state
double UserInterfaces::LCD::Task::m_blight_time
bool UserInterfaces::LCD::Task::m_display_state
Hardware::I2C* UserInterfaces::LCD::Task::m_i2c
std::string UserInterfaces::LCD::Task::m_last_lines[2]
double UserInterfaces::LCD::Task::m_last_refresh
std::string UserInterfaces::LCD::Task::m_lines[2]
Collaboration diagram for UserInterfaces::LCD::Task:
Collaboration graph