Functions

acr122.h File Reference

#include <stdint.h>
#include <stdbool.h>
#include <nfc/nfc-types.h>

Go to the source code of this file.

Functions

bool acr122_list_devices (nfc_device_desc_t pnddDevices[], size_t szDevices, size_t *pszDeviceFound)
 List connected devices.

Detailed Description

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/>

Definition in file acr122.h.


Function Documentation

bool acr122_list_devices ( nfc_device_desc_t  pnddDevices[],
size_t  szDevices,
size_t *  pszDeviceFound 
)

List connected devices.

Probe PCSC to find NFC capable hardware.

Parameters:
pnddDevices Array of nfc_device_desc_t previously allocated by the caller.
szDevices size of the pnddDevices array.
pszDeviceFound number of devices found.
Returns:
true if succeeded, false otherwise.

Definition at line 134 of file acr122.c.