eLooM for STM32 application  v3.3.0
A framework for multitasking low power embedded applications powerd by STM32
Loading...
Searching...
No Matches
IBootVtbl.h
Go to the documentation of this file.
1
23#ifndef INCLUDE_SERVICES_IBOOTVTBL_H_
24#define INCLUDE_SERVICES_IBOOTVTBL_H_
25
26#ifdef __cplusplus
27extern "C" {
28#endif
29
31
35typedef struct _IBoot_vtbl IBoot_vtbl;
36
41 sys_error_code_t (*Init)(IBoot *_this);
42 boolean_t (*CheckDFUTrigger)(IBoot *_this);
43 uint32_t (*GetAppAdderss)(IBoot *_this);
44 sys_error_code_t (*OnJampToApp)(IBoot *_this, uint32_t nAppDress);
45};
46
51struct _IBoot {
56};
57
58
59// Inline functions definition
60// ***************************
61
64 return _this->vptr->Init(_this);
65}
66
68boolean_t IBootCheckDFUTrigger(IBoot *_this) {
69 return _this->vptr->CheckDFUTrigger(_this);
70}
71
73uint32_t IBootGetAppAdderss(IBoot *_this) {
74 return _this->vptr->GetAppAdderss(_this);
75}
76
78sys_error_code_t IBootOnJampToApp(IBoot *_this, uint32_t nAppDress) {
79 return _this->vptr->OnJampToApp(_this, nAppDress);
80}
81
82
83#ifdef __cplusplus
84}
85#endif
86
87#endif /* INCLUDE_SERVICES_IBOOTVTBL_H_ */
SYS_DEFINE_STATIC_INLINE sys_error_code_t IBootOnJampToApp(IBoot *_this, uint32_t nAppDress)
Definition IBootVtbl.h:78
SYS_DEFINE_STATIC_INLINE uint32_t IBootGetAppAdderss(IBoot *_this)
Definition IBootVtbl.h:73
SYS_DEFINE_STATIC_INLINE boolean_t IBootCheckDFUTrigger(IBoot *_this)
Definition IBootVtbl.h:68
SYS_DEFINE_STATIC_INLINE sys_error_code_t IBootInit(IBoot *_this)
Definition IBootVtbl.h:63
Umbrella header for the basic system features.
Definition IBootVtbl.h:40
Definition IBootVtbl.h:51
const IBoot_vtbl * vptr
Definition IBootVtbl.h:55
uint16_t sys_error_code_t
Definition syserror.h:41
#define SYS_DEFINE_STATIC_INLINE
Definition systp.h:95