mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-03-15 03:53:48 +00:00
Add device listing capabilities
- acr122: add acr122_pick_device(), acr122_list_devices(); - Add device name to device descriptions (nfc_device_desc_t) to select a given PCSC device; - Use constants for driver names; - Various code cleanups and enhancements.
This commit is contained in:
@@ -21,12 +21,13 @@
|
||||
* @brief
|
||||
*/
|
||||
|
||||
#ifndef _LIBNFC_DEV_PN533_H_
|
||||
#define _LIBNFC_DEV_PN533_H_
|
||||
|
||||
#ifndef __NFC_DRIVER_PN533_USB_H__
|
||||
#define __NFC_DRIVER_PN533_USB_H__
|
||||
|
||||
#include "nfc-types.h"
|
||||
|
||||
#define PN533_USB_DRIVER_NAME "PN533_USB"
|
||||
|
||||
// Functions used by developer to handle connection to this device
|
||||
nfc_device_t* pn533_usb_connect(const nfc_device_desc_t* pndd);
|
||||
void pn533_usb_disconnect(nfc_device_t* pnd);
|
||||
@@ -34,5 +35,5 @@ void pn533_usb_disconnect(nfc_device_t* pnd);
|
||||
// Callback function used by libnfc to transmit commands to the PN53X chip
|
||||
bool pn533_usb_transceive(const nfc_device_spec_t nds, const byte_t* pbtTx, const size_t szTxLen, byte_t* pbtRx, size_t* pszRxLen);
|
||||
|
||||
#endif // _LIBNFC_DEV_PN533_H_
|
||||
#endif // ! __NFC_DRIVER_PN533_USB_H__
|
||||
|
||||
|
||||
Reference in New Issue
Block a user