User`s manual
RX62N Group, RX621 Group 4. Library Reference
[data6]
The interrupt priority level. Select between 1 (lowest priority) and 15 (highest priority).
This parameter will be ignored if PDL_NO_FUNC is specified for parameter func.
Return value
True if all parameters are valid, exclusive and achievable and a normal transfer completed;
otherwise false.
Category
I²C
Reference
R_IIC_Create, R_IIC_GetStatus
Remarks
•
If a callback function is specified, transmission interrupts are used.
Please see the notes on callback function usage in §6.
•
If the Start condition is enabled and the previous transfer did not issue a Stop condition, a
Repeated Start condition shall be generated.
•
If the Start condition is disabled, the slave address will not be transmitted.
•
If no callback function is specified for transmission completion, this function will monitor the
status flags to manage the data transmission. If the I²C channel’s registers are modified directly
by the user, this function may lock up.
•
If false is returned, use R_IIC_GetStatus to check if an unexpected event on I²C bus was the
cause of the failure. If the transfer has ended prematurely, use R_IIC_Control to issue a Stop
condition.
•
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"
const uint8_t data_array[5] = {0x23, 0x48, 0x59, 0x60, 0xFE};
void func(void)
{
/* Send 5 bytes to device 0x0A0 on channel 1, using polling */
R_IIC_MasterSend(
1,
PDL_NO_DATA,
0x0A0,
data_array,
5,
PDL_NO_FUNC,
0
);
}
R20UT0084EE0112 Rev.1.12 Page 4-194
July. 16, 2014