Moxa TC-6110-T-LX [72/117] Moxa safeguard

Moxa TC-6110-T-LX [72/117] Moxa safeguard
TC-6110 Linux User's Manual Programming Guide
5-6
/media/diskxpx
Returns None
int mxhtsp_is_button_pressed (int fd, int btn_num)
Description Checks if a button is pressed.
Parameters fd: the open port
btn_num: the button number
Returns 1: pressed
0: not pressed
-1: fail
int mxhtsp_is_disk_busy (int fd, int disk_num)
Description Checks if a disk is busy.
Parameters fd: the open port
disk_num: the disk number
Returns 1: busy
0: idle
-1: fail
int mxhtsp_is_disk_plugged (int fd, int disk_num)
Description Checks if a disk is plugged in.
Parameters fd: the open port
disk_num: the disk number
Returns 1: plugged
0: unplugged
-1: fail
Open the hotswap devices.
Description Checks if a disk is plugged in.
Returns fd if successful
-1: fail
int mxhtsp_set_led (int fd, int led_num, int on)
Description Sets the led to on/off.
Parameters fd: the open port
led_num: the led number
1 on
0 off
Returns 0: success
-1: fail
Moxa SafeGuard
A development library is provided to help you develop your applications.
ATTENTION
There are two accelerometers in TC
-6110-LX. The i2c address for accelerometer #1 is 0x1D, and 0x53 for
accelerometer #2.

Содержание

Похожие устройства

Скачать