70 lines
1.3 KiB
C++
70 lines
1.3 KiB
C++
#ifndef FSFWCONFIG_DEVICES_POWERSWITCHERLIST_H_
|
|
#define FSFWCONFIG_DEVICES_POWERSWITCHERLIST_H_
|
|
|
|
#include "OBSWConfig.h"
|
|
|
|
#include <array>
|
|
#include <cstdint>
|
|
|
|
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
|
|
|
|
const std::array<uint8_t, NUMBER_OF_SWITCHES> INIT_SWITCH_STATES = {
|
|
// PDU 1
|
|
// Because the TE0720 is not connected to the PCDU, this switch is always on
|
|
#ifdef TE0720_1CFA
|
|
ON,
|
|
#else
|
|
OFF,
|
|
#endif
|
|
OFF,
|
|
OFF,
|
|
OFF,
|
|
OFF,
|
|
OFF,
|
|
OFF,
|
|
OFF,
|
|
OFF,
|
|
|
|
// PDU 2
|
|
ON,
|
|
OFF,
|
|
OFF,
|
|
OFF,
|
|
OFF,
|
|
OFF,
|
|
OFF,
|
|
OFF,
|
|
OFF
|
|
};
|
|
}
|
|
|
|
#endif /* FSFWCONFIG_DEVICES_POWERSWITCHERLIST_H_ */
|