eLooM for STM32 application  v3.3.0
A framework for multitasking low power embedded applications powerd by STM32
Loading...
Searching...
No Matches
_AManagedTask Struct Reference

#include <AManagedTask_vtbl.h>

+ Collaboration diagram for _AManagedTask:

Data Fields

const AManagedTask_vtblvptr
 
TX_THREAD m_xTaskHandle
 
struct _AManagedTaskm_pNext
 
const pExecuteStepFunc_tm_pfPMState2FuncMap
 
const EPowerMode * m_pPMState2PMStateMap
 
AMTStatus m_xStatus
 

Detailed Description

A Managed Task a task integrated in the system. It defines a common interface for all application tasks. All Managed Tasks belong to a linked list that is the _ApplicationContext.

Field Documentation

◆ m_pfPMState2FuncMap

const pExecuteStepFunc_t* _AManagedTask::m_pfPMState2FuncMap

Specifies a map (PM_STATE, ExecuteStepFunc) between each application PM state and the associated step function. If the pointer

◆ m_pNext

struct _AManagedTask* _AManagedTask::m_pNext

Specifies a pointer to the next managed task in the _ApplicationContext.

◆ m_pPMState2PMStateMap

const EPowerMode* _AManagedTask::m_pPMState2PMStateMap

Specifies a map (PM_STATE, PM_STATE). It is used by the application to re-map the behavior of an AManagedTask during a power mode switch. Image a developer that want to use an existing managed task (MyManagedTask1) in a new application. Probably the new application has a different PM (PM_SM_2) state machine than the one used to design and implement the managed task MyManagedTask1 (PM_SM_1). In this scenario it is possible to reuse the managed task as it is if exist a subjective function f(x) -> (PM_SM_2, PM_SM_1), that map all states of PM_SM_1 in one or more states of PM_SM_2. It is possible to set this member to NULL, and, in this case no remapping is done.

◆ m_xStatus

AMTStatus _AManagedTask::m_xStatus

Status flags.

◆ m_xTaskHandle

TX_THREAD _AManagedTask::m_xTaskHandle

Specifies the native ThreadX task handle.

◆ vptr

const AManagedTask_vtbl* _AManagedTask::vptr

Specifies a pointer to the class virtual table.


The documentation for this struct was generated from the following file: