mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-24 03:29:57 -07:00
[FL-3867] Code formatting update (#3765)
* clang-format: AllowShortEnumsOnASingleLine: false * clang-format: InsertNewlineAtEOF: true * clang-format: Standard: c++20 * clang-format: AlignConsecutiveBitFields * clang-format: AlignConsecutiveMacros * clang-format: RemoveParentheses: ReturnStatement * clang-format: RemoveSemicolon: true * Restored RemoveParentheses: Leave, retained general changes for it * formatting: fixed logging TAGs * Formatting update for dev Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
@@ -6,11 +6,11 @@
|
||||
#define ISO14443A_ATS_BIT (1U << 5)
|
||||
|
||||
#define ISO14443_3A_PROTOCOL_NAME_LEGACY "UID"
|
||||
#define ISO14443_3A_PROTOCOL_NAME "ISO14443-3A"
|
||||
#define ISO14443_3A_DEVICE_NAME "ISO14443-3A (Unknown)"
|
||||
#define ISO14443_3A_PROTOCOL_NAME "ISO14443-3A"
|
||||
#define ISO14443_3A_DEVICE_NAME "ISO14443-3A (Unknown)"
|
||||
|
||||
#define ISO14443_3A_ATQA_KEY "ATQA"
|
||||
#define ISO14443_3A_SAK_KEY "SAK"
|
||||
#define ISO14443_3A_SAK_KEY "SAK"
|
||||
|
||||
const NfcDeviceBase nfc_device_iso14443_3a = {
|
||||
.protocol_name = ISO14443_3A_PROTOCOL_NAME,
|
||||
|
||||
@@ -7,16 +7,16 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define ISO14443_3A_UID_4_BYTES (4U)
|
||||
#define ISO14443_3A_UID_7_BYTES (7U)
|
||||
#define ISO14443_3A_UID_4_BYTES (4U)
|
||||
#define ISO14443_3A_UID_7_BYTES (7U)
|
||||
#define ISO14443_3A_UID_10_BYTES (10U)
|
||||
#define ISO14443_3A_MAX_UID_SIZE ISO14443_3A_UID_10_BYTES
|
||||
|
||||
#define ISO14443_3A_GUARD_TIME_US (5000)
|
||||
#define ISO14443_3A_FDT_POLL_FC (1620)
|
||||
#define ISO14443_3A_FDT_LISTEN_FC (1172)
|
||||
#define ISO14443_3A_GUARD_TIME_US (5000)
|
||||
#define ISO14443_3A_FDT_POLL_FC (1620)
|
||||
#define ISO14443_3A_FDT_LISTEN_FC (1172)
|
||||
#define ISO14443_3A_POLLER_MASK_RX_FS ((ISO14443_3A_FDT_LISTEN_FC) / 2)
|
||||
#define ISO14443_3A_POLL_POLL_MIN_US (1100)
|
||||
#define ISO14443_3A_POLL_POLL_MIN_US (1100)
|
||||
|
||||
typedef enum {
|
||||
Iso14443_3aErrorNone,
|
||||
|
||||
@@ -47,7 +47,7 @@ Iso14443_3aError iso14443_3a_listener_tx_with_custom_parity(
|
||||
}
|
||||
|
||||
return ret;
|
||||
};
|
||||
}
|
||||
|
||||
Iso14443_3aError iso14443_3a_listener_send_standard_frame(
|
||||
Iso14443_3aListener* instance,
|
||||
|
||||
@@ -12,7 +12,7 @@ extern "C" {
|
||||
|
||||
#define ISO14443_3A_POLLER_SEL_CMD(cascade_lvl) (0x93 + 2 * (cascade_lvl))
|
||||
#define ISO14443_3A_POLLER_SEL_PAR(bytes, bits) (((bytes) << 4 & 0xf0U) | ((bits) & 0x0fU))
|
||||
#define ISO14443_3A_POLLER_SDD_CL (0x88U)
|
||||
#define ISO14443_3A_POLLER_SDD_CL (0x88U)
|
||||
|
||||
typedef enum {
|
||||
Iso14443_3aPollerColResStateStateIdle,
|
||||
|
||||
@@ -55,4 +55,4 @@ Iso14443_3aError iso14443_3a_poller_sync_read(Nfc* nfc, Iso14443_3aData* iso1444
|
||||
}
|
||||
|
||||
return poller_context.error;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user