diff -r 000000000000 -r c40eb8fe8501 wlan_bearer/wlannwif/inc/carddrv.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/wlan_bearer/wlannwif/inc/carddrv.h Tue Feb 02 02:03:13 2010 +0200 @@ -0,0 +1,148 @@ +/* +* Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: Defines CardPktDrv class +* +*/ + +/* +* %version: 9 % +*/ + +#ifndef __CARDDRV_H__ +#define __CARDDRV_H__ + +#include +#include + +#include "802dot11.h" +#include "RWlanLogicalChannel.h" +#include "EtherCardApi.h" +#include + +const TUint KWlanpktDrvMajorVersionNumber = 0; +const TUint KWlanpktDrvMinorVersionNumber = 0; +const TUint KWlanpktDrvBuildVersionNumber = 0; + +const TInt KConfigBufferSize = 12; + +class CSender; +class CReceiver; +class CLANLinkCommon; + + +/** +* CPcCardPktDrv +* +*/ +class CPcCardPktDrv : public CBase + { +public: + + friend class CSender; + + friend class CReceiver; + + /** + * NewL + * @param aParent + * @return + */ + static CPcCardPktDrv* NewL( CLANLinkCommon* aParent ); + + /** + * constructor + */ + CPcCardPktDrv(); + + /** + * destructor + */ + virtual ~CPcCardPktDrv(); + + /** + * ConstructL + * @param aParent + */ + void ConstructL( CLANLinkCommon* aParent ); + + /** + * StartInterface + * @return + */ + TInt StartInterface(); + + /** + * StopInterface + * @return + */ + TInt StopInterface(); + + /** + * ResetInterface + * @return + */ + TInt ResetInterface(); + + /** + * GetInterfaceAddress + * @return + */ + TUint8* GetInterfaceAddress(); + + /** + * Send + * @param aPkt + * @return + */ + TInt Send( RMBufChain& aPkt ); + + /** + * StartL + */ + void StartL(); + + /** + * Stop + */ + void Stop(); + + /** + * CardOpen + * @return + */ + TBool CardOpen() {return iCardOpen;}; + +private: + + /** */ + CLANLinkCommon* iParent; + + /** */ + TBool iCardOpen; + + /** */ + TBuf8 iConfig; + /** */ + CSender* iSender; + /** */ + CReceiver* iReceiver; + /** */ + RPcmNetCardIf iCard; + + /** */ + RFrameXferBlockProtocolStack* iFrameXferBlock; + + }; + +#endif // __CARDDRV_H__