5 #include "../hubolib.h"
6 #include "../hubocfg.h"
39 printf (
"Error: Initialize\n");
48 unsigned char allInputs = 0;
53 printf (
"Error: library not yet initialized.\n");
60 printf (
"Digital inputs (hex) = 0x%02X\n", allInputs);
81 pthread_t threadHandle = pthread_self();
84 ret = pthread_getschedparam (threadHandle, &policy, ¶m);
89 param.sched_priority = sched_get_priority_max(policy);
90 ret = pthread_setschedparam(threadHandle, policy, ¶m);
const char * m_sI2CDevice
bool Initialize()
Initializes the library.
void Uninitialize()
Releases any resources bound to the library.
bool Wait_For_MCP23017_Buffered_Values()
Waits until input and output buffers of the MCP23017 master are initialized from the hardware...