Flushing EP2IN on MAX3421E and WinUSB



In my project I sometimes read a stream of data from a device attached to a
MAX3421E. That part has a couple of 64 bytes FIFO's, and when they are
empty, I fill them again, and lovely data rates.



All is well UNTIL I want to stop the stream, and read something else. The
2*64 bytes gets prefixed to the next thing I read.



Reading the data does not work as the CPU driving the MAX3421E obligingly
fills the FIFO's up again.



What I want to do is:

a) Send vendor specific command to start stream operation

b) Read loads of data

c) Send vendor specific command to stop stream operation (stops filling
EP2IN any more but there are 2*64 bytes up the spout)

c) Do something at the PC end to get rid of those bytes.

e) Send vendor specific command to start next operation



Is there anyway the MAX3421E can empty the EP2INFIFO's in step c?



What is the "right" way of doing step d? I have tried an assortment of
flushing, aborting, and resetting EP2IN at the PC end of things.



TIA,

Bill


.



Relevant Pages

  • Re: Number of pause seconds is out of range
    ... I have a little command file that is invoked from all our ... > with the 'pause' command expires. ... STREAM a job that does nothing but wait thirty seconds ...
    (comp.sys.hp.mpe)
  • Re: Which new language to learn?
    ... as evidenced by Ada 95. ... In my opinion all C programs assume other languages will interface ... Execute the command with write_mode ... type stream is private; ...
    (comp.programming)
  • Re: FW: [HP3000-L] Finding stream job signons
    ... UDC/Command file replacement for stream command that creates your ... To join/leave the list, search archives, change list settings, * ...
    (comp.sys.hp.mpe)
  • RE: Question on HPDM
    ... Cmd: OPERCMD CANCEL STREAM ... will only see the output result from the cancel command and not the ... ExHPDM address space were left active and could not be terminated. ...
    (bit.listserv.ibm-main)
  • Re: Designfrage in C#
    ... protected void WriteCommand(string command) ... ... protected string ReadCommand... ... class Command1: CommandBase{ ... eigene Klasse zu packen (am besten als ein von Stream abgeleitete Klasse), ...
    (microsoft.public.de.german.entwickler.dotnet.csharp)