S2253p_vidioc_s_encoder_load, S2253p_vidioc_g_online, S2253p_vidioc_s_suspend – Sensoray 2253 Linux User Manual
Page 35

__u32 counts[2]; // not used
};
Enable asynchronous reading of the selected encoders. When asynchronous
mode is enabled, the encoder values are updated automatically and can read
by a single call to S2253P_VIDIOC_G_ENCODER, and are updated on the OSD.
Requires S2253P system.
S2253P_VIDIOC_S_ENCODER_LOAD
int ioctl(int fd, int request, struct s2253p_encoder *data);
struct s2253p_encoder {
__u8 chan_mask; // mask of channels to load
__u8 enable_mask; // not used
__u32 counts[2]; // encoder values to load
};
Load a count value into the selected encoders.
Requires S2253P system.
S2253P_VIDIOC_G_ONLINE
int ioctl(int fd, int request, struct s2253p_enable *data);
struct s2253p_enable {
__u8 enable; // filled by driver, 0=offline 1=online
};
Read the status of the TB board, indicating whether or not it is online. This
will return 0 for the S2253S system, or 1 for the S2253P system.
S2253P_VIDIOC_S_SUSPEND
int ioctl(int fd, int request, struct s2253p_enable *data);
struct s2253p_enable {
__u8 enable; // suspend mode 0=disable 1=enable
};
Set the suspend mode the TB board, when the 2253 device is in USB
suspend. When enabled, the TB board will be held in reset during suspend,
resulting in encoder count values being lost, asynchronous modes disabled,
and GPS disabled. The default mode is disabled.
Requires S2253P system.
35