85
©Vecow SPC-4000 User Manual
Appendix B
B
APPENDIX B : Software Functions
B.1 Driver API Guide
In Runtime folder, on SPC4K.h :
_DLL_IMPORT_ definition is used on LoadLibrary API for SPC4K.dll.
SPC4K_EXPORTS definition is used on SPC4K.dll building.
Otherwise, that is used to compile with SPC4K.lib
BOOL Initial (BYTE Isolate_Type, BYTE DIO_NPN)
Initial machine for DIO, watchdog timer, and POE
Isolate_Type : DIO type
1 : Isolated DIO;
0 : Non-Isolated DIO
DIO_NPN : DI/DO type
1 : PNP (Source) mode for European rule;
0 : NPN (Sink) mode for Japanese rule
Return :
TRUE (1) : Success;
FALSE (0) : Fail (Driver not exists, or initial error (version is too old, or
machine not match))
BOOL GetDIO1Config (BYTE *Isolate_Type, BYTE *DI_NPN, BYTE *DO_
NPN, WORD *Mask)
Get DIO configuration (by variable)
Isolate_Type : DIO type
1 : Isolated DIO;
0 : Non-Isolated DIO
DI_NPN ([7:0]) : DI type, pin setting by hexadecimal bitmask
1 : PNP (Source) mode for European rule;
0 : NPN (Sink) mode for Japanese rule
DO_NPN : DO type
1 : PNP (Source) mode for European rule;
0 : NPN (Sink) mode for Japanese rule
Mask ([15:0]) : In/Out, pin setting by hexadecimal bitmask
1 : Output;
0 : Input
Return :
TRUE (1) : Success;
FALSE (0) : Fail (Initial error, or call by pointer error, or hardware problem)
Содержание SPC-4000
Страница 61: ...54 Vecow SPC 4000 User Manual SYSTEM SETUP Step 3 Install DDR3L RAM module into SO DIMM socket Step 4 Finished...
Страница 63: ...56 Vecow SPC 4000 User Manual SYSTEM SETUP Step 3 Fasten a PHILLIPS M2 5 screw...
Страница 66: ...59 Vecow SPC 4000 User Manual SYSTEM SETUP Step 3 Install SIM card and close the cover Step 4 Finished...
Страница 69: ...62 Vecow SPC 4000 User Manual SYSTEM SETUP 3 6 2 SPC 4020A Step 1 Fasten PHILLPIS M3 screw Step 2 Finished...