Download SmartLib User Guide

Transcript
HTFindMIIAddress
Description
This function will find the first MII PHY address which appears to have a
legal device present. This command applies only to 100 Mb SmartCards.
Syntax
int HTFindMIIAddress(unsigned int* puiAddress, unsigned short*
puiControl Bits, int Hub, int Slot, int Port)
Parameters
puiAddress
unsigned int* Specific address found is returned here.
puiControlBits
unsigned short* Control register bits read are
returned here.
iHub
int Identifies the hub where the SmartCard is located.
The range is 0 (first hub) through N(number of hubs) -1.
Remember to subtract one since the hub identification
starts at 0.
Important: See Working with Multiple Hubs in Chapt 1.
iSlot
int Identifies the slot where the SmartCard is located.
Ranges from 0 (first slot in iHub) to 19 (last card in
Hub).
iPort
int Identifies the SmartCard port. (On the current
SmartCards, Port is always 0.)
Return
Value
The return value is >= 0 if the function executed successfully. A failure
code, which is less than zero, is returned if the function failed. See
Appendix A.
Comments
Of the 32 possible addresses on an MII transceiver, this command will find
the lowest address which returns a legal control register value.
142
SmartLib User Guide