2009-12-06 16:36:55 +00:00
|
|
|
/**
|
|
|
|
* Public platform independent Near Field Communication (NFC) library
|
2012-05-29 00:33:22 +00:00
|
|
|
*
|
2012-10-21 14:09:16 +00:00
|
|
|
* Copyright (C) 2009 Roel Verdult
|
|
|
|
* Copyright (C) 2011 Romain Tartière
|
2012-05-29 00:33:22 +00:00
|
|
|
*
|
2009-12-06 16:36:55 +00:00
|
|
|
* This program is free software: you can redistribute it and/or modify it
|
|
|
|
* under the terms of the GNU Lesser General Public License as published by the
|
|
|
|
* Free Software Foundation, either version 3 of the License, or (at your
|
|
|
|
* option) any later version.
|
2012-05-29 00:33:22 +00:00
|
|
|
*
|
2009-12-06 16:36:55 +00:00
|
|
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
|
|
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
|
|
|
* more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
2012-05-29 00:33:22 +00:00
|
|
|
*
|
|
|
|
*
|
2009-12-06 16:36:55 +00:00
|
|
|
* @file pn53x_usb.h
|
2011-03-05 19:54:52 +00:00
|
|
|
* @brief Drive for PN53x USB devices
|
2009-12-06 16:36:55 +00:00
|
|
|
*/
|
|
|
|
|
2011-03-05 19:54:52 +00:00
|
|
|
#ifndef __NFC_DRIVER_PN53X_USB_H__
|
2012-01-18 09:39:33 +00:00
|
|
|
#define __NFC_DRIVER_PN53X_USB_H__
|
2009-12-06 16:36:55 +00:00
|
|
|
|
2012-01-18 09:39:33 +00:00
|
|
|
#include <sys/time.h>
|
2011-09-22 13:03:47 +00:00
|
|
|
|
2012-01-18 09:39:33 +00:00
|
|
|
#include <nfc/nfc-types.h>
|
|
|
|
|
|
|
|
#include "nfc-internal.h"
|
2011-02-01 21:20:48 +00:00
|
|
|
|
2012-05-29 15:54:36 +00:00
|
|
|
bool pn53x_usb_probe(nfc_connstring connstrings[], size_t connstrings_len, size_t *pszDeviceFound);
|
|
|
|
nfc_device *pn53x_usb_open(const nfc_connstring connstring);
|
|
|
|
int pn53x_usb_send(nfc_device *pnd, const uint8_t *pbtData, const size_t szData, int timeout);
|
|
|
|
int pn53x_usb_receive(nfc_device *pnd, uint8_t *pbtData, const size_t szData, int timeout);
|
|
|
|
void pn53x_usb_close(nfc_device *pnd);
|
2009-12-06 16:36:55 +00:00
|
|
|
|
2012-01-17 14:17:01 +00:00
|
|
|
extern const struct nfc_driver pn53x_usb_driver;
|
2009-12-08 21:06:59 +00:00
|
|
|
|
2011-03-05 19:54:52 +00:00
|
|
|
#endif // ! __NFC_DRIVER_PN53X_USB_H__
|