Changeset 17639 for trunk/FACT++/src
- Timestamp:
- 03/31/14 16:14:13 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/HeadersFSC.h
r17624 r17639 1 1 #ifndef FACT_HeadersFSC 2 2 #define FACT_HeadersFSC 3 4 #define RESISTANCE_CHANNELS 645 #define RESISTANCE_REGS 86 #define VOLTAGE_CHANNELS 847 #define VOLTAGE_REGS 118 9 3 10 4 namespace FSC … … 18 12 }; 19 13 } 20 21 22 14 23 typedef struct { 24 uint8_t ad7719_readings_since_last_muxing; 25 uint8_t ad7719_current_channel; 15 enum { 16 kNumResistanceChannels = 64, 17 kNumResistanceRegs = 8, 18 kNumVoltageChannels = 84, 19 kNumVoltageRegs = 11 20 }; 21 22 23 struct BinaryOutput_t 24 { 25 uint8_t ad7719_readings_since_last_muxing; 26 uint8_t ad7719_current_channel; 26 27 uint32_t ad7719_current_reading; 27 uint8_t ad7719_enables[RESISTANCE_REGS];28 uint8_t ad7719_channels_ready[RESISTANCE_REGS];29 uint32_t ad7719_values[ RESISTANCE_CHANNELS];28 uint8_t ad7719_enables[kNumResistanceRegs]; 29 uint8_t ad7719_channels_ready[kNumResistanceRegs]; 30 uint32_t ad7719_values[kNumResistanceChannels]; 30 31 uint16_t ad7719_values_checksum; 31 32 32 uint8_t adc_readings_since_last_muxing;33 uint8_t adc_current_channel;33 uint8_t adc_readings_since_last_muxing; 34 uint8_t adc_current_channel; 34 35 uint16_t adc_current_reading; 35 uint8_t adc_enables[VOLTAGE_REGS];36 uint8_t adc_channels_ready[VOLTAGE_REGS];37 uint16_t adc_values[ VOLTAGE_CHANNELS];36 uint8_t adc_enables[kNumVoltageRegs]; 37 uint8_t adc_channels_ready[kNumVoltageRegs]; 38 uint16_t adc_values[kNumVoltageChannels]; 38 39 uint16_t adc_values_checksum; 39 40 40 uint8_t ad7719_measured_all; // treat it as a bool41 uint8_t adc_measured_all; // treat it as a bool41 uint8_t ad7719_measured_all; // treat it as a bool 42 uint8_t adc_measured_all; // treat it as a bool 42 43 43 uint8_t app_reset_source;44 uint8_t app_reset_source; 44 45 uint32_t time_sec; 45 46 uint16_t time_ms; 46 } __attribute__((__packed__)) BinaryOutput_t;47 } __attribute__((__packed__)); 47 48 } 48 49
Note:
See TracChangeset
for help on using the changeset viewer.