beautypg.com

S2253_getserialnumber, Gpio functions, S2253_getgpioinput – Sensoray 2253 Windows User Manual

Page 14: S2253_getgpiooutput

background image

Used only if S2253_SetStreamWindow called with non-NULL hwnd. Call this

function whenever the window in question must be repainted. For example,
whenever it receives a WM_PAINT message.
hdc

Device context of the window in question. If NULL, default device context
for the window handle will be used.

devid

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

strmidx

stream index (0 or 1).

S2253_GetSerialNumber

MID2253_API int __stdcall S2253_RepaintWindow (

unsigned int

*serial_number,

int

devid);

Retrieves the serial number from the 2253. Each 2253 has a unique serial
number.
serial_number

serial number of device.

devid

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

GPIO Functions

S2253_GetGpioInput

MID2253_API int __stdcall S2253_GetGpioInput (

int

*value,

int

devid);

Retrieves current value of input GPIO.
value

pointer to returned GPIO value (1 if GPIO high, 0 if GPIO low).

devid

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

S2253_GetGpioOutput

MID2253_API int __stdcall S2253_GetGpioOutput (

int

*value,

int

devid);

Retrieves current value of output GPIO.
value

14

This manual is related to the following products: