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_STATUS 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)]
|
|
|
|
uint8_t adr;
|
Slave address
|
|
uint8_t * const rx_buf;
|
Pointer to a buffer to store the received data
|
|
uint16_t rx_num;
|
Total amount of data to receive
|
|
uint8_t wait;
|
Setup time of start conditions
|
[Return value]
|
|
MD_OK
|
Normal completion
|
MD_ERROR1
|
Bus communication status
|
MD_ERROR2
|
Bus not released status
|