NAME

k8055m_open, k8055m_close -- Open and close a k8055m card

LIBRARY

k8055-pic18f access library

SYNOPSIS

#include "k8055m.h"

int
k8055m_open(int cardNumber);

int
k8055m_close(int cardNumber);
    

DESCRIPTION

k8055m_open() establishes communitation with the k8055m card configured as cardNumber. This will create a separate IO thread, that will first query the card for its current configuration and output port settings, and then perform the actual HID protocol communication with the card.

k8055m_close() ends communications with k8055m card number cardNumber. This will free resources and terminate the IO thread.

RETURN VALUES

Returns 0 on success, -1 on error.