DDriver1Channel Class Reference

List of all members.

Public Member Functions

 DDriver1Channel ()
virtual ~DDriver1Channel ()
virtual TInt RequestUserHandle (DThread *aThread, TOwnerType aType)
virtual TInt DoCreate (TInt aUnit, const TDesC8 *anInfo, const TVersion &aVer)
virtual void HandleMsg (TMessageBase *aMsg)
virtual void SendDataComplete (TInt aResult)
virtual void ReceiveDataComplete (TInt aResult)

Detailed Description

Logical Channel class for 'Driver1'.

Definition at line 59 of file driver1_dev.h.


Constructor & Destructor Documentation

DDriver1Channel::DDriver1Channel (  ) 

Constructor

Definition at line 116 of file driver1_ldd.cpp.

DDriver1Channel::~DDriver1Channel (  )  [virtual]

Destructor

Definition at line 179 of file driver1_ldd.cpp.


Member Function Documentation

TInt DDriver1Channel::RequestUserHandle ( DThread *  aThread,
TOwnerType  aType 
) [virtual]

Called when a user thread requests a handle to this channel.

Parameters:
aThread Name of thread
aType Determines whether the requested handle is thread or process relative.
Returns:
KErrNone if successful, otherwise one of the other system wide error codes.

Definition at line 194 of file driver1_ldd.cpp.

TInt DDriver1Channel::DoCreate ( TInt  aUnit,
const TDesC8 *  anInfo,
const TVersion &  aVer 
) [virtual]

Second stage constructor called by the kernel's device driver framework. This is called in the context of the user thread (client) which requested the creation of a Logical Channel (e.g. through a call to RBusLogicalChannel::DoCreate()). The thread is in a critical section.

Parameters:
aUnit The unit argument supplied by the client to RBusLogicalChannel::DoCreate().
aInfo The info argument supplied by the client to RBusLogicalChannel::DoCreate().
aVer The version argument supplied by the client to RBusLogicalChannel::DoCreate().
Returns:
KErrNone if successful, otherwise one of the other system wide error codes.

Definition at line 139 of file driver1_ldd.cpp.

void DDriver1Channel::HandleMsg ( TMessageBase *  aMsg  )  [virtual]

Process a message for this logical channel. This function is called in the context of a DFC thread.

Parameters:
aMsg The message to process. The iValue member of this distinguishes the message type: iValue==ECloseMsg, channel close message iValue==KMaxTInt, a 'DoCancel' message iValue>=0, a 'DoControl' message with function number equal to iValue iValue<0, a 'DoRequest' message with function number equal to ~iValue

Definition at line 213 of file driver1_ldd.cpp.

void DDriver1Channel::SendDataComplete ( TInt  aResult  )  [virtual]

Called by PDD from ISR to indicate that a SendData operation has completed.

Definition at line 456 of file driver1_ldd.cpp.

void DDriver1Channel::ReceiveDataComplete ( TInt  aResult  )  [virtual]

Called by PDD from ISR to indicate that a ReceiveData operation has completed.

Definition at line 534 of file driver1_ldd.cpp.


Generated by  doxygen 1.6.2