CMSIS-Driver  
Peripheral Interface for Middleware and Application Code
 
Loading...
Searching...
No Matches
Driver_Common.h File Reference

Data Structures

struct  ARM_DRIVER_VERSION
 Driver Version. More...
 

Macros

#define ARM_DRIVER_VERSION_MAJOR_MINOR(major, minor)   (((major) << 8) | (minor))
 
#define ARM_DRIVER_OK   0
 Operation succeeded.
 
#define ARM_DRIVER_ERROR   -1
 Unspecified error.
 
#define ARM_DRIVER_ERROR_BUSY   -2
 Driver is busy.
 
#define ARM_DRIVER_ERROR_TIMEOUT   -3
 Timeout occurred.
 
#define ARM_DRIVER_ERROR_UNSUPPORTED   -4
 Operation not supported.
 
#define ARM_DRIVER_ERROR_PARAMETER   -5
 Parameter error.
 
#define ARM_DRIVER_ERROR_SPECIFIC   -6
 Start of driver specific errors.
 

Enumerations

enum  ARM_POWER_STATE {
  ARM_POWER_OFF ,
  ARM_POWER_LOW ,
  ARM_POWER_FULL
}
 General power states. More...
 

Macro Definition Documentation

◆ ARM_DRIVER_VERSION_MAJOR_MINOR

#define ARM_DRIVER_VERSION_MAJOR_MINOR (   major,
  minor 
)    (((major) << 8) | (minor))