Basicsendingstatusread - Renesas M16C/62P Group Reference Manual

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

Advertisement

__BasicSendingStatusRead

Synopsis
<Read transmit status>
Boolean __BasicSendingStatusRead(unsigned long data)
data
Description
Returns the transmit status of serial communication. For data, the following values can
be set.
Return value
If no data exists in the transmit buffer, RAPI_TRUE is returned; if data exists,
RAPI_FALSE is returned.
Functionality
Serial I/O
Reference
__BasicStartSerialSending,
Remark
If an undefined value is specified in the argument, operation of the API cannot be
guaranteed.
Program example
#include "rapi_sif_m16c_62p"
void func( void )
{
}
Rev.1.00
2007.11.1
REC10B0002-0100
Setup data
RAPI_COM1
UART0
RAPI_COM3
UART2
RAPI_COM5
SI/O4
..........
if (__BasicSendingStatusRead( RAPI_COM1 ) == RAPI_TRUE) {
/* Transmission completion */
}
..........
RAPI_COM2
RAPI_COM4
__BasicStopSerialSending
24
UART1
SI/O3

Advertisement

Table of Contents
loading

Table of Contents