R_IICmn_Master_Send

Starts simple IIC master transmission.

Remark This API function repeats the byte-level simple IIC 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

void R_IICmn_Master_Send ( uint8_t adr, uint8_t * const tx_buf, uint16_t tx_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

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

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

[Return value]

None.