beautypg.com

Renesas RJJ10J1643-0101 User Manual

Page 32

background image

Rev.1.01 2007.02.16
RJJ10J1643-0101

30

__BasicStartSerialSending

Synopsis

Boolean _BasicStartSerialSending(unsigned long data1, unsigned int data2)

data Setup

data

data Transmit

data

Description

Starts sending 1 data of serial communication.

For data1, the following values can be set.

(M16C)

RAPI_COM1 UART0

RAPI_COM2 UART1

RAPI_COM3 UART2

RAPI_COM4 SI/O3

RAPI_COM5 SI/O4

(R8C)

RAPI_COM1 UART0

RAPI_COM2 UART1

(H8/300H)

RAPI_COM1

SCI3 channel 1

RAPI_COM2

SCI3 channel 2

RAPI_COM3

SIC3 channel 3

Return value

If data transmission in serial communication was successfully started, RAPI_TRUE is
returned; if failed, RAPI_FALSE is returned.

Functionality

Serial

I/O

Reference

__BasicSendingStatusRead

,

__BasicStopSerialSending

Remark

For the H8/300H, wait for at least a 1-bit period before calling this API after
__BasicSetSerialFormat was called.

The specifiable serial ports differ with each CPU used.

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

guaranteed.

Program example

#include ”rapi_sif_r8c_13.h”

Void func( void )
{
..........
__BasicStartSerialSending( RAPI_COM1, 0x00AA );
..........
}