Hubo Library
|
Functions | |
bool | HuboLib::Initialize () |
Initializes the library. More... | |
void | HuboLib::Uninitialize () |
Releases any resources bound to the library. More... | |
bool | HuboLib::Initialize_MCP23017 () |
Low level initialization of the MCP23017 IO expander. More... | |
bool | HuboLib::Wait_For_MCP23017_Buffered_Values () |
Waits until input and output buffers of the MCP23017 master are initialized from the hardware. More... | |
bool | HuboLib::Initialize_MCP23017_Slaves () |
Low level initialization of the MCP23017 IO expander slaves. More... | |
bool | HuboLib::Wait_For_MCP23017_Slaves_Buffered_Values () |
Waits until input and output buffers of the MCP23017 slaves are initialized from the hardware. More... | |
bool | HuboLib::Initialize_MCP3x08 () |
Low level initialization of the MCP3x08 analog input chip. More... | |
bool | HuboLib::Wait_For_MCP3x08_Buffered_Values () |
Waits until the input buffer of the MCP3x08 are initialized from the hardware. More... | |
bool HuboLib::Initialize | ( | ) |
Initializes the library.
Call this function once prior to work with most of the other functions. On failure it is not possible to call any other function that communicates to the board. Note that initalization regularly fails when the SPI/I2c kernel modules are not loaded or the user does not have sufficient right to use them. In such a case try running the application as sudo.
bool HuboLib::Initialize_MCP23017 | ( | ) |
Low level initialization of the MCP23017 IO expander.
This function is used internally by Initialize() for initializing the digital IO expander. The function should not be called directly for any other purpose than trouble shooting!
bool HuboLib::Initialize_MCP23017_Slaves | ( | ) |
Low level initialization of the MCP23017 IO expander slaves.
This function is used internally by Initialize() for initializing the digital IO expander slaves. The function should not be called directly for any other purpose than trouble shooting!
bool HuboLib::Initialize_MCP3x08 | ( | ) |
Low level initialization of the MCP3x08 analog input chip.
This function is used internally by Initialize() for initializing the analog input chip. The function should not be called directly for any other purpose than trouble shooting!
void HuboLib::Uninitialize | ( | ) |
Releases any resources bound to the library.
Call this function to free up any ressources allocated by a previous call to Initialize().
bool HuboLib::Wait_For_MCP23017_Buffered_Values | ( | ) |
Waits until input and output buffers of the MCP23017 master are initialized from the hardware.
Call this function once after a call to Initialize() in order to ensure that further read operations are not accessing the buffers prior to their first initialization by the libraries background thread.
bool HuboLib::Wait_For_MCP23017_Slaves_Buffered_Values | ( | ) |
Waits until input and output buffers of the MCP23017 slaves are initialized from the hardware.
Call this function once after a call to Initialize() in order to ensure that further read operations are not accessing the buffers prior to their first initialization by the libraries background thread.
bool HuboLib::Wait_For_MCP3x08_Buffered_Values | ( | ) |
Waits until the input buffer of the MCP3x08 are initialized from the hardware.
Call this function once after a call to Initialize() in order to ensure that further read operations are not accessing the buffers prior to their first initialization by the libraries background thread.