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)]
|
|
|
|
const uint16_t * rx_buf;
|
Pointer to a buffer to store the received data
|
|
uint16_t rx_num;
|
Total amount of data to receive
|
[Return value]
|
|
MD_OK
|
Normal completion
|
MD_ARGERROR
|
Invalid argument specification
|