PER Firmware
Loading...
Searching...
No Matches
charging_fsm.h
Go to the documentation of this file.
1
8#ifndef CHARGING_FSM_H
9#define CHARGING_FSM_H
10
11#include <stdint.h>
12
13#include "can_library/generated/A_BOX.h"
14
15static constexpr uint32_t CHARGING_FSM_PERIOD_MS = 1000;
16
17// static assert that the FSM flushes the CAN messages it owns at least as fast as their defined periods
18static_assert(ELCON_COMMAND_PERIOD_MS == CHARGING_FSM_PERIOD_MS);
19static_assert(CHARGING_FSM_INTERNALS_PERIOD_MS == CHARGING_FSM_PERIOD_MS);
20
21void charging_fsm_periodic(void);
22
23#endif // CHARGING_FSM_H