#include "BMS.h"
#include "Imd.h"
Go to the source code of this file.
◆ CHARGE_STATE
Enumerator |
---|
charge | |
discharge | |
standby | |
Definition at line 7 of file Accumulator.h.
◆ getAccumulatorState()
Gets the current state of the accumulator.
- Parameters
-
- Returns
- The current charge state of the accumulator, or standby if not initialized.
Definition at line 16 of file Accumulator.c.
16 {
17 if (acc != NULL) {
19 }
21}
◆ initAccumulator()
Initializes the accumulator with the given BMS and IMD.
- Parameters
-
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.
3 {
4 if (acc != NULL) {
7 }
8}
◆ setAccumulatorState()
Sets the state of the accumulator.
- Parameters
-
acc | Pointer to the Accumulator structure to update. |
state | The desired charge state to set. |
Definition at line 10 of file Accumulator.c.
10 {
11 if (acc != NULL) {
13 }
14}