User`s manual

RX62N Group, RX621 Group 5. Usage Examples
if (R_IIC_MasterSend(
0,
PDL_NO_DATA,
EEPROM_ADDRESS,
eeprom_data_array_1,
4,
PDL_NO_FUNC,
0
) == false)
{
/* Read the channel and transfer status */
R_IIC_GetStatus(
0,
&status_flags,
&TxChars,
PDL_NO_PTR
);
/* Review the flags and transmit count to decide on the next action */
}
else
{
/* Wait for 5ms while the EEPROM updates */
R_CMT_CreateOneShot(
0,
0,
5E-3,
PDL_NO_FUNC,
0
);
}
}
Figure 5-27: Configure the I²C channel and write 3 data bytes to the first locations
R20UT0084EE0112 Rev.1.12 Page 5-48
July. 16, 2014