k8055m_open, k8055m_close -- Open and close a k8055m card
k8055-pic18f access library
#include "k8055m.h" int k8055m_open(int cardNumber); int k8055m_close(int cardNumber);
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.
Returns 0 on success, -1 on error.