B
APPENDIX B : Software Functions
B.1 Driver API Guide
In Runtime folder, on PE3K.h:
_DLL_IMPORT_ definition is used on LoadLibrary API for PE3K.dll.
PE3K_EXPORTS definition is used on PE3K.dll building.
Otherwise, that is used to compile with PE3K.lib
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)
Appendix B
19