libnfc/dev_pn531.h

36 lines
1.2 KiB
C
Raw Normal View History

2009-04-29 14:51:13 +02:00
/*
Public platform independent Near Field Communication (NFC) library
Copyright (C) 2009, Roel Verdult
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU 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 General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _LIBNFC_DEV_PN531_H_
#define _LIBNFC_DEV_PN531_H_
2009-02-12 13:39:05 +01:00
#include "defines.h"
#include "types.h"
2009-04-29 14:51:13 +02:00
// Functions used by developer to handle connection to this device
dev_info* dev_pn531_connect(const ui32 uiIndex);
void dev_pn531_disconnect(dev_info* pdi);
2009-02-12 13:39:05 +01:00
2009-04-29 14:51:13 +02:00
// Callback function used by libnfc to transmit commands to the PN53X chip
bool dev_pn531_transceive(const dev_spec ds, const byte* pbtTx, const ui32 uiTxLen, byte* pbtRx, ui32* puiRxLen);
2009-02-12 13:39:05 +01:00
2009-04-29 14:51:13 +02:00
#endif // _LIBNFC_DEV_PN531_H_
2009-02-12 13:39:05 +01:00