beautypg.com

Setserialformat – Renesas M16C/62P Group User Manual

Page 33

background image

Rev.1.00 2007.11.1
REC10B0002-0100

31

__SetSerialFormat

Synopsis

Boolean __SetSerialFormat(unsigned long data1, unsigned char data2)

data1

Setup data 1

data2

Setup data 2

Description

Sets serial communication according to specified parameters.

For details about parameters, refer to the description of

__BasicSetSerialFormat

.

Return value

If serial communication was successfully set, RAPI_TRUE is returned; if settings failed,

RAPI_FALSE is returned.

Functionality

Serial

I/O

Reference

Remark

If an undefined value is specified in the first argument, operation of the API cannot

be guaranteed.

Program example

#include ”rapi_sif_m16c_62p”

Boolean func( void )
{
/* 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);

}