User`s manual

RX62N Group, RX621 Group 4. Library Reference
6) R_IIC_SlaveMonitor
Synopsis
Monitor the bus.
Prototype
bool R_IIC_SlaveMonitor(
uint8_t data1,
// Channel selection
uint16_t data2,
// Channel configuration
uint8_t * data3,
// Receive data start address
uint16_t data4,
// Receive threshold
void * func,
// Callback function
uint8_t data5
// Interrupt priority level
);
Description
Monitor the bus until an address match occurs and store any data received.
Register the storage area and transfer method for data received on the selected I²C channel.
[data1]
Select channel IICn (where n = 0 or 1).
[data2]
Select the operation options.
The default setting is shown in bold. Specify PDL_NO_DATA to use the default.
DMAC / DTC trigger control
PDL_IIC_RX_DMAC_DTC_TRIGGER_DISABLE or
PDL_IIC_RX_DMAC_TRIGGER_ENABLE or
PDL_IIC_RX_DTC_TRIGGER_ENABLE
Disable or enable activation of the
DMAC or DTC when a byte is received.
PDL_IIC_TX_DMAC_DTC_TRIGGER_DISABLE or
PDL_IIC_TX_DMAC_TRIGGER_ENABLE or
PDL_IIC_TX_DTC_TRIGGER_ENABLE
Disable or enable activation of the
DMAC or DTC for data transmission.
[data3]
The start address of the storage area for any received data.
If the DMAC or DTC shall be used to handle the received data, specify PDL_NO_PTR.
[data4]
The number of bytes in the storage area.
If the DMAC or DTC shall be used to handle the received data, specify PDL_NO_DATA.
[func]
Specify PDL_NO_FUNC or a callback function name, depending on the required transfer method.
Transfer method
Parameter
Polling
PDL_NO_FUNC. This function will continue until a Stop condition is detected
or the master tries to read data from this slave.
Interrupts
The function to be called when a Stop condition is detected or the master tries
to read data from this slave.
DMAC or DTC
The function to be called when a Stop or error condition is detected.
[data5]
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; otherwise false.
Category
I²C
Reference
R_IIC_Create, R_IIC_GetStatus, R_IIC_SlaveSend
R20UT0084EE0112 Rev.1.12 Page 4-198
July. 16, 2014