Everything

R_UARTm_Receive


Start UART data reception.

Remark 1.

This API function performs 1 byte-level UART reception the number of times specified by the argument rx_num, and stores the data in the buffer specified by the argument rx_buf.

Remark 2.

Starts after this API function is called, and R_UARTm_Start is then called.

[Syntax]

#include    "r_cg_macrodriver.h"
MD_STATUS R_UARTm_Receive ( const uint16_t * rx_buf, uint16_t rx_num );

Remark

m is the channel number.

[Argument(s)]

I/O

Argument(s)

Description

O

const uint16_t * rx_buf;

Pointer to a buffer to store the received data

I

uint16_t rx_num;

Total amount of data to receive

[Return value]

Macro

Description

MD_OK

Normal completion

MD_ARGERROR

Invalid argument specification