43 #include <px4_platform_common/defines.h> 45 #include <sys/ioctl.h> 56 #define INPUT_CAPTURE_BASE_DEVICE_PATH "/dev/capture" 57 #define INPUT_CAPTURE0_DEVICE_PATH "/dev/capture0" 60 hrt_abstime edge_time, uint32_t edge_state, uint32_t overflow);
65 #ifndef INPUT_CAPTURE_MAX_CHANNELS 66 #define INPUT_CAPTURE_MAX_CHANNELS 6 114 #define _INPUT_CAP_BASE 0x2d00 124 #define INPUT_CAP_SET _PX4_IOC(_INPUT_CAP_BASE, 0) 130 #define INPUT_CAP_SET_CALLBACK _PX4_IOC(_INPUT_CAP_BASE, 1) 135 #define INPUT_CAP_GET_CALLBACK _PX4_IOC(_INPUT_CAP_BASE, 2) 139 #define INPUT_CAP_SET_EDGE _PX4_IOC(_INPUT_CAP_BASE, 3) 143 #define INPUT_CAP_GET_EDGE _PX4_IOC(_INPUT_CAP_BASE, 4) 147 #define INPUT_CAP_SET_FILTER _PX4_IOC(_INPUT_CAP_BASE, 5) 151 #define INPUT_CAP_GET_FILTER _PX4_IOC(_INPUT_CAP_BASE, 6) 154 #define INPUT_CAP_GET_COUNT _PX4_IOC(_INPUT_CAP_BASE, 7) 158 #define INPUT_CAP_SET_COUNT _PX4_IOC(_INPUT_CAP_BASE, 8) 163 #define INPUT_CAP_GET_STATS _PX4_IOC(_INPUT_CAP_BASE, 9) 168 #define INPUT_CAP_GET_CLR_STATS _PX4_IOC(_INPUT_CAP_BASE, 10)
High-resolution timer with callouts and timekeeping.
__BEGIN_DECLS typedef uint64_t hrt_abstime
Absolute time, in microsecond units.