GetADBInfo
GetADBInfo Obtain information on the specified device ADBAddress ADBAddr ; value identifying device table index
Use GetADBInfo to obtain current information about a device's address, ID, service routine and data area.
info is a parameter block whose relevant fields are:
<- dbServiceRtPtr Ptr 4 2 Pointer to a service routine <- dbDataAreaAddr Ptr 4 6 Pointer to a data area ADBAddr is the index number on the device table of the entry being queried.
noErr (0) No error
Notes: The devHandlerID parameter indicates the device type, which the
application can change if the device is capable of various modes of operation.
Values below 0x20 are reserved by Apple and other specific values
precipitate actions rather than being stored to indicate device type: 0x00
changes bits 8 through 13 of register 3 to mirror the rest of the Listen
command but leaves the device type un changed; 0xFD, when sent by the
Listen command, changes the device address to match bits 8 through 11 if
the device activator is depressed but leaves the device type and the flags the
same as they were; 0xFE, when sent sent by the Listen command, will
change the device address to match bits 8 through 11 as long as no other
device already has that address but leaves the devHandlerID and flags
un changed; and 0xFF, when sent by the Listen command, causes the device
to run a self-test. A successful test leaves register 3 the same as before,
while a failed self-test clears the devHandlerID field to 0x00.