equal
deleted
inserted
replaced
1 // Copyright (c) 1995-2010 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 1995-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of the License "Eclipse Public License v1.0" |
4 // under the terms of the License "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
116 |
116 |
117 |
117 |
118 |
118 |
119 /** @capability CommDD |
119 /** @capability CommDD |
120 */ |
120 */ |
121 inline TInt RDevUsbcScClient::Open(TInt aUnit, TBool aShare) |
121 inline TInt RDevUsbcScClient::Open(TInt aUnit) |
122 { |
122 { |
123 _LIT(KUsbDevName, "usbcsc"); |
123 _LIT(KUsbDevName, "usbcsc"); |
124 return (DoCreate(KUsbDevName, VersionRequired(), aUnit, NULL, NULL, EOwnerThread, aShare)); |
124 return (DoCreate(KUsbDevName, VersionRequired(), aUnit, NULL, NULL, EOwnerThread)); |
125 } |
|
126 |
|
127 inline TInt RDevUsbcScClient::Open(RMessagePtr2 aMessage,TInt aParam,TOwnerType aType) |
|
128 { |
|
129 iEndpointStatus = 0; |
|
130 iAltSettingSeq = 0; |
|
131 iAlternateSetting = 0; |
|
132 iNewAltSetting = 0; |
|
133 return RBusLogicalChannel::Open(aMessage,aParam,aType); |
|
134 } |
125 } |
135 |
126 |
136 |
127 |
137 inline TVersion RDevUsbcScClient::VersionRequired() const |
128 inline TVersion RDevUsbcScClient::VersionRequired() const |
138 { |
129 { |
721 inline TInt RDevUsbcScClient::StartNextInAlternateSetting() |
712 inline TInt RDevUsbcScClient::StartNextInAlternateSetting() |
722 { |
713 { |
723 return DoControl(EControlStartNextInAlternateSetting); |
714 return DoControl(EControlStartNextInAlternateSetting); |
724 } |
715 } |
725 |
716 |
726 |
|
727 |
|
728 //Buffer Interface Layer (BIL) inline functions |
717 //Buffer Interface Layer (BIL) inline functions |
729 |
718 |
730 |
719 |
731 inline TInt TEndpointBuffer::GetBuffer(TUint& aOffset,TUint& aSize,TBool& aZLP,TRequestStatus& aStatus,TUint aLength) |
720 inline TInt TEndpointBuffer::GetBuffer(TUint& aOffset,TUint& aSize,TBool& aZLP,TRequestStatus& aStatus,TUint aLength) |
732 { |
721 { |
739 inline TInt TEndpointBuffer::GetEndpointNumber() |
728 inline TInt TEndpointBuffer::GetEndpointNumber() |
740 { |
729 { |
741 return iEndpointNumber; |
730 return iEndpointNumber; |
742 } |
731 } |
743 |
732 |
744 inline TInt TEndpointBuffer::BufferNumber() |
|
745 { |
|
746 return iBufferNum; |
|
747 } |
|
748 |
|
749 |
|
750 #endif // #ifndef __KERNEL_MODE__ |
733 #endif // #ifndef __KERNEL_MODE__ |
751 |
734 |
752 #endif // #ifndef __D32USBCSC_INL__ |
735 #endif // #ifndef __D32USBCSC_INL__ |