Everything

R_SCIFAn_Serial_Receive

Starts FIFO embedded SCI reception (asynchronous mode).

Remark 1.      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.

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

 

[Syntax]

#include       "r_cg_macrodriver.h"

MD_STATUS   R_SCIFAn_Serial_Receive ( uint8_t * const rx_buf, uint16_t rx_num );

Remark         n is the channel number.

 

[Argument(s)]

I/O

Argument

Description

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