
63
Chapter 4
While (1) {
// do your job here.
Sleep(8000);
DeviceIoControl(m_hWDT, IOCTL_WDT_STROBE, NULL,0, NULL,
0, &dwTemp, NULL);
}
DeviceIoControl(m_hWDT, IOCTL_WDT_DISABLE, NULL, , NULL,
0, &dwTemp, NULL);
CloseHandle(m_hWDT);
4.5.3 DIO, LED and Buzzer
UNO-1019 has 2 DI(Digital Input) , 2 DO(Digital Output), 3 LED and a
Buzzer. Users can access these resources via the built-in Advantech IO
Service driver named “ADV1:”.The follows are the descriptions and
examples of the usable DeviceIoControl codes in this driver:
How to Use the Control Code
There are 11 control codes for the operation codes in DIO, LED, and
Buzzer (driver).
1. ADV_IOCTL_READ_DI:
Read the Digital Input value.
lpInBuffer : unsed.
nInBufferSize: unused.
lpOutBuffer: The BYTE pointer to the current DI value. BIT0 indicates
DI_0 state; BIT1 indicates DI_1 state.
nOutBufferSize: User provided output buffer size.
Содержание UNO-1019
Страница 1: ...UNO 1019 PXA 200MHZ 64MBRAM 2xLAN 4xCOM Universal Network Controller User Manual...
Страница 14: ...UNO 1019 User Manual 6 Figure 1 3 UNO 1019 Front View Dimensions Figure 1 4 UNO 1019 Bottom View Dimensions...
Страница 23: ...15 Chapter 2 Figure 2 6 Digital Input Connection Dry Contact Figure 2 7 Digital Input Connection Wet Contact...
Страница 26: ...UNO 1019 User Manual 18 Then screw the whole device to the wall Figure 2 10 Attach UNO 1019 to the Wall...
Страница 30: ...UNO 1019 User Manual 22...
Страница 38: ...UNO 1019 User Manual 30...
Страница 52: ...UNO 1019 User Manual 44 3 Setup the device according to the specification of the modem and press Next...
Страница 60: ...UNO 1019 User Manual 52...
Страница 64: ...UNO 1019 User Manual 56 8 Select UNO 1019 in the main window of Visual C...
Страница 94: ...UNO 1019 User Manual 86 Logs Use Logs section to control what information about the FTP transactions is logged...