Everything

R_IICmn_Master_Receive

Starts simple IIC master reception.

Remark         This API function performs byte-level simple IIC master reception the number of times specified by the argument rx_num, and stores the data in the buffer specified by the argument rx_buf.

 

[Syntax]

#include  “r_cg_macrodriver.h”

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

Remark         m is the unit number, and n is the channel number.

 

[Argument(s)]

I/O

Argument

Description

I

uint8_t adr;

Device address

O

uint8_t * const rx_buf;

Pointer to a buffer to store the received data

I

uint16_t rx_num;

Total amount of data to receive

Remark         Below is shown the format for specifying device address adr.

 

 

 

[Return value]

None.