PER Firmware
Loading...
Searching...
No Matches
state.h
1#ifndef STATE_H
2#define STATE_H
3
4#include <stdbool.h>
5#include <stdint.h>
6
7#include "switches.h"
8
9typedef struct {
10 uint16_t in_24v_mv;
11 uint16_t out_5v_mv;
12 uint16_t out_3v3_mv;
14
15typedef struct {
16 pdu_rail_voltage_mv_t rail_voltage_mv;
17 uint16_t switch_current_ma[CS_SWITCH_COUNT];
18 uint16_t mux_adc_counts[6];
19 uint8_t next_mux_channel;
20 uint8_t next_rail_fault_index;
22
23extern pdu_state_t g_pdu_state;
24
25void state_init_defaults(void);
26
27#endif // STATE_H
Definition state.h:9
Definition state.h:15