NAME

k8055m_set_digital_out_mode, k8055m_get_digital_out_mode -- Control or query the mode of a digital output.

LIBRARY

k8055-pic18f access library

SYNOPSIS

#include "k8055m.h"

int
k8055m_set_digital_out_mode(int cardNumber, int port, int mode);

int
k8055m_get_digital_out_mode(int cardNumber, int port);
    

DESCRIPTION

k8055m_set_digital_out_mode() is used to set the mode of one of the 8 digital output ports. The possible values for mode are:

RETURN VALUES

k8055m_set_digital_out_mode() returns 0 on success, -1 on error. k8055m_get_digital_out_mode() returns the current mode or -1 on error.

SEE ALSO

k8055m_set_servo()