S2253p_vidioc_g_gpio_read, S2253p_vidioc_s_echo – Sensoray 2253 Linux User Manual
Page 28

union {
__u8 port_mask; // mask of gpios to be read
__u8 not_ready_mask; // not used
};
union {
__u8 value_mask; // not used
__u8 dir_mask; // not used
};
};
Send the command to read the value from selected gpios. Gpio must be
configured as an input. Not currently accessible, for future use only. Not
associated with the S2253_CID_GPI or S2253_CID_GPO.
Requires S2253P system.
S2253P_VIDIOC_G_GPIO_READ
int ioctl(int fd, int request, struct s2253p_gpio *data);
struct s2253p_gpio {
union {
__u8 port_mask; // not used
__u8 not_ready_mask; // mask of values not ready
};
union {
__u8 value_mask; // mask of values read
__u8 dir_mask; // not used
};
};
Read the value of selected gpios. Gpio must be configured as an input.
Bitmask of not_ready bits indicate that the value isn't available yet, and the
read should be retried shortly. Not currently accessible, for future use only.
Not associated with the S2253_CID_GPI or S2253_CID_GPO.
Requires S2253P system.
S2253P_VIDIOC_S_ECHO
int ioctl(int fd, int request, struct s2253p_data *data);
struct s2253p_data {
__u8 size;
__u8 data[255];
};
Send an echo command to the TB board. Internal use only.
Requires S2253P system.
28