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#
Typedefs#
I2CSPM Peripheral.
Functions#
Initialize I2C peripheral.
Perform I2C transfer.
Typedef Documentation#
sl_i2cspm_t#
typedef I2C_TypeDef sl_i2cspm_t
I2CSPM Peripheral.
219
of file platform/driver/i2cspm/inc/sl_i2cspm.h
Function Documentation#
I2CSPM_Init#
void I2CSPM_Init (I2CSPM_Init_TypeDef * init)
Initialize I2C peripheral.
[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.
237
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.
[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.
253
of file platform/driver/i2cspm/inc/sl_i2cspm.h