Everything

R_SCIn_IIC_Master_Receive

Starts SCI master reception (simple I2C mode).

Remark 1.      This API function handles SCI master transmission to the slave device at the address specified by the argument adr. SCI master reception in byte units is repeated the number of times specified by the argument rx_num and the received data are stored in the buffer at the location specified by the argument rx_buf.

Remark 2.      This API function internally calls R_SCIn_IIC_StartCondition to handle processing to start SCI master reception.

Remark 3.      When performing a SCI master reception, R_SCIn_Start must be called before this API function is called.

 

[Syntax]

void    R_SCIn_IIC_Master_Receive ( uint8_t adr, uint8_t * const rx_buf, uint16_t rx_num );

Remark         n is the channel number.

 

[Argument(s)]

I/O

Argument

Description

I

uint8_t adr;

Slave address

O

uint8_t * const rx_buf;

Pointer to a buffer to store the reception data

I

uint16_t rx_num;

Total amount of data to receive

 

[Return value]

None.