User`s manual
RX62N Group, RX621 Group 4. Library Reference
6) R_SCI_Control
Synopsis
Control the SCI channel.
Prototype
bool R_SCI_Control(
uint8_t data1,
// Channel selection
uint8_t data2
// Channel control
);
Description
Stops SCI transmission or reception.
[data1]
Select channel SCIn (where n = 0 to 6, but not 4).
[data2]
Control the channel. If multiple selections are required, use "|" to separate each selection.
•
Select the process to be stopped.
PDL_SCI_STOP_TX
Stop the transmission process.
If a reception process is active, the transmit output will not become idle
until the reception process has stopped.
PDL_SCI_STOP_RX
Stop the reception process.
If a transmission process is active, the receive error flags may be set
erroneously. These can be ignored and will be cleared when a new
reception process is started.
The option "PDL_SCI_STOP_TX_AND_RX" can be used to select both processes.
If both processes are selected, transmission and reception will stop immediately.
•
Generate a Space or Mark signal when idle.
PDL_SCI_OUTPUT_SPACE
Set the idle output to Space (logic 0).
This can be used to generate a Break condition.
PDL_SCI_OUTPUT_MARK
Set the idle output to Mark (logic 1).
•
Error flag control
PDL_SCI_CLEAR_RECEIVE_ERROR_FLAGS
Try to clear the receive error flags.
•
Manual SCK control
PDL_SCI_GSM_SCK_STOP or
PDL_SCI_GSM_SCK_START
Disable or enable the clock output (can be used while GSM
mode is enabled).
Return value
True if all parameters are valid; otherwise false.
Category
SCI
Reference
R_SCI_Create, R_SCI_Send, R_SCI_Receive
Remarks
•
None.
R20UT0084EE0112 Rev.1.12 Page 4-179
July. 16, 2014