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

From WikiTI
Jump to: navigation, search
(pipe/endpoint #)
(Inputs: No longer takes callback)
 
Line 11: Line 11:
 
* D: Packet size, in 8-byte chunks
 
* D: Packet size, in 8-byte chunks
 
* E: Polling interval
 
* E: Polling interval
* HL: Address of callback routine
 
  
 
=== Outputs ===
 
=== Outputs ===

Latest revision as of 13:37, 28 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

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