16
Function Library
Leading
EDGE COMPUTING
Return Code
No error occurs if return value >= 0, and if negative value, as
follows
-2
An invalid wCardNumber parameter,
wCardNumber is less than 32
-5
The function is not supported by this card
SmartPoE_Get_MCUVersion
-11
The input argument(s) exceed the allowed
range.
SmartPoE_Get_PortStatus
Retrieves Port Status.
Syntax
C/C++
short SmartPoE_Get_PortStatus (unsigned short
wCardNumber, unsigned short PortNumber,
unsigned char * bstateClass, unsigned char *
bstatePowerGood)
Parameter(s)
wCardNumber:
Retrieved from the return value of
SmartPoE_Register_Card.
PortNumber:
Indicates port number from 1 to 4.
wstate:
bstateClass:
0:Unknow
1:Class 1
NOTE:
NOTE:
High Temperature and Low Temperature settings must be
more than 10°C apart.