![]() |
The foxBMS secondary mcu API documentation
|
Engine task configuration. More...
#include "enginetask_cfg.h"
#include "adc.h"
#include "database.h"
#include "interlock.h"
#include "meas.h"
#include "ltc.h"
#include "sys.h"
#include "vic.h"
#include "wdg.h"
#include "hwinfo.h"
Functions | |
void | ENG_PostOSInit (void) |
reads non-volatile memory and initializes the sys module More... | |
void | ENG_Init (void) |
Initializes modules that were not initialized before scheduler starts. More... | |
void | ENG_Cyclic_1ms (void) |
Cyclic 1ms task for the LTC measurement. More... | |
void | ENG_Cyclic_10ms (void) |
Task for system- and bmscontrol and SOX algorithms. More... | |
void | ENG_Cyclic_100ms (void) |
Task for ADC control, balancing control and isolation measurement. More... | |
void | ENG_IdleTask (void) |
OS_IdleTask, called by vApplicationIdleHook() More... | |
void | ENG_EventHandler (void) |
Engine Task for handling of events. More... | |
void | ENG_Diagnosis (void) |
Engine Task for diagnosis. More... | |
Variables | |
OS_Task_Definition_s | eng_tskdef_cyclic_1ms = { 0, 1, OS_PRIORITY_ABOVE_HIGH, ENG_TSK_C_1MS_STACKSIZE } |
Task configuration of the 1ms engine task. More... | |
OS_Task_Definition_s | eng_tskdef_cyclic_10ms = { 2, 10, OS_PRIORITY_HIGH, ENG_TSK_C_10MS_STACKSIZE } |
Task configuration of the 10ms engine task. More... | |
OS_Task_Definition_s | eng_tskdef_cyclic_100ms = { 56, 100, OS_PRIORITY_ABOVE_NORMAL, ENG_TSK_C_100MS_STACKSIZE } |
Task configuration of the 100ms engine task. More... | |
OS_Task_Definition_s | eng_tskdef_eventhandler = { 0, 1, OS_PRIORITY_VERY_HIGH, ENG_TSK_EVENTHANDLER_STACKSIZE } |
OS_Task_Definition_s | eng_tskdef_diagnosis = { 0, 1, OS_PRIORITY_BELOW_REALTIME, ENG_TSK_DIAGNOSIS_STACKSIZE } |
Engine task configuration.
BSD 3-Clause License Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
We kindly request you to use one or more of the following phrases to refer to foxBMS in your hardware, software, documentation or advertising materials:
″This product uses parts of foxBMS®″
″This product includes parts of foxBMS®″
″This product is derived from foxBMS®″
void ENG_Cyclic_100ms | ( | void | ) |
Task for ADC control, balancing control and isolation measurement.
void ENG_Cyclic_10ms | ( | void | ) |
Task for system- and bmscontrol and SOX algorithms.
void ENG_Cyclic_1ms | ( | void | ) |
Cyclic 1ms task for the LTC measurement.
void ENG_Diagnosis | ( | void | ) |
Engine Task for diagnosis.
void ENG_EventHandler | ( | void | ) |
Engine Task for handling of events.
void ENG_IdleTask | ( | void | ) |
OS_IdleTask, called by vApplicationIdleHook()
void ENG_Init | ( | void | ) |
Initializes modules that were not initialized before scheduler starts.
This function is called after the scheduler started but before any cyclic task runs. Here modules get initialized that are not used during the startup process.
void ENG_PostOSInit | ( | void | ) |
reads non-volatile memory and initializes the sys module
Start up after scheduler start, called from 1ms-Task before the 1ms cyclic execution
OS_Task_Definition_s eng_tskdef_diagnosis = { 0, 1, OS_PRIORITY_BELOW_REALTIME, ENG_TSK_DIAGNOSIS_STACKSIZE } |
OS_Task_Definition_s eng_tskdef_eventhandler = { 0, 1, OS_PRIORITY_VERY_HIGH, ENG_TSK_EVENTHANDLER_STACKSIZE } |