SetADBInfo
You can use the SetADBInfo function to set the address of the device handler routine and data area address for a specified ADB device.
FUNCTION SetADBInfo (VAR info: ADBSetInfoBlock;
adbAddr: ADBAddress): OSErr;
info
- An ADB information block. On entry, the fields of this parameter block should contain the desired address of the device handler routine and
data area.
adbAddr
- The ADB address of a device.
| --> | siServiceRtPtr | Ptr | The address of the device handler for this device. |
| --> | siDataAreaAddr | Ptr | The address of the handler's data area for the device at the specified address. |
DESCRIPTION
The SetADBInfo function sets the device handler address and the data area address in the ADB device table entry whose address is specified by the adbAddr parameter.
- IMPORTANT
- You should send a Flush command to the device after calling it with
SetADBInfo to avoid sending old data to the new data area address.
RESULT CODES
SEE ALSO
See "ADB Information Block," beginning on page 5-38, for the structure of the ADB information block.