mpiSqNodeSegmentDigitalIn

Declaration

int32_t mpiSqNodeSegmentDigitalIn(MPISqNode      node,
                               int32_t           segment,
int32_t bitStart, int32_t bitCount, uint32_t *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 int32_t 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:

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

See Also

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