![Embest SBC8140 User Manual Download Page 115](http://html1.mh-extra.com/html/embest/sbc8140/sbc8140_user-manual_2399596115.webp)
Page | 109
Id
is the GPIO pin number;
mode
is the GPIO mode definition; the
following table lists all the mode definitions;
Mode Definitions
Descriptions
GPIO_DIR_OUTPUT
Output mode
GPIO_DIR_INPUT
Output mode
GPIO_INT_LOW_HIGH
Triggered on rising edge
GPIO_INT_HIGH_LOW
Triggered on falling edge
GPIO_INT_LOW
Triggered by low level
GPIO_INT_HIGH
Triggered by high level
GPIO_DEBOUNCE_ENABLE
Debounce enabled
5.
Operations on GPIO pins
Operations on Pins
DWORD id = 0, pin = 0;
High Level Output
DeviceIoControl(hFile, IOCTL_GPIO_SETBIT, &id, sizeof(DWORD),
NULL, 0, NULL, NULL);
Low Level Output
DeviceIoControl(hFile, IOCTL_GPIO_CLRBIT, &id, sizeof(DWORD),
NULL, 0, NULL, NULL);
Read Status of Pins
DeviceIoControl(hFile, IOCTL_GPIO_GETBIT, &id, sizeof(DWORD),
&pin, sizeof(DWORD), NULL, NULL);
Id
is the GPIO pin number;
pin
returns pin status.
Summary of Contents for SBC8140
Page 1: ...SBC8140 Single Board Computer User Manual Version 1 1 22nd Jan 2014...
Page 12: ...Page 6 1 4 Interfaces on the SBC8140 Figure 4 SBC8140 Interfaces...
Page 13: ...Page 7 1 5 System Block Diagram Figure 5 SBC8140 system block diagram...
Page 15: ...Page 9 1 6 2 Expansion Board Figure 8 Expansion board dimensions...
Page 128: ...Page 122...
Page 131: ...Page 125...
Page 139: ...Page 133 Appendix 5 FAQ Please visit http www elinux org SBC8600_FAQ...