eLooM for STM32 application  v3.3.0
Loading...
Searching...
No Matches
ITSDriver_vtbl.h
Go to the documentation of this file.
1
25#ifndef ELOOM_INC_DRIVERS_ITSDRIVER_VTBL_H_
26#define ELOOM_INC_DRIVERS_ITSDRIVER_VTBL_H_
27
28#ifdef __cplusplus
29extern "C" {
30#endif
31
32#include "drivers/IDriver_vtbl.h"
33
38
43 sys_error_code_t (*Init)(IDriver *_this, void *pParams);
44 sys_error_code_t (*Start)(IDriver *_this);
45 sys_error_code_t (*Stop)(IDriver *_this);
46 sys_error_code_t (*DoEnterPowerMode)(IDriver *_this, const EPowerMode eActivePowerMode, const EPowerMode eNewPowerMode);
47 sys_error_code_t (*Reset)(IDriver *_this, void *pParams);
48 uint64_t (*GetTimeStamp)(ITSDriver_t *_this);
49};
50
55{
60};
61
62
63/* Inline function definition. */
64/*******************************/
65
68 return _this->vptr->GetTimeStamp(_this);
69}
70
71#ifdef __cplusplus
72}
73#endif
74
75#endif /* ELOOM_INC_DRIVERS_ITSDRIVER_VTBL_H_ */
SYS_DEFINE_STATIC_INLINE uint64_t ITSDrvGetTimeStamp(ITSDriver_t *_this)
Definition ITSDriver_vtbl.h:67
Definition IDriver_vtbl.h:49
Definition ITSDriver_vtbl.h:55
const ITSDriver_vtbl * vptr
Definition ITSDriver_vtbl.h:59
Definition ITSDriver_vtbl.h:42
uint16_t sys_error_code_t
Definition syserror.h:41
#define SYS_DEFINE_STATIC_INLINE
Definition systp.h:95