eLooM for STM32 application  v3.3.0
Loading...
Searching...
No Matches
ApplicationContext.h
Go to the documentation of this file.
1
24#ifndef INCLUDE_SERVICES_APPLICATIONCONTEXT_H_
25
26#define INCLUDE_SERVICES_APPLICATIONCONTEXT_H_
27
28#ifdef __cplusplus
29extern "C" {
30#endif
31
35
39typedef struct _ApplicationContext {
44
48 uint8_t m_nListSize;
50
51// Public API declaration
52//***********************
53
61
71
80
87static inline uint8_t ACGetTaskCount(ApplicationContext *_this);
88
96
104static inline AManagedTask *ACGetNextTask(ApplicationContext *_this, const AManagedTask *pTask);
105
106
107// Inline functions definition
108// ***************************
109
112 assert_param(_this != NULL);
113
114 return _this->m_nListSize;
115}
116
119 assert_param(_this != NULL);
120
121 return _this->m_pHead;
122}
123
126 assert_param(_this != NULL);
127 assert_param(pTask != NULL);
128 UNUSED(_this);
129
130 return pTask->m_pNext;
131}
132
133#ifdef __cplusplus
134}
135#endif
136
137
138#endif /* INCLUDE_SERVICES_APPLICATIONCONTEXT_H_ */
This file declare the Managed task Interface.
This file declare the Managed task Interface.
TODO - insert here the file description.
static AManagedTask * ACGetNextTask(ApplicationContext *_this, const AManagedTask *pTask)
Definition ApplicationContext.h:125
sys_error_code_t ACAddTask(ApplicationContext *_this, AManagedTask *pTask)
sys_error_code_t ACRemoveTask(ApplicationContext *_this, AManagedTask *pTask)
sys_error_code_t ACInit(ApplicationContext *_this)
static uint8_t ACGetTaskCount(ApplicationContext *_this)
Definition ApplicationContext.h:111
struct _ApplicationContext ApplicationContext
static AManagedTask * ACGetFirstTask(ApplicationContext *_this)
Definition ApplicationContext.h:118
Definition AManagedTask_vtbl.h:94
struct _AManagedTask * m_pNext
Definition AManagedTask_vtbl.h:108
Definition ApplicationContext.h:39
AManagedTask * m_pHead
Definition ApplicationContext.h:43
uint8_t m_nListSize
Definition ApplicationContext.h:48
uint16_t sys_error_code_t
Definition syserror.h:41
#define SYS_DEFINE_STATIC_INLINE
Definition systp.h:95