S2253p_vidioc_s_comstat_read, S2253p_vidioc_g_comstat_read, S2253p_vidioc_s_xio_enable – Sensoray 2253 Linux User Manual

Page 30

Advertising
background image

Read the version of the TB board firmware. A send command must first be
sent using S2253P_VIDIOC_S_VERSION_READ to read the current value. If the
version is 0xffffffff, the value is not ready yet and should be retried shortly.
Requires S2253P system.

S2253P_VIDIOC_S_COMSTAT_READ

int ioctl(int fd, int request, void *data);
Send the command to the load communication statistics struct to be read by
S2253P_VIDIOC_G_COMSTAT_READ.
Requires S2253P system.

S2253P_VIDIOC_G_COMSTAT_READ

int ioctl(int fd, int request, struct s2253p_comstat *data);
struct s2253p_comstat {
__u16 framing_errors;
__u16 overrun_errors;
__u16 buffer_overflow;
__u16 gps_framing_errors;
__u16 gps_overrun_errors;
__u16 gps_buffer_overflow;
};

Read the communication statistics. No indication if the values are stale,
hence a short delay is recommended between
S2253P_VIDIOC_S_COMSTAT_READ and S2253P_VIDIOC_G_COMSTAT_READ.
Requires S2253P system.

S2253P_VIDIOC_S_XIO_ENABLE

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

union {

__u8 port_mask; // mask of xios to change
__u8 not_ready_mask; // not used

};
union {

__u8 value_mask; // not used
__u8 enable_mask; // mask of enable bits 0=disable 1=enable

};

};

Enable or disable selected xios.
Requires S2253P system.

30

Advertising
This manual is related to the following products: