5 #include "../hubolib.h"
6 #include "../hubocfg.h"
25 printf(
"Prior to running this sample ensure that at least on digital output is set (e.g. use DigitalSlaveOutput1.cpp)!\n");
27 unsigned char currentDigitalOutputs = 0;
42 printf(
"Error: Initialize\n");
50 while (!currentDigitalOutputs)
53 printf(
"Outputs read back are: 0x%02X\n", currentDigitalOutputs);
69 pthread_t threadHandle = pthread_self();
72 ret = pthread_getschedparam (threadHandle, &policy, ¶m);
77 param.sched_priority = sched_get_priority_max(policy);
78 ret = pthread_setschedparam(threadHandle, policy, ¶m);
const char * m_sI2CDevice
bool Initialize()
Initializes the library.
bool Wait_For_MCP23017_Slaves_Buffered_Values()
Waits until input and output buffers of the MCP23017 slaves are initialized from the hardware...
bool Readback_Slave_DO_Channels(int slaveNo, unsigned char &value)
Reads back the digital output latchs of the IO expander for a given slave.
void Uninitialize()
Releases any resources bound to the library.
void BoostThreadPriority()