mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-03-15 20:13:46 +00:00
Implement pn53x_InRelease().
I used it for some experiments and guess that it should be part of the API.
This commit is contained in:
@@ -325,3 +325,13 @@ pn53x_InDeselect(const nfc_device_t* pnd, const uint8_t ui8Target)
|
|||||||
|
|
||||||
return(pn53x_transceive(pnd,abtCmd,sizeof(abtCmd),NULL,NULL));
|
return(pn53x_transceive(pnd,abtCmd,sizeof(abtCmd),NULL,NULL));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool
|
||||||
|
pn53x_InRelease(nfc_device_t* pnd, const uint8_t ui8Target)
|
||||||
|
{
|
||||||
|
byte_t abtCmd[sizeof(pncmd_initiator_release)];
|
||||||
|
memcpy(abtCmd,pncmd_initiator_release,sizeof(pncmd_initiator_release));
|
||||||
|
abtCmd[2] = ui8Target;
|
||||||
|
|
||||||
|
return(pn53x_transceive(pnd,abtCmd,sizeof(abtCmd),NULL,NULL));
|
||||||
|
}
|
||||||
|
|||||||
@@ -80,6 +80,7 @@ bool pn53x_decode_target_data(const byte_t* pbtRawData, size_t szDataLen, nfc_ch
|
|||||||
|
|
||||||
bool pn53x_InListPassiveTarget(const nfc_device_t* pnd, const nfc_modulation_t nmInitModulation, const byte_t szMaxTargets, const byte_t* pbtInitiatorData, const size_t szInitiatorDataLen, byte_t* pbtTargetsData, size_t* pszTargetsData);
|
bool pn53x_InListPassiveTarget(const nfc_device_t* pnd, const nfc_modulation_t nmInitModulation, const byte_t szMaxTargets, const byte_t* pbtInitiatorData, const size_t szInitiatorDataLen, byte_t* pbtTargetsData, size_t* pszTargetsData);
|
||||||
bool pn53x_InDeselect(const nfc_device_t* pnd, const uint8_t ui8Target);
|
bool pn53x_InDeselect(const nfc_device_t* pnd, const uint8_t ui8Target);
|
||||||
|
bool pn53x_InRelease(nfc_device_t* pnd, const uint8_t ui8Target);
|
||||||
|
|
||||||
#endif // __NFC_CHIPS_PN53X_H__
|
#endif // __NFC_CHIPS_PN53X_H__
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user