Difference between revisions of "83Plus:Software:usb8x/Asm Interface/SetupInPipe"

From WikiTI
Jump to: navigation, search
 
(pipe/endpoint #)
Line 7: Line 7:
  
 
=== Inputs ===
 
=== Inputs ===
 +
* B: Pipe/Endpoint number
 
* C: Pipe type (pipeBulk or pipeInt)
 
* C: Pipe type (pipeBulk or pipeInt)
 
* D: Packet size, in 8-byte chunks
 
* D: Packet size, in 8-byte chunks
Line 19: Line 20:
  
 
== Notes ==
 
== Notes ==
The [[../AutoSetup|AutoSetup]] entry point automatically sets up incoming and outgoing pipes.  You don't need to use this routine if you use AutoSetup.
+
The [[../AutoSetup|AutoSetup]] entry point automatically sets up incoming and outgoing pipes.  You don't need to use this routine if you use AutoSetup.  The pipe number is the address with the direction bit removed.  So the pipe number for address 81h would just be 01h.
  
 
== See Also ==
 
== See Also ==
 
* [[../SetupOutPipe|SetupOutPipe]] - Sets up an outgoing pipe
 
* [[../SetupOutPipe|SetupOutPipe]] - Sets up an outgoing pipe

Revision as of 08:27, 17 August 2006

Synopsis

Name: SetupInPipe

Minimum usb8x version: 0.05

Sets up an incoming pipe.

Inputs

  • B: Pipe/Endpoint number
  • C: Pipe type (pipeBulk or pipeInt)
  • D: Packet size, in 8-byte chunks
  • E: Polling interval
  • HL: Address of callback routine

Outputs

None

Destroys

  • AF, BC, DE, HL

Notes

The [[../AutoSetup|AutoSetup]] entry point automatically sets up incoming and outgoing pipes. You don't need to use this routine if you use AutoSetup. The pipe number is the address with the direction bit removed. So the pipe number for address 81h would just be 01h.

See Also

  • [[../SetupOutPipe|SetupOutPipe]] - Sets up an outgoing pipe