24#ifndef INCLUDE_DRIVERS_IDRIVER_VTBL_H_
25#define INCLUDE_DRIVERS_IDRIVER_VTBL_H_
34typedef struct _IDriver_vtbl IDriver_vtbl;
41 sys_error_code_t (*DoEnterPowerMode)(
IDriver *_this,
const EPowerMode eActivePowerMode,
const EPowerMode eNewPowerMode);
50 const IDriver_vtbl *vptr;
58 return _this->vptr->Init(_this, pParams);
63 return _this->vptr->Start(_this);
68 return _this->vptr->Stop(_this);
73 return _this->vptr->DoEnterPowerMode(_this, eActivePowerMode, eNewPowerMode);
78 return _this->vptr->Reset(_this, pParams);
static sys_error_code_t IDrvDoEnterPowerMode(IDriver *_this, const EPowerMode eActivePowerMode, const EPowerMode eNewPowerMode)
Definition IDriver_vtbl.h:72
static sys_error_code_t IDrvReset(IDriver *_this, void *pParams)
Definition IDriver_vtbl.h:77
static sys_error_code_t IDrvStart(IDriver *_this)
Definition IDriver_vtbl.h:62
static sys_error_code_t IDrvStop(IDriver *_this)
Definition IDriver_vtbl.h:67
static sys_error_code_t IDrvInit(IDriver *_this, void *pParams)
Definition IDriver_vtbl.h:57
Umbrella header for the basic system features.
Definition IDriver_vtbl.h:49
uint16_t sys_error_code_t
Definition syserror.h:41
#define SYS_DEFINE_STATIC_INLINE
Definition systp.h:95