43 lines
1.3 KiB
C++
43 lines
1.3 KiB
C++
#ifndef FSFWCONFIG_DEVICES_POWERSWITCHERLIST_H_
|
|
#define FSFWCONFIG_DEVICES_POWERSWITCHERLIST_H_
|
|
|
|
#include <fsfwconfig/OBSWConfig.h>
|
|
|
|
namespace pcduSwitches {
|
|
/* Switches are uint8_t datatype and go from 0 to 255 */
|
|
enum switcherList {
|
|
Q7S,
|
|
PAYLOAD_PCDU_CH1,
|
|
RW,
|
|
TCS_BOARD_8V_HEATER_IN,
|
|
SUS_REDUNDANT,
|
|
DEPLOYMENT_MECHANISM,
|
|
PAYLOAD_PCDU_CH6,
|
|
ACS_BOARD_SIDE_B,
|
|
PAYLOAD_CAMERA,
|
|
NUMBER_OF_SWITCHES
|
|
};
|
|
|
|
static const uint8_t ON = 1;
|
|
static const uint8_t OFF = 0;
|
|
|
|
/* Output states after reboot of the PDUs */
|
|
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;
|
|
#if 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_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;
|
|
}
|
|
|
|
|
|
#endif /* FSFWCONFIG_DEVICES_POWERSWITCHERLIST_H_ */
|