
ACM-XD15B7
21
www.acrosser.com
4. Software Installation and
Programming Guide
4.1.
Introduction
4.1.1.
Environment
This test utility develop is based on kernel 4.9 or above (Ubuntu 18.04.1 Server
64bit).
4.1.2.
GPIO and Watchdog
This model provides both a GPIO interface and a Watchdog timer. Users can use
the GPIO and Watchdog APIs to configure and to access the GPIO interface and the
Watchdog timer. The GPIO has four input pins and four output pins. The Watchdog
timer can be set to 1~255 seconds. Setting the timer to zero disables the timer. The
remaining seconds of the timer to reboot can be read from the timer.
4.2.
API List and Descriptions
4.2.1.
General
Syntax:
lib_init(void)
Description:
Library initialization, using this library must be call this
function first.
Note: initialization may be wait 1 mins, because scan pic
port
Parameters:
None
Return Value:
0:Successful, -1:Fail.
Syntax:
lib_close(void)
Description:
Library close, when you not used this library must be call
this function.
Parameters:
None
Return Value:
0:Successful, -1:Fail.