
Rev.1.00 May 22 2012
REJ09B0566
4.2.9 40BSerial Communication Interface R_SCI_Stop
5) R_SCI_Stop
Synopsis
Terminate SCI transmission or reception.
Prototype bool R_SCI_Stop(
uint8_t data1, // Channel selection
uint8_t data2
// Setup data 2
);
Description
Stops SCI transmission or reception.
[data1]
Select channel SCIFn (where n = 0 to 7).
[data2]
• Select the process to be stopped.
If multiple selections are required, use “|” to separate each selection.
PDL_SCI_TX Stop the transmission process.
PDL_SCI_RX Stop the reception process.
Return value
True if the channel is valid; otherwise false.
Category
SCI
Reference
R_SCI_Send, R_SCI_Receive
Remarks
None.
Program example
/* PDL definitions */
#include “r_pdl_sci.h”
/* PDL device-specific definitions */
#include “r_pdl_definitions.h”
void func(void)
{
/* Terminate SCI reception on channel 0 */
R_SCI_Stop(
0,
PDL_SCI_RX
);
}
Comentários a estes Manuais