5 #include "../hubolib.h"
6 #include "../hubocfg.h"
31 printf (
"Error: Initialize\n");
38 printf (
"Clearing all channels on slave %d, then setting channels 1, 2 and 3.\n", slaveNo);
45 unsigned char digitalOutputs = 0;
47 assert (digitalOutputs == 0x07);
51 unsigned char currentDigitalOutputs = 0;
55 printf (
"Hardware outputs of slave %d are 0x%02X\n", slaveNo, currentDigitalOutputs);
56 }
while (currentDigitalOutputs != digitalOutputs);
const char * m_sI2CDevice
bool Get_Slave_DO_Channels(int slaveNo, unsigned char &value)
Retrieves the requested digital output value from the output buffer for a given slave.
bool Initialize()
Initializes the library.
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.
bool Set_Slave_DO_Channels(int slaveNo, unsigned char value)
Requests the background thread to update all 8 bits of the digital output to the value specified for ...