From 83df8c40b43b29e3fb0fa1c1f6fef2322eff2ea2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Tarti=C3=A8re?= Date: Sat, 1 Jul 2017 13:44:03 +0200 Subject: [PATCH] Make pn53x_transceive() a public API function This should unbreak examples build on Windows. --- include/nfc/nfc.h | 2 ++ libnfc/chips/pn53x.h | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/nfc/nfc.h b/include/nfc/nfc.h index bbbde94..f0072dc 100644 --- a/include/nfc/nfc.h +++ b/include/nfc/nfc.h @@ -131,6 +131,8 @@ NFC_EXPORT int nfc_device_get_supported_baud_rate_target_mode(nfc_device *pnd, c NFC_EXPORT int nfc_device_set_property_int(nfc_device *pnd, const nfc_property property, const int value); NFC_EXPORT int nfc_device_set_property_bool(nfc_device *pnd, const nfc_property property, const bool bEnable); +NFC_EXPORT int pn53x_transceive(struct nfc_device *pnd, const uint8_t *pbtTx, const size_t szTx, uint8_t *pbtRx, const size_t szRxLen, int timeout); + /* Misc. functions */ NFC_EXPORT void iso14443a_crc(uint8_t *pbtData, size_t szLen, uint8_t *pbtCrc); NFC_EXPORT void iso14443a_crc_append(uint8_t *pbtData, size_t szLen); diff --git a/libnfc/chips/pn53x.h b/libnfc/chips/pn53x.h index f236930..982ad5c 100644 --- a/libnfc/chips/pn53x.h +++ b/libnfc/chips/pn53x.h @@ -302,7 +302,6 @@ extern const uint8_t pn53x_ack_frame[PN53x_ACK_FRAME__LEN]; extern const uint8_t pn53x_nack_frame[PN53x_ACK_FRAME__LEN]; int pn53x_init(struct nfc_device *pnd); -int pn53x_transceive(struct nfc_device *pnd, const uint8_t *pbtTx, const size_t szTx, uint8_t *pbtRx, const size_t szRxLen, int timeout); int pn53x_set_parameters(struct nfc_device *pnd, const uint8_t ui8Value, const bool bEnable); int pn53x_set_tx_bits(struct nfc_device *pnd, const uint8_t ui8Bits);