ODeV framework
v2
|
TODO - insert here the file description. More...
#include "systypes.h"
#include "syserror.h"
#include "systp.h"
#include "FreeRTOS.h"
#include "task.h"
#include "AManagedTaskVtbl.h"
Go to the source code of this file.
Data Structures | |
struct | _AMTStatusEx |
struct | _AManagedTaskEx |
Typedefs | |
typedef struct _AManagedTaskEx_vtbl | AManagedTaskEx_vtbl |
typedef struct _AMTStatusEx | AMTStatusEx |
Functions | |
SYS_DEFINE_INLINE sys_error_code_t | AMTExForceExecuteStep (AManagedTaskEx *this, EPowerMode eActivePowerMode) |
SYS_DEFINE_INLINE sys_error_code_t | AMTInitEx (AManagedTaskEx *this) |
SYS_DEFINE_INLINE sys_error_code_t | AMTExSetInactiveState (AManagedTaskEx *this, boolean_t bBlockedSuspended) |
SYS_DEFINE_INLINE boolean_t | AMTExIsTaskInactive (AManagedTaskEx *this) |
TODO - insert here the file description.
Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); You may not use this file except in compliance with the License. You may obtain a copy of the License at:
http://www.st.com/software_license_agreement_liberty_v2
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
typedef struct _AManagedTaskEx_vtbl AManagedTaskEx_vtbl |
Create type name for _IManagedTask_vtb.
typedef struct _AMTStatusEx AMTStatusEx |
Managed Task extended status field. This data is used to coordinate the power mode switch between the INIT task and the application managed tasks.
|
inline |
Called by the framework to force the step execution. During a step execution a task can be suspended waiting for an event or for other reason. The In this situation the INIT task cannot complete the power mode switch, so it calls this method in order to force the task to be ready for the power mode switch.
this | [IN] specifies a pointer to the object. |
eActivePowerMode | [IN] specifies the actual power mode |
|
inline |
Check if the a managed task is inactive. A managed task is inactive when:
For more information about the task state see https://freertos.org/RTOS-task-states.html
this | [IN] specifies a pointer to the object. |
TRUE
if the task is in inactive state, FALSE
otherwise.
|
inline |
A task must use this method to notify the framework when it is entering the suspend state or when is blocking on a event without a timeout. This state is called "inactive". This information is used to the AED to resetting the system because it thinks that the task is not responding.
this | [IN] specifies a pointer to the object. |
bBlockedSuspended | [IN] TRUE if a the task is entering the inactive state, FALSE if a task is leaving the inactive state. |
|
inline |
Initialize a managed task structure. The application is responsible to allocate a managed task in memory. This method must be called after the allocation.
this | [IN] specifies a task object pointer. |