Vehicle Control Unit
0.01
This is the c library for controlling the car.
Loading...
Searching...
No Matches
Core
Inc
Systems
External
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
7
typedef
enum
{
8
charge
,
9
discharge
,
10
standby
11
}
CHARGE_STATE
;
12
13
typedef
struct
{
14
Bms
*
bms
;
15
CHARGE_STATE
state
;
16
}
Accumulator
;
17
25
void
initAccumulator
(
Accumulator
* acc,
Bms
* bms);
26
33
void
setAccumulatorState
(
Accumulator
* acc,
CHARGE_STATE
state);
34
41
CHARGE_STATE
getAccumulatorState
(
const
Accumulator
* acc);
42
43
#endif
// RENNSSELAERMOTORSPORT_ACCUMULATOR_H
initAccumulator
void initAccumulator(Accumulator *acc, Bms *bms)
Initializes the accumulator with the given BMS and IMD.
Definition:
Accumulator.c:3
CHARGE_STATE
CHARGE_STATE
Definition:
Accumulator.h:7
standby
@ standby
Definition:
Accumulator.h:10
discharge
@ discharge
Definition:
Accumulator.h:9
charge
@ charge
Definition:
Accumulator.h:8
getAccumulatorState
CHARGE_STATE getAccumulatorState(const Accumulator *acc)
Gets the current state of the accumulator.
Definition:
Accumulator.c:16
setAccumulatorState
void setAccumulatorState(Accumulator *acc, CHARGE_STATE state)
Sets the state of the accumulator.
Definition:
Accumulator.c:10
BMS.h
Imd.h
Accumulator
Definition:
Accumulator.h:13
Accumulator::bms
Bms * bms
Definition:
Accumulator.h:14
Accumulator::state
CHARGE_STATE state
Definition:
Accumulator.h:15
Bms
Definition:
BMS.h:15
Generated by
1.9.5