I2C Simple Polled Master

Description

I2C Simple Polled Master driver.

This driver supports master mode, single bus-master only. It blocks while waiting for the transfer is complete, polling for completion in EM0.

Data Structures

struct I2CSPM_Init_TypeDef
I2C driver instance initialization structure.

Functions

void I2CSPM_Init ( I2CSPM_Init_TypeDef *init)
Initialize I2C peripheral.
I2C_TransferReturn_TypeDef I2CSPM_Transfer (I2C_TypeDef *i2c, I2C_TransferSeq_TypeDef *seq)
Perform I2C transfer.

Typedefs

typedef I2C_TypeDef sl_i2cspm_t
I2CSPM Peripheral.

Function Documentation

I2CSPM_Init()

void I2CSPM_Init ( I2CSPM_Init_TypeDef * init )

Initialize I2C peripheral.

This driver supports master mode only, single bus-master. In addition to configuring the I2C peripheral module, it also configures DK/STK specific setup in order to use the I2C bus.

Parameters
[in] init Pointer to I2C initialization structure

I2CSPM_Transfer()

I2C_TransferReturn_TypeDef I2CSPM_Transfer ( I2C_TypeDef * i2c,
I2C_TransferSeq_TypeDef * seq
)

Perform I2C transfer.

Parameters
[in] i2c Pointer to the peripheral port
[in] seq Pointer to sequence structure defining the I2C transfer to take place. The referenced structure must exist until the transfer has fully completed.
Returns
Returns status of ongoing transfer

Typedef Documentation

sl_i2cspm_t

typedef I2C_TypeDef sl_i2cspm_t

I2CSPM Peripheral.