--- a/kernel/eka/include/d32comm.h Tue Aug 31 16:34:26 2010 +0300
+++ b/kernel/eka/include/d32comm.h Wed Sep 01 12:34:56 2010 +0100
@@ -1,4 +1,4 @@
-// Copyright (c) 1995-2010 Nokia Corporation and/or its subsidiary(-ies).
+// Copyright (c) 1995-2009 Nokia Corporation and/or its subsidiary(-ies).
// All rights reserved.
// This component and the accompanying materials are made available
// under the terms of the License "Eclipse Public License v1.0"
@@ -30,6 +30,64 @@
#include <d32public.h>
/**
+ Enumeration of number of data bits for serial port configuration.
+ Typically, these values are used to initialize the iDataBits of
+ TCommConfigV01 before calling DComm::Configure() or any other serial
+ comm API to configure the serial port's databits size.
+ */
+enum TDataBits {EData5,EData6,EData7,EData8};
+/**
+ Enumeration of number of stop bits for serial port configuration.
+ Typically, these values are used to initialize the iStopBits of
+ TCommConfigV01 before calling DComm::Configure() or any other serial
+ comm API to configure the serial port's stopbits.
+ */
+enum TStopBits {EStop1,EStop2};
+/**
+ Enumeration of types of parity for serial port configuration.
+ Typically, these values are used to initialize the iParity of
+ TCommConfigV01 before calling DComm::Configure() or any other serial
+ comm API to configure the serial port's parity setting.
+ */
+enum TParity {EParityNone,EParityEven,EParityOdd,EParityMark,EParitySpace};
+/**
+ Enumeration of baud rates in bits per second for serial port configuration.
+ * e.g EBps115200 is for 115200Bps data rate
+ Typically, these values are used to initialize the iRate of TCommConfigV01
+ before calling DComm::Configure() or any other serial comm API to configure
+ the serial port's baud rate.
+ */
+enum TBps
+ {
+ EBps50,
+ EBps75,
+ EBps110,
+ EBps134,
+ EBps150,
+ EBps300,
+ EBps600,
+ EBps1200,
+ EBps1800,
+ EBps2000,
+ EBps2400,
+ EBps3600,
+ EBps4800,
+ EBps7200,
+ EBps9600,
+ EBps19200,
+ EBps38400,
+ EBps57600,
+ EBps115200,
+ EBps230400,
+ EBps460800,
+ EBps576000,
+ EBps1152000,
+ EBps4000000,
+ EBps921600,
+ EBpsAutobaud=0x40000000,
+ EBpsSpecial=0x80000000,
+ };
+/**
Enumeration of Fifo status (enable and disable) for serial port configuration.
Typically, these values are used to initialize the iFifo of TCommConfigV01
before calling DComm::Configure() or any other serial comm API to configure