Data Fields

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

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

Disconnect callback

Definition at line 110 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 104 of file nfc-types.h.

Pick devices callback

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

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

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


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