11#ifndef _AUTO_SWITCH_H_
12#define _AUTO_SWITCH_H_
19#define SHUNT_R 10000000
23#define LV_24V_R1 47000
28#define LV_3V3_R2 10000
29#define AMK_24V_R1 124300
30#define AMK_24V_R2 10000
38#define HP_CS_R_SENSE 0.002
88 uint16_t current[CS_SWITCH_COUNT];
101void setSwitch(switches_t auto_switch_enum,
bool state);
131uint16_t getMuxReading(uint8_t channel);
void autoSwitchPeriodic()
Combined function that calls updateVoltage() and updateCurrent()
Definition auto_switch.c:253
void setSwitch(switches_t auto_switch_enum, bool state)
Enable or disable a switch.
Definition auto_switch.c:125
bool getSwitchStatus(switches_t auto_switch_enum)
Check if a switch is enabled.
Definition auto_switch.c:204
void checkSwitchFaults()
Checks the status of various auto switches to ensure rails are ok. Sets fault and activates blink ind...
Definition auto_switch.c:259
Definition auto_switch.h:87
Definition auto_switch.h:81