kernel/eka/include/d32public.h
branchRCL_3
changeset 256 c1f20ce4abcf
parent 36 538db54a451d
child 257 3e88ff8f41d5
equal deleted inserted replaced
249:a179b74831c9 256:c1f20ce4abcf
     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".
    24 */
    24 */
    25 
    25 
    26 #ifndef __D32PUBLIC_H__
    26 #ifndef __D32PUBLIC_H__
    27 #define __D32PUBLIC_H__
    27 #define __D32PUBLIC_H__
    28 
    28 
       
    29 /**
       
    30  Enumeration of number of data bits for serial port configuration.
       
    31  Typically, these values are used to initialize the iDataBits of 
       
    32  TCommConfigV01 before calling DComm::Configure() or any other serial
       
    33  comm API to configure the serial port's databits size.
       
    34  */
       
    35 enum TDataBits {EData5,EData6,EData7,EData8};
       
    36 
       
    37 /**
       
    38  Enumeration of number of stop bits for serial port configuration.
       
    39  Typically, these values are used to initialize the iStopBits of 
       
    40  TCommConfigV01 before calling DComm::Configure() or any other serial
       
    41  comm API to configure the serial port's stopbits.
       
    42  */
       
    43 enum TStopBits {EStop1,EStop2};
       
    44 
       
    45 /**
       
    46  Enumeration of types of parity for serial port configuration.
       
    47  Typically, these values are used to initialize the iParity of 
       
    48  TCommConfigV01 before calling DComm::Configure() or any other serial
       
    49  comm API to configure the serial port's parity setting.
       
    50  */
       
    51 enum TParity {EParityNone,EParityEven,EParityOdd,EParityMark,EParitySpace};
       
    52 
       
    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 	};
    29 
    90 
    30 enum TFlowControl
    91 enum TFlowControl
    31 	{
    92 	{
    32 	EFlowControlOn,EFlowControlOff
    93 	EFlowControlOn,EFlowControlOff
    33 	};
    94 	};