0
|
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 |
//
|
|
15 |
|
|
16 |
/**
|
|
17 |
@file
|
|
18 |
@internalTechnology
|
|
19 |
|
|
20 |
Sets the StateId to be entered next time the FSM is called.
|
|
21 |
|
|
22 |
@param aStateId The State ID
|
|
23 |
*/
|
|
24 |
inline void CMassStorageFsm::SetState(TMassStorageState::TStateId aStateId)
|
|
25 |
{
|
|
26 |
__HOSTPRINT1(_L("CMassStorage::SetState[%d]"), aStateId);
|
|
27 |
iState = iStateTable[aStateId];
|
|
28 |
}
|
|
29 |
|
|
30 |
|
|
31 |
/**
|
|
32 |
Sets the flag to indicate that the device requires a SCSI START STOP UNIT
|
|
33 |
command.
|
|
34 |
|
|
35 |
@param aRequired ETrue if SCSI START STOP UNIT command is required
|
|
36 |
*/
|
|
37 |
inline void CMassStorageFsm::SetStartStopUnitRequired(TBool aRequired)
|
|
38 |
{
|
|
39 |
iStartStopUnitRequired = aRequired;
|
|
40 |
}
|
|
41 |
|
|
42 |
|
|
43 |
/**
|
|
44 |
Returns boolean state of SCSI START STOP UNIT Required flag.
|
|
45 |
|
|
46 |
@return TBool ETrue if SCSI START STOP UNIT command is required
|
|
47 |
*/
|
|
48 |
inline TBool CMassStorageFsm::StartStopUnitRequired() const
|
|
49 |
{
|
|
50 |
return iStartStopUnitRequired;
|
|
51 |
}
|
|
52 |
|
|
53 |
|
|
54 |
|