Setserialformat - Renesas M16C/62P Group Reference Manual

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

Advertisement

__SetSerialFormat

Synopsis
<Set serial communication>
Boolean __SetSerialFormat(unsigned long data1, unsigned char data2)
data1
data2
Sets serial communication according to specified parameters.
Description
For details about parameters, refer to the description of __BasicSetSerialFormat.
If serial communication was successfully set, RAPI_TRUE is returned; if settings failed,
Return value
RAPI_FALSE is returned.
Functionality
Serial I/O
Reference
If an undefined value is specified in the first argument, operation of the API cannot
Remark
be guaranteed.
Program example
#include "rapi_sif_m16c_62p"
Boolean func( void )
{
}
Rev.1.00
2007.11.1
REC10B0002-0100
Setup data 1
Setup data 2
/* Set the data of RAPI_COM1 to serial driver */
return __SetSerialFormat(RAPI_COM1 | RAPI_SM_SYNC | RAPI_CKDIR_INT |
RAPI_BCSS_F1 | RAPI_DPOL_NON | RAPI_LSB_SEL, 20);
31

Advertisement

Table of Contents
loading

Table of Contents