ODeV framework
v2
|
This file declare the Managed task Interface. More...
#include "AManagedTask.h"
Go to the source code of this file.
Typedefs | |
typedef struct _AManagedTaskEx | AManagedTaskEx |
Functions | |
sys_error_code_t | AMTInitEx (AManagedTaskEx *this) |
sys_error_code_t | AMTExForceExecuteStep (AManagedTaskEx *this, EPowerMode eActivePowerMode) |
sys_error_code_t | AMTExSetInactiveState (AManagedTaskEx *this, boolean_t bBlockedSuspended) |
boolean_t | AMTExIsTaskInactive (AManagedTaskEx *this) |
This file declare the Managed task Interface.
<DESCRIPTIOM>
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 AManagedTaskEx |
Create type name for _AManagedTaskEx.
|
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. |