R_SCIFAn_Serial_Send_Receive


Starts FIFO embedded SCI transmission/reception (clock synchronous mode).

Remarks 1.

This API function repeats the byte-level SCI transmission from the buffer specified in argument tx_buf the number of times specified in argument tx_num.

Remarks 2.

This API function repeats the byte-level SCI reception from the buffer specified in argument rx_buf the number of times specified in argument rx_num.

Remarks 3.

When performing a SCI transmission/reception, R_SCIFAn_Start must be called before this API function is called.

[Syntax]

MD_STATUS   R_SCIn_Serial_Send_Receive ( uint8_t * const tx_buf, uint16_t tx_num, uint8_t * const rx_buf, uint16_t rx_num );

Remark

n is the channel number.

[Argument(s)]

I/O

Argument

Description

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

O

uint8_t * const rx_buf;

Pointer to a buffer to store the reception data

I

uint16_t        rx_num;

Total amount of data to receive

[Return value]

Macro

Description

MD_OK

Normal completion

MD_ARGERROR

Invalid argument