CPktDrvBase Class Reference

class CPktDrvBase : public CBase
Since
v8.1 (internalComponent from v5.0u)

Inherits from

Public Member Functions
CPktDrvBase ( CPktDrvFactory &)
~CPktDrvBase ()
void ConstructL ( CLANLinkCommon *)
TInt Control ( TUint , TUint , TDes8 &, TAny *)
TUint8 * GetInterfaceAddress ()
const TPacketDriverStats & GetInterfaceStats ()
TInt GetMulticastList (const THWAddr *, TInt &)
TInt GetRxMode ()
TInt InterfacePowerDown ()
TInt InterfacePowerUp ()
TInt InterfaceResume ()
TInt InterfaceSleep ()
TInt Notification (enum TAgentToNifEventType , void *)
TInt ResetInterface ()
TInt Send ( RMBufChain &)
TInt SenseInterfacePower ()
TInt SetInterfaceAddress (const THWAddr &)
TInt SetMulticastList (const THWAddr *, TInt )
IMPORT_C void SetNameL (const TDesC &)
TInt SetRxMode ( TRxMode )
TInt StartInterface ()
TInt StopInterface ()
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
Public Member Enumerations
enum TRxMode {
RxOff , RxPhysicalAddr , RxBroadcast , RxSomeMulticast , RxAllMulticast , RxPromiscuous
}
Protected Member Enumerations
enum TDriverPowerState { EPowerOn , EPowerOff , ESleep }
enum TDriverResetState {
EStart , EWarmStart , EInitialising , Ready , ESleeping , ERunning , EHalted
}
Protected Attributes
CPktDrvFactory * iFactory
THWAddr iHWAddr
HBufC * iName
CLANLinkCommon * iParent
TDriverPowerState iPowerState
TInt iRefCount
TDriverResetState iResetState
TRxMode iRxMode
TPacketDriverStats iStats

Constructor & Destructor Documentation

CPktDrvBase(CPktDrvFactory &)

IMPORT_C CPktDrvBase ( CPktDrvFactory & aFactory )

Parameters

CPktDrvFactory & aFactory

~CPktDrvBase()

IMPORT_C ~CPktDrvBase ( )

Member Functions Documentation

ConstructL(CLANLinkCommon *)

void ConstructL ( CLANLinkCommon * aParent ) [pure virtual]

Parameters

CLANLinkCommon * aParent

Control(TUint, TUint, TDes8 &, TAny *)

TInt Control ( TUint aLevel,
TUint aName,
TDes8 & aOption,
TAny * aSource = 0
) [pure virtual]

Parameters

TUint aLevel
TUint aName
TDes8 & aOption
TAny * aSource = 0

GetInterfaceAddress()

TUint8 * GetInterfaceAddress ( ) const [pure virtual]

GetInterfaceStats()

const TPacketDriverStats & GetInterfaceStats ( ) const [inline]

GetMulticastList(const THWAddr *, TInt &)

TInt GetMulticastList ( const THWAddr * aAddr,
TInt & n
) const [pure virtual]

Parameters

const THWAddr * aAddr
TInt & n

GetRxMode()

TInt GetRxMode ( ) const [pure virtual]

InterfacePowerDown()

TInt InterfacePowerDown ( ) [pure virtual]

InterfacePowerUp()

TInt InterfacePowerUp ( ) [pure virtual]

InterfaceResume()

TInt InterfaceResume ( ) [pure virtual]

InterfaceSleep()

TInt InterfaceSleep ( ) [pure virtual]

Notification(enum TAgentToNifEventType, void *)

TInt Notification ( enum TAgentToNifEventType aEvent,
void * aInfo
) [pure virtual]

Parameters

enum TAgentToNifEventType aEvent
void * aInfo

ResetInterface()

TInt ResetInterface ( ) [pure virtual]

Send(RMBufChain &)

TInt Send ( RMBufChain & aPkt ) [pure virtual]

Parameters

RMBufChain & aPkt

SenseInterfacePower()

TInt SenseInterfacePower ( ) const [inline]

SetInterfaceAddress(const THWAddr &)

TInt SetInterfaceAddress ( const THWAddr & ) [pure virtual]

Parameters

const THWAddr &

SetMulticastList(const THWAddr *, TInt)

TInt SetMulticastList ( const THWAddr * aAddr,
TInt n
) [pure virtual]

Parameters

const THWAddr * aAddr
TInt n

SetNameL(const TDesC &)

IMPORT_C void SetNameL ( const TDesC & aName )

Parameters

const TDesC & aName

SetRxMode(TRxMode)

TInt SetRxMode ( TRxMode AMode ) [pure virtual]

Parameters

TRxMode AMode

StartInterface()

TInt StartInterface ( ) [pure virtual]

StopInterface()

TInt StopInterface ( ) [pure virtual]

Member Enumerations Documentation

Enum TDriverPowerState

Enumerators

EPowerOn
EPowerOff
ESleep

Enum TDriverResetState

Enumerators

EStart
EWarmStart
EInitialising
Ready
ESleeping
ERunning
EHalted

Enum TRxMode

Enumerators

RxOff
RxPhysicalAddr
RxBroadcast
RxSomeMulticast
RxAllMulticast
RxPromiscuous

Member Data Documentation

CPktDrvFactory * iFactory

CPktDrvFactory * iFactory [protected]

THWAddr iHWAddr

THWAddr iHWAddr [protected]

HBufC * iName

HBufC * iName [protected]

CLANLinkCommon * iParent

CLANLinkCommon * iParent [protected]

TDriverPowerState iPowerState

TDriverPowerState iPowerState [protected]

TInt iRefCount

TInt iRefCount [protected]

TDriverResetState iResetState

TDriverResetState iResetState [protected]

TRxMode iRxMode

TRxMode iRxMode [protected]

TPacketDriverStats iStats

TPacketDriverStats iStats [protected]