nfc-types.h | nfc-types.h | |||
---|---|---|---|---|
skipping to change at line 135 | skipping to change at line 135 | |||
/** Driver name */ | /** Driver name */ | |||
const char *acDriver; | const char *acDriver; | |||
/** Chip specific callback functions */ | /** Chip specific callback functions */ | |||
const struct chip_callbacks *pcc; | const struct chip_callbacks *pcc; | |||
/** Pick devices callback */ | /** Pick devices callback */ | |||
nfc_device_desc_t *(*pick_device) (void); | nfc_device_desc_t *(*pick_device) (void); | |||
/** List devices callback */ | /** List devices callback */ | |||
bool (*list_devices) (nfc_device_desc_t pnddDevices[], size_t szDevices, size_t * pszDeviceFound); | bool (*list_devices) (nfc_device_desc_t pnddDevices[], size_t szDevices, size_t * pszDeviceFound); | |||
/** Connect callback */ | /** Connect callback */ | |||
nfc_device_t *(*connect) (const nfc_device_desc_t * pndd); | nfc_device_t *(*connect) (const nfc_device_desc_t * pndd); | |||
/** Init callback */ | ||||
void (*init) (nfc_device_t * pnd); | ||||
/** Transceive callback */ | /** Transceive callback */ | |||
bool (*transceive) (nfc_device_t * pnd, const byte_t * pbtTx, const size_ t szTx, byte_t * pbtRx, size_t * pszRx); | bool (*transceive) (nfc_device_t * pnd, const byte_t * pbtTx, const size_ t szTx, byte_t * pbtRx, size_t * pszRx); | |||
/** Disconnect callback */ | /** Disconnect callback */ | |||
void (*disconnect) (nfc_device_t * pnd); | void (*disconnect) (nfc_device_t * pnd); | |||
}; | }; | |||
// Compiler directive, set struct alignment to 1 byte_t for compatibility | // Compiler directive, set struct alignment to 1 byte_t for compatibility | |||
# pragma pack(1) | # pragma pack(1) | |||
/** | /** | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 2 lines changed or added | |||