Important: The information in this document is obsolete and should not be used for new development.
OTGetDeviceTypeFromPortRef
Extracts the value of the hardware device type from a port reference.C INTERFACE
UInt16 OTGetDeviceTypeFromPortRef(OTPortRef ref);C++ INTERFACE
None. C++ applications use the C interface to this function.PARAMETERS
ref
- The port reference from which you wish to extract the
device type.- function result
- Possible return values are listed in "The Port Reference".
DISCUSSION
TheOTGetDeviceTypeFromPortRef
function extracts the device type value from a port reference. You can obtain such a port reference using theOTGetIndexedPort
function to access the port registry.You can also use the
OTGetBusTypeFromPortRef
function and theOTGetSlotFromPortRef
function to get the bus type and slot number information from the port reference.SEE ALSO
"Obtaining Port Information".The
OTCreatePortRef
function.