mpiSqNodeSegmentDigitalIn

Declaration

long mpiSqNodeSegmentDigitalIn(MPISqNode      node,
                               long           segment,
long bitStart, long bitCount, unsigned long *state);

Required Header: stdmpi.h
Change History: Added in the 03.02.00

Description

mpiSqNodeSegmentDigitalIn gets the current state of multiple digital inputs on the specified slice on a SynqNet node.

node a handle to a SynqNet node object.
segment the index of the slice/module attached to this SynqNet node.
For more information, please see the Overview of MPI I/O.
bitStart the first bit
bitCount the number of bits to be read.
*state a pointer to a long word that will be filled in by this function.
Return Values
MPIMessageOK

Sample Code

The following MPI code will get the current state of all the digital inputs (the following slice has 8 inputs) on segment 1 of node 0:

long x;
mpiSqNodeSegmentDigitalIn( sqNode0, 1, 0, 8, &x );

See Also

Accessing Digital I/O | Overview of MPI I/O