
struct CanMsg msg;
msg.data[0]
=
0xa1;
msg.data[1]
=
0xb2;
msg.data[2] = 0xc3;
msg.length = 3;
6.2 GPIO and Watchdog
6.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.
6.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.
6.3 Power Subsystem
6.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, the 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.
49
Summary of Contents for AR-B6005
Page 1: ...1 AR B6005 Board User Manual ...
Page 8: ...2 2 Locations of I O ports Jumper settings definition 8 ...
Page 20: ...3 3 Superio Setup 20 ...
Page 23: ...3 5 Boot setup Choice boot priority 23 ...
Page 34: ...Driver Page This is the Driver Installation Page 34 ...
Page 35: ...Click the icon all the drivers will be selected 35 ...
Page 36: ...Click the icon all selected items will be cleared 36 ...
Page 38: ...Please click Yes to restart the system 38 ...
Page 43: ...Documents Page Double click on one of the items to open the manual 43 ...