beautypg.com

Renesas RJJ10J1643-0101 User Manual

Page 43

background image

Rev.1.01 2007.02.16
RJJ10J1643-0101

41

__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

__BasicSetSerialFormat

Remark

The specifiable serial ports differ with each CPU used.

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

be guaranteed.

Program example

#include ”rapi_sif_r8c_13.h”

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);

………………
}