![]() |
foxBMS
1.3.0
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_s::closedPrechargeContactors[BS_NR_OF_STRINGS] |
| uint8_t BMS_STATE_s::closedStrings[BS_NR_OF_STRINGS] |
| BMS_CURRENT_FLOW_STATE_e BMS_STATE_s::currentFlowState |
| uint8_t BMS_STATE_s::deactivatedStrings[BS_NR_OF_STRINGS] |
| uint32_t BMS_STATE_s::ErrRequestCounter |
| uint8_t BMS_STATE_s::firstClosedString |
| STD_RETURN_TYPE_e BMS_STATE_s::initFinished |
STD_OK if the initialization has passed, STD_NOT_OK otherwise
| BMS_STATEMACH_e BMS_STATE_s::laststate |
| BMS_STATEMACH_SUB_e BMS_STATE_s::lastsubstate |
| uint32_t BMS_STATE_s::minimumActiveDelay_ms |
| BMS_STATEMACH_e BMS_STATE_s::nextstate |
| uint32_t BMS_STATE_s::nextstringclosedtimer |
| uint8_t BMS_STATE_s::numberOfClosedStrings |
| uint16_t BMS_STATE_s::OscillationTimeout |
| BMS_POWER_PATH_TYPE_e BMS_STATE_s::powerPath |
| uint16_t BMS_STATE_s::prechargeCloseTimeout |
| uint16_t BMS_STATE_s::prechargeOpenTimeout |
| uint8_t BMS_STATE_s::PrechargeTryCounter |
| uint32_t BMS_STATE_s::remainingDelay_ms |
| uint32_t BMS_STATE_s::restTimer_10ms |
| BMS_STATEMACH_e BMS_STATE_s::state |
| BMS_STATE_REQUEST_e BMS_STATE_s::stateRequest |
| uint16_t BMS_STATE_s::stringCloseTimeout |
| uint16_t BMS_STATE_s::stringOpenTimeout |
| BMS_STATEMACH_SUB_e BMS_STATE_s::substate |
| uint16_t BMS_STATE_s::timer |
| bool BMS_STATE_s::transitionToErrorState |
| uint8_t BMS_STATE_s::triggerentry |