S2253p_setsuspend, S2253p_encoderreset, S2253p_encoderload – Sensoray 2253 Windows User Manual
Page 40

[0] framing errors
[1] overrun errors
[2] buffer overflow
[3] gps framing errors
[4] gps overrun errors
[5] gps buffer overflow
S2253P_SetSuspend
MID2253_API int __stdcall S2253P_SetSuspend (
int
devid,
int
suspend);
This function controls whether the 2253P-specific hardware should be held in
reset during when the USB device is suspended (during host pc suspend). If
the hardware is suspended, then encoder changes during suspend will be lost.
devid
device id in the system (use 0 with a single board installed).
suspend
1=suspend holds device in reset
0=device continues to run during suspend
S2253P_EncoderReset
MID2253_API int __stdcall S2253P_EncoderReset (
int
devid,
int
encoderId);
This function resets the encoder count for the specified encoder to zero.
devid
device id in the system (use 0 with a single board installed).
encoderId
encoder identifier 0 or 1.
S2253P_EncoderLoad
MID2253_API int __stdcall S2253P_EncoderLoad (
int
devid,
int
encoderId,
int
value);
This function loads a value into the encoder count for the specified encoder.
devid
40