Appendix B : Software Functions - Vecow SPC-4500 User Manual

Intel atom x7-e3950 apollo lake fanless embedded system, ultra-compact, rugged, poe+, -40 degrees c to 85 degrees c operation
Table of Contents

Advertisement

B

APPENDIX B : Software Functions

B.1 Driver API Guide
In Runtime folder, on SPC4K5.h :
_DLL_IMPORT_ definition is used on LoadLibrary API for SPC4K5.dll.
SPC4K5_EXPORTS definition is used on SPC4K5.dll building.
Otherwise, that is used to compile with SPC4K5.lib
BOOL Initial ()
Initial machine for GPIO, and watchdog timer
Return :
TRUE (1): Success;
FALSE (0): Fail (Driver not exists, or initial error (version is too old, or
machine not match))
BOOL GetGPIOConfig (WORD *Mask)
Get GPIO configuration (by variable)
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)
BOOL SetGPIOConfig (WORD Mask)
Set GPIO configuration
Mask ([15:0]): In/Out, pin setting by hexadecimal bitmask
1 : Output;
0 : Input
Return :
TRUE (1) : Success;
FALSE (0) : Fail (Initial error, or hardware problem)
©Vecow SPC-4500 User Manual
Appendix B
68

Advertisement

Table of Contents
loading

Table of Contents