2009-12-06 16:36:55 +00:00
|
|
|
/**
|
|
|
|
* Public platform independent Near Field Communication (NFC) library
|
|
|
|
*
|
|
|
|
* Copyright (C) 2009, Roel Verdult
|
2011-03-08 15:20:16 +00:00
|
|
|
* Copyright (C) 2011, Romain Tartière
|
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.
|
|
|
|
*
|
|
|
|
* 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/>
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @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__
|
|
|
|
# define __NFC_DRIVER_PN53X_USB_H__
|
2009-12-06 16:36:55 +00:00
|
|
|
|
2011-09-22 13:03:47 +00:00
|
|
|
# include <sys/time.h>
|
|
|
|
|
2011-03-05 19:54:52 +00:00
|
|
|
# include <nfc/nfc-types.h>
|
2011-02-01 21:20:48 +00:00
|
|
|
|
2011-10-17 13:03:56 +00:00
|
|
|
bool pn53x_usb_probe (nfc_connstring connstrings[], size_t connstrings_len, size_t * pszDeviceFound);
|
2011-11-23 15:55:40 +00:00
|
|
|
nfc_device *pn53x_usb_connect (const nfc_connstring connstring);
|
2011-11-25 11:37:30 +00:00
|
|
|
bool 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);
|
2011-11-23 15:55:40 +00:00
|
|
|
void pn53x_usb_disconnect (nfc_device * pnd);
|
2009-12-06 16:36:55 +00:00
|
|
|
|
2011-03-05 19:54:52 +00:00
|
|
|
extern const struct nfc_driver_t 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__
|