83Plus:Software:usb8x/Asm Interface

From WikiTI
Revision as of 19:21, 15 July 2006 by Dan Englender (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Many usb8x functions can be by other programs/applications through usb8x's assembly language U_CALL interface. Macros are provded in usb8x.inc to simplify the process. The macros require a 32-byte RAM buffer to be defined as USBDriverCall. The U_CALL system must be initialized by the application as follows:

U_CALL_INIT CallBackRoutine

Where callback routine is a subroutine that will be called when data arrives on the USB port.


After the U_CALL system has been initialized with U_CALL_INIT, use the U_CALL macro to call usb8x entry points. Entry points are:

DriverInit Initialize the USB driver
HostInit Initialize a USB device
HostKill Uninitialize a USB device