STM32F0 CPAL I2C bibliotheek
1.0
ST Microelectronics CPALv2 bibliotheek documentatie
|
Data Fields | |
CPAL_DevTypeDef | CPAL_Dev |
CPAL_DirectionTypeDef | CPAL_Direction |
CPAL_ModeTypeDef | CPAL_Mode |
CPAL_ProgModelTypeDef | CPAL_ProgModel |
CPAL_TransferTypeDef * | pCPAL_TransferTx |
CPAL_TransferTypeDef * | pCPAL_TransferRx |
__IO CPAL_StateTypeDef | CPAL_State |
__IO uint32_t | wCPAL_DevError |
uint32_t | wCPAL_Options |
__IO uint32_t | wCPAL_Timeout |
I2C_InitTypeDef * | pCPAL_I2C_Struct |
CPAL_DevTypeDef CPAL_Dev |
Instance of the device. This parameter can be one
of the following values: CPAL_Dev_TypeDef
CPAL_DirectionTypeDef CPAL_Direction |
Specifies the direction for the device transfers.
It can be one of the following values: CPAL_Direction_TypeDef
CPAL_ModeTypeDef CPAL_Mode |
Specifies the maser/slave mode of device. It can be one of the
following values: CPAL_Mode_TypeDef
CPAL_ProgModelTypeDef CPAL_ProgModel |
Specifies the programming model for the device transfers.
It can be one of the following values: CPAL_ProgModel_Enum
__IO CPAL_StateTypeDef CPAL_State |
Holds the current State of the CPAL driver relative to the device
instantiated by CPAL_Dev field. The state parameter can be one of the following values: CPAL_State_Enum
I2C_InitTypeDef* pCPAL_I2C_Struct |
Pointer to a device Initialization structure as described
in the standard device library driver. A NULL pointer can be provided for this field and, in this case, the default values will be used for all the device initialization. If only some fields need to be modified for the initialization, one can use the CPAL_PPP_StructInit() function just before setting the needed fields. Example: CPAL_InitTypeDef I2C1_DevStructure; CPAL_I2C_StructInit(&I2C1_DevStructure); I2C1_DevStructure->pI2C_Struct->I2C_Speed = 100000; CPAL_I2C_Init(&I2C1_DevStructure);
CPAL_TransferTypeDef* pCPAL_TransferRx |
Pointer on a structure specifying the parameters of the current
reception operations. The structure fields are specified as follows: CPAL_Transfer_TypeDef. Use pNULL value if this direction is not needed.
CPAL_TransferTypeDef* pCPAL_TransferTx |
Pointer on a structure specifying the parameters of the current
transmission operations. The structure fields are specified as follows: CPAL_Transfer_TypeDef. Use pNULL value if this direction is not needed.
__IO uint32_t wCPAL_DevError |
Specifies the error code for the current operation.The error codes
are specified for each device type as follows: CPAL_I2CError_Enum for I2C devices
uint32_t wCPAL_Options |
Bit-field value specifying additional options for the configuration
of the device: The bit-field value can be any combination of following values: CPAL_Options_Enum. When a value is not selected the relative feature is disabled
__IO uint32_t wCPAL_Timeout |
This field is with timeout procedure. its used to detect timeout