Everything

R_IICAn_Master_Receive

Starts IICA master reception.

Remark         This API function performs byte-level IICA 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”

MD_STATUD   R_IICAn_Master_Receive ( uint8_t adr, uint8_t * const rx_buf,
 uint16_t rx_num, uint8_t wait );

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 received data

I

uint16_t rx_num;

Total amount of data to receive

I

uint8_t wait

Setup time of start conditions

 

[Return value]

Macro

Description

MD_OK

Normal completion

MD_ERROR1

Bus communication status

MD_ERROR2

Bus not released status