|
foxBMS-UnitTests
1.0.0
The foxBMS Unit Tests API Documentation
|
Go to the documentation of this file.
56 #ifndef FOXBMS__SBC_H_
57 #define FOXBMS__SBC_H_
78 #define SBC_STATEMACHINE_TASK_CYCLE_CONTEXT_MS (10u)
80 #if SBC_STATEMACHINE_TASK_CYCLE_CONTEXT_MS != FTSK_TSK_CYCLIC_10MS_CYCLE_TIME
81 #error "Invalid SBC configuration. Make sure that SBC timing is configured correctly!"
88 #define SBC_STATEMACHINE_SHORTTIME (1u)
94 #define SBC_STATEMACHINE_MEDIUMTIME (5u)
100 #define SBC_STATEMACHINE_LONGTIME (10u)
105 #define SBC_WINDOW_WATCHDOG_PERIOD_MS (100u)
SBC_RETURN_TYPE_e SBC_SetStateRequest(SBC_STATE_s *pInstance, SBC_STATE_REQUEST_e stateRequest)
sets the current state request of passed state variable
@ SBC_STATE_ERROR_REQUEST
uint32_t illegalRequestsCounter
SBC_STATE_s sbc_stateMcuSupervisor
@ SBC_INIT_RESET_FAULT_ERROR_COUNTER_PART1
SBC_PERIODIC_WATCHDOG_STATE_e watchdogState
@ SBC_INITIALIZE_VOLTAGE_SUPERVISOR_PART4
@ SBC_PERIODIC_WATCHDOG_ACTIVATED
uint8_t requestWatchdogTrigger
@ SBC_INITIALIZE_SAFETY_PATH_CHECK
SBC_STATEMACHINE_e lastState
Task configuration header.
Header for the driver for the FRAM module.
@ SBC_STATEMACHINE_INITIALIZATION
@ SBC_STATEMACHINE_RUNNING
@ SBC_STATEMACHINE_UNDEFINED
enum SBC_STATEMACHINE_SUB SBC_STATEMACHINE_SUB_e
enum SBC_RETURN_TYPE SBC_RETURN_TYPE_e
SBC_STATEMACHINE_SUB_e lastSubstate
@ SBC_STATEMACHINE_UNINITIALIZED
enum SBC_STATEMACHINE SBC_STATEMACHINE_e
enum SBC_STATE_REQUEST SBC_STATE_REQUEST_e
enum SBC_PERIODIC_WATCHDOG_STATE SBC_PERIODIC_WATCHDOG_STATE_e
@ SBC_INITIALIZE_VOLTAGE_SUPERVISOR_PART3
SBC_STATEMACHINE_e SBC_GetState(SBC_STATE_s *pInstance)
gets the current state of passed state variable
@ SBC_ALREADY_INITIALIZED
SBC_STATE_REQUEST_e stateRequest
struct SBC_STATE SBC_STATE_s
@ SBC_INIT_RESET_FAULT_ERROR_COUNTER_PART2
@ SBC_PERIODIC_WATCHDOG_DEACTIVATED
FS85xx_STATE_s * pFs85xxInstance
void SBC_Trigger(SBC_STATE_s *pInstance)
trigger function for the SYS driver state machine.
SBC_STATEMACHINE_SUB_e substate
SBC_PERIODIC_WATCHDOG_STATE
uint16_t watchdogPeriod_10ms