29 #define EIO_DO_SLOW_MODULE_STATUS_MASK 0xF0
30 #define EIO_DO_SLOW_MODULE_STATUS_GOOD 0x70
32 #define EIO_DO_SLOW_MODULE_CHECKSUM_SEED 0x55
34 #define EIO_DO_SLOW_MODULE_NUMBER_OF_CHANNELS 4
42 void commandSetupComplete();
43 void setChannelSafe(
int z_channel);
44 void setTPOPercentOutput(
int z_channel,
float z_demand);
45 void setTPOMinimumOnTime(
int z_channel,
unsigned long z_minimumOnTimeuS);
46 void setOnOffState(
int z_channel,
bool on);
47 void setVPOutput(
int z_channel,
bool onFirst55mS,
bool onSecond55mS);
50 bool wasCommandOk(){
return ( ((*getRxPtr()&EIO_DO_SLOW_MODULE_STATUS_MASK) == EIO_DO_SLOW_MODULE_STATUS_GOOD) &&
51 (*(getRxPtr()+2) == 0) &&
52 (*(getRxPtr()+4) == 0) &&
53 (*(getRxPtr()+6) == 0) &&
54 (*(getRxPtr()+8) == 0) );};
57 static unsigned char checksum(
unsigned char *p){
return p[0]^p[1]^p[2]^p[3]^p[4]^p[5]^p[6]^p[7]^EIO_DO_SLOW_MODULE_CHECKSUM_SEED;};
58 static unsigned short moduleToDevice(
unsigned char module);
60 unsigned short m_channelCommand[EIO_DO_SLOW_MODULE_NUMBER_OF_CHANNELS];
Definition: do_s_ssm.h:36