eLooM for STM32 application
v3.3.0
A framework for multitasking low power embedded applications powerd by STM32
|
Define the Application Context public API. More...
#include "services/AManagedTask.h"
#include "services/AManagedTaskEx.h"
#include "services/AManagedTaskEx_vtbl.h"
Go to the source code of this file.
Data Structures | |
struct | _ApplicationContext |
Typedefs | |
typedef struct _ApplicationContext | ApplicationContext |
Functions | |
sys_error_code_t | ACInit (ApplicationContext *_this) |
sys_error_code_t | ACAddTask (ApplicationContext *_this, AManagedTask *pTask) |
sys_error_code_t | ACRemoveTask (ApplicationContext *_this, AManagedTask *pTask) |
static uint8_t | ACGetTaskCount (ApplicationContext *_this) |
static AManagedTask * | ACGetFirstTask (ApplicationContext *_this) |
static AManagedTask * | ACGetNextTask (ApplicationContext *_this, const AManagedTask *pTask) |
Define the Application Context public API.
TODO - insert here the file description
Copyright (c) 2016 STMicroelectronics. All rights reserved.
This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.
typedef struct _ApplicationContext ApplicationContext |
An application context is a linked list of Managed tasks.
sys_error_code_t ACAddTask | ( | ApplicationContext * | _this, |
AManagedTask * | pTask | ||
) |
Add a managed task to this context. If the task is already in this application context it is not added twice.
_this | specifies a pointer to the application context object. |
pTask | specifies a pointer to a managed task object to be added to this context. |
|
inlinestatic |
Get a pointer to the first task object in this application context.
_this | specifies a pointer to the application context object. |
|
inlinestatic |
Get a pointer to the next task object after pTask in this application context.
_this | specifies a pointer to the application context object. |
pTasks | specifies a pointer a managed task object in this context. |
|
inlinestatic |
Get the number of managed task in this context.
_this | specifies a pointer to the application context object. |
sys_error_code_t ACInit | ( | ApplicationContext * | _this | ) |
Initialize this application context.
_this | specifies a pointer to the application context object. |
sys_error_code_t ACRemoveTask | ( | ApplicationContext * | _this, |
AManagedTask * | pTask | ||
) |
Remove a managed task from this context.
_this | specifies a pointer to the application context object. |
pTask | specifies a pointer to a managed task object to be removed from this context. |