eLooM for STM32 application
v3.3.0
|
Public API for the Driver Interface. More...
Go to the source code of this file.
Typedefs | |
typedef struct _IDriver | IDriver |
Functions | |
static sys_error_code_t | IDrvInit (IDriver *_this, void *pParams) |
static sys_error_code_t | IDrvStart (IDriver *_this) |
static sys_error_code_t | IDrvStop (IDriver *_this) |
static sys_error_code_t | IDrvDoEnterPowerMode (IDriver *_this, const EPowerMode eActivePowerMode, const EPowerMode eNewPowerMode) |
static sys_error_code_t | IDrvReset (IDriver *_this, void *pParams) |
Public API for the Driver Interface.
IDriver is the base interface for the Driver subsystem. Each driver implements this interface.
Copyright (c) 2016 STMicroelectronics. All rights reserved.
This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.
|
inlinestatic |
This function is called by the framework when the system is changing the power mode. The driver must reconfigure itself according the new power mode.
_this | [IN] specifies a pointer to a IDriver object. |
eActivePowerMode | [IN] specifies the actual power mode. |
eNewPowerMode | [IN] specifies the new power mode. |
|
inlinestatic |
Initialize the driver. This method should be used by a task object during the hardware initialization process.
_this | [IN] specifies a pointer to a IDriver object. |
pParams | [IN] specifies a pointer to a initialization parameters defined by a subclass. |
|
inlinestatic |
Reset the peripherals owned by the driver. This method should operate at hardware level, for example by using the HAL_XXX_DeInit() and HAL_XXX_Init() functions.
_this | [IN] specifies a pointer to a IDriver object. |
pParams | [IN] specifies a pointer to a parameters defined by a subclass. |
|
inlinestatic |
Start the driver. This method enable the driver normal processing. For example it enables the related IRQ. It should be called after the driver initialization.
_this | s[IN] specifies a pointer to a IDriver object. |
|
inlinestatic |
Stop a driver. This method disable the driver normal operation. For example it disables the IRQ. It doesn't de-initialize the driver.
_this | [IN] specifies a pointer to a IDriver object. |