Detailed 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

Macros

#define I2CSPM_INIT_DEFAULT

Functions

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

Macro Definition Documentation

#define I2CSPM_INIT_DEFAULT
Value:
{ I2C0, /* Use I2C instance 0 */ \
gpioPortC, /* SCL port */ \
11, /* SCL pin */ \
gpioPortC, /* SDA port */ \
10, /* SDA pin */ \
0, /* Use currently configured reference clock */ \
I2C_FREQ_STANDARD_MAX, /* Set to standard rate */ \
i2cClockHLRStandard, /* Set to use 4:4 low/high duty cycle */ \
}

Default config for I2C init structure. The default may be overridden by a i2cspmconfig.h file.

Definition at line 118 of file i2cspm.h .

Referenced by BOARD_init() .

Function Documentation