Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]


How to configure a port for efficient reading

To configure a port for efficient reading the precise number of terminators needs to be set with SetConfig() and TCommConfig through iTerminatorCount, with the actual characters being set as elements in the iTerminator array. In the following code extract, the line feed character is set as a single terminator:

TCommConfig portSettings;
commPort.Config (portSettings);
portSettings ().iTerminator[0] = 10;
portSettings ().iTerminatorCount = 1;
commPort.SetConfig (portSettings);