meiSqNodeSegmentDigitalIn
Declaration
|
long meiSqNodeSegmentDigitalIn(MEISqNode node,
long segment, long bitStart,
long bitCount,
unsigned long *state); |
|
Required Header: stdmei.h
Change History: Added in the 03.02.00 |
Description
meiSqNodeSegmentDigitalIn 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. |
|
|
|
|
|
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;
meiSqNodeSegmentDigitalIn( sqNode0, 1, 0, 8, &x ); |
|
See Also
Accessing Digital I/O
Overview of MPI I/O
|