|ROM API functions / I2C API|
The I2C ROM Driver support polling and interrupts. In the master mode, 7-bit and 10-bit addressing are supported. The setup is as follows:
size_in_bytes = LPC_I2CD_API->i2c_get_mem_size();--> i2c_handle = LPC_I2CD_API->i2c_setup(LPC_I2C_BASE, (uint32_t*)&I2C_Handle );--> error_code = LPC_I2CD_API->i2c_set_bitrate((I2C_HANDLE_T*)i2c_handle,PCLK_in_Hz, bps_in_hz);-->
© NXP N.V. 2014. All rights reserved.