PER Firmware
Loading...
Searching...
No Matches
switches.h File Reference
#include <stdbool.h>
#include <stdint.h>
Include dependency graph for switches.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  switches_t {
  SW_PUMP_1 = 0 , SW_PUMP_2 = 1 , SW_SDC = 2 , SW_HXFAN = 3 ,
  SW_FAN_1 = 4 , SW_FAN_2 = 5 , SW_FAN_3 = 6 , SW_FAN_4 = 7 ,
  SW_AMK1 = 8 , SW_AMK2 = 9 , SW_DASH = 10 , SW_ABOX = 11 ,
  SW_MAIN = 12 , SW_DLFR = 13 , SW_DLBK = 14 , CS_24V = 15 ,
  CS_5V = 16 , CS_SWITCH_COUNT = 17 , SW_BLT = 18 , SW_CRIT_5V = 19 ,
  SW_TV = 20 , SW_DAQ = 21 , SW_FAN_5V = 22
}
 

Functions

void switches_init (void)
 
void switches_periodic (void)
 
void switches_enable_default_rails (void)
 
void switches_set_state (switches_t switch_id, bool enabled)
 
bool switches_is_enabled (switches_t switch_id)
 
uint16_t switches_get_mux_adc_counts (uint8_t channel)
 

Enumeration Type Documentation

◆ switches_t

enum switches_t
Enumerator
SW_PUMP_1 
SW_PUMP_2 
SW_SDC 
SW_HXFAN 
SW_FAN_1 
SW_FAN_2 
SW_FAN_3 
SW_FAN_4 
SW_AMK1 
SW_AMK2 
SW_DASH 
SW_ABOX 
SW_MAIN 
SW_DLFR 
SW_DLBK 
CS_24V 
CS_5V 
CS_SWITCH_COUNT 
SW_BLT 
SW_CRIT_5V 
SW_TV 
SW_DAQ 
SW_FAN_5V 

Function Documentation

◆ switches_enable_default_rails()

void switches_enable_default_rails ( void )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ switches_get_mux_adc_counts()

uint16_t switches_get_mux_adc_counts ( uint8_t channel)

◆ switches_init()

void switches_init ( void )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ switches_is_enabled()

bool switches_is_enabled ( switches_t switch_id)
Here is the call graph for this function:

◆ switches_periodic()

void switches_periodic ( void )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ switches_set_state()

void switches_set_state ( switches_t switch_id,
bool enabled )
Here is the call graph for this function:
Here is the caller graph for this function: