DUNE: Uniform Navigational Environment
2.3.0
|
Public Member Functions | |
Task (const std::string &name, Tasks::Context &ctx) | |
~Task (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 |
std::auto_ptr< 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 |
|
inline |
|
inline |
References m_blight, and setDisplay().
|
inline |
References UserInterfaces::LCD::Arguments::blight_tout, m_args, m_blight_time, and setBackLight().
Referenced by onMain().
|
inline |
References UserInterfaces::LCD::INST_CLEAR, and writeByte().
Referenced by consume().
|
inline |
References clear(), and writeLine().
|
inline |
References m_blight_time, and setBackLight().
Referenced by writeLine().
|
inline |
References checkBacklight(), UserInterfaces::LCD::Arguments::idle_time, m_args, m_last_refresh, and setDisplay().
|
inline |
|
inline |
References UserInterfaces::LCD::BIT_DISPC_DISP, UserInterfaces::LCD::BIT_EMSET_INC, UserInterfaces::LCD::BIT_FNSET_CF5X8, UserInterfaces::LCD::BIT_FNSET_DATL4, UserInterfaces::LCD::BIT_FNSET_DATL8, UserInterfaces::LCD::BIT_FNSET_DLIN2, UserInterfaces::LCD::INST_DISPC, UserInterfaces::LCD::INST_EMSET, UserInterfaces::LCD::INST_FNSET, UserInterfaces::LCD::REG_GPIO, UserInterfaces::LCD::REG_IODIR, sendByte(), setBackLight(), setCursor(), writeByte(), and writeNibble().
|
inline |
References m_last_lines, m_last_refresh, m_lines, write(), and writeByte().
Referenced by writeLine().
|
inline |
References m_i2c.
Referenced by onResourceInitialization(), and writeNibble().
|
inline |
References UserInterfaces::LCD::Arguments::blight_gpio, UserInterfaces::LCD::Arguments::blight_pchan, m_args, m_blight, and m_blight_state.
Referenced by checkBacklight(), enableBacklight(), and onResourceInitialization().
|
inline |
References UserInterfaces::LCD::INST_DDRAM, and writeByte().
Referenced by onResourceInitialization().
|
inline |
|
inline |
References writeChar().
Referenced by refresh().
|
inline |
References writeNibble().
Referenced by clear(), onResourceInitialization(), refresh(), setCursor(), setDisplay(), and writeChar().
|
inline |
References UserInterfaces::LCD::PIN_RS, and writeByte().
Referenced by write().
|
inline |
References enableBacklight(), m_lines, and refresh().
Referenced by consume().
|
inline |
References UserInterfaces::LCD::PIN_EN, UserInterfaces::LCD::REG_GPIO, and sendByte().
Referenced by onResourceInitialization(), and writeByte().
|
static |
Referenced by onResourceAcquisition().
|
static |
Arguments UserInterfaces::LCD::Task::m_args |
Referenced by checkBacklight(), onMain(), onResourceAcquisition(), setBackLight(), and Task().
Hardware::GPIO* UserInterfaces::LCD::Task::m_blight |
Referenced by onResourceAcquisition(), setBackLight(), and ~Task().
bool UserInterfaces::LCD::Task::m_blight_state |
Referenced by setBackLight().
double UserInterfaces::LCD::Task::m_blight_time |
Referenced by checkBacklight(), and enableBacklight().
bool UserInterfaces::LCD::Task::m_display_state |
Referenced by setDisplay().
std::auto_ptr<I2C> UserInterfaces::LCD::Task::m_i2c |
Referenced by onResourceAcquisition(), and sendByte().
std::string UserInterfaces::LCD::Task::m_last_lines[2] |
Referenced by refresh().
std::string UserInterfaces::LCD::Task::m_lines[2] |
Referenced by refresh(), and writeLine().