wlan_bearer/wlanldd/wlan_common/umac_common/inc/umacusertxdatacntx.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 25 May 2010 14:40:09 +0300
branchRCL_3
changeset 21 af3fb27c7511
parent 0 c40eb8fe8501
permissions -rw-r--r--
Revision: 201019 Kit: 2010121

/*
* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of the License "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:   Declaration of TWlanUserTxDataCntx class.
*
*/

/*
* %version: 8 %
*/

#ifndef T_WLANUSERTXDATACNTX_H
#define T_WLANUSERTXDATACNTX_H

#include "802dot11.h"

class TDataBuffer;

/**
 *  Encapsulates a frame transmit buffer
 *
 *  @lib wlanumac.lib
 *  @since S60 v3.1
 */
class TWlanUserTxDataCntx 
    {

public:

    TWlanUserTxDataCntx () : 
        iStartOfFrame( 0 ), 
        iLengthOfData( 0 ), 
        iEthernetBuffer( NULL ) {}

    inline TUint8* StartOfFrame();

    inline void LengthOfFrame( TUint aFrameLength );

    inline TUint LengthOfFrame() const;

    inline void Dot11FrameReady( TUint8* aStartOfFrame, TUint aLengthOfFrame );

private: // data

    /** pointer to the beginning of the ready to be sent 802.11 frame */ 
    TUint8*             iStartOfFrame;
    /**
     * length of the data in the buffer
     */
    TUint               iLengthOfData;
    /**
     * data buffer that holds the ethernet II critter to send next
     * its waiting for dot11 encapulation here
     */
    TDataBuffer*        iEthernetBuffer;
    };

#include "umacusertxdatacntx.inl"

#endif // T_WLANUSERTXDATACNTX_H