Specifications
RX62N Group, RX621 Group RIIC Multi-Master Communication
R01AN0630EJ0100 Rev.1.00 Page 5 of 23
Sep 27, 2011
3.3 Constants
Table 5 lists the constants used in the sample code.
Table 5 Constants
Constant Setting Value Description
RIIC_OK 0 Used as the return value of the RiicStart() function.
RIIC_NG 1 Used as the return value of the RiicStart() function.
RIIC_BUS_BUSY 2 Used as the return value of the RiicStart() function.
RIIC_ST_MST_IDLE 0 Used as the return value of the RiicGetMstState() function.
RIIC_ST_MST_BUSY 1 Used as the return value of the RiicGetMstState() function.
RIIC_ST_MST_NACK 2 Used as the return value of the RiicGetMstState() function.
RIIC_ST_MST_AL 3 Used as the return value of the RiicGetMstState() function.
RIIC_ST_MST_TMO 4 Used as the return value of the RiicGetMstState() function.
RIIC_ST_MST_COMPLETE 5 Used as the return value of the RiicGetMstState() function.
RIIC_SET 1 Used as a flag setting value.
RIIC_CLEAR 0 Used as a flag setting value.
SELF_ADDRESS 0x10 Self address
MST_DATA_NUM (10+1) Used as the master send/receive count.
SLV_DATA_NUM 10 Used as the slave send/receive count.
MST_WRITE 0x00 Used as the argument to RiicMstStart().
MST_READ 0x01 Used as the argument to RiicMstStart().
3.4 Variables
Table 7 lists the global variables.
Table 7 Global Variables
Type Variable Name Description Functions Used By
uint8_t MstTrmBuff[256] Master mode transmit buffer main
uint8_t MstRcvBuff[256] Master mode receive buffer main
uint8_t SlvTrmBuff[256] Slave mode transmit buffer main
uint8_t SlvRcvBuff[256] Slave mode receive buffer main