beautypg.com

Renesas RJJ10J1643-0101 User Manual

Page 33

background image

Rev.1.01 2007.02.16
RJJ10J1643-0101

31

__BasicReceivingStatusRead

Synopsis

unsigned int __BasicReceivingStatusRead(unsigned long data)

data Setup

data

Description

Returns the receive status of serial communication.

[data]

For data, the following values can be set.

(M16C)

RAPI_COM1 UART0

RAPI_COM2 UART1

RAPI_COM3 UART2

RAPI_COM4 SI/O3

RAPI_COM5 SI/O4

(R8C)

RAPI_COM1 UART0

RAPI_COM2 UART1

(H8/300H)

RAPI_COM1

SCI3 channel 1

RAPI_COM2

SCI3 channel 2

RAPI_COM3

SCI3 channel 3

Return value

The receive status of serial communication is returned. The returned value is one of
the following.

(M16C) (UART0, UART1, UART2)

RAPI_RX_INCOMPLETE

Reception not complete yet.

Other than above

Reception complete. The value read from the UARTi receive

buffer register (i = 0 to 2).

(M16C) (SI/O3, SI/O4)

RAPI_RX_INCOMPLETE

Reception not complete yet.

Other than above

Reception complete. Low-order 8 bits: The value read from the

SI/Oi transmit/receive register (i = 3, 4).

(R8C)

RAPI_RX_INCOMPLETE

Reception not complete yet.

Other than above

Reception complete. The value read from the UARTi receive

buffer register (i = 0, 1).

(H8/300H)

RAPI_RX_INCOMPLETE

Reception not complete yet.

Other than above

Reception complete.
High-order 8 bits: The value read from the serial status register.
Low-order 8 bits: The value read from the receive data register.
(Not read if an error occurred.)

Functionality

Serial I/O

Reference

__BasicStartSerialReceiving

,

__BasicStopSerialReceiving