Document number
204911
Version
Rev. K
Issue date
2016-10-11
Sirius Breadboard User Manual
www.aacmicrotec.com
Page
57
of
106
GPIO_IOCTL_SET_DIRECTION
uint32_t
in
Set input/output direction of the pin.
'0' output mode
'1' input mode
GPIO_IOCTL_GET_FALL_EDGE_DETECTION
uint32_t
out
Get falling edge detection status of
the pin.
'0' detection disabled
'1' detection enabled
GPIO_IOCTL_SET_FALL_EDGE_DETECTION
uint32_t
in
Set falling edge detection
configuration of the pin.
'0' detection disabled
'1' detection enabled
GPIO_IOCTL_GET_RISE_EDGE_DETECTION
uint32_t
out
Get rising edge detection status of
the pin.
'0' detection disabled
'1' detection enabled
GPIO_IOCTL_SET_RISE_EDGE_DETECTION
uint32_t
in
Set rising edge detection
configuration of the pin.
'0' detection disabled
'1' detection enabled
GPIO_IOCTL_GET_TIMESTAMP_ENABLE
uint32_t
out
Get timestamp enable status of the
pin.
'0' timestamp disabled
'1' timestamp enabled
GPIO_IOCTL_SET_TIMESTAMP_ENABLE
uint32_t
in
Set timestamp enable configuration
of the pin.
'0' timestamp disabled
'1' timestamp enabled
GPIO_IOCTL_GET_DIFF_MODE
uint32_t
out
Get differential mode status of the
pin.
'0' normal, single ended, mode
'1' differential mode
GPIO_IOCTL_SET_DIFF_MODE
uint32_t
in
Set differential mode configuration of
the pin.
'0' normal, single ended, mode
'1' differential mode
GPIO_IOCTL_GET_EDGE_TIMEOUT
uint32_t
out
Get the edge trigger timeout value in
ticks. Defaults to zero which means
wait indefinitely.
GPIO_IOCTL_SET_EDGE_TIMEOUT
uint32_t
in
Set the edge trigger timeout value in
ticks. Zero means wait indefinitely.
Return value
Description
0
Command executed successfully
-1
See
errno
values
errno values
EINVAL
Invalid options
5.9.3. Usage description
5.9.3.1. RTEMS application example
The following #define needs to be set by the user application to be able to use the GPIO:
CONFIGURE_APPLICATION_NEEDS_GPIO_DRIVER