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)
bool(* transceive )(nfc_device_t *pnd, 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 118 of file nfc-types.h.


Field Documentation

Driver name

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

Connect callback

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

Disconnect callback

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

Chip specific callback functions

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

Pick devices callback

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

bool(* driver_callbacks::transceive)(nfc_device_t *pnd, const byte_t *pbtTx, const size_t szTxLen, byte_t *pbtRx, size_t *pszRxLen)

Transceive callback

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


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