50 uint8_t abtRx[ISO7816_SHORT_R_APDU_MAX_LEN];
51 uint8_t abtTx[ISO7816_SHORT_C_APDU_MAX_LEN];
54 if ((res =
nfc_target_init(pnd, emulator->target, abtRx,
sizeof(abtRx), timeout)) < 0) {
61 io_res = emulator->state_machine->io(emulator, abtRx, szRx, abtTx,
sizeof(abtTx));
int nfc_target_send_bytes(nfc_device *pnd, const uint8_t *pbtTx, const size_t szTx, int timeout)
Send bytes and APDU frames.
int nfc_target_init(nfc_device *pnd, nfc_target *pnt, uint8_t *pbtRx, const size_t szRx, int timeout)
Initialize NFC device as an emulated tag.
int nfc_target_receive_bytes(nfc_device *pnd, uint8_t *pbtRx, const size_t szRx, int timeout)
Receive bytes and APDU frames.
int nfc_emulate_target(nfc_device *pnd, struct nfc_emulator *emulator, const int timeout)
Emulate a target.
Provide a small API to ease emulation in libnfc.