Starts IICA master transmission.
Remark This API function repeats the byte-level IICA master transmission from the buffer specified in argument tx_buf the number of times specified in argument tx_num.
[Syntax]
#include “r_cg_macrodriver.h”
MD_STATUS   
R_IICAn_Master_Send ( uint8_t adr, uint8_t * const 
tx_buf,
 uint16_t tx_num, uint8_t wait 
);
Remark n is the channel number.
[Argument(s)]
| I/O | Argument | Description | 
| I | uint8_t adr; | Slave address | 
| I | uint8_t * const tx_buf; | Pointer to a buffer storing the transmission data | 
| I | uint16_t tx_num; | Total amount of data to send | 
| 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 |