Minor indentation fix.
This commit is contained in:
parent
7dd1053d03
commit
7eeb46ab68
2 changed files with 13 additions and 12 deletions
|
@ -277,9 +277,9 @@ pn53x_decode_target_data(const byte_t* pbtRawData, size_t szDataLen, nfc_chip_t
|
||||||
|
|
||||||
bool
|
bool
|
||||||
pn53x_InListPassiveTarget(const nfc_device_t* pnd,
|
pn53x_InListPassiveTarget(const nfc_device_t* pnd,
|
||||||
const nfc_modulation_t nmInitModulation, const byte_t szMaxTargets,
|
const nfc_modulation_t nmInitModulation, const byte_t szMaxTargets,
|
||||||
const byte_t* pbtInitiatorData, const size_t szInitiatorDataLen,
|
const byte_t* pbtInitiatorData, const size_t szInitiatorDataLen,
|
||||||
byte_t* pbtTargetsData, size_t* pszTargetsData)
|
byte_t* pbtTargetsData, size_t* pszTargetsData)
|
||||||
{
|
{
|
||||||
byte_t abtCmd[sizeof(pncmd_initiator_list_passive)];
|
byte_t abtCmd[sizeof(pncmd_initiator_list_passive)];
|
||||||
memcpy(abtCmd,pncmd_initiator_list_passive,sizeof(pncmd_initiator_list_passive));
|
memcpy(abtCmd,pncmd_initiator_list_passive,sizeof(pncmd_initiator_list_passive));
|
||||||
|
@ -299,4 +299,4 @@ pn53x_InListPassiveTarget(const nfc_device_t* pnd,
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
17
libnfc/nfc.c
17
libnfc/nfc.c
|
@ -417,10 +417,11 @@ bool nfc_initiator_select_dep_target(const nfc_device_t* pnd, const nfc_modulati
|
||||||
* The NFC device will try to find the available passive tags. Some NFC devices are capable to emulate passive tags. The standards (ISO18092 and ECMA-340) describe the modulation that can be used for reader to passive communications. The chip needs to know with what kind of tag it is dealing with, therefore the initial modulation and speed (106, 212 or 424 kbps) should be supplied.
|
* The NFC device will try to find the available passive tags. Some NFC devices are capable to emulate passive tags. The standards (ISO18092 and ECMA-340) describe the modulation that can be used for reader to passive communications. The chip needs to know with what kind of tag it is dealing with, therefore the initial modulation and speed (106, 212 or 424 kbps) should be supplied.
|
||||||
* @note For every initial modulation type there is a different collection of information returned (in nfc_target_info_t pointer pti) They all fit in the data-type which is called nfc_target_info_t. This is a union which contains the tag information that belongs to the according initial modulation type.
|
* @note For every initial modulation type there is a different collection of information returned (in nfc_target_info_t pointer pti) They all fit in the data-type which is called nfc_target_info_t. This is a union which contains the tag information that belongs to the according initial modulation type.
|
||||||
*/
|
*/
|
||||||
bool nfc_initiator_select_passive_target(const nfc_device_t* pnd,
|
bool
|
||||||
const nfc_modulation_t nmInitModulation,
|
nfc_initiator_select_passive_target(const nfc_device_t* pnd,
|
||||||
const byte_t* pbtInitData, const size_t szInitDataLen,
|
const nfc_modulation_t nmInitModulation,
|
||||||
nfc_target_info_t* pnti)
|
const byte_t* pbtInitData, const size_t szInitDataLen,
|
||||||
|
nfc_target_info_t* pnti)
|
||||||
{
|
{
|
||||||
byte_t abtInit[MAX_FRAME_LEN];
|
byte_t abtInit[MAX_FRAME_LEN];
|
||||||
size_t szInitLen;
|
size_t szInitLen;
|
||||||
|
@ -564,10 +565,10 @@ bool nfc_initiator_deselect_target(const nfc_device_t* pnd)
|
||||||
* @param pszTargetFound found targets count
|
* @param pszTargetFound found targets count
|
||||||
*/
|
*/
|
||||||
bool
|
bool
|
||||||
nfc_initiator_poll_targets(const nfc_device_t* pnd,
|
nfc_initiator_poll_targets(const nfc_device_t* pnd,
|
||||||
const nfc_target_type_t* pnttTargetTypes, const size_t szTargetTypes,
|
const nfc_target_type_t* pnttTargetTypes, const size_t szTargetTypes,
|
||||||
const byte_t btPollNr, const byte_t btPeriod,
|
const byte_t btPollNr, const byte_t btPeriod,
|
||||||
nfc_target_t* pntTargets, size_t* pszTargetFound)
|
nfc_target_t* pntTargets, size_t* pszTargetFound)
|
||||||
{
|
{
|
||||||
size_t szTxInAutoPoll, n, szRxLen;
|
size_t szTxInAutoPoll, n, szRxLen;
|
||||||
byte_t abtRx[256];
|
byte_t abtRx[256];
|
||||||
|
|
Loading…
Reference in a new issue