Hubo Library
|
Functions | |
void | HuboLib::VersionInfo () |
Prints version information and other stuff regarding to the library to the console. More... | |
double | HuboLib::Get_MCP9701_Temperature (double volt) |
Converts a voltage value of an MCP9701 temperature sensor into the equivalent temperature. More... | |
double | HuboLib::Get_MCP9700_Temperature (double volt) |
Converts a voltage value of an MCP9700 temperature sensor into the equivalent temperature. More... | |
bool | HuboLib::GetSlaveDeviceList (std::vector< int > &slaveAddressList) |
Returns the list of I2C addresses of the MCP23017 slaves. More... | |
unsigned long long | HuboLib::GetTime_MicroSeconds () |
Returns the number of micro seconds. More... | |
void | HuboLib::Delay_MicroSeconds (unsigned long delay_micros) |
delays the execution of the calling thread for the given number of micro seconds. More... | |
void HuboLib::Delay_MicroSeconds | ( | unsigned long | delay_micros | ) |
delays the execution of the calling thread for the given number of micro seconds.
Use this function to suspend a thread for the number of µs. While µsleep() does have an overhead of 100µs-300µs this function "will hard wait" remainder delays not greater than 300µs in a loop - thus achieving results "as accurate as possible".
delay_micros | The time in µs to suspend the calling thread. |
double HuboLib::Get_MCP9700_Temperature | ( | double | volt | ) |
Converts a voltage value of an MCP9700 temperature sensor into the equivalent temperature.
Use this function to convert the voltage of a MCP7900 temperature sensor into its equivalent temperature given in °C.
Note that no checks are being made for the voltage ranges that are specified in the data sheet of the sensor. Thus just any voltage value would result in "some" temperature.
volt | The voltage of the output of the sensor. |
double HuboLib::Get_MCP9701_Temperature | ( | double | volt | ) |
Converts a voltage value of an MCP9701 temperature sensor into the equivalent temperature.
Use this function to convert the voltage of a MCP7901 temperature sensor into its equivalent temperature given in °C.
Note that no checks are being made for the voltage ranges that are specified in the data sheet of the sensor. Thus just any voltage value would result in "some" temperature.
volt | The voltage of the output of the sensor. |
bool HuboLib::GetSlaveDeviceList | ( | std::vector< int > & | slaveAddressList | ) |
Returns the list of I2C addresses of the MCP23017 slaves.
Use this function to retrieve a list of all MCP23017 IO expanders that are cascaded to the Hubo master module.
slaveAddressList | The list containing the I2C addresses detected. |
unsigned long long HuboLib::GetTime_MicroSeconds | ( | ) |
Returns the number of micro seconds.
Use this function to retrieve the number of µs regardless of timezone changes, daylight saving...
void HuboLib::VersionInfo | ( | ) |
Prints version information and other stuff regarding to the library to the console.
Use this function to get information of the version of the library and other stuff.