os/boardsupport/haitest/bspsvs/suite/bsp/mmc/inc/T_MmcSDDriverData.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
sl@0
     1
/*
sl@0
     2
* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). 
sl@0
     3
* All rights reserved.
sl@0
     4
* This component and the accompanying materials are made available
sl@0
     5
* under the terms of "Eclipse Public License v1.0"
sl@0
     6
* which accompanies this distribution, and is available
sl@0
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0
     8
*
sl@0
     9
* Initial Contributors:
sl@0
    10
* Nokia Corporation - initial contribution.
sl@0
    11
*
sl@0
    12
* Contributors:
sl@0
    13
*
sl@0
    14
* Description:
sl@0
    15
*
sl@0
    16
*/
sl@0
    17
sl@0
    18
sl@0
    19
#if (!defined __T_MMCSD_DRIVER_DATA_H__)
sl@0
    20
#define __T_MMCSD_DRIVER_DATA_H__
sl@0
    21
sl@0
    22
sl@0
    23
//	User Includes
sl@0
    24
#include "T_RBusLogicalChannelData.h"
sl@0
    25
#include "d_mmcsdif.h"
sl@0
    26
#include "ActiveCallbackWrap.h"
sl@0
    27
sl@0
    28
/**
sl@0
    29
 * Test Active Notification class
sl@0
    30
 *
sl@0
    31
 */
sl@0
    32
sl@0
    33
sl@0
    34
class CT_MmcSDDriverData : public CDataWrapperBase
sl@0
    35
	{
sl@0
    36
public:
sl@0
    37
	/**
sl@0
    38
	* Public destructor
sl@0
    39
	*/
sl@0
    40
	~CT_MmcSDDriverData();
sl@0
    41
sl@0
    42
	virtual TAny*	GetObject();
sl@0
    43
	virtual TBool	DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex);
sl@0
    44
sl@0
    45
protected:
sl@0
    46
	/**
sl@0
    47
	* Protected constructor. First phase construction
sl@0
    48
	*/
sl@0
    49
	CT_MmcSDDriverData();
sl@0
    50
	void	ConstructL();
sl@0
    51
sl@0
    52
	void	DoCmdConstructorL(const TDesC& aSection);
sl@0
    53
	void	DoCmdDestructor();
sl@0
    54
sl@0
    55
	TInt 	GetExpectedAsyncError(const TDesC& aSection);
sl@0
    56
	void 	DoCmdReadSectorL(const TDesC& aSection, TInt aAsyncErrorIndex);
sl@0
    57
	void 	DoCmdWriteSectorL(const TDesC& aSection, TInt aAsyncErrorIndex);
sl@0
    58
	void 	DoCmdReadCSD();
sl@0
    59
	void 	DoCmdReadExtCSD();
sl@0
    60
	void 	DoCmdReadCSDL(const TDesC& aSection, TInt aAsyncErrorIndex);
sl@0
    61
	void 	DoCmdReadExtCSDL(const TDesC& aSection, TInt aAsyncErrorIndex);
sl@0
    62
	void 	DoCmdCardInfo(const TDesC& aSection);
sl@0
    63
	void 	DoCmdCardIsPresent(const TDesC& aSection);
sl@0
    64
	void 	DoCmdCardIsReady(const TDesC& aSection);
sl@0
    65
	void 	DoCmdCardIsLocked(const TDesC& aSection);
sl@0
    66
	void 	PrintCSD(const TCSDInfo& aCSDInfo);
sl@0
    67
	void 	PrintExtendedCSD(const TExtendedCSDInfo& aExtendedCSDInfo);
sl@0
    68
sl@0
    69
	
sl@0
    70
protected:
sl@0
    71
	void RunL(CActive* aActive, TInt aIndex);
sl@0
    72
	void DoCancel(CActive* aActive);
sl@0
    73
	CActiveCallbackWrap* CreateActiveCallbackL(TInt aFunctionId, TInt aExpectedAsyncError);
sl@0
    74
	void DeleteActiveCallback(CActiveCallback* activeCallbackWrap);
sl@0
    75
sl@0
    76
protected:
sl@0
    77
	RMMCSDTestControllerInterface*	iMmcSDController;
sl@0
    78
	RPointerArray<CActiveCallbackWrap>	iActiveCallbacks;
sl@0
    79
sl@0
    80
private:
sl@0
    81
	TInt							iStackNum;
sl@0
    82
	TInt							iAsyncErrorIndex;
sl@0
    83
	RFs								iFs;
sl@0
    84
	};
sl@0
    85
sl@0
    86
#endif /* __T_MMCSD_DRIVER_DATA_H__ */