3.2.27 I 2 C bus interface (RIIC)

Below is a list of API functions output by the Code Generator for I2C bus interface use.

Table 3.27

API Functions: [I2C Bus Interface]

API Function Name

Function

R_RIICn_Create

Performs initialization necessary to control the I2C bus interface.

R_RIICn_Create_UserInit

Performs user-defined initialization relating to the I2C bus interface.

r_riicn_error_interrupt

Performs processing in response to the transfer error/event generation interrupts (EEI).

r_riicn_receive_interrupt

Performs processing in response to the receive data full interrupts (RXI).

r_riicn_transmit_interrupt

Performs processing in response to the transmit data empty interrupts (TXI).

r_riicn_transmitend_interrupt

Performs processing in response to the transmit end interrupts (TEI).

R_RIICn_Start

Starts RIIC communication.

R_RIICn_Stop

Ends RIIC communication.

R_RIICn_Master_Send

Starts RIIC master transmission.

R_RIICn_Master_Receive

Starts RIIC master reception.

R_RIICn_Slave_Send

Starts RIIC slave transmission.

R_RIICn_Slave_Receive

Starts RIIC slave reception.

R_RIICn_StartCondition

Issues the start condition and causes a transfer error and an event generation interrupt (EEI).

R_RIICn_StopCondition

Issues the stop condition and causes a transfer error and an event generation interrupt (EEI).

r_riicn_callback_receiveerror

Of the internal processing for transfer error/event generation interrupts (EEI), this function handles processing specialized in the arbitration-lost detection, NACK detection, and timeout detection.

r_riicn_callback_transmitend

Of the internal processing for transfer error/event generation interrupts (EEI), this function handles processing specialized in the start condition detection in response to calling of R_RIICn_Master_Send.

r_riicn_callback_receiveend

Of the interrupt processing for transfer error/event generation interrupts (EEI), processing specialized in the start condition detection in response to calling of R_RIICn_Master_Receive is performed.