ODeV framework  v2
PushButtonTask.h
Go to the documentation of this file.
1 
32 #ifndef PUSHBUTTONTASK_H_
33 #define PUSHBUTTONTASK_H_
34 
35 #ifdef __cplusplus
36 extern "C" {
37 #endif
38 
39 
40 #include "systp.h"
41 #include "syserror.h"
42 #include "AManagedTaskEx.h"
43 #include "AManagedTaskEx_vtbl.h"
44 #include "IDriver.h"
45 #include "IDriverVtbl.h"
46 
47 
52 
61 
62  // Task variables should be added here.
63 
68 
73  boolean_t m_bButtonArmed;
74 };
75 
76 
77 // Public API declaration
78 //***********************
79 
87 
96 
97 
98 // Inline functions definition
99 // ***************************
100 
101 SYS_DEFINE_INLINE
103  assert_param(this);
104  sys_error_code_t xRes = SYS_NO_ERROR_CODE;
105 
106  this->m_pxDriver = pxDriver;
107 
108  return xRes;
109 }
110 
111 
112 #ifdef __cplusplus
113 }
114 #endif
115 
116 #endif /* PUSHBUTTONTASK_H_ */
Private API for the Driver Interface.
Public API for the Driver Interface.
Define the global error management API.
AManagedTaskEx * PushButtonTaskAlloc()
Definition: PushButtonTask.h:56
#define assert_param(expr)
Include module's header file.
Definition: stm32l4xx_hal_conf.h:359
boolean_t m_bButtonArmed
Definition: PushButtonTask.h:73
This file declare the Managed task Interface.
IDriver * m_pxDriver
Definition: PushButtonTask.h:67
sys_error_code_t PushButtonTaskSetDriver(PushButtonTask *this, IDriver *pDxriver)
Definition: PushButtonTask.h:102
Definition: AManagedTaskEx_vtbl.h:74
TODO - insert here the file description.
Definition: IDriverVtbl.h:59
unsigned short sys_error_code_t
Definition: syserror.h:45
Target platform definition.
AManagedTaskEx super
Definition: PushButtonTask.h:60