libnfc/src/lib/drivers/pn532_uart.h

40 lines
1.4 KiB
C
Raw Normal View History

/**
* 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 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/>
*
*
2009-11-04 10:14:17 +00:00
* @file pn532_uart.h
* @brief
*/
2009-10-06 10:38:57 +00:00
#ifndef __NFC_DRIVER_PN532_UART_H__
#define __NFC_DRIVER_PN532_UART_H__
#include <nfc/nfc-types.h>
2009-10-06 10:38:57 +00:00
#define PN532_UART_DRIVER_NAME "PN532_UART"
2009-10-06 10:38:57 +00:00
// Functions used by developer to handle connection to this device
nfc_device_t* pn532_uart_connect(const nfc_device_desc_t* pndd);
void pn532_uart_disconnect(nfc_device_t* pnd);
2009-10-06 10:38:57 +00:00
// Callback function used by libnfc to transmit commands to the PN53X chip
bool pn532_uart_transceive(const nfc_device_spec_t nds, const byte_t* pbtTx, const size_t szTxLen, byte_t* pbtRx, size_t* pszRxLen);
2009-10-06 10:38:57 +00:00
#endif // ! __NFC_DRIVER_PN532_UART_H__
2009-10-06 10:38:57 +00:00