Startserialsending – Renesas M16C/62P Group User Manual
Page 37

Rev.1.00 2007.11.1
REC10B0002-0100
35
__StartSerialSending
Synopsis
transmission> Boolean __StartSerialSending(unsigned long data, unsigned char wordNum, unsigned int *SndDtBuf) data Setup data wordNum Number of words transmitted SndDtBuf Pointer to the transmit data Description Starts transmission of serial communication and writes transmit data to the transmit buffer by a specified number of words. When transmission of all transmit data is complete, this API calls a notification function (if a notification function is registered). [data] For data, the following values can be set. RAPI_COM1 UART0 RAPI_COM2 UART1 RAPI_COM3 UART2 RAPI_COM4 SI/O3 RAPI_COM5 SI/O4 Return value If transmission of serial communication was successfully started, RAPI_TRUE is returned; if failed, RAPI_FALSE is returned. Functionality Serial I/O Reference Remark • If an undefined value is specified in the first argument, operation of the API cannot be guaranteed. Program example #include ”rapi_sif_m16c_62p” unsigned int buffer[10];
void func( void )
{
/* Set 5 word data to transmit buffer of serial communication */
__StartSerialSending( RAPI_COM1, 5, buffer );
}