
UM10800
All information provided in this document is subject to legal disclaimers.
© NXP Semiconductors N.V. 2016. All rights reserved.
User manual
Rev. 1.2 — 5 October 2016
420 of 487
NXP Semiconductors
UM10800
Chapter 29: LPC82x ROM API I2C driver routines
29.4.9 I2C Slave Transmit Polling
29.4.10 I2C Slave Receive Interrupt
29.4.11 I2C Slave Transmit Interrupt
Table 373. I2C Slave Transmit Polling
Routine
I2C Slave Transmit Polling
Prototype
ErrorCode_t i2c_slave_transmit_poll(I2C_HANDLE_T* , I2C_PARAM* ,
I2C_RESULT*)
Input parameter
I2C_HANDLE_T - Handle to the allocated SRAM area.
I2C_PARAM - Pointer to the I2C PARAM struct.
I2C_RESULT - Pointer to the I2C RESULT struct.
Return
ErrorCode.
Description
Sends data bytes back to master. When the task is completed, the function
returns to the line after the call.
Table 374. I2C Slave Receive Interrupt
Routine
I2C Slave Receive Interrupt
Prototype
ErrorCode_t i2c_slave_receive_intr(I2C_HANDLE_T* , I2C_PARAM* ,
I2C_RESULT*)
Input parameter
I2C_HANDLE_T - Handle to the allocated SRAM area.
I2C_PARAM - Pointer to the I2C PARAM struct.
I2C_RESULT - Pointer to the I2C RESULT struct.
Return
ErrorCode.
Description
Receives data from master. Program control will be returned immediately and
task will be completed on an interrupt-driven basis. When task is completed,
the callback function is called.
Table 375. I2C Slave Transmit Interrupt
Routine
I2C Slave Transmit Interrupt
Prototype
ErrorCode_t i2c_slave_transmit_intr(I2C_HANDLE_T* , I2C_PARAM* ,
I2C_RESULT*)
Input parameter
I2C_HANDLE_T - Handle to the allocated SRAM area.
I2C_PARAM - Pointer to the I2C PARAM struct.
I2C_RESULT - Pointer to the I2C RESULT struct.
Return
ErrorCode.
Description
Sends data to the Master. Program control will be returned immediately and
task will be completed on an interrupt-driven basis. When task is completed,
the callback function is called.