NAME

k8055m_get_analog_in -- Return the status of an analog input port

LIBRARY

k8055-pic18f access library

SYNOPSIS

#include "k8055m.h"

int
k8055m_get_analog_in(int cardNumber, int port);
    

DESCRIPTION

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.

RETURN VALUES

Returns input port status on success, -1 on error.