Vehicle Control Unit 0.01
This is the c library for controlling the car.
|
#include "../../../Inc/Systems/External/Accumulator.h"
Go to the source code of this file.
Functions | |
void | initAccumulator (Accumulator *acc, Bms *bms) |
Initializes the accumulator with the given BMS and IMD. More... | |
void | setAccumulatorState (Accumulator *acc, CHARGE_STATE state) |
Sets the state of the accumulator. More... | |
CHARGE_STATE | getAccumulatorState (const Accumulator *acc) |
Gets the current state of the accumulator. More... | |
CHARGE_STATE getAccumulatorState | ( | const Accumulator * | acc | ) |
Gets the current state of the accumulator.
acc | Pointer to the Accumulator structure to query. |
Definition at line 16 of file Accumulator.c.
void initAccumulator | ( | Accumulator * | acc, |
Bms * | bms | ||
) |
Initializes the accumulator with the given BMS and IMD.
acc | Pointer to the Accumulator structure to initialize. |
bms | Pointer to the Bms structure. |
imd | Pointer to the Imd structure. |
Definition at line 3 of file Accumulator.c.
void setAccumulatorState | ( | Accumulator * | acc, |
CHARGE_STATE | state | ||
) |
Sets the state of the accumulator.
acc | Pointer to the Accumulator structure to update. |
state | The desired charge state to set. |
Definition at line 10 of file Accumulator.c.