Startserialreceiving - Renesas M16C/62P Group Reference Manual

Group renesas embedded application programming interface
Hide thumbs Also See for M16C/62P Group:
Table of Contents

Advertisement

__StartSerialReceiving

Synopsis
<Start reception>
Boolean __StartSerialReceiving(unsigned long data, unsigned char wordNum,
unsigned int *RcvDtBuf)
Description
Starts reception of serial communication and gets received data by a specified number
of words. When acquisition of received data is complete, this API calls a notification
function (if a notification function is registered).
[data]
For data, the following values can be set.
Return value
If reception of serial communication was successfully started, RAPI_TRUE is returned;
if failed, RAPI_FALSE is returned.
Functionality
Serial I/O
Reference
__ConfigSerialDriverNotify,
Remark
If an undefined value is specified in the first argument, operation of the API cannot
be guaranteed.
Program example
#include "rapi_sif_m16c_62p"
unsigned int buffer[10];
void func( void )
{
}
Rev.1.00
2007.11.1
REC10B0002-0100
data
Setup data
wordNum
Number of words received
RcvDtBuf
Pointer to the buffer in which received data is stored
RAPI_COM1
UART0
RAPI_COM3
UART2
RAPI_COM5
SI/O4
/* Get 5 word data received in serial communication */
__StartSerialReceiving( RAPI_COM1, 5, buffer );
RAPI_COM2
RAPI_COM4
__StopSerialReceiving
34
UART1
SI/O3

Advertisement

Table of Contents
loading

Table of Contents