|
1 /* |
|
2 * Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * Defines USB CDC Control Class supported feature subset |
|
16 * |
|
17 */ |
|
18 |
|
19 /** |
|
20 @file |
|
21 */ |
|
22 |
|
23 #ifndef __ACMCAPABILITY_H__ |
|
24 #define __ACMCAPABILITY_H__ |
|
25 |
|
26 /** |
|
27 * Country Code Selection ------------------------------- |
|
28 */ |
|
29 #undef ENABLE_ACM_CF_COUNTRY_SETTING |
|
30 #define DISABLE_ACM_CF_COUNTRY_SETTING |
|
31 |
|
32 #if( defined(DISABLE_ACM_CF_COUNTRY_SETTING) && defined(ENABLE_ACM_CF_COUNTRY_SETTING) ) |
|
33 |
|
34 #error Country-Setting Feature Cannot be Both Enabled and Disabled |
|
35 |
|
36 #elif defined(DISABLE_ACM_CF_COUNTRY_SETTING) |
|
37 |
|
38 // feature is not present |
|
39 |
|
40 #elif defined(ENABLE_ACM_CF_COUNTRY_SETTING) |
|
41 |
|
42 // feature is present |
|
43 |
|
44 #else |
|
45 |
|
46 #error Uncontrolled Country-Setting Feature |
|
47 |
|
48 #endif |
|
49 |
|
50 /** |
|
51 * Abstract State Selection (Idle) ---------------------- |
|
52 */ |
|
53 #undef ENABLE_ACM_CF_IDLE_SETTING |
|
54 #define DISABLE_ACM_CF_IDLE_SETTING |
|
55 |
|
56 #if( defined(DISABLE_ACM_CF_IDLE_SETTING) && defined(ENABLE_ACM_CF_IDLE_SETTING) ) |
|
57 |
|
58 #error Abstract Idle Setting Feature Cannot be Both Enabled and Disabled |
|
59 |
|
60 #elif defined(DISABLE_ACM_CF_IDLE_SETTING) |
|
61 |
|
62 // feature is not present |
|
63 |
|
64 #elif defined(ENABLE_ACM_CF_IDLE_SETTING) |
|
65 |
|
66 // feature is present |
|
67 |
|
68 #else |
|
69 |
|
70 #error Uncontrolled Abstract Idle Setting Feature |
|
71 |
|
72 #endif |
|
73 |
|
74 /** |
|
75 * Abstract State Selection (Multiplex) ----------------- |
|
76 */ |
|
77 #undef ENABLE_ACM_CF_DATA_MULTIPLEX |
|
78 #define DISABLE_ACM_CF_DATA_MULTIPLEX |
|
79 |
|
80 #if( defined(DISABLE_ACM_CF_DATA_MULTIPLEX) && defined(ENABLE_ACM_CF_DATA_MULTIPLEX) ) |
|
81 |
|
82 #error Abstract Data Multiplex Feature Cannot be Both Enabled and Disabled |
|
83 |
|
84 #elif defined(DISABLE_ACM_CF_DATA_MULTIPLEX) |
|
85 |
|
86 // feature is not present |
|
87 |
|
88 #elif defined(ENABLE_ACM_CF_DATA_MULTIPLEX) |
|
89 |
|
90 // feature is present |
|
91 |
|
92 #else |
|
93 |
|
94 #error Uncontrolled Abstract Data Multiplex Feature |
|
95 |
|
96 #endif |
|
97 |
|
98 #endif // __ACMCAPABILITY_H__ |