beautypg.com

S2253p encoder, gpio, gps functions, S2253p_readonline, S2253p_readversion – Sensoray 2253 Windows User Manual

Page 39: S2253p_readcomstat

background image

S2253P Encoder, GPIO, GPS Functions

S2253P_ReadOnline

MID2253_API int __stdcall S2253P_ReadOnline (

int

devid,

int

*online);

This function reads the online status of the 2253P-specific hardware, and
should be used to verify the system is online before using any other
2253P-specific functions.
devid

device id in the system (use 0 with a single board installed).

online

pointer to variable receiving online status: 1=online, 0=other.

S2253P_ReadVersion

MID2253_API int __stdcall S2253P_ReadVersion (

int

devid,

int

*version);

This function reads the version of the firmware on the 2253P-specific
hardware.
devid

device id in the system (use 0 with a single board installed).

version

pointer to variable receiving version information.

S2253P_ReadComstat

MID2253_API int __stdcall S2253P_ReadComstat (

int

devid,

void

*comstat);

This function reads the 2253P communications status registers.
devid

device id in the system (use 0 with a single board installed).

comstat

pointer to an 6-element array of 16-bit unsigned integer counts for the
following:

39

This manual is related to the following products: