This tutorial shows the basic steps to perform any serial port configuration through the RComm API.
TCommCaps ourCapabilities;
User::LeaveIfError(commPort.Caps (ourCapabilities));
if ((ourCapabilities ().iSIR & KCapsSIR115kbps) ||
(ourCapabilities ().iSIR & KCapsSIR2400bpsOnly) ||
(ourCapabilities ().iSIR & KCapsSIR4Mbps))
{
// IR is supported, so enable it
TCommConfig portSettings;
User::LeaveIfError(commPort.Config (portSettings));
portSettings ().iSIREnable = ESIREnable;
User::LeaveIfError (commPort.SetConfig (portSettings));
}
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.