S2253p_vidioc_s_gpio_config, S2253p_vidioc_s_gpio_write, S2253p_vidioc_s_gpio_read – Sensoray 2253 Linux User Manual
Page 27

Get the reply from a S2253P_VIDIOC_S_GPS_READSTATUS. The status field in
the union is filled by the driver, and may be set to 0xff indicating that the
status is not ready yet, and should be retried shortly.
Requires S2253P system.
S2253P_VIDIOC_S_GPIO_CONFIG
int ioctl(int fd, int request, struct s2253p_gpio *data);
struct s2253p_gpio {
union {
__u8 port_mask; // mask of gpios to configure
__u8 not_ready_mask; // not used
};
union {
__u8 value_mask; // not used
__u8 dir_mask; // direction mask 0=in 1=out
};
};
Configure the selected gpio direction. Not currently accessible, for future use
only. Not associated with the S2253_CID_GPI or S2253_CID_GPO.
Requires S2253P system.
S2253P_VIDIOC_S_GPIO_WRITE
int ioctl(int fd, int request, struct s2253p_gpio *data);
struct s2253p_gpio {
union {
__u8 port_mask; // mask of gpios to be written
__u8 not_ready_mask; // not used
};
union {
__u8 value_mask; // mask of values to be written
__u8 dir_mask; // not used
};
};
Set the value on selected gpios. Gpio must be configured as an output. Not
currently accessible, for future use only. Not associated with the
S2253_CID_GPI or S2253_CID_GPO.
Requires S2253P system.
S2253P_VIDIOC_S_GPIO_READ
int ioctl(int fd, int request, struct s2253p_gpio *data);
struct s2253p_gpio {
27