Configserialdrivernotify - Renesas M16C/62P Group Reference Manual

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

Advertisement

__ConfigSerialDriverNotify

Synopsis
<Register a notification function>
Boolean __ConfigSerialDriverNotify(unsigned long data, VoidFuncNotify *func)
data
func
Registers the notification function necessary to get various transmit/receive information
Description
of serial communication.
[data]
For data, the following values can be set.
RAPI_COM1
RAPI_COM3
RAPI_COM5
[func]
The function to be registered in func must be supplied to the serial I/O driver by the
user.
The serial I/O driver calls the function registered in func.
The serial I/O driver notifies the user of the transmit/receive status by an argument.
The type of the function to be registered is shown below.
void "any function name" (unsigned char notify);
The argument is detailed below.
(UART0, UART1, UART2)
b7 b6 b5 b4 b3 b2 b1 b0
0
(SI/O3,SI/O4)
b7 b6 b5 b4 b3 b2 b1 b0
0
Rev.1.00
2007.11.1
REC10B0002-0100
Setup data
Function pointer to be registered
UART0
UART2
SI/O4
0 X
X
0 X
X
X
0 X
X
0
0
0
0
RAPI_COM2
RAPI_COM4
0 No error
Overrun error
1 Error occurred
0 No error
Framing error
1 Error occurred
0 No error
Parity error
1 Error occurred
0 Not completed
Transmission completed
1 Completed
0 Not completed
Reception completed
1 Completed
0 Not completed
Transmission completed
1 Completed
0 Not completed
Reception completed
1 Completed
29
UART1
SI/O3

Advertisement

Table of Contents
loading

Table of Contents