void I2C_Open(unsigned char u8I2CSel, unsigned long u32SYSCLK, unsigned long u32I2CCLK);
void I2C_Close(unsigned char u8I2CSel);
void I2C_EnableInt(unsigned char u8I2CSel);
void I2C_DisableInt(unsigned char u8I2CSel);
unsigned char I2C_GetStatus(unsigned char u8I2CSel);
void I2C_SetSlaveAddrMask(unsigned char u8I2CSel, unsigned char u8SlaveNo, unsigned char u8SlaveAddrMask);
void I2C_EnableTimeout(unsigned char u8I2CSel);
void I2C_DisableTimeout(unsigned char u8I2CSel);
void I2C_ClearTimeoutFlag(unsigned char u8I2CSel);
void I2C_SLAVE_ADDRESS_MASK_ENABLE(unsigned char u8I2CSel, unsigned char u8I2CAddMaskBit);
void I2C_SLAVE_ADDRESS_MASK_DISABLE(unsigned char u8I2CSel, unsigned char u8I2CAddMaskBit);
只有这些函数,另外没看到有I2C的示例。
|