author | hgs |
Wed, 23 Jun 2010 12:52:28 +0100 | |
changeset 176 | af6ec97d9189 |
parent 134 | 95847726fe57 |
child 257 | 3e88ff8f41d5 |
permissions | -rw-r--r-- |
134 | 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 | 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 |
}; |
|
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 |