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)]
|
|
|
|
uint8_t adr;
|
Slave address
|
|
uint8_t * const tx_buf;
|
Pointer to a buffer storing the transmission data
|
|
uint16_t tx_num;
|
Total amount of data to send
|
|
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
|