k8055m_get_analog_in -- Return the status of an analog input port
k8055-pic18f access library
#include "k8055m.h" int k8055m_get_analog_in(int cardNumber, int port);
k8055m_get_analog_in returns the status of the specified port.
Port numbers are 0 .. 1.
This function does not actually communicate with the card. It simply returns
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.