#ifndef FSFWCONFIG_DEVICES_POWERSWITCHERLIST_H_ #define FSFWCONFIG_DEVICES_POWERSWITCHERLIST_H_ #include "OBSWConfig.h" #include namespace pcduSwitches { /* Switches are uint8_t datatype and go from 0 to 255 */ enum Switches: uint8_t { PDU1_CH0_TCS_BOARD_3V3, PDU1_CH1_SYRLINKS_12V, PDU1_CH2_STAR_TRACKER_5V, PDU1_CH3_MGT_5V, PDU1_CH4_SUS_NOMINAL_3V3, PDU1_CH5_SOLAR_CELL_EXP_5V, PDU1_CH6_PLOC_12V, PDU1_CH7_ACS_A_SIDE_3V3, PDU1_CH8_UNOCCUPIED, PDU2_CH0_Q7S, PDU2_CH1_PL_PCDU_BATT_0_14V8, PDU2_CH2_RW_5V, PDU2_CH3_TCS_BOARD_HEATER_IN_8V, PDU2_CH4_SUS_REDUNDANT_3V3, PDU2_CH5_DEPLOYMENT_MECHANISM_8V, PDU2_CH6_PL_PCDU_BATT_1_14V8, PDU2_CH7_ACS_BOARD_SIDE_B_3V3, PDU2_CH8_PAYLOAD_CAMERA, NUMBER_OF_SWITCHES }; static const uint8_t ON = 1; static const uint8_t OFF = 0; /* Output states after reboot of the PDUs */ #if BOARD_TE0720 == 1 /* Because the TE0720 is not connected to the PCDU, this switch is always on */ static const uint8_t INIT_STATE_TCS_BOARD_8V_HEATER_IN = ON; #else static const uint8_t INIT_STATE_TCS_BOARD_8V_HEATER_IN = OFF; #endif static const uint8_t INIT_STATE_SYRLINKS = OFF; static const uint8_t INIT_STATE_STAR_TRACKER = OFF; static const uint8_t INIT_STATE_MGT = OFF; static const uint8_t INIT_STATE_SUS_NOMINAL = OFF; static const uint8_t INIT_STATE_SOLAR_CELL_EXP = OFF; static const uint8_t INIT_STATE_PLOC = OFF; static const uint8_t INIT_STATE_ACS_BOARD_SIDE_A = OFF; static const uint8_t INIT_STATE_Q7S = ON; static const uint8_t INIT_STATE_PAYLOAD_PCDU_CH1 = OFF; static const uint8_t INIT_STATE_RW = OFF; static const uint8_t INIT_STATE_SUS_REDUNDANT = OFF; static const uint8_t INIT_STATE_DEPLOYMENT_MECHANISM = OFF; static const uint8_t INIT_STATE_PAYLOAD_PCDU_CH6 = OFF; static const uint8_t INIT_STATE_ACS_BOARD_SIDE_B = OFF; static const uint8_t INIT_STATE_PAYLOAD_CAMERA = OFF; static const uint8_t INIT_STATE_TCS_BOARD_3V3 = OFF; } #endif /* FSFWCONFIG_DEVICES_POWERSWITCHERLIST_H_ */