meiCanNodeDigitalIn
Declaration
|
long meiCanNodeDigitalIn(MEICan can,
long node,
long bitStart,
long bitCount,
unsigned long *state);
|
|
Required Header: stdmei.h
Change History: Added in the 03.03.00 |
Description
meiCanNodeDigitalIn gets the current state of one or multiple digital inputs on the specified CAN node.
|
can |
handle to the CAN object |
node |
the node number of the CANOpen node. |
bitSmart |
the first input bit on the CAN node that will be returned by this function. |
bitCount |
the number of bits that will be returned by the function. |
*state |
the address of the current state of the input(s) that is returned. |
|
|
|
|
|
Sample Code
The following code shows how to get the state of controller input 1.
|
unsigned long input3;
meiCanDigitalIn( can, 5, 3, 1, &input3 );
|
See Also
meiCanNodeDigitalOutSet | meiCanNodeDigitalOutGet
|