eLooM for STM32 application  v3.3.0
A framework for multitasking low power embedded applications powerd by STM32
Loading...
Searching...
No Matches
IDriver.h
Go to the documentation of this file.
1
25#ifndef INCLUDE_DRIVERS_IDRIVER_H_
26#define INCLUDE_DRIVERS_IDRIVER_H_
27
28#ifdef __cplusplus
29extern "C" {
30#endif
31
34#include <stddef.h>
35
36// Forward functions declaration
37// *****************************
38
39void *SysAlloc(size_t nSize);
40
41
45typedef struct _IDriver IDriver;
46
55static inline sys_error_code_t IDrvInit(IDriver *_this, void *pParams);
56
64static inline sys_error_code_t IDrvStart(IDriver *_this);
65
73static inline sys_error_code_t IDrvStop(IDriver *_this);
74
84static inline sys_error_code_t IDrvDoEnterPowerMode(IDriver *_this, const EPowerMode eActivePowerMode, const EPowerMode eNewPowerMode);
85
94static inline sys_error_code_t IDrvReset(IDriver *_this, void *pParams);
95
96
97#ifdef __cplusplus
98}
99#endif
100
101
102#endif /* INCLUDE_DRIVERS_IDRIVER_H_ */
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
This file declares the public API related to the power management.