Vehicle Control Unit 0.01
This is the c library for controlling the car.
Loading...
Searching...
No Matches
Accumulator.h
Go to the documentation of this file.
1#ifndef RENNSSELAERMOTORSPORT_ACCUMULATOR_H
2#define RENNSSELAERMOTORSPORT_ACCUMULATOR_H
3
4#include "BMS.h"
5#include "Imd.h"
6
7typedef enum {
12
13typedef struct {
17
25void initAccumulator(Accumulator* acc, Bms* bms);
26
34
42
43#endif // RENNSSELAERMOTORSPORT_ACCUMULATOR_H
void initAccumulator(Accumulator *acc, Bms *bms)
Initializes the accumulator with the given BMS and IMD.
Definition: Accumulator.c:3
CHARGE_STATE
Definition: Accumulator.h:7
@ standby
Definition: Accumulator.h:10
@ discharge
Definition: Accumulator.h:9
@ charge
Definition: Accumulator.h:8
CHARGE_STATE getAccumulatorState(const Accumulator *acc)
Gets the current state of the accumulator.
Definition: Accumulator.c:16
void setAccumulatorState(Accumulator *acc, CHARGE_STATE state)
Sets the state of the accumulator.
Definition: Accumulator.c:10
CHARGE_STATE state
Definition: Accumulator.h:15
Definition: BMS.h:15