CMSIS-Driver  Version 2.00
Peripheral Interface for Middleware and Application Code
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
I2C Control Codes

Specify operation modes of the I2C interface. More...

Macros

#define ARM_I2C_OWN_ADDRESS   (0x01)
 Set Own Slave Address; arg = address.
 
#define ARM_I2C_BUS_SPEED   (0x02)
 Set Bus Speed; arg = speed.
 
#define ARM_I2C_BUS_CLEAR   (0x03)
 Execute Bus clear: send nine clock pulses.
 
#define ARM_I2C_ABORT_TRANSFER   (0x04)
 Abort Master/Slave Transmit/Receive.
 

Description

Specify operation modes of the I2C interface.

The function ARM_SPI_Control with control = ARM_I2C_BUS_SPEED specifies the bus speed with arg of the I2C interface using the following values.

Macro Definition Documentation

#define ARM_I2C_ABORT_TRANSFER   (0x04)

Abort Master/Slave Transmit/Receive.

See Also
ARM_I2C_Control
#define ARM_I2C_BUS_CLEAR   (0x03)

Execute Bus clear: send nine clock pulses.

See Also
ARM_I2C_Control
#define ARM_I2C_BUS_SPEED   (0x02)

Set Bus Speed; arg = speed.

See Also
ARM_I2C_Control
#define ARM_I2C_OWN_ADDRESS   (0x01)

Set Own Slave Address; arg = address.

See Also
ARM_I2C_Control