Startserialsending - Renesas M16C/62P Group Reference Manual

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

Advertisement

__StartSerialSending

Synopsis
<Start transmission>
Boolean __StartSerialSending(unsigned long data, unsigned char wordNum,
unsigned int *SndDtBuf)
data
wordNum
SndDtBuf
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
RAPI_COM3
RAPI_COM5
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
__ConfigSerialDriverNotify,
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 )
{
}
Rev.1.00
2007.11.1
REC10B0002-0100
Setup data
Number of words transmitted
Pointer to the transmit data
UART0
UART2
SI/O4
/* Set 5 word data to transmit buffer of serial communication */
__StartSerialSending( RAPI_COM1, 5, buffer );
RAPI_COM2
RAPI_COM4
__StopSerialSending
35
UART1
SI/O3

Advertisement

Table of Contents
loading

Table of Contents