Definitions common in all driver interfaces (Driver_Common.h) More...
Content | |
Status Error Codes | |
Negative return values of functions indicate errors occurred during execution. | |
Data Structures | |
struct | ARM_DRIVER_VERSION |
Driver Version. More... | |
Enumerations | |
enum | ARM_POWER_STATE { ARM_POWER_OFF , ARM_POWER_LOW , ARM_POWER_FULL } |
General power states. More... | |
Definitions common in all driver interfaces (Driver_Common.h)
The following definitions are common in all CMSIS-Driver interfaces. Refer to Common Driver Functions for a general overview.
struct ARM_DRIVER_VERSION |
Driver Version.
The access structure of each CMSIS-Driver provides the function GetVersion, which returns in the struct ARM_DRIVER_VERSION:
The version is encoded as 16-bit unsigned value (uint16_t) with:
For example, version 1.12 is encoded as 0x10C.
Data Fields | ||
---|---|---|
uint16_t | api | API version. |
uint16_t | drv | Driver version. |
enum ARM_POWER_STATE |
General power states.
The access structure of each CMSIS-Driver provides the function PowerControl, which handles the power profile for a peripheral using the parameter ARM_POWER_STATE. Depending on this parameter, the peripheral will operate at full speed, detect just events, or is completely un-powered.
Refer to Function Call Sequence for more information.
Enumerator | |
---|---|
ARM_POWER_OFF | Power off: no operation possible. |
ARM_POWER_LOW | Low Power mode: retain state, detect and signal wake-up events. |
ARM_POWER_FULL | Power on: full operation at maximum performance. |