beautypg.com

S2253p_enablexioasync, S2253p_readxio – Sensoray 2253 Windows User Manual

Page 43

background image

int

gpioId,

int

*value,

S2253P_MODE

mode);

This function reads a gpio. This requires two transactions, an “update”
request, and a “read” reply. The transactions may be performed
independently, or together. Any read transaction will cause this function to
block until the reply is received.
devid

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

gpioId

gpio identifier 0 or 1.

value

pointer to variable receiving the value: 0 or 1 (active low)

mode

S2253P_MODE_UPDATE: send gpio update transaction
S2253P_MODE_READ: read gpio reply
S2253P_MODE_UPDATE_READ: both

S2253P_EnableXIOAsync

MID2253_API int __stdcall S2253P_EnableEncoderAsync (

int

devid,

int

xioId,

int

enable);

This function controls enabling asynchronous XIO updates internally on the
board. When asynchronous mode is enabled, XIO reads do not require update
first, and XIO triggers may be used to pause streaming.
devid

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

xioId

xio identifier 0 to 3.

enable

0=disabled, 1=enable asynchronous updates

S2253P_ReadXIO

MID2253_API int __stdcall S2253P_ReadXIO (

int

devid,

int

xioId,

int

*value,

43

This manual is related to the following products: