eive-obsw/common/config/devices/powerSwitcherList.h

73 lines
1.3 KiB
C
Raw Normal View History

2021-09-29 10:52:36 +02:00
#ifndef FSFWCONFIG_DEVICES_POWERSWITCHERLIST_H_
#define FSFWCONFIG_DEVICES_POWERSWITCHERLIST_H_
#include "OBSWConfig.h"
2022-03-25 16:01:44 +01:00
#include <fsfw/power/definitions.h>
#include <array>
2021-09-29 10:52:36 +02:00
#include <cstdint>
namespace pcduSwitches {
2022-03-25 16:01:44 +01:00
/* Switches are uint8_t datatype and go from 0 to 255 */
2022-03-25 16:01:44 +01:00
enum Switches: power::Switch_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
2022-03-27 10:56:40 +02:00
#ifdef TE0720_1CFA
ON,
2021-09-29 10:52:36 +02:00
#else
OFF,
2021-09-29 10:52:36 +02:00
#endif
OFF,
OFF,
OFF,
OFF,
OFF,
OFF,
OFF,
OFF,
2021-09-29 10:52:36 +02:00
// PDU 2
ON,
OFF,
OFF,
OFF,
OFF,
OFF,
OFF,
OFF,
OFF
};
}
2021-09-29 10:52:36 +02:00
#endif /* FSFWCONFIG_DEVICES_POWERSWITCHERLIST_H_ */