k8055m_get_digital_in, k8055m_get-digital_in_all -- Return the status of one or all digital input ports
k8055-pic18f access library
#include "k8055m.h" int k8055m_get_digial_in(int cardNumber, int port); int k8055m_get_digial_in_all(int cardNumber);
k8055m_get_digital_in returns the status of the specified port.
k8055m_get_digital_in_all returns the status of all digital input
ports as a bitmap. Port numbers are 0 .. 4.
These functions do not actually communicate with the card. They simply return
the last status, the background thread started by k8055m_open() has received.
Use k8055m_poll() to avoid a busy loop.
Returns input port status on success, -1 on error.