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_TASK_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)
Task configuration header.
General macros and definitions for the whole platform.
Header for the driver for the FRAM module.
@ SBC_STATEMACHINE_RUNNING
@ SBC_STATEMACHINE_UNINITIALIZED
@ SBC_STATEMACHINE_INITIALIZATION
@ SBC_STATEMACHINE_UNDEFINED
struct SBC_STATE SBC_STATE_s
SBC_STATEMACHINE_e SBC_GetState(SBC_STATE_s *pInstance)
gets the current state of passed state variable
void SBC_Trigger(SBC_STATE_s *pInstance)
trigger function for the SYS driver state machine.
enum SBC_RETURN_TYPE SBC_RETURN_TYPE_e
enum SBC_PERIODIC_WATCHDOG_STATE SBC_PERIODIC_WATCHDOG_STATE_e
@ SBC_STATE_ERROR_REQUEST
enum SBC_STATEMACHINE SBC_STATEMACHINE_e
enum SBC_STATE_REQUEST SBC_STATE_REQUEST_e
SBC_STATE_s sbc_stateMcuSupervisor
enum SBC_STATEMACHINE_SUB SBC_STATEMACHINE_SUB_e
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_INITIALIZE_VOLTAGE_SUPERVISOR_PART3
@ SBC_INIT_RESET_FAULT_ERROR_COUNTER_PART2
@ SBC_INITIALIZE_SAFETY_PATH_CHECK
@ SBC_INITIALIZE_VOLTAGE_SUPERVISOR_PART4
@ SBC_INIT_RESET_FAULT_ERROR_COUNTER_PART1
@ SBC_ALREADY_INITIALIZED
SBC_PERIODIC_WATCHDOG_STATE
@ SBC_PERIODIC_WATCHDOG_DEACTIVATED
@ SBC_PERIODIC_WATCHDOG_ACTIVATED
SBC_STATEMACHINE_SUB_e lastSubstate
SBC_STATEMACHINE_e lastState
uint8_t requestWatchdogTrigger
SBC_STATE_REQUEST_e stateRequest
SBC_STATEMACHINE_SUB_e substate
SBC_PERIODIC_WATCHDOG_STATE_e watchdogState
FS85xx_STATE_s * pFs85xxInstance
uint32_t illegalRequestsCounter
uint16_t watchdogPeriod_10ms