Document number
205065
Version
Rev. N
Issue date
2019-02-04
Sirius OBC and TCM User Manual
Page
76
of
174
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.8.3. Usage description
5.8.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