kernel/eka/include/d32public.h
author hgs
Wed, 23 Jun 2010 12:52:28 +0100
changeset 176 af6ec97d9189
parent 134 95847726fe57
child 257 3e88ff8f41d5
permissions -rw-r--r--
201023_13
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
134
95847726fe57 201019_07
hgs
parents: 36
diff changeset
     1
// Copyright (c) 1995-2010 Nokia Corporation and/or its subsidiary(-ies).
36
538db54a451d Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
     2
// All rights reserved.
538db54a451d Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
     3
// This component and the accompanying materials are made available
538db54a451d Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
     4
// under the terms of the License "Eclipse Public License v1.0"
538db54a451d Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
     5
// which accompanies this distribution, and is available
538db54a451d Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
     6
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
538db54a451d Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
     7
//
538db54a451d Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
     8
// Initial Contributors:
538db54a451d Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
     9
// Nokia Corporation - initial contribution.
538db54a451d Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    10
//
538db54a451d Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    11
// Contributors:
538db54a451d Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    12
//
538db54a451d Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    13
// Description:
538db54a451d Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    14
// e32\include\d32public.h
538db54a451d Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    15
//
538db54a451d Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    16
// D32 enums that are depended on by public headers.
538db54a451d Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    17
// 
538db54a451d Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    18
//
538db54a451d Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    19
538db54a451d Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    20
/**
538db54a451d Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    21
@file
538db54a451d Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    22
@publishedAll
538db54a451d Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    23
@released
538db54a451d Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    24
*/
538db54a451d Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    25
538db54a451d Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    26
#ifndef __D32PUBLIC_H__
538db54a451d Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    27
#define __D32PUBLIC_H__
538db54a451d Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    28
134
95847726fe57 201019_07
hgs
parents: 36
diff changeset
    29
/**
95847726fe57 201019_07
hgs
parents: 36
diff changeset
    30
 Enumeration of number of data bits for serial port configuration.
95847726fe57 201019_07
hgs
parents: 36
diff changeset
    31
 Typically, these values are used to initialize the iDataBits of 
95847726fe57 201019_07
hgs
parents: 36
diff changeset
    32
 TCommConfigV01 before calling DComm::Configure() or any other serial
95847726fe57 201019_07
hgs
parents: 36
diff changeset
    33
 comm API to configure the serial port's databits size.
95847726fe57 201019_07
hgs
parents: 36
diff changeset
    34
 */
95847726fe57 201019_07
hgs
parents: 36
diff changeset
    35
enum TDataBits {EData5,EData6,EData7,EData8};
95847726fe57 201019_07
hgs
parents: 36
diff changeset
    36
95847726fe57 201019_07
hgs
parents: 36
diff changeset
    37
/**
95847726fe57 201019_07
hgs
parents: 36
diff changeset
    38
 Enumeration of number of stop bits for serial port configuration.
95847726fe57 201019_07
hgs
parents: 36
diff changeset
    39
 Typically, these values are used to initialize the iStopBits of 
95847726fe57 201019_07
hgs
parents: 36
diff changeset
    40
 TCommConfigV01 before calling DComm::Configure() or any other serial
95847726fe57 201019_07
hgs
parents: 36
diff changeset
    41
 comm API to configure the serial port's stopbits.
95847726fe57 201019_07
hgs
parents: 36
diff changeset
    42
 */
95847726fe57 201019_07
hgs
parents: 36
diff changeset
    43
enum TStopBits {EStop1,EStop2};
95847726fe57 201019_07
hgs
parents: 36
diff changeset
    44
95847726fe57 201019_07
hgs
parents: 36
diff changeset
    45
/**
95847726fe57 201019_07
hgs
parents: 36
diff changeset
    46
 Enumeration of types of parity for serial port configuration.
95847726fe57 201019_07
hgs
parents: 36
diff changeset
    47
 Typically, these values are used to initialize the iParity of 
95847726fe57 201019_07
hgs
parents: 36
diff changeset
    48
 TCommConfigV01 before calling DComm::Configure() or any other serial
95847726fe57 201019_07
hgs
parents: 36
diff changeset
    49
 comm API to configure the serial port's parity setting.
95847726fe57 201019_07
hgs
parents: 36
diff changeset
    50
 */
95847726fe57 201019_07
hgs
parents: 36
diff changeset
    51
enum TParity {EParityNone,EParityEven,EParityOdd,EParityMark,EParitySpace};
95847726fe57 201019_07
hgs
parents: 36
diff changeset
    52
95847726fe57 201019_07
hgs
parents: 36
diff changeset
    53
/**
95847726fe57 201019_07
hgs
parents: 36
diff changeset
    54
 Enumeration of baud rates in bits per second for serial port configuration.
95847726fe57 201019_07
hgs
parents: 36
diff changeset
    55
 * e.g EBps115200 is for 115200Bps data rate  
95847726fe57 201019_07
hgs
parents: 36
diff changeset
    56
 Typically, these values are used to initialize the iRate of TCommConfigV01 
95847726fe57 201019_07
hgs
parents: 36
diff changeset
    57
 before calling DComm::Configure() or any other serial comm API to configure
95847726fe57 201019_07
hgs
parents: 36
diff changeset
    58
 the serial port's baud rate.
95847726fe57 201019_07
hgs
parents: 36
diff changeset
    59
 */
95847726fe57 201019_07
hgs
parents: 36
diff changeset
    60
enum TBps
95847726fe57 201019_07
hgs
parents: 36
diff changeset
    61
	{
95847726fe57 201019_07
hgs
parents: 36
diff changeset
    62
	EBps50,
95847726fe57 201019_07
hgs
parents: 36
diff changeset
    63
	EBps75,
95847726fe57 201019_07
hgs
parents: 36
diff changeset
    64
	EBps110,
95847726fe57 201019_07
hgs
parents: 36
diff changeset
    65
	EBps134,
95847726fe57 201019_07
hgs
parents: 36
diff changeset
    66
	EBps150,
95847726fe57 201019_07
hgs
parents: 36
diff changeset
    67
	EBps300,
95847726fe57 201019_07
hgs
parents: 36
diff changeset
    68
	EBps600,
95847726fe57 201019_07
hgs
parents: 36
diff changeset
    69
	EBps1200,
95847726fe57 201019_07
hgs
parents: 36
diff changeset
    70
	EBps1800,
95847726fe57 201019_07
hgs
parents: 36
diff changeset
    71
	EBps2000,
95847726fe57 201019_07
hgs
parents: 36
diff changeset
    72
	EBps2400,
95847726fe57 201019_07
hgs
parents: 36
diff changeset
    73
	EBps3600,
95847726fe57 201019_07
hgs
parents: 36
diff changeset
    74
	EBps4800,
95847726fe57 201019_07
hgs
parents: 36
diff changeset
    75
	EBps7200,
95847726fe57 201019_07
hgs
parents: 36
diff changeset
    76
	EBps9600,
95847726fe57 201019_07
hgs
parents: 36
diff changeset
    77
	EBps19200,
95847726fe57 201019_07
hgs
parents: 36
diff changeset
    78
	EBps38400,
95847726fe57 201019_07
hgs
parents: 36
diff changeset
    79
	EBps57600,
95847726fe57 201019_07
hgs
parents: 36
diff changeset
    80
	EBps115200,
95847726fe57 201019_07
hgs
parents: 36
diff changeset
    81
	EBps230400,
95847726fe57 201019_07
hgs
parents: 36
diff changeset
    82
	EBps460800,
95847726fe57 201019_07
hgs
parents: 36
diff changeset
    83
	EBps576000,
95847726fe57 201019_07
hgs
parents: 36
diff changeset
    84
	EBps1152000,
95847726fe57 201019_07
hgs
parents: 36
diff changeset
    85
	EBps4000000,
95847726fe57 201019_07
hgs
parents: 36
diff changeset
    86
	EBps921600,
95847726fe57 201019_07
hgs
parents: 36
diff changeset
    87
	EBpsAutobaud=0x40000000,
95847726fe57 201019_07
hgs
parents: 36
diff changeset
    88
	EBpsSpecial=0x80000000,
95847726fe57 201019_07
hgs
parents: 36
diff changeset
    89
	};
36
538db54a451d Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    90
538db54a451d Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    91
enum TFlowControl
538db54a451d Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    92
	{
538db54a451d Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    93
	EFlowControlOn,EFlowControlOff
538db54a451d Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    94
	};
538db54a451d Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    95
538db54a451d Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    96
538db54a451d Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    97
#endif // __D32PUBLIC_H__
538db54a451d Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    98