sl@0: // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of the License "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // e32/include/iic.inl sl@0: // sl@0: // WARNING: This file contains some APIs which are internal and are subject sl@0: // to change without noticed. Such APIs should therefore not be used sl@0: // outside the Kernel and Hardware Services package. sl@0: // sl@0: sl@0: inline RPointerArray* DIicBusController::ChannelArray() sl@0: {return &iChannelArray;} sl@0: sl@0: typedef DIicBusController::TCapturedChannel CtrllerCapChan; sl@0: sl@0: inline CtrllerCapChan::TCapturedChannel() : sl@0: iChannelId(0), iChanPtr(NULL) {} sl@0: sl@0: inline CtrllerCapChan::TCapturedChannel(TInt aChannelId, DIicBusChannelSlave* aChanPtr) : sl@0: iChannelId(aChannelId), iChanPtr(aChanPtr) {} sl@0: sl@0: inline CtrllerCapChan& CtrllerCapChan::operator=(CtrllerCapChan& aChan) sl@0: { sl@0: iChannelId=aChan.iChannelId; sl@0: iChanPtr=aChan.iChanPtr; sl@0: return *this; sl@0: } sl@0: sl@0: inline TBool CtrllerCapChan::operator==(CtrllerCapChan& aChan) sl@0: { sl@0: if((iChannelId==aChan.iChannelId)&&(iChanPtr==aChan.iChanPtr)) sl@0: return ETrue; sl@0: return EFalse; sl@0: } sl@0: