kernel/eka/include/d32comm.h
changeset 152 657f875b013e
parent 36 538db54a451d
child 257 3e88ff8f41d5
equal deleted inserted replaced
139:95f71bcdcdb7 152:657f875b013e
     1 // Copyright (c) 1995-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 1995-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of the License "Eclipse Public License v1.0"
     4 // under the terms of the License "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
    27 #define __D32COMM_H__
    27 #define __D32COMM_H__
    28 #include <e32cmn.h>
    28 #include <e32cmn.h>
    29 #include <e32ver.h>
    29 #include <e32ver.h>
    30 #include <d32public.h>
    30 #include <d32public.h>
    31 
    31 
    32 /**
       
    33  Enumeration of number of data bits for serial port configuration.
       
    34  Typically, these values are used to initialize the iDataBits of 
       
    35  TCommConfigV01 before calling DComm::Configure() or any other serial
       
    36  comm API to configure the serial port's databits size.
       
    37  */
       
    38 enum TDataBits {EData5,EData6,EData7,EData8};
       
    39 /**
       
    40  Enumeration of number of stop bits for serial port configuration.
       
    41  Typically, these values are used to initialize the iStopBits of 
       
    42  TCommConfigV01 before calling DComm::Configure() or any other serial
       
    43  comm API to configure the serial port's stopbits.
       
    44  */
       
    45 enum TStopBits {EStop1,EStop2};
       
    46 /**
       
    47  Enumeration of types of parity for serial port configuration.
       
    48  Typically, these values are used to initialize the iParity of 
       
    49  TCommConfigV01 before calling DComm::Configure() or any other serial
       
    50  comm API to configure the serial port's parity setting.
       
    51  */
       
    52 enum TParity {EParityNone,EParityEven,EParityOdd,EParityMark,EParitySpace};
       
    53 /**
       
    54  Enumeration of baud rates in bits per second for serial port configuration.
       
    55  * e.g EBps115200 is for 115200Bps data rate  
       
    56  Typically, these values are used to initialize the iRate of TCommConfigV01 
       
    57  before calling DComm::Configure() or any other serial comm API to configure
       
    58  the serial port's baud rate.
       
    59  */
       
    60 enum TBps
       
    61 	{
       
    62 	EBps50,
       
    63 	EBps75,
       
    64 	EBps110,
       
    65 	EBps134,
       
    66 	EBps150,
       
    67 	EBps300,
       
    68 	EBps600,
       
    69 	EBps1200,
       
    70 	EBps1800,
       
    71 	EBps2000,
       
    72 	EBps2400,
       
    73 	EBps3600,
       
    74 	EBps4800,
       
    75 	EBps7200,
       
    76 	EBps9600,
       
    77 	EBps19200,
       
    78 	EBps38400,
       
    79 	EBps57600,
       
    80 	EBps115200,
       
    81 	EBps230400,
       
    82 	EBps460800,
       
    83 	EBps576000,
       
    84 	EBps1152000,
       
    85 	EBps4000000,
       
    86 	EBps921600,
       
    87 	EBpsAutobaud=0x40000000,
       
    88 	EBpsSpecial=0x80000000,
       
    89 	};
       
    90 /**
    32 /**
    91  Enumeration of Fifo status (enable and disable) for serial port configuration.
    33  Enumeration of Fifo status (enable and disable) for serial port configuration.
    92  Typically, these values are used to initialize the iFifo of TCommConfigV01 
    34  Typically, these values are used to initialize the iFifo of TCommConfigV01 
    93  before calling DComm::Configure() or any other serial comm API to configure
    35  before calling DComm::Configure() or any other serial comm API to configure
    94  the serial port's fifo.
    36  the serial port's fifo.