Revision: 1.23
54
msg.length = 3;
data:
The byte array which holds the message data.
4.1.2 GPIO and Watchdog
Overview
AR-B6002 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.
In this GPIO and Watchdog package, on Linux and Windows platform, we provide:
1. API source code.
2. GPIO and Watchdog test utility and the utility source code.
4.1.3 Power Subsystem
Overview
When the AR-B6002 is at Power Mode 15, the Power Subsystem APIs can be used to
get and set the configuration of power subsystem. By invoking the Power Subsystem
APIs, the users can:
1. Get the current status of ignition (ON or OFF).
2. Set the Power-On mode. This setting will be kept in the power subsystem and will
take effect at next system boot.
3. From the power subsystem, get the stored setting of Power-On mode.
4. Get or set the time of Hard Off delay in seconds or in minutes.
5. Get or set the time of Soft Off delay in seconds or in minutes
6. Get the battery voltage.
7. Get the version number of the firmware of the Power Subsystem.
8. Set the Hard Off delay and Soft Off delay to the default value.