Renesas M16C/62P Group Reference Manual page 32

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

Advertisement

Return value
If the serial port specification is incorrect, RAPI_FALSE is returned; otherwise,
RAPI_TRUE is returned.
Functionality
Serial I/O
Reference
__StartSerialReceiving,
If an undefined value is specified in the first argument, operation of the API cannot
Remark
be guaranteed.
Program example
#include "rapi_sif_m16c_62p"
void Notify(unsigned char result) {
}
Boolean func( void )
{
}
Rev.1.00
2007.11.1
REC10B0002-0100
__StartSerialSending
if ((result&RAPI_OVER_ERR) == RAPI_OVER_ERR) {
/* Overrun error */
}
if ((result&RAPI_FRAMING_ERR) == RAPI_FRAMING_ERR) {
/* Framing error */
}
if ((result&RAPI_PARITY_ERR) == RAPI_PARITY_ERR) {
/* Parity error */
}
if ((result&RAPI_TX_END) == RAPI_TX_END) {
/* Transmission completion */
}
if ((result&RAPI_RX_END) == RAPI_RX_END) {
/* Reception completion */
}
/* Set callback functions of RAPI_COM1 to serial driver */
return __ConfigSerialDriverNotify( RAPI_COM1, Notify );
30

Advertisement

Table of Contents
loading

Table of Contents