Setserialinterrupt - Renesas M16C/62P Group Reference Manual

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

Advertisement

__SetSerialInterrupt

Synopsis
<Set serial interrupts>
Boolean __SetSerialInterrupt(unsigned long data)
data
Description
Sets serial interrupts according to specified parameters.
[data]
For data, the following values can be set.
RAPI_COM1
RAPI_COM3
RAPI_COM5
For interrupt settings, the following values can set.
(UART0, UART1, UART2)
RAPI_INT_TX_DIS
RAPI_INT_TX_LV_1
RAPI_INT_TX_LV_2
RAPI_INT_TX_LV_3
RAPI_INT_TX_LV_4
RAPI_INT_TX_LV_5
RAPI_INT_TX_LV_6
RAPI_INT_TX_LV_7
RAPI_INT_RX_DIS
RAPI_INT_RX_LV_1
RAPI_INT_RX_LV_2
RAPI_INT_RX_LV_3
RAPI_INT_RX_LV_4
RAPI_INT_RX_LV_5
RAPI_INT_RX_LV_6
RAPI_INT_RX_LV_7
(SI/O3, SI/O4)
RAPI_INT_SIO_DIS
RAPI_INT_SIO_LV_1
RAPI_INT_SIO_LV_2
RAPI_INT_SIO_LV_3
RAPI_INT_SIO_LV_4
RAPI_INT_SIO_LV_5
RAPI_INT_SIO_LV_6
RAPI_INT_SIO_LV_7
Return value
If the serial port specification is incorrect, RAPI_FALSE is returned; otherwise,
RAPI_TRUE is returned.
Rev.1.00
2007.11.1
REC10B0002-0100
Setup data
UART0
RAPI_COM2
UART2
RAPI_COM4
SI/O4
Transmit interrupt disabled
Transmit interrupt priority level 1
Transmit interrupt priority level 2
Transmit interrupt priority level 3
Transmit interrupt priority level 4
Transmit interrupt priority level 5
Transmit interrupt priority level 6
Transmit interrupt priority level 7
Receive interrupt disabled
Receive interrupt priority level 1
Receive interrupt priority level 2
Receive interrupt priority level 3
Receive interrupt priority level 4
Receive interrupt priority level 5
Receive interrupt priority level 6
Receive interrupt priority level 7
SI/O interrupt disabled
SI/O interrupt priority level 1
SI/O interrupt priority level 2
SI/O interrupt priority level 3
SI/O interrupt priority level 4
SI/O interrupt priority level 5
SI/O interrupt priority level 6
SI/O interrupt priority level 7
32
UART1
SI/O3

Advertisement

Table of Contents
loading

Table of Contents