Pollingserialreceiving - Renesas M16C/62P Group Reference Manual

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

Advertisement

__PollingSerialReceiving

Synopsis
<Polling reception>
Boolean __PollingSerialReceiving(unsigned long data)
Description
Performs reception of serial communication by polling. This API gets received data by
an amount specified by __StartSerialReceiving. When acquisition of received data is
complete, it calls a notification function (if a notification function is registered).
[data]
For data, the following values can be set.
Return value
If the serial port specification is incorrect, RAPI_FALSE is returned; otherwise,
RAPI_TRUE is returned.
Functionality
Serial I/O
__ConfigSerialDriverNotify, __SetSerialInterrupt,
Reference
Remark
If an undefined value is specified in the 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
RAPI_COM1
UART0
RAPI_COM3
UART2
RAPI_COM5
SI/O4
/* Reception interrupt disable */
__SetSerialInterrupt( RAPI_COM1 | RAPI_INT_TX_DIS | RAPI_INT_RX_DIS );
/* Start reception */
__StartSerialReceiving( RAPI_COM1, 5, buffer );
while(1){
__PollingSerialReceiving( RAPI_COM1 );
}
RAPI_COM2
RAPI_COM4
__StartSerialReceiving
38
UART1
SI/O3

Advertisement

Table of Contents
loading

Table of Contents