cmsis_lpi2c_interrupt_transfer

Overview

CMSIS-Driver defines generic peripheral driver interfaces for middleware making it reusable across a wide range of supported microcontroller devices. The API connects microcontroller peripherals with middleware that implements for example communication stacks, file systems, or graphic user interfaces. More information and usage method please refer to http://www.keil.com/pack/doc/cmsis/Driver/html/index.html.

The cmsis_lpi2c_interrupt_transfer example shows how to use LPI2C CMSIS driver in interrupt way:

In this example , one lpi2c instance used as LPI2C master and another lpi2c instance used as LPI2C slave .

  1. LPI2C master send data to LPI2C slave with interrupt . (LPI2C Slave using interrupt to receive the data)

  2. LPI2C master read data from LPI2C slave with interrupt . (LPI2C Slave using interrupt to send the data)

  3. LPI2C master abort transfer when send 23 data(LPI2C master send data to LPI2C slave with interrupt.I2C Slave using interrupt to receive the data)

  4. LPI2C slave abort transfer when receive 23 data(LPI2C master send data to LPI2C slave with interrupt.I2C Slave using interrupt to receive the data)

  5. LPI2C master read data from LPI2C slave with interrupt in nostop mode. (LPI2C Slave using interrupt to send the data) then LPI2C master read data again.

  6. LPI2C master send data to LPI2C slave with interrupt in nostop mode. (LPI2C Slave using interrupt to read the data) then LPI2C master send data again.