#include <stdint.h>
#include "../ExternalSystem.h"
#include "../Inc/Systems/Comms/Can/DBCParser.h"
Go to the source code of this file.
|
void | initBms (Bms *bms, int hz, const char *dbcFn) |
| Initializes the BMS with the given frequency. More...
|
|
void | updateBms (void *bms) |
| Transfers raw BMS data to a BmsData structure. More...
|
|
void | updateBmsTest (void *bms, const char *canDataFn) |
| Updates the BMS data. More...
|
|
◆ BmsChargeStatus
Enumerator |
---|
DISCHARGING | |
CHARGING | |
IDLE | |
Definition at line 9 of file BMS.h.
◆ initBms()
void initBms |
( |
Bms * |
bms, |
|
|
int |
hz, |
|
|
const char * |
dbcFn |
|
) |
| |
Initializes the BMS with the given frequency.
- Parameters
-
bms | Pointer to the Bms structure to initialize. |
hz | The frequency in Hertz at which the BMS operates. |
dbcFn | The filename of the dbc file to use to interpret the can data. |
Definition at line 7 of file BMS.c.
7 {
8 if (bms == NULL) return;
9
11
24}
void updateBms(void *bms)
Transfers raw BMS data to a BmsData structure.
void initExternalSystem(ExternalSystem *external, const char *name, int hz, ExternalType type)
BmsChargeStatus chargeStatus
float remainingPackCapacity
void(* update)(void *self)
◆ updateBms()
void updateBms |
( |
void * |
bms | ) |
|
Transfers raw BMS data to a BmsData structure.
- Parameters
-
rawData | Pointer to the array of raw data. |
- Returns
- The converted BmsData structure.
Updates the BMS data.
- Parameters
-
bms | Pointer to the Bms structure to update. |
Definition at line 83 of file BMS.c.
83 {
84
85 printf("BMS Update Not implemented\n");
86
87
88
89
90
91
92
93}
◆ updateBmsTest()
void updateBmsTest |
( |
void * |
bms, |
|
|
const char * |
canDataFn |
|
) |
| |
Updates the BMS data.
- Warning
- For testing and debugging use only
- Parameters
-
bms | Pointer to the Bms structure to update. |
canDataFn | Name of file containing can data. |
Definition at line 96 of file BMS.c.
96 {
97
98
99
100
101
102
103
104
105}