16 #define EIO_FAST_MESSAGES_GOOD true
17 #define EIO_FAST_MESSAGES_BAD false
19 #define EIO_DO_8_MODULE_NUMBER_OF_CHANNELS 8
34 void setOnOffState(
int z_channel,
bool on);
35 void setOutputStates(uint8 z_states);
36 virtual bool wasCommandOk();
38 virtual bool didModRxOk();
41 void setSeed(
unsigned char z_seed);
44 static unsigned short moduleToDevice(
unsigned char module);
48 static const unsigned char DO8_BIT_REVERSED_IDENT = 0xA8;
49 static const unsigned char DO8_SEED = 0x00;
51 static const int TX_DATA_OFFSET = 0;
52 static const int TX_NOT_DATA_OFFSET = 1;
54 static const int RX_ID_STATUS_OFFSET = 0;
55 static const int RX_DATA_OFFSET = 1;
64 virtual bool wasCommandOk();
65 virtual bool didModRxOk();
68 static const unsigned char RLY8_STATUS_MOD_RX_OK_MASK = 0xC0;
69 static const unsigned char RLY8_CHECK_DATA_MASK = 0x3F;
70 static const unsigned char RLY8_CHECK_DATA = 0x3A;
72 static const unsigned char RLY8_SEED = 0x55;