sl@0: // Copyright (c) 1999-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: // sl@0: // sl@0: sl@0: /** sl@0: @file sl@0: @internalComponent sl@0: */ sl@0: sl@0: #ifndef __SDCARD_INL__ sl@0: #define __SDCARD_INL__ sl@0: sl@0: // ======== TSDCSD ======== sl@0: sl@0: inline TSDCSD::TSDCSD(const TCSD& aCSD) : TCSD(aCSD.iData) sl@0: { /* empty */ } sl@0: sl@0: inline TBool TSDCSD::SDEraseBlkEn() const {return( CSDField(46,46) );} sl@0: inline TBool TSDCSD::SDSectorSize() const {return( CSDField(45,39) );} sl@0: inline TBool TSDCSD::SDWPGrpSize() const {return( CSDField(38,32) );} sl@0: sl@0: // ======== TSDCard ======== sl@0: sl@0: inline TBool TSDCard::IsSDCard() const {return(iFlags&KSDCardIsSDCard);} sl@0: sl@0: inline TUint32 TSDCard::ProtectedAreaSize() const {return(iProtectedAreaSize);} sl@0: inline void TSDCard::SetProtectedAreaSize(TUint32 aPAS) {iProtectedAreaSize=aPAS;} sl@0: inline void TSDCard::SetAUSize(TUint8 aAU) {iAUSize=aAU;} sl@0: inline TUint8 TSDCard::GetAUSize() const {return(iAUSize);} sl@0: sl@0: sl@0: inline TUint32 TSDCard::PARootDirEnd() const {return iPARootDirEnd;} sl@0: inline void TSDCard::SetPARootDirEnd(TUint32 aPARootDirEnd) {iPARootDirEnd=aPARootDirEnd;} sl@0: sl@0: // ======== TSDCardArray ======== sl@0: sl@0: inline TSDCardArray::TSDCardArray(DSDStack* aOwningStack) : TMMCardArray(aOwningStack) sl@0: { /* empty */ } sl@0: sl@0: inline TSDCard& TSDCardArray::Card(TUint aCardNumber) const sl@0: { return *static_cast(iCards[aCardNumber]); } sl@0: sl@0: inline TSDCard& TSDCardArray::NewCard(TUint aCardNumber) const sl@0: { return *static_cast(iNewCards[aCardNumber]); } sl@0: sl@0: // ========= DSDStack ======== sl@0: sl@0: inline DSDStack::DSDStack(TInt aBus, DMMCSocket* aSocket) sl@0: : DMMCStack(aBus, aSocket) sl@0: { iMultiplexedBus = ETrue; } sl@0: sl@0: inline TSDCardArray& DSDStack::CardArray() const sl@0: { return *static_cast(iCardArray); } sl@0: sl@0: inline TMMCErr DSDStack::BaseModifyCardCapabilitySMST( TAny* aStackP ) sl@0: { return( static_cast(aStackP)->DSDStack::ModifyCardCapabilitySM() ); } sl@0: sl@0: // ========= DSDSession ======== sl@0: sl@0: inline DSDSession::DSDSession(const TMMCCallBack& aCallBack) sl@0: : DMMCSession(aCallBack) sl@0: { /* empty */ } sl@0: sl@0: #endif // #ifndef __SDCARD_INL__ sl@0: