firmware
IEM Firmware Documentation
Loading...
Searching...
No Matches
Fault.h File Reference
#include "BMSconfig.h"
Include dependency graph for Fault.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  BMS_critical_info_t

Macros

#define INVALID_VOLTAGE_UPPER_THRESHOLD   45000
#define INVALID_VOLTAGE_LOWER_THRESHOLD   25000

Functions

void init_BMS_info (BMS_critical_info_t *bms_struct)
 This method initializes the BMS info struct, which contains critical info regarding maxs and mins for readings in our battery pack.
bool FAULT_check (BMS_critical_info_t *bms_struct, uint8_t bmsStatus[6])
 This method checks for valid data as well as cell connection, OT, UT, OV, & UT faults.

Macro Definition Documentation

◆ INVALID_VOLTAGE_LOWER_THRESHOLD

#define INVALID_VOLTAGE_LOWER_THRESHOLD   25000

◆ INVALID_VOLTAGE_UPPER_THRESHOLD

#define INVALID_VOLTAGE_UPPER_THRESHOLD   45000

Function Documentation

◆ FAULT_check()

bool FAULT_check ( BMS_critical_info_t * bms_struct,
uint8_t bmsStatus[6] )

This method checks for valid data as well as cell connection, OT, UT, OV, & UT faults.

Parameters
bmsDatais a 2D array of 144 cellData, containing voltage, temperature and index
bmsStatusis an array that keeps track of BMS Fault information that will be returned over CAN
Returns
true if there is a BMS fault, and false if the system has returned no faults
Here is the caller graph for this function:

◆ init_BMS_info()

void init_BMS_info ( BMS_critical_info_t * bms_struct)

This method initializes the BMS info struct, which contains critical info regarding maxs and mins for readings in our battery pack.

Parameters
bms_structis the struct that will be filled with critical values
Returns
None
Here is the caller graph for this function: