libnfc  1.4.2
Data Fields
driver_callbacks Struct Reference

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

#include <nfc-types.h>

Data Fields

const char * acDriver
struct chip_callbackspcc
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)
void(* init )(nfc_device_t *pnd)
bool(* transceive )(nfc_device_t *pnd, const byte_t *pbtTx, const size_t szTx, byte_t *pbtRx, size_t *pszRx)
void(* disconnect )(nfc_device_t *pnd)

Detailed Description

Generic structure to handle NFC device functions.

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

Field Documentation

const char* driver_callbacks::acDriver

Driver name

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

nfc_device_t*(* driver_callbacks::connect)(const nfc_device_desc_t *pndd)

Connect callback

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

void(* driver_callbacks::disconnect)(nfc_device_t *pnd)

Disconnect callback

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

void(* driver_callbacks::init)(nfc_device_t *pnd)

Init callback

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

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

List devices callback

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

struct chip_callbacks* driver_callbacks::pcc

Chip specific callback functions

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

nfc_device_desc_t*(* driver_callbacks::pick_device)(void)

Pick devices callback

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

bool(* driver_callbacks::transceive)(nfc_device_t *pnd, const byte_t *pbtTx, const size_t szTx, byte_t *pbtRx, size_t *pszRx)

Transceive callback

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


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