User`s manual

RX62N Group, RX621 Group 4. Library Reference
Remarks
If a callback function is specified, interrupts are used.
Use R_IIC_GetStatus in the callback function to identify the activity that has occurred.
Please see the notes on callback function usage in §6.
If no callback function is specified, this function will read the status flags to monitor the bus
activity. Use R_IIC_GetStatus to identify the activity that has occurred.
If the I²C channel’s control registers are directly modified by the user, this function may lock up.
If the master sends more data than is expected and the DMAC / DTC trigger is disabled, this
function will issue a NACK to the master.
When a Stop condition is detected, if the DMAC or DTC is used for transferring data, use
R_DMAC_Control or R_DTC_Control to re-set the address and count before the next transfer
begins.
False will be returned if the DMAC channel has not been allocated using R_DMAC_Create.
Program example
/* RPDL definitions */
#include "r_pdl_iic.h"
/* RPDL device-specific definitions */
#include "r_pdl_definitions.h"
volatile uint8_t data_array[5];
void func(void)
{
/* Monitor channel 0, using polling */
R_IIC_SlaveMonitor(
0,
PDL_NO_DATA,
data_array,
5,
PDL_NO_FUNC,
0
);
}
R20UT0084EE0112 Rev.1.12 Page 4-199
July. 16, 2014