driver_callbacks Struct Reference

Generic structure to handle NFC device functions. More...

#include <nfc-types.h>

Data Fields

const char * acDriver
nfc_device_desc_t *(* pick_device )(void)
bool(* list_devices )(nfc_device_desc_t pnddDevices[], size_t szDevices, size_t *pszDeviceFound)
nfc_device_t *(* connect )(const nfc_device_desc_t *pndd)
bool(* transceive )(const nfc_device_spec_t nds, const byte_t *pbtTx, const size_t szTxLen, byte_t *pbtRx, size_t *pszRxLen)
void(* disconnect )(nfc_device_t *pnd)

Detailed Description

Generic structure to handle NFC device functions.

Definition at line 98 of file nfc-types.h.


Field Documentation

Driver name

Definition at line 100 of file nfc-types.h.

Connect callback

Disconnect callback

bool(* driver_callbacks::list_devices)(nfc_device_desc_t pnddDevices[], size_t szDevices, size_t *pszDeviceFound)

List devices callback

Pick devices callback

bool(* driver_callbacks::transceive)(const nfc_device_spec_t nds, const byte_t *pbtTx, const size_t szTxLen, byte_t *pbtRx, size_t *pszRxLen)

Transceive callback


The documentation for this struct was generated from the following file:

Generated on 4 Sep 2010 for libnfc by  doxygen 1.6.1