bthci/hci2implementations/initialisors/ti/inc/ControllerInitialisationCmndParser.h
changeset 0 29b1cd4cb562
equal deleted inserted replaced
-1:000000000000 0:29b1cd4cb562
       
     1 // Copyright (c) 2006-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 "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  @internalComponent
       
    19 */
       
    20 
       
    21 #ifndef CONTROLLERINITIALISATIONCMNDPARSER_H
       
    22 #define CONTROLLERINITIALISATIONCMNDPARSER_H
       
    23 
       
    24 #include <f32file.h>
       
    25 
       
    26 class CVendorDebugCommand;
       
    27 
       
    28 NONSHARABLE_CLASS(CCommandParser) : public CBase
       
    29 	{
       
    30 public:
       
    31 	static CCommandParser* NewL(const TDesC& aCommandFile);
       
    32 	TInt GetNextVendorCommand(CVendorDebugCommand& aVendorCommand);
       
    33 
       
    34 	~CCommandParser();
       
    35 
       
    36 private:
       
    37 	CCommandParser();
       
    38 	void ConstructL(const TDesC& aCommandFile);
       
    39 	
       
    40 private:
       
    41 	static const TUint8 KScriptElementHeaderLength = 4;
       
    42 	static const TUint8 KScriptLengthOffset = 2;
       
    43 	static const TUint8 KScriptHeaderLength = 32;
       
    44 
       
    45 	static const TUint8 KScriptHCIHeaderLength = 4;
       
    46 	static const TUint8 KScriptHCIHeaderOpcodeOffset = 1;
       
    47 	static const TUint8 KScriptHCICmdHdrLengthOffset = 3;
       
    48 
       
    49 	static const TUint8 KSendCommand = 1;
       
    50 
       
    51 	RFile iFile;
       
    52 	RFs iFs;
       
    53 	};
       
    54 
       
    55 #endif // CONTROLLERINITIALISATIONCMNDPARSER_H