S2253p_vidioc_s_xio_read, S2253p_vidioc_g_xio_read, S2253p_vidioc_s_xio_pause – Sensoray 2253 Linux User Manual

Page 31

Advertising
background image

S2253P_VIDIOC_S_XIO_READ

int ioctl(int fd, int request, void *data);
Send the command to read the value from all xios, to be read by
S2253P_VIDIOC_G_XIO_READ.
Requires S2253P system.

S2253P_VIDIOC_G_XIO_READ

int ioctl(int fd, int request, struct s2253p_xio *data);
struct s2253p_xio {

union {

__u8 port_mask; // not used
__u8 not_ready_mask; // filled by driver, not ready bits

};
union {

__u8 value_mask; // filled by driver, bitmask of values
__u8 enable_mask; // not used

};

};

Read the value of all xios. Bitmask of not_ready bits indicate that the value
isn't available yet, and the read should be retried shortly. The xios are active
low.
Requires S2253P system.

S2253P_VIDIOC_S_XIO_PAUSE

int ioctl(int fd, int request, struct s2253p_xio_pause *data);
struct s2253p_xio_pause {

__u8 stream; // 0=capture 1=preview 2=output
__u8 port; // xio port 3=A0 2=B0 1=A1 0=B1
__u8 mode;

};
enum s2253p_pause_mode {

S2253P_PAUSE_MODE_DISABLED = 0,
S2253P_PAUSE_MODE_RISING_EDGE = 1,
S2253P_PAUSE_MODE_FALLING_EDGE = 2,
S2253P_PAUSE_MODE_LEVEL_HIGH = 3,
S2253P_PAUSE_MODE_LEVEL_LOW = 4,

};

Configure the selected stream to be paused by changes in the xio states.
The pause can be edge-triggered or level-triggered. The xios are active low.
Requires S2253P system.

31

Advertising
This manual is related to the following products: