B
APPENDIX B : Software Functions
B.1 Driver API Guide
In Runtime folder, on PE5K.h :
_DLL_IMPORT_ definition is used on LoadLibrary API for PE5K.dll. PE5K_
EXPORTS definition is used on PE5K.dll building.
BOOL Initial(BYTE Scan, BYTE ID)
Initial card for POE
Scan : POE ID scan type
2: Auto scan; 1: Manual setup; 0: Not detect ID ([3:0]): POE ID by manual
setting
Return :
TRUE (1): Success;
FALSE (0): Fail (Driver not exists, or out of range error, or initial error (version
is too old, or card not match))
BOOL GetPOEConfig(BYTE ID, BYTE *Auto, BYTE *Mask)
Get POE configuration (by variable) ID ([3:0]): POE ID
Auto ([3:0]): Auto mode, pin setting by hexadecimal bitmask
1: Auto;
0: Manual
Mask ([3:0]): DC Enable/Disable, pin setting by hexadecimal bitmask
1: Enable;
0: Disable
Return :
TRUE (1): Success;
FALSE (0): Fail (Initial error, or call by pointer error, or hardware problem)
BOOL SetPOEConfig(BYTE ID, BYTE Auto, BYTE Mask)
Set POE configuration ID ([3:0]): POE ID
Auto ([3:0]): Auto mode, pin setting by hexadecimal bitmask
1: Auto;
0: Manual
Mask ([3:0]): DC Enable/Disable, pin setting by hexadecimal bitmask
1: Enable;
0: Disable
Return :
TRUE (1): Success;
FALSE (0): Fail (Initial error, or out of range error, or hardware problem)
©Vecow PE-5000 User Manual
©Vecow PE-5000 User Manual
Appendix B
38
38