The foxBMS secondary mcu API documentation
enginetask_cfg.c File Reference

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"
Include dependency graph for enginetask_cfg.c:

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 }
 

Detailed Description

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:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

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®″

Author
foxBMS Team
Date
26.08.2015 (date of creation)
Module-prefix ENG

Function Documentation

◆ ENG_Cyclic_100ms()

void ENG_Cyclic_100ms ( void  )

Task for ADC control, balancing control and isolation measurement.

Here is the call graph for this function:

◆ ENG_Cyclic_10ms()

void ENG_Cyclic_10ms ( void  )

Task for system- and bmscontrol and SOX algorithms.

Here is the call graph for this function:

◆ ENG_Cyclic_1ms()

void ENG_Cyclic_1ms ( void  )

Cyclic 1ms task for the LTC measurement.

Here is the call graph for this function:

◆ ENG_Diagnosis()

void ENG_Diagnosis ( void  )

Engine Task for diagnosis.

◆ ENG_EventHandler()

void ENG_EventHandler ( void  )

Engine Task for handling of events.

◆ ENG_IdleTask()

void ENG_IdleTask ( void  )

OS_IdleTask, called by vApplicationIdleHook()

◆ ENG_Init()

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.

Here is the call graph for this function:

◆ ENG_PostOSInit()

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

Here is the call graph for this function:

Variable Documentation

◆ eng_tskdef_diagnosis

◆ eng_tskdef_eventhandler