haitest/bspsvs/suite/bsp/mmc/inc/T_MmcSDPsuDriverData.h
changeset 0 cec860690d41
equal deleted inserted replaced
-1:000000000000 0:cec860690d41
       
     1 /*
       
     2 * Copyright (c) 2005-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 #if (!defined __T_MMCSDPsu_DRIVER_DATA_H__)
       
    20 #define __T_MMCSDPsu_DRIVER_DATA_H__
       
    21 
       
    22 //	User Includes
       
    23 #include "T_MmcSDDriverData.h"
       
    24 
       
    25 /**
       
    26  * Test MMCSD PowerSupply class
       
    27  *
       
    28  */
       
    29 class CT_MMCSDPsuDriverData : public CT_MmcSDDriverData
       
    30 	{
       
    31 public:
       
    32 	/**
       
    33 	* Public destructor
       
    34 	*/
       
    35 	~CT_MMCSDPsuDriverData();
       
    36 
       
    37 	/**
       
    38 	* Two phase constructor
       
    39 	*
       
    40 	* @leave	system wide error
       
    41 	*/
       
    42 	static	CT_MMCSDPsuDriverData*	NewL();
       
    43 
       
    44 	virtual TBool	DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex);
       
    45 
       
    46 protected:
       
    47 	/**
       
    48 	* Protected constructor. First phase construction
       
    49 	*/
       
    50 	CT_MMCSDPsuDriverData();
       
    51 	void	ConstructL();
       
    52 
       
    53 	void	DoCmdPsuInfo(const TDesC& aSection);
       
    54 	void 	DoCmdSetPsuVoltage(const TDesC& aSection);
       
    55 	void	DoCmdPbusState(const TDesC& aSection);
       
    56 	void	DoCmdSetPsuState(const TDesC& aSection);
       
    57 	void	DoCmdVccState(const TDesC& aSection);
       
    58 	void 	DoCmdPsuNumber(const TDesC& aSection);
       
    59 	void 	DoCmdMediaChangeID(const TDesC& aSection);
       
    60 	void 	DoCmdPsuCurLimit(const TDesC& aSection);
       
    61 
       
    62 private:
       
    63 	static const TEnumEntryTable	iEnumTableVoltageCheckMethod[];
       
    64 	static const TEnumEntryTable	iEnumTablePbusState[];
       
    65 	static const TEnumEntryTable	iEnumTableVccState[];
       
    66 	TInt							iAsyncErrorIndex;
       
    67 	};
       
    68 
       
    69 #endif /* __T_MMCSDPsu_DRIVER_DATA_H__ */