Vecow EMBC-2000 User Manual page 62

3.5 inch embedded single board computer with intel atom x7-e3950, 2 gige lan w/ieee 1588, isolated com, tpm 2.0, -40 degrees celsius to 85 degrees celsius
Table of Contents

Advertisement

B
APPENDIX B : Software Functions
B.1 Driver API Guide
In Runtime folder, on EMBC2K.h:
_DLL_IMPORT_ definition is used on LoadLibrary API for EMBC2K.dll.
EMBC2K_EXPORTS definition is used on EMBC2K.dll building.
Otherwise, that is used to compile with EMBC2K.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)
BOOL GetGPIO(WORD *DI)
Get GPIO input
DI ([15:0]): Input state, pin setting by hexadecimal bitmask
1: High; 0: Low
Return :
TRUE (1): Success;
FALSE (0): Fail (Initial error, or call by pointer error, or hardware problem)
©Vecow EMBC-2000 User Manual
Appendix B
56

Advertisement

Table of Contents
loading

Table of Contents