Gpio and watchdog, Overview, Installing device driver – Acrosser AIV-HM76V1FL User Manual

Page 47: Power subsystem

Advertising
background image

AIV-HM76V1FL Series User Manual

47

www.acrosser.com

msg.data[2] = 0xc3;

msg.length = 3;

5.1.2. GPIO and Watchdog

5.1.2.1. Overview

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.

5.1.2.2. Installing Device Driver

Before executing the applications which invoke the GPIO or Watchdog APIs, users

should make sure that the Linux device driver or the Windows device driver has

been installed.
On Linux platform, after successfully installing the device driver, a character device

node named “/dev/AcroDev” will be created automatically. The APIs open the device

node “/dev/AcroDev” implicitly so acquiring a file descriptor of “/dev/AcroDev” is not

ncecssary.
On Windows platform, after successfully installing the device driver, there is a device

which shows ‘Acrosser Device’ in the ‘Device Manager’. The APIs on Windows

platform open this device implicitly.

5.1.3. Power Subsystem

5.1.3.1. Overview

The Power Subsystem APIs can be used to get and set the configuration of power

subsystem. By invoking the Power Subsystem APIs, users can:
1. Get the firmware version number of the Power Subsystem.

2. Set all the settings of the Power Subsystem to the default values.

3. Get/Set the status of the remote switch(ENABLE or DISABLE).

4. Get the battery voltage.

5. Get/set the status of the battery monitor (ON or OFF).

6. Get/set the delta value which identifies how much the battery voltage can be

lower than the nominal voltage. When the voltage is lower than the tolerable

voltage, the power subsystem turns off the system.

7. Get/set the Soft Off deley.

8. Get/set the Hard Off delay.

9. Get/set the Power On delay.

10. Get/set the Shutdown delay.

Advertising