CMSIS Driver  Version 1.10 - Preliminary
Middleware Driver API for microcontroller peripherals
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Driver_I2C.c File Reference

Functions

ARM_DRV_VERSION ARM_I2C_GetVersion (void)
 Get driver version.
 
ARM_I2C_CAPABILITIES ARM_I2C_GetCapabilities (void)
 Get driver capabilities.
 
void ARM_I2C_SignalEvent (ARM_I2C_EVENT event)
 Signal I2C Event.
 
ARM_I2C_STATUS ARM_I2C_Initialize (ARM_I2C_SignalEvent_t cb_event)
 Initialize I2C Interface.
 
ARM_I2C_STATUS ARM_I2C_Uninitialize (void)
 De-initialize ARM_I2C Interface.
 
ARM_I2C_STATUS ARM_I2C_PowerControl (ARM_POWER_STATE state)
 Control I2C Interface Power.
 
ARM_I2C_STATUS ARM_I2C_BusSpeed (ARM_I2C_BUS_SPEED speed)
 Set bus speed for I2C transfers.
 
ARM_I2C_STATUS ARM_I2C_BusClear (void)
 Send nine clock pulses to clear the bus.
 
int32_t ARM_I2C_SendData (uint32_t addr, const uint8_t *data, uint32_t size, bool xfer_pending)
 Send data to I2C Slave.
 
int32_t ARM_I2C_ReceiveData (uint32_t addr, uint8_t *data, uint32_t size, bool xfer_pending)
 Receive data from I2C Slave.
 
ARM_I2C_STATUS ARM_I2C_AbortTransfer (void)
 Abort current I2C transfer.