Basicsetserialformat - Renesas M16C/62P Group Reference Manual

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

Advertisement

__BasicSetSerialFormat

Synopsis
<Set serial communication>
Boolean __BasicSetSerialFormat(unsigned long data1, unsigned char data2)
data1
data2
Sets serial communication according to specified parameters.
Description
[data1]
For data1, the following values can be set. To set multiple definition values at the same
time, use the symbol "|" to separate each specified value.
RAPI_COM1
RAPI_COM3
RAPI_COM5
For serial communication mode, the following values can be set.
(UART0, UART1, UART2)
RAPI_SM_SYNC
RAPI_SM_ASYNC
(SI/O3, SI/O4)
RAPI_SIO_SM_SYNC
For the data length format of clock asynchronous serial communication, the following
values can be set.
If the API is used in clock synchronous serial communication mode, do not set these
values.
(UART0, UART1, UART2)
RAPI_BIT_7
RAPI_BIT_9
For the clock source of serial communication, the following values can be set.
(UART0, UART1, UART2)
RAPI_CKDIR_INT
RAPI_CKDIR_EXT
(SI/O3, SI/O4)
RAPI_SIO_CKDIR_INT
RAPI_SIO_CKDIR_EXT
For the stop bit length of clock asynchronous serial communication, the following
values can be set.
If the API is used in clock synchronous serial communication mode, do not set these
values.
(UART0, UART1, UART2)
RAPI_STPB_1
For the parity bit of clock asynchronous serial communication, the following values can
be set.
Rev.1.00
2007.11.1
REC10B0002-0100
Setup data 1
Setup data 2
UART0
UART2
SI/O4
Clock synchronous serial communication mode
Clock asynchronous serial communication mode
Clock synchronous serial communication mode
Transfer data length 7 bits
Transfer data length 9 bits
Internal clock is used as the clock source of serial communication.
External clock is used as the clock source of serial communication.
Internal clock is used as the clock source of serial communication.
External clock is used as the clock source of serial communication.
1 stop bit
18
RAPI_COM2
UART1
RAPI_COM4
SI/O3
RAPI_BIT_8
Transfer data length 8 bits
RAPI_STPB_2
2 stop bits

Advertisement

Table of Contents
loading

Table of Contents