equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 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 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef __CSI_PSL_H__ |
|
21 #define __CSI_PSL_H__ |
|
22 |
|
23 const TUint KInterruptsAll = 0xf111; |
|
24 |
|
25 extern TInt32 csiTimeoutValue; |
|
26 |
|
27 // table of pointers to the channels - to be filled with pointers to channels |
|
28 // and used to register these channels with the Bus Controller |
|
29 // (declaration-to be included by master/slave) |
|
30 extern DIicBusChannel** ChannelPtrArray; |
|
31 |
|
32 // helper function - to dump the supplied configuration |
|
33 #ifdef _DEBUG |
|
34 void DumpConfiguration(const TConfigSpiBufV01& spiHeader, TInt aCsPin); |
|
35 #endif |
|
36 |
|
37 // a bit-field to store the current mode of operation |
|
38 struct TCsiOperationType |
|
39 { |
|
40 enum TOperation |
|
41 { |
|
42 ENop = 0x00, |
|
43 ETransmitOnly = 0x01, |
|
44 EReceiveOnly = 0x02, |
|
45 ETransmitReceive = 0x03 |
|
46 }; |
|
47 |
|
48 struct TOp |
|
49 { |
|
50 TUint8 iIsTransmitting : 1; |
|
51 TUint8 iIsReceiving : 1; |
|
52 TUint8 iRest : 6; |
|
53 }; |
|
54 |
|
55 union |
|
56 { |
|
57 TOp iOp; |
|
58 TUint8 iValue; |
|
59 }; |
|
60 }; |
|
61 |
|
62 #endif /*__CSI_PSL_H__*/ |