34 #define CURRENT_MESSAGE_SIZE (sizeof(PowerMessage)) 36 #define REVISION_2_MESSAGE_SIZE (sizeof(MessageHeader) + sizeof(StatusStruct_Rev2)) 95 float battery_voltage[4];
101 unsigned char CB0_state;
102 unsigned char CB1_state;
103 unsigned char CB2_state;
104 unsigned char DCDC_state;
115 unsigned int fan0_speed;
116 unsigned int fan1_speed;
117 unsigned int fan2_speed;
118 unsigned int fan3_speed;
119 unsigned char CB0_status;
120 unsigned char CB1_status;
121 unsigned char CB2_status;
122 unsigned char estop_button_status;
123 unsigned char estop_status;
124 unsigned char pca_rev;
125 unsigned char pcb_rev;
126 unsigned char major_rev;
127 unsigned char minor_rev;
128 float min_input_voltage;
129 float max_input_current;
139 #define COMMAND_FLAG_RESET_STATS 0x1 //reset main statistics 140 #define COMMAND_FLAG_RESET_TRANSITION_STATS 0x2 //reset the transition statistics 177 TransitionCount cb[3];
static const unsigned COMMAND_MESSAGE_REVISION
static const unsigned STATUS_MESSAGE_REVISION
unsigned char fail_18V_count
unsigned char estop_status
unsigned char fan1_command
unsigned char CB2_command
unsigned char fan2_command
unsigned char start_count
static const unsigned MESSAGE_ID_COMMAND
unsigned char pump_fail_count
unsigned char estop_button_status
unsigned char fan0_command
unsigned char reset_count
float DCDC_12V_out_voltage
unsigned char CB0_command
static const unsigned MESSAGE_ID_POWER
unsigned char fan3_command
float DCDC_19V_out_voltage
static const unsigned MINIMUM_MESSAGE_REVISION
static const unsigned TRANSITION_MESSAGE_REVISION
unsigned char DCDC_command
static const unsigned MESSAGE_ID_TRANSITION
static const unsigned CURRENT_MESSAGE_REVISION
unsigned char estop_count
unsigned char disable_count
static const unsigned POWER_PORT
unsigned int message_revision
static const unsigned MESSAGE_ID_STATUS
unsigned char CB1_command