253
|
1 |
// Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies).
|
0
|
2 |
// All rights reserved.
|
|
3 |
// This component and the accompanying materials are made available
|
|
4 |
// under the terms of the License "Eclipse Public License v1.0"
|
|
5 |
// which accompanies this distribution, and is available
|
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
7 |
//
|
|
8 |
// Initial Contributors:
|
|
9 |
// Nokia Corporation - initial contribution.
|
|
10 |
//
|
|
11 |
// Contributors:
|
|
12 |
//
|
|
13 |
// Description:
|
|
14 |
// @file PBASE-T_USBDI-0493.cpp
|
|
15 |
// @internalComponent
|
|
16 |
//
|
|
17 |
//
|
|
18 |
|
|
19 |
#include "PBASE-T_USBDI-0493.h"
|
|
20 |
#include "testpolicy.h"
|
|
21 |
#include "modelleddevices.h"
|
|
22 |
#include "testliterals.h"
|
253
|
23 |
#include "OstTraceDefinitions.h"
|
|
24 |
#ifdef OST_TRACE_COMPILER_IN_USE
|
|
25 |
#include "PBASE-T_USBDI-0493Traces.h"
|
|
26 |
#endif
|
0
|
27 |
|
|
28 |
|
|
29 |
|
|
30 |
|
|
31 |
namespace NUnitTesting_USBDI
|
|
32 |
{
|
|
33 |
const TInt KLiteralEnglish8Length = KLiteralEnglish8().Length();
|
|
34 |
const TUint KBulkTransferMaxSize = 320;
|
|
35 |
const TUint KHostNumWriteBytes = 256;
|
|
36 |
const TUint KHostNumReadBytes = 256;
|
|
37 |
const TUint KHostFinalNumReadBytes = 300;
|
|
38 |
|
|
39 |
const TUint KStartNumTransferBytes = 1023;
|
|
40 |
const TUint KFinishNumTransferBytes = 1025;
|
|
41 |
|
|
42 |
const TUint KClientNumReadBytes = 2000;
|
|
43 |
|
|
44 |
//Make these single bit values ...
|
|
45 |
// ... so that their completion can be easily recorded in a bit mask!
|
|
46 |
const TInt KBulkTransferInId0 = 1<<0;
|
|
47 |
const TInt KBulkTransferInId1 = 1<<1;
|
|
48 |
const TInt KBulkTransferInId2 = 1<<2;
|
|
49 |
const TInt KBulkTransferInId3 = 1<<3;
|
|
50 |
const TInt KBulkTransferOutId0 = 1<<4;
|
|
51 |
const TInt KBulkTransferOutId1 = 1<<5;
|
|
52 |
const TInt KBulkTransferOutId2 = 1<<6;
|
|
53 |
const TInt KBulkTransferOutId3 = 1<<7;
|
|
54 |
|
|
55 |
const TInt KUnexpectedTransferID = -101;
|
|
56 |
const TInt KUndefinedStep = -102;
|
|
57 |
|
|
58 |
|
|
59 |
_LIT(KTestCaseId,"PBASE-T_USBDI-0493");
|
|
60 |
const TFunctorTestCase<CUT_PBASE_T_USBDI_0493,TBool> CUT_PBASE_T_USBDI_0493::iFunctor(KTestCaseId);
|
|
61 |
|
|
62 |
CUT_PBASE_T_USBDI_0493* CUT_PBASE_T_USBDI_0493::NewL(TBool aHostRole)
|
|
63 |
{
|
253
|
64 |
OstTraceFunctionEntry1( CUT_PBASE_T_USBDI_0493_NEWL_ENTRY, aHostRole );
|
0
|
65 |
CUT_PBASE_T_USBDI_0493* self = new (ELeave) CUT_PBASE_T_USBDI_0493(aHostRole);
|
|
66 |
CleanupStack::PushL(self);
|
|
67 |
self->ConstructL();
|
|
68 |
CleanupStack::Pop(self);
|
253
|
69 |
OstTraceFunctionExit1( CUT_PBASE_T_USBDI_0493_NEWL_EXIT, ( TUint )( self ) );
|
0
|
70 |
return self;
|
|
71 |
}
|
|
72 |
|
|
73 |
|
|
74 |
CUT_PBASE_T_USBDI_0493::CUT_PBASE_T_USBDI_0493(TBool aHostRole)
|
|
75 |
: CBaseBulkTestCase(KTestCaseId,aHostRole),
|
|
76 |
iNumTransferBytes(KStartNumTransferBytes),
|
|
77 |
iCaseStep(EInProgress)
|
|
78 |
{
|
253
|
79 |
OstTraceFunctionEntryExt( CUT_PBASE_T_USBDI_0493_CUT_PBASE_T_USBDI_0493_ENTRY, this );
|
|
80 |
OstTraceFunctionExit1( CUT_PBASE_T_USBDI_0493_CUT_PBASE_T_USBDI_0493_EXIT, this );
|
0
|
81 |
}
|
|
82 |
|
|
83 |
|
|
84 |
void CUT_PBASE_T_USBDI_0493::ConstructL()
|
|
85 |
{
|
253
|
86 |
OstTraceFunctionEntry1( CUT_PBASE_T_USBDI_0493_CONSTRUCTL_ENTRY, this );
|
0
|
87 |
BaseBulkConstructL();
|
253
|
88 |
OstTraceFunctionExit1( CUT_PBASE_T_USBDI_0493_CONSTRUCTL_EXIT, this );
|
0
|
89 |
}
|
|
90 |
|
|
91 |
|
|
92 |
CUT_PBASE_T_USBDI_0493::~CUT_PBASE_T_USBDI_0493()
|
|
93 |
{
|
253
|
94 |
OstTraceFunctionEntry1( CUT_PBASE_T_USBDI_0493_CUT_PBASE_T_USBDI_0493_ENTRY_DUP01, this );
|
|
95 |
OstTraceFunctionExit1( CUT_PBASE_T_USBDI_0493_CUT_PBASE_T_USBDI_0493_EXIT_DUP01, this );
|
0
|
96 |
}
|
|
97 |
|
|
98 |
void CUT_PBASE_T_USBDI_0493::Ep0TransferCompleteL(TInt aCompletionCode)
|
|
99 |
{
|
253
|
100 |
OstTraceFunctionEntryExt( CUT_PBASE_T_USBDI_0493_EP0TRANSFERCOMPLETEL_ENTRY, this );
|
0
|
101 |
|
253
|
102 |
OstTrace1(TRACE_NORMAL, CUT_PBASE_T_USBDI_0493_EP0TRANSFERCOMPLETEL, "Ep0TransferCompleteL with aCompletionCode = %d",aCompletionCode);
|
0
|
103 |
|
|
104 |
if(aCompletionCode != KErrNone)
|
|
105 |
{
|
|
106 |
if(iCaseStep == EFailed)
|
|
107 |
{// todo, cope with errors
|
|
108 |
}
|
|
109 |
else
|
|
110 |
{
|
|
111 |
TBuf<256> msg;
|
|
112 |
msg.Format(_L("<Error %d> Transfer to control endpoint 0 was not successful"),aCompletionCode);
|
253
|
113 |
OstTrace0(TRACE_NORMAL, CUT_PBASE_T_USBDI_0493_EP0TRANSFERCOMPLETEL_DUP01, msg);
|
0
|
114 |
iCaseStep = EFailed;
|
|
115 |
TTestCaseFailed request(aCompletionCode,msg);
|
|
116 |
iControlEp0->SendRequest(request,this);
|
253
|
117 |
OstTraceFunctionExit1( CUT_PBASE_T_USBDI_0493_EP0TRANSFERCOMPLETEL_EXIT, this );
|
0
|
118 |
return;
|
|
119 |
}
|
|
120 |
}
|
|
121 |
|
|
122 |
switch(iCaseStep)
|
|
123 |
{
|
|
124 |
// Test case passed
|
|
125 |
case EPassed:
|
|
126 |
TestPassed();
|
|
127 |
break;
|
|
128 |
|
|
129 |
// Test case failed
|
|
130 |
case EFailed:
|
|
131 |
TestFailed(KErrCompletion);
|
|
132 |
break;
|
|
133 |
|
|
134 |
case ETransferOut:
|
253
|
135 |
OstTrace1(TRACE_NORMAL, CUT_PBASE_T_USBDI_0493_EP0TRANSFERCOMPLETEL_DUP02, "Try to send %d bytes of data", iNumTransferBytes);
|
|
136 |
{
|
|
137 |
const TPtrC8& midKLiteralEnglish = KLiteralEnglish8().Mid(0*KHostNumWriteBytes, KHostNumWriteBytes);
|
|
138 |
OstTraceData(TRACE_NORMAL, CUT_PBASE_T_USBDI_0493_EP0TRANSFERCOMPLETEL_DUP52, "", midKLiteralEnglish.Ptr(), midKLiteralEnglish.Length());
|
|
139 |
}
|
0
|
140 |
iOutTransfer[0]->TransferOut(KLiteralEnglish8().Mid(0*KHostNumWriteBytes, KHostNumWriteBytes), EFalse);
|
|
141 |
iOutTransfer[1]->TransferOut(KLiteralEnglish8().Mid(1*KHostNumWriteBytes, KHostNumWriteBytes), EFalse);
|
|
142 |
iOutTransfer[2]->TransferOut(KLiteralEnglish8().Mid(2*KHostNumWriteBytes, KHostNumWriteBytes), EFalse);
|
|
143 |
iOutTransfer[3]->TransferOut(KLiteralEnglish8().Mid(3*KHostNumWriteBytes, iNumTransferBytes - 3*KHostNumWriteBytes), ETrue);
|
|
144 |
break;
|
|
145 |
|
|
146 |
case ETransferIn:
|
253
|
147 |
OstTrace1(TRACE_NORMAL, CUT_PBASE_T_USBDI_0493_EP0TRANSFERCOMPLETEL_DUP03, "Try to receive max %d bytes of data", 3*KHostNumReadBytes + KHostFinalNumReadBytes);
|
0
|
148 |
iInTransfer[0]->TransferIn(KHostNumReadBytes);
|
|
149 |
iInTransfer[1]->TransferIn(KHostNumReadBytes);
|
|
150 |
iInTransfer[2]->TransferIn(KHostNumReadBytes);
|
|
151 |
iInTransfer[3]->TransferIn(KHostFinalNumReadBytes);
|
|
152 |
break;
|
|
153 |
|
|
154 |
default:
|
253
|
155 |
OstTrace0(TRACE_NORMAL, CUT_PBASE_T_USBDI_0493_EP0TRANSFERCOMPLETEL_DUP04, "<Error> Unknown test step");
|
0
|
156 |
TestFailed(KErrUnknown);
|
|
157 |
break;
|
|
158 |
}
|
253
|
159 |
OstTraceFunctionExit1( CUT_PBASE_T_USBDI_0493_EP0TRANSFERCOMPLETEL_EXIT_DUP01, this );
|
0
|
160 |
}
|
|
161 |
|
|
162 |
void CUT_PBASE_T_USBDI_0493::TransferCompleteL(TInt aTransferId,TInt aCompletionCode)
|
|
163 |
{
|
253
|
164 |
OstTraceFunctionEntryExt( CUT_PBASE_T_USBDI_0493_TRANSFERCOMPLETEL_ENTRY, this );
|
0
|
165 |
Cancel();
|
|
166 |
|
|
167 |
TInt err(KErrNone);
|
|
168 |
TBuf<256> msg;
|
253
|
169 |
OstTraceExt2(TRACE_NORMAL, CUT_PBASE_T_USBDI_0493_TRANSFERCOMPLETEL, "Transfer completed (id=%d), aCompletionCode = %d",aTransferId, aCompletionCode);
|
0
|
170 |
|
|
171 |
switch(iCaseStep)
|
|
172 |
{
|
|
173 |
case ETransferOut:
|
|
174 |
if(aCompletionCode != KErrNone)
|
|
175 |
{
|
|
176 |
err = KErrCorrupt;
|
|
177 |
msg.Format(_L("<Error %d> No data sent on bulk OUT request"),aCompletionCode);
|
|
178 |
break; //switch(iCaseStep)
|
|
179 |
}
|
|
180 |
|
|
181 |
switch(aTransferId)
|
|
182 |
{
|
|
183 |
case KBulkTransferOutId0:
|
|
184 |
case KBulkTransferOutId1:
|
|
185 |
case KBulkTransferOutId2:
|
|
186 |
case KBulkTransferOutId3:
|
|
187 |
iTransferComplete |= aTransferId;
|
253
|
188 |
OstTrace1(TRACE_NORMAL, CUT_PBASE_T_USBDI_0493_TRANSFERCOMPLETEL_DUP01, "Transfer %d completed", aTransferId);
|
0
|
189 |
break; //switch(aTransferId)
|
|
190 |
|
|
191 |
default:
|
|
192 |
iTransferComplete = 0; //reset
|
|
193 |
err = KUnexpectedTransferID;
|
|
194 |
msg.Format(_L("<Error %d> Unexpected transfer ID, wanted %d or %d or %d or %d, got %d"),
|
|
195 |
err, KBulkTransferOutId0, KBulkTransferOutId1, KBulkTransferOutId2, KBulkTransferOutId3, aTransferId);
|
|
196 |
break; //switch(aTransferId)
|
|
197 |
}
|
|
198 |
|
|
199 |
if(err==KErrNone && iTransferComplete == (KBulkTransferOutId0 | KBulkTransferOutId1 | KBulkTransferOutId2 | KBulkTransferOutId3))
|
|
200 |
{
|
253
|
201 |
OstTrace1(TRACE_NORMAL, CUT_PBASE_T_USBDI_0493_TRANSFERCOMPLETEL_DUP02, "Try to receive back sent data. Transfers Completed %d", iTransferComplete);
|
0
|
202 |
iCaseStep = ETransferIn;
|
|
203 |
TWriteSynchronousCachedReadDataRequest request(1,1,1); //Use first read EP and first write EP (on interface 1)
|
|
204 |
iControlEp0->SendRequest(request,this);
|
|
205 |
iTransferComplete = 0; //reset
|
|
206 |
}
|
|
207 |
break; //switch(iCaseStep)
|
|
208 |
|
|
209 |
case ETransferIn:
|
|
210 |
if(aCompletionCode != KErrNone)
|
|
211 |
{
|
|
212 |
err = KErrCorrupt;
|
|
213 |
msg.Format(_L("<Error %d> No data sent on bulk IN request"),aCompletionCode);
|
|
214 |
break; //switch(iCaseStep)
|
|
215 |
}
|
|
216 |
switch(aTransferId)
|
|
217 |
{
|
|
218 |
case KBulkTransferInId0:
|
|
219 |
case KBulkTransferInId1:
|
|
220 |
case KBulkTransferInId2:
|
|
221 |
case KBulkTransferInId3:
|
|
222 |
iTransferComplete |= aTransferId;
|
|
223 |
break; //switch(aTransferId)
|
|
224 |
|
|
225 |
default:
|
253
|
226 |
OstTrace0(TRACE_NORMAL, CUT_PBASE_T_USBDI_0493_TRANSFERCOMPLETEL_DUP03, "Bad Transfer ID");
|
0
|
227 |
iTransferComplete = 0; //reset
|
|
228 |
err = KUnexpectedTransferID;
|
|
229 |
msg.Format(_L("<Error %d> Unexpected transfer ID, wanted %d or %d or %d or %d, got %d"),
|
|
230 |
err, KBulkTransferInId0, KBulkTransferInId1, KBulkTransferInId2, KBulkTransferInId3, aTransferId);
|
|
231 |
break; //switch(aTransferId)
|
|
232 |
}
|
|
233 |
|
|
234 |
if(err==KErrNone && iTransferComplete == (KBulkTransferInId0 | KBulkTransferInId1 | KBulkTransferInId2 | KBulkTransferInId3))
|
|
235 |
{
|
|
236 |
// compare data rcvd now
|
|
237 |
TPtrC8 data1(iInTransfer[0]->DataPolled());
|
|
238 |
TPtrC8 data2(iInTransfer[1]->DataPolled());
|
|
239 |
TPtrC8 data3(iInTransfer[2]->DataPolled());
|
|
240 |
TPtrC8 data4(iInTransfer[3]->DataPolled());
|
|
241 |
if(ValidateData(data1, KLiteralEnglish8().Mid(0*KHostNumReadBytes, KHostNumReadBytes)) == EFalse)
|
|
242 |
{
|
|
243 |
err = KErrCompletion; //indicates data validation failure
|
|
244 |
break; //switch(iCaseStep)
|
|
245 |
}
|
|
246 |
|
|
247 |
if(ValidateData(data2, KLiteralEnglish8().Mid(1*KHostNumReadBytes, KHostNumReadBytes)) == EFalse)
|
|
248 |
{
|
|
249 |
err = KErrCompletion; //indicates data validation failure
|
|
250 |
break; //switch(iCaseStep)
|
|
251 |
}
|
|
252 |
|
|
253 |
if(ValidateData(data3, KLiteralEnglish8().Mid(2*KHostNumReadBytes, KHostNumReadBytes)) == EFalse)
|
|
254 |
{
|
|
255 |
err = KErrCompletion; //indicates data validation failure
|
|
256 |
break; //switch(iCaseStep)
|
|
257 |
}
|
|
258 |
|
|
259 |
if(ValidateData(data4, KLiteralEnglish8().Mid(3*KHostNumReadBytes, iNumTransferBytes - 3*KHostNumReadBytes)) == EFalse)
|
|
260 |
{
|
|
261 |
err = KErrCompletion; //indicates data validation failure
|
|
262 |
break; //switch(iCaseStep)
|
|
263 |
}
|
|
264 |
|
|
265 |
if(err == KErrNone)
|
|
266 |
{
|
|
267 |
// Comparison is a match
|
253
|
268 |
OstTrace1(TRACE_NORMAL, CUT_PBASE_T_USBDI_0493_TRANSFERCOMPLETEL_DUP04, "Comparison for IN transfer is a match - Number of Transfer Bytes %d", iNumTransferBytes);
|
0
|
269 |
iTransferComplete = 0; //reset
|
|
270 |
if(++iNumTransferBytes<=KFinishNumTransferBytes)
|
|
271 |
/*
|
|
272 |
Loop round again having added one to
|
|
273 |
the number of transfer bytes to be used.
|
|
274 |
In this test there should be three repeats of the underlying
|
|
275 |
"Transfer Out followed by Transfer In" test.
|
|
276 |
The repeats will use
|
|
277 |
KStartNumTransferBytes,
|
|
278 |
KStartNumTransferBytes+1,
|
|
279 |
and finally
|
|
280 |
KFinishNumTransferBytes.
|
|
281 |
*/
|
|
282 |
{
|
|
283 |
iCaseStep = ETransferOut;
|
|
284 |
TEndpointReadUntilShortRequest request(1,1,KClientNumReadBytes);// EP1 because 1st reader EP
|
|
285 |
iControlEp0->SendRequest(request,this);
|
|
286 |
break; //switch(iCaseStep)
|
|
287 |
}
|
|
288 |
iCaseStep = EPassed;
|
|
289 |
TTestCasePassed request;
|
|
290 |
iControlEp0->SendRequest(request,this);
|
|
291 |
}
|
|
292 |
}
|
|
293 |
break; //switch(iCaseStep)
|
|
294 |
|
|
295 |
default:
|
|
296 |
err = KUndefinedStep;
|
|
297 |
msg.Format(_L("<Error %d> Undefined case step %d reached"),KUndefinedStep, iCaseStep);
|
|
298 |
break; //switch(iCaseStep)
|
|
299 |
}
|
|
300 |
|
|
301 |
if(err!=KErrNone)
|
|
302 |
{
|
253
|
303 |
OstTrace0(TRACE_NORMAL, CUT_PBASE_T_USBDI_0493_TRANSFERCOMPLETEL_DUP05, msg);
|
0
|
304 |
iCaseStep = EFailed;
|
|
305 |
TTestCaseFailed request(err,msg);
|
|
306 |
iControlEp0->SendRequest(request,this);
|
253
|
307 |
OstTraceFunctionExit1( CUT_PBASE_T_USBDI_0493_TRANSFERCOMPLETEL_EXIT, this );
|
0
|
308 |
return;
|
|
309 |
}
|
253
|
310 |
OstTraceFunctionExit1( CUT_PBASE_T_USBDI_0493_TRANSFERCOMPLETEL_EXIT_DUP01, this );
|
0
|
311 |
}
|
|
312 |
|
|
313 |
|
|
314 |
void CUT_PBASE_T_USBDI_0493::DeviceInsertedL(TUint aDeviceHandle)
|
|
315 |
{
|
253
|
316 |
OstTraceFunctionEntryExt( CUT_PBASE_T_USBDI_0493_DEVICEINSERTEDL_ENTRY, this );
|
0
|
317 |
Cancel();
|
253
|
318 |
OstTrace1(TRACE_NORMAL, CUT_PBASE_T_USBDI_0493_DEVICEINSERTEDL, "****** Father William Pattern Length is %d bytes! *********", KLiteralEnglish8Length);
|
0
|
319 |
if(BaseBulkDeviceInsertedL(aDeviceHandle) == EDeviceConfigurationError)
|
|
320 |
// Prepare for response from control transfer to client
|
|
321 |
{
|
|
322 |
iCaseStep = EFailed;
|
|
323 |
}
|
|
324 |
|
|
325 |
// Create the bulk transfers
|
253
|
326 |
OstTrace1(TRACE_NORMAL, CUT_PBASE_T_USBDI_0493_DEVICEINSERTEDL_DUP01, "Trying to create the bulk transfers - size 0x%u", KBulkTransferMaxSize);
|
0
|
327 |
iInTransfer[0] = new (ELeave) CBulkTransfer(iTestPipeInterface1BulkIn,iUsbInterface1,KBulkTransferMaxSize,*this,KBulkTransferInId0);
|
|
328 |
iInTransfer[1] = new (ELeave) CBulkTransfer(iTestPipeInterface1BulkIn,iUsbInterface1,KBulkTransferMaxSize,*this,KBulkTransferInId1);
|
|
329 |
iInTransfer[2] = new (ELeave) CBulkTransfer(iTestPipeInterface1BulkIn,iUsbInterface1,KBulkTransferMaxSize,*this,KBulkTransferInId2);
|
|
330 |
iInTransfer[3] = new (ELeave) CBulkTransfer(iTestPipeInterface1BulkIn,iUsbInterface1,KBulkTransferMaxSize,*this,KBulkTransferInId3);
|
|
331 |
iOutTransfer[0] = new (ELeave) CBulkTransfer(iTestPipeInterface1BulkOut,iUsbInterface1,KBulkTransferMaxSize,*this,KBulkTransferOutId0);
|
|
332 |
iOutTransfer[1] = new (ELeave) CBulkTransfer(iTestPipeInterface1BulkOut,iUsbInterface1,KBulkTransferMaxSize,*this,KBulkTransferOutId1);
|
|
333 |
iOutTransfer[2] = new (ELeave) CBulkTransfer(iTestPipeInterface1BulkOut,iUsbInterface1,KBulkTransferMaxSize,*this,KBulkTransferOutId2);
|
|
334 |
iOutTransfer[3] = new (ELeave) CBulkTransfer(iTestPipeInterface1BulkOut,iUsbInterface1,KBulkTransferMaxSize,*this,KBulkTransferOutId3);
|
|
335 |
|
|
336 |
// Initialise the descriptors for transfer
|
253
|
337 |
OstTrace0(TRACE_NORMAL, CUT_PBASE_T_USBDI_0493_DEVICEINSERTEDL_DUP02, "Initialising the transfer descriptors");
|
0
|
338 |
TInt err = iUsbInterface1.InitialiseTransferDescriptors();
|
|
339 |
if(err != KErrNone)
|
|
340 |
{
|
|
341 |
TBuf<256> msg;
|
|
342 |
msg.Format(_L("<Error %d> Unable to initialise transfer descriptors"),err);
|
253
|
343 |
OstTrace0(TRACE_NORMAL, CUT_PBASE_T_USBDI_0493_DEVICEINSERTEDL_DUP03, msg);
|
0
|
344 |
iCaseStep = EFailed;
|
|
345 |
TTestCaseFailed request(err,msg);
|
|
346 |
iControlEp0->SendRequest(request,this);
|
253
|
347 |
OstTraceFunctionExit1( CUT_PBASE_T_USBDI_0493_DEVICEINSERTEDL_EXIT, this );
|
0
|
348 |
return;
|
|
349 |
}
|
|
350 |
|
253
|
351 |
OstTrace1(TRACE_NORMAL, CUT_PBASE_T_USBDI_0493_DEVICEINSERTEDL_DUP04, "Ask client to read %d bytes of data", KClientNumReadBytes);
|
0
|
352 |
iCaseStep = ETransferOut;
|
|
353 |
TEndpointReadUntilShortRequest request(1,1,KClientNumReadBytes);// EP1 because 1st reader EP
|
|
354 |
iControlEp0->SendRequest(request,this);
|
253
|
355 |
OstTraceFunctionExit1( CUT_PBASE_T_USBDI_0493_DEVICEINSERTEDL_EXIT_DUP01, this );
|
0
|
356 |
}
|
|
357 |
|
|
358 |
} //end namespace
|