Midnight Sun Firmware
Loading...
Searching...
No Matches
__attribute__

Per-fault detail snapshot for the BPS fault code. More...

#include <global_enums.h>

Public Attributes

uint8_t cell_index
 
uint8_t reserved0
 
uint16_t cell_voltage
 
uint32_t reserved1
 
uint8_t max_cell_index
 
uint8_t min_cell_index
 
uint16_t max_cell_voltage
 
uint16_t min_cell_voltage
 
uint16_t reserved
 
int16_t temperature_c
 
float current_a
 
uint32_t reserved
 

Detailed Description

Per-fault detail snapshot for the BPS fault code.

8-byte payload packed into the 64-bit bps_fault_info CAN signal and the rear controller persist record. Which union view is valid is determined by the active bit(s) in the 32-bit fault code - there is no tag inside the payload itself.

Member Data Documentation

◆ cell_index

uint8_t cell_index

1-based faulting cell, 0 if N/A

1-based faulting cell/thermistor, 0 if N/A

◆ cell_voltage

uint16_t cell_voltage

Faulting cell voltage [100uV]

◆ current_a

float current_a

Pack current at fault [A], signed (charging negative)

◆ max_cell_index

uint8_t max_cell_index

1-based highest cell

◆ max_cell_voltage

uint16_t max_cell_voltage

Highest cell voltage [100uV]

◆ min_cell_index

uint8_t min_cell_index

1-based lowest cell

◆ min_cell_voltage

uint16_t min_cell_voltage

Lowest cell voltage [100uV]

◆ temperature_c

int16_t temperature_c

Faulting temperature [C]


The documentation for this struct was generated from the following file: