foxBMS
1.2.1
The foxBMS Battery Management System API Documentation
|
#include <bms.h>
Data Fields | |
uint16_t | timer |
BMS_STATE_REQUEST_e | stateRequest |
BMS_STATEMACH_e | state |
BMS_STATEMACH_SUB_e | substate |
BMS_STATEMACH_e | laststate |
BMS_STATEMACH_SUB_e | lastsubstate |
uint32_t | ErrRequestCounter |
STD_RETURN_TYPE_e | initFinished |
uint8_t | triggerentry |
uint8_t | counter |
BMS_CURRENT_FLOW_STATE_e | currentFlowState |
uint32_t | restTimer_10ms |
uint16_t | OscillationTimeout |
uint8_t | PrechargeTryCounter |
BMS_POWER_PATH_TYPE_e | powerPath |
uint8_t | numberOfClosedStrings |
uint16_t | stringOpenTimeout |
uint32_t | nextstringclosedtimer |
uint16_t | stringCloseTimeout |
BMS_STATEMACH_e | nextstate |
uint8_t | firstClosedString |
uint16_t | prechargeOpenTimeout |
uint16_t | prechargeCloseTimeout |
uint32_t | remainingDelay_ms |
uint32_t | minimumActiveDelay_ms |
bool | transitionToErrorState |
uint8_t | closedPrechargeContactors [BS_NR_OF_STRINGS] |
uint8_t | closedStrings [BS_NR_OF_STRINGS] |
uint8_t | deactivatedStrings [BS_NR_OF_STRINGS] |
This structure contains all the variables relevant for the CONT state machine. The user can get the current state of the CONT state machine with this variable
uint8_t BMS_STATE::closedPrechargeContactors[BS_NR_OF_STRINGS] |
uint8_t BMS_STATE::closedStrings[BS_NR_OF_STRINGS] |
BMS_CURRENT_FLOW_STATE_e BMS_STATE::currentFlowState |
uint8_t BMS_STATE::deactivatedStrings[BS_NR_OF_STRINGS] |
uint32_t BMS_STATE::ErrRequestCounter |
uint8_t BMS_STATE::firstClosedString |
STD_RETURN_TYPE_e BMS_STATE::initFinished |
STD_OK if the initialization has passed, STD_NOT_OK otherwise
BMS_STATEMACH_e BMS_STATE::laststate |
BMS_STATEMACH_SUB_e BMS_STATE::lastsubstate |
uint32_t BMS_STATE::minimumActiveDelay_ms |
BMS_STATEMACH_e BMS_STATE::nextstate |
uint32_t BMS_STATE::nextstringclosedtimer |
uint8_t BMS_STATE::numberOfClosedStrings |
uint16_t BMS_STATE::OscillationTimeout |
BMS_POWER_PATH_TYPE_e BMS_STATE::powerPath |
uint16_t BMS_STATE::prechargeCloseTimeout |
uint16_t BMS_STATE::prechargeOpenTimeout |
uint8_t BMS_STATE::PrechargeTryCounter |
uint32_t BMS_STATE::remainingDelay_ms |
uint32_t BMS_STATE::restTimer_10ms |
BMS_STATEMACH_e BMS_STATE::state |
BMS_STATE_REQUEST_e BMS_STATE::stateRequest |
uint16_t BMS_STATE::stringCloseTimeout |
uint16_t BMS_STATE::stringOpenTimeout |
BMS_STATEMACH_SUB_e BMS_STATE::substate |
uint16_t BMS_STATE::timer |
bool BMS_STATE::transitionToErrorState |
uint8_t BMS_STATE::triggerentry |