»
Symbian OS v6.1 Edition for C++ »
API Reference »
Serial Communications Server Client-Side »
Configuration constants
Configuration constants
Support
Supported from 5.0
Parity error control constants
const TUint KConfigParityErrorFail
Description
When a character containing a parity error is received
complete any pending read operation with a KErrCommsParity
error.
const TUint KConfigParityErrorIgnore
Description
Ignore parity errors. The character containing an error will
be discarded.
KConfigParityErrorReplaceChar
const TUint KConfigParityErrorReplaceChar
Description
Replace and character received with a parity error with the
character specified in iParityErrorChar.
const TUint KConfigXonXoffDebug
Description
This is not a parity option at all, but an internal developmental
debugging control which forces the high water mark for XON/XOFF handshaking, at
which point XOFF characters are sent, to be 5 bytes below 50% level instead the
usual 75% level.
Handshaking bitmasks constants
Description
The values that TCommConfigV01::iHandshake
may take
while in DTE role are as follows:
const TUint KConfigObeyXoff
Description
Obey incoming XON and XOFF characters as specified in
iXOnChar
and iXOffChar
const TUint KConfigObeyDSR
Description
Obey the input DSR control line
const TUint KConfigObeyDCD
Description
Obey the input DCD control line
const TUint KConfigObeyCTS
Description
Obey the input CTS Signal
const TUint KConfigSendXoff
Description
Send XON and XOFF characters as specified in
iXOnChar
andiXOffChar
const TUint KConfigFreeRTS
Description
The output RTS line should not be controlled by the driver
const TUint KConfigFreeDTR
Description
The output DTR line should not be controlled by the driver
const TUint KConfigFailDSR
Description
Complete any pending operations. KErrLineFail
if the DSR
input ever goes low
const TUint KConfigFailDCD
Description
Complete any pending operations. KErrLineFail
if the DCD
input ever goes low
const TUint KConfigFailCTS
Description
Complete any pending operations. KErrLineFail
if the CTS
input ever goes low
KConfigWriteBufferedComplete
const TUint KConfigWriteBufferedComplete
Description
Complete any write operations as soon as the data has been placed in the
output buffer instead of waiting until it has left the transmitter
DCE role handshaking constants
Description
The values that TCommConfigV01::iHandshake
may take while in
DCE role are as follows:
const TUint KConfigObeyDTR
Description
Obey the input DTR line.
const TUint KConfigFailDTR
Description
Complete any pending operations if DTR goes low.
const TUint KConfigObeyRTS
Description
Obey the input RTS line.
const TUint KConfigFailRTS
Support
Supported from 5.0
Description
Complete any pending operations if RTS goes low.
const TUint KConfigFreeDSR
Description
The output DSR line should not be controlled by the driver.
const TUint KConfigFreeCTS
Description
The output CTS line should not be controlled by the driver.
const TUint KConfigFreeDCD
Description
The output DCD line should not be controlled by the driver.
const TUint KConfigFreeRI
Description
The output RI line should not be controlled by the driver.
Description
The following constants are defined in d32comm.h. Note:
-
All signal lines which are inputs are held in the bottom nibble of the
signals bitmask, while all outputs are held in the top nibble.
-
You should note that the serial hardware on the ARM does not currently
support the input line KSignalRNG
.
const TUint KSignalCTS
Description
Input CTS line
const TUint KSignalDSR
Description
Input DSR line
const TUint KSignalDCD
Description
Input DCD line
const TUint KSignalRNG
Description
Ring Indicator Input line
const TUint KSignalRTS
Description
Output RTS line
const TUint KSignalDTR
Description
Output DTR line
const TUint KSignalDTEOutputs
Support
Supported from 6.0
Description
DTE outputs: KSignalRTS
|KSignalDTR
const TUint KSignalDTEInputs
Support
Supported from 6.0
Description
DTE
inputs:KSignalCTS
|KSignalDSR
|KSignalDCD
|KSignalRNG
const TUint KSignalDCEInputs
Support
Supported from 6.0
Description
DCE inputs: KSignalDTEOutputs
const TUint KSignalDCEOutputs
Support
Supported from 6.0
Description
DTE outputs: KSignalDTEInputs
Serial infra-red settings constants
Description
The following constants are defined in d32comm.h.
KConfigSIRPulseWidthMaximum
const TUint KConfigSIRPulseWidthMaximum
Description
On infra-red hardware that supports high and low pulse widths, selects
the high width
KConfigSIRPulseWidthMinimum
const TUint KConfigSIRPulseWidthMinimum
Description
On infra-red hardware that supports high and low pulse widths, selects
the low width
Description
The following constant is defined in d32comm.h.
const TUint KConfigMaxTerminators
Description
Maximum number of significant terminators (4)