Basicreceivingstatusread - Renesas M16C/62P Group Reference Manual

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

Advertisement

__BasicReceivingStatusRead

Synopsis
<Read receive status>
unsigned int __BasicReceivingStatusRead(unsigned long data)
Description
Returns the receive status of serial communication.
[data]
For data, the following values can be set.
The receive status of serial communication is returned. The returned value is one of
Return value
the following.
(UART0, UART1, UART2)
(SI/O3, SI/O4)
Functionality
Serial I/O
Reference
__BasicStartSerialReceiving,
Remark
Program example
#include "rapi_sif_m16c_62p"
void func( void )
{
}
Rev.1.00
2007.11.1
REC10B0002-0100
data
Setup data
RAPI_COM1
UART0
RAPI_COM3
UART2
RAPI_COM5
SI/O4
RAPI_RX_INCOMPLETE
Other than above
RAPI_RX_INCOMPLETE
Other than above
If an undefined value is specified in the argument, operation of the API cannot be
guaranteed.
unsigned int rcv_data;
..........
rcv_data = __BasicReceivingStatusRead( RAPI_COM1 );
..........
RAPI_COM2
RAPI_COM4
Reception not complete yet.
Reception complete. The value read from the UARTi receive
buffer register (i = 0 to 2).
Reception not complete yet.
Reception complete. Low-order 8 bits: The value read from the
SI/Oi transmit/receive register (i = 3, 4).
__BasicStopSerialReceiving
23
UART1
SI/O3

Advertisement

Table of Contents
loading

Table of Contents