beautypg.com

S2253p_pauseconfigxio – Sensoray 2253 Windows User Manual

Page 44

background image

S2253P_MODE

mode);

This function reads the XIO. 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. When asynchronous mode is enabled for an
XIO using S2253P_EnableXIOAsync, the “update” transaction is not required
and a read should not block.
devid

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

xioId

xio identifier 0 to 3.

value

pointer to variable receiving current value, for read transactions: 0 or 1
(active low)

mode

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

S2253P_PauseConfigXIO

MID2253_API int __stdcall S2253P_ReadXIO (

int

devid,

int

streamId,

int

xioId,

S2253P_XIO_PAUSE_MODE

mode);

This function configures a stream for pausing basec on XIO events. This
requires that asynchronous mode be enabled for the XIO using
S2253P_EnableXIOAsync. The stream can be paused when one of the
following events occurs: rising edge, falling edge, level high, level low.
devid

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

streamId

Stream identifier 0=Stream A, 1=Stream B, 2=Output.

xioId

xio identifier 0 to 3.

mode

S2253P_XIO_PAUSE_MODE_DISABLE: stream will not pause
S2253P_XIO_PAUSE_MODE_RISING_EDGE
S2253P_XIO_PAUSE_MODE_FALLING_EDGE

44

This manual is related to the following products: