43 lines
1.6 KiB
C
43 lines
1.6 KiB
C
/**
|
|
* Public platform independent Near Field Communication (NFC) library
|
|
*
|
|
* Copyright (C) 2009, Roel Verdult
|
|
* Copyright (C) 2010, Romuald Conty
|
|
* Copyright (C) 2011, Romuald Conty, Romain Tartière
|
|
*
|
|
* 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 arygon.h
|
|
* @brief Driver for PN53x-equipped ARYGON device connected using UART
|
|
*/
|
|
|
|
#ifndef __NFC_DRIVER_ARYGON_H__
|
|
# define __NFC_DRIVER_ARYGON_H__
|
|
|
|
# include <sys/time.h>
|
|
|
|
# include <nfc/nfc-types.h>
|
|
|
|
bool arygon_probe (nfc_connstring connstrings[], size_t connstrings_len, size_t *pszDeviceFound);
|
|
|
|
nfc_device *arygon_connect (const nfc_connstring connstring);
|
|
void arygon_disconnect (nfc_device *pnd);
|
|
|
|
int arygon_tama_send (nfc_device *pnd, const uint8_t *pbtData, const size_t szData, int timeout);
|
|
int arygon_tama_receive (nfc_device *pnd, uint8_t *pbtData, const size_t szDat, int timeouta);
|
|
|
|
extern const struct nfc_driver_t arygon_driver;
|
|
|
|
#endif // ! __NFC_DRIVER_ARYGON_H__
|