Openserialdriver - Renesas M16C/62P Group Reference Manual

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

Advertisement

__OpenSerialDriver

Synopsis
<Open a serial port>
Boolean __OpenSerialDriver(unsigned long data)
data
Description
Opens and initializes a specified serial port.
[data]
For data, the following values can be set.
RAPI_COM1
RAPI_COM3
RAPI_COM5
If the serial port specification is incorrect, RAPI_FALSE is returned; otherwise,
Return value
RAPI_TRUE is returned.
Functionality
Serial I/O
Reference
__CloseSerialDriver
If an undefined value is specified in the argument, operation of the API cannot be
Remark
guaranteed.
Program example
#include "rapi_sif_m16c_62p"
void func( void )
{
}
Rev.1.00
2007.11.1
REC10B0002-0100
Setup data
UART0
UART2
SI/O4
/* Open serial driver */
return __OpenSerialDriver( RAPI_COM1 );
RAPI_COM2
RAPI_COM4
27
UART1
SI/O3

Advertisement

Table of Contents
loading

Table of Contents