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
9
typedef
struct
{
10
uint16_t in_24v_mv;
11
uint16_t out_5v_mv;
12
uint16_t out_3v3_mv;
13
}
pdu_rail_voltage_mv_t
;
14
15
typedef
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;
21
}
pdu_state_t
;
22
23
extern
pdu_state_t
g_pdu_state;
24
25
void
state_init_defaults(
void
);
26
27
#endif
// STATE_H
pdu_rail_voltage_mv_t
Definition
state.h:9
pdu_state_t
Definition
state.h:15
source
pdu
state
state.h
Generated by
1.12.0