Download Renesas Embedded Application Programming Interface User`s

Transcript
Library Reference
4
6)
4.2.1
Serial Communication Interface (SCI)
__StopSCISending
__StopSCISending
Synopsis
Description
<Stop of SCI transmission>
Boolean __StopSCISending( unsigned long data1, unsigned short data2 )
data1
Setup data 1
data2
Setup data 2
Stops SCI transmission.
[data1]
For data1, set one of the following parameters as a channel.
RAPI_COM1
SCI channel 0
RAPI_COM2
SCI channel 1
RAPI_COM3
SCI channel 2
[data2]
For data2, specify the wait time until SCI transmission is stopped.
Return value
If stop of SCI transmission is successful, RAPI_TRUE is returned; otherwise, RAPI_FALSE is
returned.
Category
SCI
Reference
__StartSCISending
Remark
• When executing in clock synchronous mode, SCI reception of data also stops.
• If an undefined value is specified in the first argument, operation of the API cannot be
guaranteed.
Program example
#include ”rapi_sif_sh_7125.h”
void func( void )
{
/* Stopping SCI transmission for channel 0 */
__StopSCISending( RAPI_COM1, 50000 );
}
Rev.1.01 Aug. 27, 2008
REJ10J1906-0101
4-11