[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [usb] how host deal with the non 4-byte boundery datapacket?



hi,

following solution may be a probable one.

as soon as the host receives less than 4 bytes, it can dump the
remaining DWORD bits with '0'. the counter register however maintains
the no. of bytes received. there will not be any problem even while
further processing of these bytes if the host keeps track of the no. of
bytes read with respect to the counter register.

...Vikas Chandra Rao.

>>> mdennis97@hotmail.com 02/13/03 01:38PM >>>
hi,all

Nominally,usb host read/write system memory in DWORD(4 byte)boundry.But
the 
packets received from device are always not the multiple of 4 bytes.For
a 
host controller,how to deal with this case.That's to say,if a device
can 
only send a maximum packet size 201 bytes large,the host controller can

write the former 200 bytes DWORD by DWORD,how to process the last
byte?

Regards
Dennis





_________________________________________________________________
Help STOP SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail 

--
To unsubscribe from usb mailing list please visit
http://www.opencores.org/mailinglists.shtml
--
To unsubscribe from usb mailing list please visit http://www.opencores.org/mailinglists.shtml