GetIndADB
GetIndADB Find out device's address
#include <DeskBus.h> ADB Manager
ADBAddress GetIndADB(info, devTableIndex);
ADBDataBlock *info ; address of parameter block
short devTableIndex; value identifying device table index
returns bus address (positive value ) or Error Code
(negative value)
Use GetIndADB to obtain a device's current bus address.
info is a parameter block whose relevant fields are:
Out-In Name Type Size Offset Description
<- devType SignedByte 1 0 Is it a mouse, keyboard, etc.?
<- origADBAddr SignedByte 1 1 Original bus address
<- dbServiceRtPtr Ptr 4 2 Pointer to a service routine
<- dbDataAreaAddr Ptr 4 6 Pointer to a data area
devTableIndex is the index number on the device table of the entry whose address is
being sought.
Returns: a bus address byte for the device specified by the device table
index. A negative number is returned if the search ends
without finding the device.