mpiCanNodeDigitalInputGet (Deprecated)
NOTE:
mpiCanNodeDigitalInputGet was moved to mpiDeprecated.h in the 03.03.00 MPI software release.
Declaration
long mpiCanNodeDigitalInputGet(MPICan can, long node, long bit, long* data); |
||
| Required Header: stdmpi.h | ||
Description
mpiCanNodeDigitalInputGet gets the current state of the digital input bit on the specified CAN node.
(Not to be confused with mpiCanNodeDigitalInputsGet.)
|
|||||||||
|
|||||||||
Sample Code
| The following sample code shows how to interrogate the current state of a single digital input bit on a controller. The variable data will contain either one or zero depending on the electrical signal being applied to the input pin on the CANOpen node. See mpiCanCreate on how to create the CANHandle. |
||
long data; |
||
