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) |
Logical Channel class for 'Driver1'.
Definition at line 46 of file driver1_dev.h.
DDriver1Channel::DDriver1Channel | ( | ) |
Constructor
Definition at line 105 of file driver1_ldd.cpp.
DDriver1Channel::~DDriver1Channel | ( | ) | [virtual] |
Destructor
Definition at line 168 of file driver1_ldd.cpp.
TInt DDriver1Channel::RequestUserHandle | ( | DThread * | aThread, | |
TOwnerType | aType | |||
) | [virtual] |
Called when a user thread requests a handle to this channel.
aThread | Name of thread | |
aType | Determines whether the requested handle is thread or process relative. |
Definition at line 183 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.
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(). |
Definition at line 128 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.
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 202 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 445 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 523 of file driver1_ldd.cpp.