|
1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of the License "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // e32/include/iic.inl |
|
15 // |
|
16 // WARNING: This file contains some APIs which are internal and are subject |
|
17 // to change without noticed. Such APIs should therefore not be used |
|
18 // outside the Kernel and Hardware Services package. |
|
19 // |
|
20 |
|
21 inline RPointerArray<DIicBusChannel>* DIicBusController::ChannelArray() |
|
22 {return &iChannelArray;} |
|
23 |
|
24 typedef DIicBusController::TCapturedChannel CtrllerCapChan; |
|
25 |
|
26 inline CtrllerCapChan::TCapturedChannel() : |
|
27 iChannelId(0), iChanPtr(NULL) {} |
|
28 |
|
29 inline CtrllerCapChan::TCapturedChannel(TInt aChannelId, DIicBusChannelSlave* aChanPtr) : |
|
30 iChannelId(aChannelId), iChanPtr(aChanPtr) {} |
|
31 |
|
32 inline CtrllerCapChan& CtrllerCapChan::operator=(CtrllerCapChan& aChan) |
|
33 { |
|
34 iChannelId=aChan.iChannelId; |
|
35 iChanPtr=aChan.iChanPtr; |
|
36 return *this; |
|
37 } |
|
38 |
|
39 inline TBool CtrllerCapChan::operator==(CtrllerCapChan& aChan) |
|
40 { |
|
41 if((iChannelId==aChan.iChannelId)&&(iChanPtr==aChan.iChanPtr)) |
|
42 return ETrue; |
|
43 return EFalse; |
|
44 } |
|
45 |