I2C Simple Polled Master#

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.

Modules#

I2CSPM_Init_TypeDef

Typedefs#

typedef I2C_TypeDef

I2CSPM Peripheral.

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.

Typedef Documentation#

sl_i2cspm_t#

typedef I2C_TypeDef sl_i2cspm_t

I2CSPM Peripheral.


Definition at line 224 of file platform/driver/i2cspm/inc/sl_i2cspm.h

Function Documentation#

I2CSPM_Init#

void I2CSPM_Init (I2CSPM_Init_TypeDef * init)

Initialize I2C peripheral.

Parameters
[in]init

Pointer to I2C initialization structure.

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.


Definition at line 242 of file platform/driver/i2cspm/inc/sl_i2cspm.h

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.


Definition at line 258 of file platform/driver/i2cspm/inc/sl_i2cspm.h