NXP NFC Reader Library
v4.040.05.011646
|
Private definitions and functions of all components. More...
![]() |
Macros | |
#define | PHAL_MFC_RESP_ACK 0x0A |
MIFARE Classic ACK response code. | |
#define | PHAL_MFC_RESP_NAK0 0x00 |
MIFARE Classic NAK0 response code. | |
#define | PHAL_MFC_RESP_NAK1 0x01 |
MIFARE Classic NAK1 response code. | |
#define | PHAL_MFC_RESP_NAK4 0x04 |
MIFARE Classic NAK4 response code. | |
#define | PHAL_MFC_RESP_NAK5 0x05 |
MIFARE Classic NAK5 response code. | |
#define | PHAL_MFC_CMD_RESTORE 0xC2 |
MIFARE Classic Restore command byte. | |
#define | PHAL_MFC_CMD_INCREMENT 0xC1 |
MIFARE Classic Increment command byte. | |
#define | PHAL_MFC_CMD_DECREMENT 0xC0 |
MIFARE Classic Decrement command byte. | |
#define | PHAL_MFC_CMD_TRANSFER 0xB0 |
MIFARE Classic Transfer command byte. | |
#define | PHAL_MFC_CMD_READ 0x30 |
MIFARE Classic Read command byte. | |
#define | PHAL_MFC_CMD_WRITE 0xA0 |
MIFARE Classic Write command byte. | |
#define | PHAL_MFC_CMD_AUTHA 0x60 |
MIFARE Classic Authenticate A command byte. | |
#define | PHAL_MFC_CMD_AUTHB 0x61 |
MIFARE Classic Authenticate B command byte. | |
#define | PHAL_MFC_CMD_PERSOUID 0x40 |
MIFARE Classic Personalize UID command. | |
#define | PHAL_MFC_CMD_GETVERSION 0x62 |
MIFARE Classic GET VERSION command. | |
#define | PHAL_MFC_VERSION_LENGTH 0x08 |
Length of a Version MIFARE(R) Classic data block. | |
#define | PHAL_MFP_TRUNCATED_MAC_SIZE 8 |
Size of the truncated MAC. More... | |
#define | PHAL_MFP_MIFARE_VALUE_BLOCK_SIZE 4 |
Size of a MIFARE value block. More... | |
#define | PHAL_MFP_MIFARE_BLOCK_SIZE 16 |
Size of the MIFARE blocks. More... | |
#define | PHAL_MFP_PC_RND_LEN 7 |
Size of the Proximity Check Random numbers. More... | |
#define | PHAL_MFUL_RESP_ACK 0x0AU |
MIFARE Ultralight ACK response code. | |
#define | PHAL_MFUL_RESP_NAK0 0x00U |
MIFARE Ultralight NAK0 response code. | |
#define | PHAL_MFUL_RESP_NAK1 0x01U |
MIFARE Ultralight NAK1 response code. | |
#define | PHAL_MFUL_RESP_NAK4 0x04U |
MIFARE Ultralight NAK4 response code. | |
#define | PHAL_MFUL_RESP_NAK5 0x05U |
MIFARE Ultralight NAK5 response code. | |
#define | PHAL_MFUL_CMD_READ 0x30U |
MIFARE Ultralight Read command byte. | |
#define | PHAL_MFUL_CMD_COMPWRITE 0xA0U |
MIFARE Ultralight Compatibility Write command byte. | |
#define | PHAL_MFUL_CMD_WRITE 0xA2U |
MIFARE Ultralight Write command byte. | |
#define | PHAL_MFUL_CMD_AUTH 0x1AU |
MIFARE Ultralight Authenticate command byte. | |
#define | PHAL_MFUL_CMD_INCR_CNT 0xA5U |
MIFARE Ultralight Increment count command byte. | |
#define | PHAL_MFUL_CMD_READ_CNT 0x39U |
MIFARE Ultralight Read counter command byte. | |
#define | PHAL_MFUL_CMD_PWD_AUTH 0x1BU |
MIFARE Ultralight Password Auth command byte. | |
#define | PHAL_MFUL_CMD_GET_VER 0x60U |
MIFARE Ultralight Get version command byte. | |
#define | PHAL_MFUL_CMD_FAST_READ 0x3AU |
MIFARE Ultralight Fast read command byte. | |
#define | PHAL_MFUL_CMD_READ_SIG 0x3CU |
MIFARE Ultralight Read signature command byte. | |
#define | PHAL_MFUL_CMD_CHK_TRG_EVT 0x3EU |
MIFARE Ultralight Check tearing event command byte. | |
#define | PHAL_MFUL_CMD_SECTOR_SELECT 0xC2U |
Type 2 tag sector select command byte. | |
#define | PHAL_MFUL_PREAMBLE_TX 0xAFU |
MIFARE Ultralight preamble byte (tx) for authentication. More... | |
#define | PHAL_MFUL_PREAMBLE_RX 0x00U |
MIFARE Ultralight preamble byte (rx) for authentication. More... | |
#define | PHAL_MFUL_COMPWRITE_BLOCK_LENGTH 16U |
Length of a compatibility write MIFARE(R) Ultralight data block. More... | |
#define | PHAL_T1T_READUID_RESP_LEN 6U |
T1T RID response len. | |
#define | PHAL_T1T_READALL_RESP_LEN 122U |
T1T RALL response len. | |
#define | PHAL_T1T_READBYTE_RESP_LEN 2U |
T1T Read response len. | |
#define | PHAL_T1T_WRITEERASEBYTE_RESP_LEN 2U |
T1T Write_E response len. | |
#define | PHAL_T1T_WRITENOERASEBYTE_RESP_LEN 2U |
T1T Write_NE response len. | |
#define | PHAL_T1T_READSEG_RESP_LEN 129U |
T1T RSEG response len. | |
#define | PHAL_T1T_READBLOCK_RESP_LEN 9U |
T1T Read8 response len. | |
#define | PHAL_T1T_WRITEERASEBLOCK_RESP_LEN 9U |
T1T Write_E8 response len. | |
#define | PHAL_T1T_WRITENOERASEBLOCK_RESP_LEN 9U |
T1T Write_NE8 response len. | |
#define | PHAL_T1T_CMD_READUID 0x78U |
T1T RID command byte. | |
#define | PHAL_T1T_CMD_READALL 0x00U |
T1T RALL command byte. | |
#define | PHAL_T1T_CMD_READBYTE 0x01U |
T1T Read command byte. | |
#define | PHAL_T1T_CMD_WRITEERASEBYTE 0x53U |
T1T Write_E8 command byte. | |
#define | PHAL_T1T_CMD_WRITENOERASEBYTE 0x1AU |
T1T Write_NE8 command byte. | |
#define | PHAL_T1T_CMD_READSEG 0x10U |
T1T RID command byte. | |
#define | PHAL_T1T_CMD_READBLOCK 0x02U |
T1T Read8 command byte. | |
#define | PHAL_T1T_CMD_WRITEERASEBLOCK 0x54U |
T1T Write_E8 command byte. | |
#define | PHAL_T1T_CMD_WRITENOERASEBLOCK 0x1BU |
T1T Write_NE8 command byte. More... | |
#define | PHAL_T1T_HEADER_ROM0 0x10U |
T1T Header Rom 0 byte to check. More... | |
#define | PHAL_T1T_SW_READ_TIME_US 91U |
Read commands timeout in microseconds. More... | |
#define | PHAL_T1T_SW_WRITE_ERASE_TIME_US 5236U |
Write Erase commands timeout in microseconds. More... | |
#define | PHAL_T1T_SW_WRITE_NO_ERASE_TIME_US 2659U |
Write No Erase commands timeout in microseconds. More... | |
#define | PHAL_T1T_SW_EXT_TIME_US 200U |
Time extension in microseconds. More... | |
#define | PHBAL_REG_SERIALWIN_RX_TIMEOUT_VAL 500 |
Default timeout value to guarantee no deadlocks (ReadBus & WriteBus) | |
#define | PHPAL_I14443P3A_REQUEST_CMD 0x26U |
ReqA Command code. | |
#define | PHPAL_I14443P3A_WAKEUP_CMD 0x52U |
WupA Command code. | |
#define | PHPAL_I14443P3A_HALT_CMD 0x50U |
HltA Command code. | |
#define | PHPAL_I14443P3A_CASCADE_TAG 0x88U |
Cascade Tag (CT) value. | |
#define | PHPAL_I14443P3A_ATQA_LENGTH 2U |
Length of AtqA. | |
#define | PHPAL_I14443P3A_SELECTION_TIME_US 85U |
Wait time for selection command in microseconds. | |
#define | PHPAL_I14443P3A_HALT_TIME_US 1100U |
Wait time for halt command in microseconds. | |
#define | PHPAL_I14443P3A_EXT_TIME_US 60 |
Time extension in microseconds for all commands. More... | |
#define | PHPAL_I14443P3B_SW_ATQB_TIME_US 600 |
TR0 + TR1 (ISO14443-2 9.2.5 75,5 + 94,4 ~ 170 –> set 200 us). More... | |
#define | PHPAL_I14443P3B_SW_DELTA_POLL 17 |
T(B,POLL) (Digital Protocol Ver1.1 (Article 7.9.1.5) is 16.4ms = ~17ms). More... | |
#define | PHPAL_I14443P3B_SW_ATTRIB_TIME_US 4800 |
Answer to ATTRIB FWT (ISO14443-3 7.9.4.3). More... | |
#define | PHPAL_I14443P3B_SW_APF 0x05U |
Anticollision prefix code. | |
#define | PHPAL_I14443P3B_SW_PARAM_WUP_BIT 0x08U |
Wakeup bit within PARAM byte. | |
#define | PHPAL_I14443P3B_SW_PARAM_EXTATQB_BIT 0x10U |
Extended ATQB bit within PARAM byte. | |
#define | PHPAL_I14443P3B_SW_HALT_CMD 0x50U |
HltB Command code. | |
#define | PHPAL_I14443P3B_SW_HALT_RESP 0x00U |
HltB Response code. | |
#define | PHPAL_I14443P3B_SW_ATTRIB_CMD 0x1DU |
ATTRIB Command code. | |
#define | PHPAL_I14443P3B_SW_ATTRIB_PARAM1_DEFAULT 0x00U |
ATTRIB parameter1 default value. | |
#define | PHPAL_I14443P3B_SW_FWI_DEFAULT 0x04U |
FWI default value. | |
#define | PHPAL_I14443P3B_SW_SFGI_DEFAULT 0x00U |
SFGI default value. | |
#define | PHPAL_I14443P3B_SW_FSCI_DEFAULT 0x02U |
FSCI default value. | |
#define | PHPAL_I14443P3B_SW_FWT_MIN_US 303 |
FTW min in microseconds. | |
#define | PHPAL_I14443P3B_SW_EXT_TIME_US 63 |
Time extension in microseconds for all commands. More... | |
#define | PHPAL_I14443P3B_FRAMESIZE_MAX 12 |
The maximum allowed FSDI/FSCI value. More... | |
#define | PHPAL_I14443P3B_SW_TXWAIT_US_TR2_0 133U |
Minimum TxWait in case received TR2 value is (00)b. More... | |
#define | PHPAL_I14443P3B_SW_TXWAIT_US_TR2_1 246U |
Minimum TxWait in case received TR2 value is (01)b. More... | |
#define | PHPAL_I14443P3B_SW_TXWAIT_US_TR2_2 397U |
Minimum TxWait in case received TR2 value is (10)b. More... | |
#define | PHPAL_I14443P3B_SW_TXWAIT_US_TR2_3 699U |
Minimum TxWait in case received TR2 value is (11)b. More... | |
#define | PHPAL_I14443P3B_SW_MINIMUM_TR2_MASK 0x06U |
Minimum TR2 Mask to extract TR2 value. More... | |
#define | PHPAL_I14443P3B_SW_MINIMUM_TR2_POS 1U |
TR2 position. More... | |
#define | PHPAL_I14443P3B_SW_MINIMUM_TR2_VALUE_0 0U |
TR2 bit value (00)b. More... | |
#define | PHPAL_I14443P3B_SW_MINIMUM_TR2_VALUE_1 1U |
TR2 bit value (01)b. More... | |
#define | PHPAL_I14443P3B_SW_MINIMUM_TR2_VALUE_2 2U |
TR2 bit value (10)b. More... | |
#define | PHPAL_I14443P3B_SW_MINIMUM_TR2_VALUE_3 3U |
TR2 bit value (11)b. More... | |
#define | PHPAL_I14443P3B_SW_DELTA_TPCD_US_MAX 16400U |
Delta TPCD max in microseconds. | |
#define | PHPAL_I14443P3B_SW_DELTA_TPCD_US_MIN 0U |
Delta TPCD minimum in microseconds. | |
#define | PHPAL_I14443P3B_SW_DELTA_FWT_US 3625U |
Delta frame wait time (FWT) in microseconds = 49152/fc. | |
#define | PHPAL_I14443P3B_SW_DELTA_TPCD_US 1000U |
Delta TPCD used for exchange (in microseconds) | |
#define | PHPAL_I14443P4_SW_BLOCK_MASK 0xC0U |
ISO 14443-4 Block Mask. | |
#define | PHPAL_I14443P4_SW_I_BLOCK 0x00U |
ISO 14443-4 I-Block. | |
#define | PHPAL_I14443P4_SW_I_BLOCK_RFU_MASK 0x22U |
ISO 14443-4 I-Block RFU mask. | |
#define | PHPAL_I14443P4_SW_I_BLOCK_RFU_BITS 0x02U |
ISO 14443-4 I-Block RFU bits. | |
#define | PHPAL_I14443P4_SW_R_BLOCK 0x80U |
ISO 14443-4 R-Block. | |
#define | PHPAL_I14443P4_SW_R_BLOCK_RFU_MASK 0x26U |
ISO 14443-4 R-Block RFU mask. | |
#define | PHPAL_I14443P4_SW_R_BLOCK_RFU_BITS 0x22U |
ISO 14443-4 R-Block RFU bits. | |
#define | PHPAL_I14443P4_SW_S_BLOCK 0xC0U |
ISO 14443-4 S-Block. | |
#define | PHPAL_I14443P4_SW_S_BLOCK_RFU_MASK 0x03U |
ISO 14443-4 S-Block RFU mask. | |
#define | PHPAL_I14443P4_SW_S_BLOCK_RFU_BITS 0x02U |
ISO 14443-4 S-Block RFU bits. | |
#define | PHPAL_I14443P4_SW_PCB_POS 0x00U |
Byte position of PCB byte. | |
#define | PHPAL_I14443P4_SW_PCB_BLOCKNR 0x01U |
Blocknumber Bit within PCB. | |
#define | PHPAL_I14443P4_SW_PCB_NAD_FOLLOWING 0x04U |
Bit within PCB which signals presence of NAD byte. | |
#define | PHPAL_I14443P4_SW_PCB_CID_FOLLOWING 0x08U |
Bit within PCB which signals presence of CID byte. | |
#define | PHPAL_I14443P4_SW_PCB_CHAINING 0x10U |
Bit within PCB which signals chaining. | |
#define | PHPAL_I14443P4_SW_PCB_ACK 0x00U |
Bit within PCB which signals ACK. | |
#define | PHPAL_I14443P4_SW_PCB_NAK 0x10U |
Bit within PCB which signals NAK. | |
#define | PHPAL_I14443P4_SW_PCB_DESELECT 0x00U |
Bits within PCB which signal a DESELECT command. | |
#define | PHPAL_I14443P4_SW_PCB_WTX 0x30U |
Bits within PCB which signal a WTX command. | |
#define | PHPAL_I14443P4_SW_WTXM_BITS 0x3FU |
WTXM Bits of WTX INF byte. | |
#define | PHPAL_I14443P4_SW_FWI_DEFAULT 0x04U |
FWI default value. | |
#define | PHPAL_I14443P4_SW_FSCI_DEFAULT 0x02U |
FSCI default value. | |
#define | PHPAL_I14443P4_SW_FWT_MIN_US 302 |
FTW min in microseconds. | |
#define | PHPAL_I14443P4_SW_FWT_MIN_US 302 |
FTW min in microseconds. | |
#define | PHPAL_I14443P4_SW_FWT_MAX_US 4949000 |
FTW max in microseconds. | |
#define | PHPAL_I14443P4_SW_FWT_DESELECT_US 5286 |
S(DESELECT) FTW in microseconds. | |
#define | PHPAL_I14443P4_SW_CID_MASK 0x0FU |
Valid CID bits within CID field. | |
#define | PHPAL_I14443P4_SW_STATE_I_BLOCK_TX 0x01U |
I-Block transmission mode. | |
#define | PHPAL_I14443P4_SW_STATE_I_BLOCK_RX 0x02U |
I-Block reception mode. | |
#define | PHPAL_I14443P4_SW_STATE_FINISHED 0x0FU |
Exchange finished mode. | |
#define | PHPAL_I14443P4_SW_STATE_RETRANSMIT_BIT 0x40U |
An I-Block mode is retramsmitting. | |
#define | PHPAL_I14443P4_SW_STATE_CHAINING_BIT 0x80U |
An I-Block mode is chaining. | |
#define | PHPAL_I14443P4_SW_STATE_MASK 0x0FU |
Only 6 bits of the state are pure state codes. | |
#define | PHPAL_I14443P4_SW_MAX_RETRIES_DEFAULT 2U |
Default Maximum Retry count for ISO/IEC 14443-4:2008(E) Rule 4 and 5. | |
#define | PHPAL_I14443P4_EXT_TIME_US 60 |
Time extension in microseconds for all commands. More... | |
#define | PHPAL_I14443P4_EMVCO_FWT_US 30 |
EMVCo: Time extension to support EMVCO Req. | |
#define | PHPAL_I14443P4_SW_S_BLOCK_INF_PLI_MASK 0xC0 |
Power level Indication bit mask for INF of SWTX. | |
#define | PHPAL_I14443P4_SW_DELTA_TPCD_US_MAX 16400U |
Delta TPCD max in microseconds. | |
#define | PHPAL_I14443P4_SW_DELTA_TPCD_US_MIN 0U |
Delta TPCD minimum in microseconds. | |
#define | PHPAL_I14443P4_SW_DELTA_FWT_US 3625U |
Delta frame wait time (FWT) in microseconds = 49152/fc. | |
#define | PHPAL_I14443P4_SW_DELTA_TPCD_US 1000U |
Delta TPCD used for exchange (in microseconds) | |
#define | PHPAL_I14443P4A_SAMAV2_X_PPSS 0xD0U |
PPS Command code. More... | |
#define | PHPAL_I14443P4A_SAMAV2_X_PPS0 0x11U |
PPS0 code. More... | |
#define | PHPAL_I14443P4A_SAMAV2_X_ATS_LEN 0 |
Position of LEN within ATS. More... | |
#define | PHPAL_I14443P4A_SAMAV2_X_ATS_T0 1 |
Position of T0 within ATS. More... | |
#define | PHPAL_I14443P4A_SAMAV2_X_ATS_TA1_PRESENT 0x10U |
Bit which signals TA(1) presence. More... | |
#define | PHPAL_I14443P4A_SAMAV2_X_ATS_TB1_PRESENT 0x20U |
Bit which signals TB(1) presence. More... | |
#define | PHPAL_I14443P4A_SAMAV2_X_ATS_TC1_PRESENT 0x40U |
Bit which signals TC(1) presence. More... | |
#define | PHPAL_I14443P4A_SAMAV2_X_ATS_TC1_NAD_SUPPORT 0x01U |
Bit within TC(1) which signals NAD support. More... | |
#define | PHPAL_I14443P4A_SAMAV2_X_ATS_TC1_CID_SUPPORT 0x02U |
Bit within TC(1) which signals CID support. More... | |
#define | PHPAL_I14443P4A_SAMAV2_X_FWI_DEFAULT 0x04U |
FWI default value. More... | |
#define | PHPAL_I14443P4A_SAMAV2_X_FSCI_DEFAULT 0x02U |
FSCI default value. More... | |
#define | PHPAL_I14443P4A_SW_HALT_CMD 0x50U |
HltA Command code. More... | |
#define | PHPAL_I14443P4A_SW_RATS 0xE0U |
Rats Command code. More... | |
#define | PHPAL_I14443P4A_SW_PPSS 0xD0U |
PPS Command code. More... | |
#define | PHPAL_I14443P4A_SW_PPS0 0x11U |
PPS0 code. More... | |
#define | PHPAL_I14443P4A_SW_S_BLOCK 0xC0U |
ISO 14443-4 S-Block. More... | |
#define | PHPAL_I14443P4A_SW_S_BLOCK_RFU_BITS 0x02U |
ISO 14443-4 S-Block RFU bits. More... | |
#define | PHPAL_I14443P4A_SW_PCB_CID_FOLLOWING 0x08U |
Bit within PCB which signals presence of CID byte . More... | |
#define | PHPAL_I14443P4A_SW_PCB_DESELECT 0x00U |
Bits within PCB which signal a DESELECT command. More... | |
#define | PHPAL_I14443P4A_SW_FWT_ACTIVATION_US 5286 |
Activation FTW in microseconds. More... | |
#define | PHPAL_I14443P4A_SW_ATS_T0 1 |
Position of T0 within ATS. More... | |
#define | PHPAL_I14443P4A_SW_ATS_TA1_PRESENT 0x10U |
Bit which signals TA(1) presence. More... | |
#define | PHPAL_I14443P4A_SW_ATS_TB1_PRESENT 0x20U |
Bit which signals TB(1) presence. More... | |
#define | PHPAL_I14443P4A_SW_ATS_TC1_PRESENT 0x40U |
Bit which signals TC(1) presence. More... | |
#define | PHPAL_I14443P4A_SW_ATS_TC1_NAD_SUPPORT 0x01U |
Bit within TC(1) which signals NAD support. More... | |
#define | PHPAL_I14443P4A_SW_ATS_TC1_CID_SUPPORT 0x02U |
Bit within TC(1) which signals CID support. More... | |
#define | PHPAL_I14443P4A_SW_FWI_DEFAULT 0x04U |
FWI default value. More... | |
#define | PHPAL_I14443P4A_SW_SFGI_DEFAULT 0x00U |
SFGI default value. More... | |
#define | PHPAL_I14443P4A_SW_FSCI_DEFAULT 0x02U |
FSCI default value. More... | |
#define | PHPAL_I14443P4A_SW_FWT_MIN_US 303 |
FTW min in microseconds. More... | |
#define | PHPAL_I14443P4A_SW_HALT_TIME_US 1100U |
Wait time for halt command in microseconds. More... | |
#define | PHPAL_I14443P4A_SW_EXT_TIME_US 60 |
Time extension in microseconds for all commands. More... | |
#define | PHPAL_I14443P4A_FRAMESIZE_MAX 12 |
The maximum allowed FSDI/FSCI value as per ISO. More... | |
#define | PHPAL_I14443P4A_EMVCO_FRAMESIZE_MAX 8 |
The maximum allowed FSDI/FSCI value as per Emvco and NfcForum. More... | |
#define | PHPAL_I14443P4A_SW_DELTA_TPCD_US_MAX 16400U |
Delta TPCD max in microseconds. | |
#define | PHPAL_I14443P4A_SW_DELTA_TPCD_US_MIN 0U |
Delta TPCD minimum in microseconds. | |
#define | PHPAL_I14443P4A_SW_DELTA_FWT_US 3625U |
Delta frame wait time (FWT) in microseconds = 49152/fc. | |
#define | PHPAL_I14443P4A_SW_DELTA_TPCD_US 1000U |
Delta TPCD used for exchange (in microseconds) | |
#define | PHPAL_I18092MPI_SW_IS_INVALID_BLOCK_STATUS(bStatus) |
Macro which checks for invalid block status. More... | |
#define | PHPAL_I18092MPI_SW_IS_TIMEOUT(bPfb) |
Macro which checks if given PDU is timeout PDU. More... | |
#define | PHPAL_I18092MPI_SW_IS_ATTENTION(bPfb) |
Macro which checks if given PDU is ATN PDU. More... | |
#define | PHPAL_I18092MPI_SW_IS_ACK(bPfb) |
Macro which checks if given PDU is ACK PDU. More... | |
#define | PHPAL_I18092MPI_SW_IS_NACK(bPfb) |
Macro which checks if given PDU is NACK PDU. More... | |
#define | PHPAL_I18092MPI_SW_IS_CHAINING(bPfb) |
Macro which checks if given I-PDU is chaining. More... | |
#define | PHPAL_I18092MPI_SW_IS_NOT_CHAINING(bPfb) |
Macro which checks if given I-PDU is not chaining. More... | |
#define | PHPAL_I18092MPI_SW_IS_INFORMATION_PDU(bPfb) |
Macro which checks if given PDU is an I-PDU. More... | |
#define | PHPAL_I18092MPI_SW_INCREMENT_PNI(bPni) (((bPni) == 3) ? 0 : ((bPni) + 1)) |
Macro used to increment PNI. More... | |
#define | PHPAL_I18092MPI_SW_START_BYTE 0xF0U |
Start Byte to be added to the protocol header in case underlying protocol is ISO14443. More... | |
#define | PHPAL_I18092MPI_SW_CMD_REQUEST 0xD4U |
Request command code. More... | |
#define | PHPAL_I18092MPI_SW_CMD_RESPONSE 0xD5U |
Response command code. More... | |
#define | PHPAL_I18092MPI_SW_CMD_ATR_REQ 0x00U |
Attribute request command code. More... | |
#define | PHPAL_I18092MPI_SW_ATR_PPI_LRI_BIT 0x04U |
Bit position of LRi field within PPi byte for attribute request command. More... | |
#define | PHPAL_I18092MPI_SW_CMD_ATR_RES 0x01U |
Attribute response command code. More... | |
#define | PHPAL_I18092MPI_SW_CMD_PSL_REQ 0x04U |
Parameter select request command code. More... | |
#define | PHPAL_I18092MPI_SW_CMD_PSL_RES 0x05U |
Parameter select response command code. More... | |
#define | PHPAL_I18092MPI_SW_CMD_DEP_REQ 0x06U |
Data exchange protocol request command code. More... | |
#define | PHPAL_I18092MPI_SW_CMD_DEP_RES 0x07U |
Data exchange protocol response command code. More... | |
#define | PHPAL_I18092MPI_SW_CMD_DSL_REQ 0x08U |
Deselect request command code. More... | |
#define | PHPAL_I18092MPI_SW_CMD_DSL_RES 0x09U |
Deselect response command code. More... | |
#define | PHPAL_I18092MPI_SW_CMD_RLS_REQ 0x0AU |
Release request command code. More... | |
#define | PHPAL_I18092MPI_SW_CMD_RLS_RES 0x0BU |
Release response command code. More... | |
#define | PHPAL_I18092MPI_SW_CMD_WUP_REQ 0x02U |
Wakeup request command code. More... | |
#define | PHPAL_I18092MPI_SW_CMD_WUP_RES 0x03U |
Wakeup response command code. More... | |
#define | PHPAL_I18092MPI_SW_ATR_RES_NFCID3_POS 0x02U |
Position of NFCID3 within ATR_RES. More... | |
#define | PHPAL_I18092MPI_SW_ATR_RES_DID_POS 12U |
Position of DID within ATR_RES. More... | |
#define | PHPAL_I18092MPI_SW_ATR_RES_BST_POS 13U |
Position of BS(T) within ATR_RES. More... | |
#define | PHPAL_I18092MPI_SW_ATR_RES_BRT_POS 14U |
Position of BR(T) within ATR_RES. More... | |
#define | PHPAL_I18092MPI_SW_ATR_RES_TO_POS 15U |
Position of TO within ATR_RES. More... | |
#define | PHPAL_I18092MPI_SW_ATR_RES_PPT_POS 16U |
Position of PP(T) within ATR_RES. More... | |
#define | PHPAL_I18092MPI_SW_ATR_RES_PPT_GT_AVAILABLE 0x02U |
Gt_available bit within PP(T) byte of ATR_RES. More... | |
#define | PHPAL_I18092MPI_SW_ATR_RES_PPT_NAD_USED 0x01U |
NAD_used bit within PP(T) byte of ATR_RES. More... | |
#define | PHPAL_I18092MPI_SW_PFB_INFORMATION_PDU_MASK 0x00U |
Bit mask within PFB identifying an information PDU. More... | |
#define | PHPAL_I18092MPI_SW_PFB_ACK_PDU_MASK 0x40U |
Bit mask within PFB identifying an ACK/NACK PDU. More... | |
#define | PHPAL_I18092MPI_SW_PFB_SUPERVISORY_PDU_MASK 0x80U |
Bit mask within PFB identifying a supervisory PDU. More... | |
#define | PHPAL_I18092MPI_SW_PFB_PDU_TYPE_MASK 0xE0U |
Bit mask within PFB to get type of PDU. More... | |
#define | PHPAL_I18092MPI_SW_PFB_NAD_MASK 0x08U |
Bit mask within PFB for checking NAD enabler. More... | |
#define | PHPAL_I18092MPI_SW_PFB_DID_MASK 0x04U |
Bit mask within PFB for checking DID enabler. More... | |
#define | PHPAL_I18092MPI_SW_PFB_PNI_MASK 0x03U |
Bit mask within PFB for getting PNI. More... | |
#define | PHPAL_I18092MPI_SW_PFB_OPTION_MASK 0x10U |
Bit mask within PDU for getting option field (NACK/ACK or ATTENTION/RTOS or MI). More... | |
#define | PHPAL_I18092MPI_SW_DELTA_T_INITIATOR_MS 100U |
Activation response waiting time in milliseconds, NFCForum-TS-DigitalProtocol-1.0 section A.10. More... | |
#define | PHPAL_I18092MPI_SW_DELTA_RWT_US 2U |
Time extension in microseconds for all commands, NFCForum-TS-DigitalProtocol-1.0 section A.10. More... | |
#define | PHPAL_I18092MPI_SW_RWT_ACTIVATION_MS 1239U |
Activation response waiting time in milliseconds, NFCForum-TS-DigitalProtocol-1.0 section A.10. More... | |
#define | PHPAL_I18092MPI_SW_RWT_MIN_US 302U |
Minimum response waiting time, ISO/IEC 18092:2004(E) section 12.5.1.2.1. More... | |
#define | PHPAL_I18092MPI_SW_RWT_MAX_MS 4949UL |
Maximum response waiting time, ISO/IEC 18092:2013(E) section 12.5.1.2.1. | |
#define | PHPAL_I18092MPI_SW_TIRFG_MIN_MS 5U |
Minimum initial RF guard time before retry of ATR_REQ. More... | |
#define | PHPAL_I18092MPI_SW_MIN_FRAMESIZE 3U |
Minimum frame size, NFCForum-TS-DigitalProtocol-1.0. More... | |
#define | PHPAL_I18092MPI_SW_MAX_FRAMESIZE 255U |
Maximum frame size, NFCForum-TS-DigitalProtocol-1.0. More... | |
#define | PHPAL_I18092MPI_SW_RETRIES_DEFAULT 2U |
Default (=minimum) Maximum Retry count, NFCForum-TS-DigitalProtocol-1.0 section A.10. More... | |
#define | PHPAL_I18092MPI_SW_MIN_ACTIVATION_FRAME_LENGTH 17U |
Frame length must be min. More... | |
#define | PHPAL_I18092MPI_SW_MAX_ACTIVATION_FRAME_LENGTH 64U |
Frame length is limited to 64 bytes during activation. More... | |
#define | PHPAL_I18092MPI_SW_STATE_INFORMATION_PDU_TX 0x00U |
State information PDU to be transmitted. More... | |
#define | PHPAL_I18092MPI_SW_STATE_ACK_PDU_TX 0x01U |
State ACK PDU to be transmitted. More... | |
#define | PHPAL_I18092MPI_SW_STATE_INFORMATION_PDU_RX 0x02U |
State information PDU to be received. More... | |
#define | PHPAL_I18092MPI_SW_STATE_FINISHED 0x03U |
Finished state. More... | |
#define | PHPAL_I18092MPI_SW_STATE_MASK 0x0FU |
State mask. More... | |
#define | PHPAL_I18092MPI_SW_STATE_RETRANSMIT_BIT 0x10U |
Retransmission of information PDU. More... | |
#define | PHPAL_I18092MPI_SW_STATE_CHAINING_BIT 0x20U |
Information PDU is chaining. More... | |
#define | PHPAL_I18092MPI_SW_STATE_CHAINING_FIRST_BIT 0x40U |
Information PDU is first block in chain. More... | |
#define | PHPAL_I18092MPI_SW_STATE_CHAINING_LAST_BIT 0x80U |
Information PDU is last block in chain. More... | |
#define | PHPAL_I18092MPI_SW_MAX_HEADER_LENGTH 0x07U |
Max length of the Header. | |
#define | PHPAL_I18092MPI_SW_RTOX_PAYLOAD_LENGTH 0x01U |
RTOX Data length. | |
#define | PHPAL_I18092MPI_SW_RTOX_MIN_VALUE 0x01U |
RTOX Minimum Valid value. | |
#define | PHPAL_I18092MPI_SW_RTOX_MAX_VALUE 0x3BU |
RTOX Maximum Valid value. | |
#define | PHPAL_MIFARE_RESP_ACK 0x0A |
MIFARE ACK response code. | |
#define | PHPAL_MIFARE_RESP_NAK0 0x00 |
MIFARE NAK0 response code. | |
#define | PHPAL_MIFARE_RESP_NAK1 0x01 |
MIFARE NAK1 response code. | |
#define | PHPAL_MIFARE_RESP_NAK4 0x04 |
MIFARE NAK4 response code. | |
#define | PHPAL_MIFARE_RESP_NAK5 0x05 |
MIFARE NAK5 response code. | |
#define | PHPAL_MIFARE_RESP_NAK6 0x06 |
MIFARE NAK6 response code. | |
#define | PHPAL_MIFARE_RESP_NAK7 0x07 |
MIFARE NAK7 response code. | |
#define | PHPAL_MIFARE_RESP_NAK9 0x09 |
MIFARE NAK9 response code. | |
Functions | |
phStatus_t | phalI18000p3m3_Sw_ParseError (phalI18000p3m3_Sw_DataParams_t *pDataParams, uint8_t *pRxData, uint16_t wRxDataLength, uint8_t bRxLastBits) |
Parse received error frame. More... | |
phStatus_t | phalMfc_Int_Transfer (void *pPalMifareDataParams, uint8_t bBlockNo) |
Perform MIFARE(R) Transfer command with MIFARE Picc. More... | |
phStatus_t | phalMfc_Int_Value (void *pPalMifareDataParams, uint8_t bCmdCode, uint8_t bBlockNo, uint8_t *pValue) |
Perform a MIFARE(R) Value operation with MIFARE Picc. More... | |
phStatus_t | phalMfc_Int_CreateValueBlock (uint8_t *pValue, uint8_t bAddrData, uint8_t *pBlock) |
Create a Value block for a given value/addr pair. More... | |
phStatus_t | phalMfc_Int_CheckValueBlockFormat (uint8_t *pBlock) |
Check value block format of a given block. More... | |
phStatus_t | phalMfc_Int_ResolveReturnCode (uint8_t bRetCode) |
Resolve MIFARE(R) error code from response. More... | |
phStatus_t | phalMfc_SamAV2_X_ConvertNak (phStatus_t status) |
Convert HAL Nak codes into palMifare NAK codes. More... | |
phStatus_t | phalMfp_Int_ComputeErrorResponse (uint16_t wNumBytesReceived, uint8_t bStatus, uint8_t bLayer4Comm) |
Evaluate if the received response is erroneus. More... | |
phStatus_t | phalMfp_Int_WritePerso (void *pPalMifareDataParams, uint8_t bLayer4Comm, uint16_t wBlockNr, uint8_t *pValue) |
Perform a MIFARE Plus Write Perso command. More... | |
phStatus_t | phalMfp_Int_CommitPerso (void *pPalMifareDataParams, uint8_t bLayer4Comm) |
Perform a MIFARE Plus Commit Perso command. More... | |
phStatus_t | phalMfp_Int_ResetAuth (void *pPalMifareDataParams) |
Perform a MIFARE Plus Reset Authenticate command. More... | |
phStatus_t | phalMfp_Int_PrepareProximityCheck (void *pPalMifareDataParams) |
Perform a Prepare Proximity Check command. More... | |
phStatus_t | phalMfp_Int_ProximityCheck (void *pPalMifareDataParams, uint8_t bNumSteps, uint8_t *pRndC, uint8_t *pRndRC) |
Perform a Proximity Check command. More... | |
phStatus_t | phalMfp_Int_MultiBlockRead (void *pPalMifareDataParams, uint8_t bBlockNr, uint8_t bNumBlocks, uint8_t *pBlocks) |
Perform a Multi Block Read command. More... | |
phStatus_t | phalMfp_Int_MultiBlockWrite (void *pPalMifareDataParams, uint8_t bBlockNr, uint8_t bNumBlocks, uint8_t *pBlocks) |
Perform a Multi Block Write command. More... | |
phStatus_t | phalMfp_Int_CreateValueBlock (uint8_t *pValue, uint8_t bAddrData, uint8_t *pBlock) |
Create a Value block for a given value/addr pair. More... | |
phStatus_t | phalMfp_Int_CheckValueBlockFormat (uint8_t *pBlock) |
Check value block format of a given block. More... | |
phStatus_t | phalMfp_SamAV2_AuthenticateGeneral (phalMfp_SamAV2_DataParams_t *pDataParams, uint8_t bLayer4Comm, uint8_t bFirstAuth, uint16_t wBlockNr, uint16_t wKeyNumber, uint16_t wKeyVersion, uint8_t bLenDivInput, uint8_t *pDivInput, uint8_t bUseKdfSl2, uint8_t bLenPcdCap2, uint8_t *pPcdCap2In, uint8_t *pPcdCap2Out, uint8_t *pPdCap2) |
Perform a complete MIFARE Plus Authentication for either Security Level. More... | |
phStatus_t | phalMfp_SamAV2_WriteExt (phalMfp_SamAV2_DataParams_t *pDataParams, uint8_t bCmdCode, uint16_t wSrcBnr, uint16_t wDstBnr, uint8_t *pData, uint8_t bDataLength) |
Perform a Write command in all it's flavours. More... | |
phStatus_t | phalMfp_SamAV2_X_WriteExt (phalMfp_SamAV2_X_DataParams_t *pDataParams, uint8_t bCmdCode, uint16_t wSrcBnr, uint16_t wDstBnr, uint8_t *pData, uint8_t bDataLength) |
Perform a Write command in all it's flavours. More... | |
phStatus_t | phalMfp_SamAV2_X_ConvertNak (phStatus_t status) |
Convert HAL Nak codes into palMifare NAK codes. More... | |
phStatus_t | phalMfp_Sw_AuthenticateGeneral (phalMfp_Sw_DataParams_t *pDataParams, uint8_t bLayer4Comm, uint8_t bFirstAuth, uint16_t wBlockNr, uint16_t wKeyNumber, uint16_t wKeyVersion, uint8_t bLenDivInput, uint8_t *pDivInput, uint8_t bUseKdfSl2, uint8_t bLenPcdCap2, uint8_t *pPcdCap2In, uint8_t *pPcdCap2Out, uint8_t *pPdCap2) |
Perform a complete MIFARE Plus Authentication for either Security Level. More... | |
phStatus_t | phalMfp_Sw_WriteExt (phalMfp_Sw_DataParams_t *pDataParams, uint8_t bCmdCode, uint16_t wSrcBnr, uint16_t wDstBnr, uint8_t *pData, uint16_t wDataLength, uint8_t bEncrypted) |
Perform a Write command in all it's flavours. More... | |
phStatus_t | phalMfp_Sw_Int_ComputeIv (uint8_t bIsResponse, uint8_t *pTi, uint16_t wRCtr, uint16_t wWCtr, uint8_t *pIv) |
Calculate the Init-Vector for encryption from input data. More... | |
phStatus_t | phalMfp_Sw_Int_KdfSl2 (phalMfp_Sw_DataParams_t *pDataParams, uint8_t *pRndA, uint8_t *pRndB) |
Perform a SL2 Key Derivation Function. More... | |
phStatus_t | phalMfp_Sw_Int_KdfSl3 (phalMfp_Sw_DataParams_t *pDataParams, uint8_t *pRndA, uint8_t *pRndB) |
Perform a SL3 Key Derivation Function. More... | |
void | phalMfp_Sw_Int_TruncateMac (uint8_t *pMac, uint8_t *pTruncatedMac) |
Perform MIFARE Plus specific MAC truncation. More... | |
phStatus_t | phbalReg_SerialWin_SetMode (void *phPort, uint32_t dwBitRate, uint8_t bStopBits) |
Change host bit rate. More... | |
phStatus_t | phbalReg_SerialWin_SetTimeout (void *phPort, uint32_t dwTimeout) |
Change reception timeout. More... | |
phStatus_t | phKeyStore_Sw_GetKeyValuePtrPos (phKeyStore_Sw_DataParams_t *pDataParams, uint16_t wKeyNumber, uint16_t wPos, phKeyStore_Sw_KeyVersionPair_t **pKeyVersion) |
Get the pointer to a KeyValue Pair given a Key number and a Key position. More... | |
phStatus_t | phKeyStore_Sw_GetKeyValuePtrVersion (phKeyStore_Sw_DataParams_t *pDataParams, uint16_t wKeyNumber, uint16_t wKeyVersion, phKeyStore_Sw_KeyVersionPair_t **pKeyVersion) |
Get the pointer to a KeyValue Pair given a Key number and a KeyVersion. More... | |
phStatus_t | phKeyStore_Sw_CheckUpdateKUC (phKeyStore_Sw_DataParams_t *pDataParams, uint16_t wKeyUsageCtrNumber) |
Check value of a counter and increment it accordingly. More... | |
phLog_RegisterEntry_t * | phLog_GetRegisteredEntry (void *pDataParams) |
Retreive phLog_RegisterEntry_t corresponding to given DataParams pointer. More... | |
void | phLog_AddParam_Raw (void *pDataParams, uint8_t bLogType, const char *pName, const void *pParam, uint16_t wLength, uint8_t bDataType) |
Add a new log entry containing raw data. More... | |
phStatus_t | phpalI14443p3a_Sw_RequestAEx (phpalI14443p3a_Sw_DataParams_t *pDataParams, uint8_t bReqCode, uint8_t *pAtqa) |
Perform a ISO14443-3A Request or Wakeup command. More... | |
phStatus_t | phpalI14443p3b_Sw_RequestBEx (phpalI14443p3b_Sw_DataParams_t *pDataParams, uint8_t bIsWakeUp, uint8_t bNumSlots, uint8_t bAfi, uint8_t bExtAtqb, uint8_t *pAtqb, uint8_t *pAtqbLen) |
Perform a ISO14443-3B Request/Wakeup command. More... | |
phStatus_t | phpalI14443p3b_Sw_CheckATQBEx (phpalI14443p3b_Sw_DataParams_t *pDataParams, uint8_t *pResp, uint16_t wRespLength, uint8_t *pAtqb, uint8_t *pAtqbLen) |
Check the received answer to Request/Wakeup/SlotMarker command. More... | |
phStatus_t | phpalI14443p3b_Sw_SetReaderBaudRateEx (phpalI14443p3b_Sw_DataParams_t *pDataParams) |
Set the baud rate on the reader device. More... | |
phStatus_t | phpalI14443p3b_Sw_DecideBaudRateEx (uint8_t bBitRateCapability, uint8_t *pbDri, uint8_t *pbDsi) |
Decide which baud rate to use depending on the VICCs capabilities and the callers request. More... | |
phStatus_t | phpalI14443p4_Sw_BuildIBlock (uint8_t bCidEnabled, uint8_t bCid, uint8_t bNadEnabled, uint8_t bNad, uint8_t bPcbBlockNum, uint8_t bChaining, uint8_t *pTxBuffer, uint16_t *pTxLength) |
Build I-Block frame header. More... | |
phStatus_t | phpalI14443p4_Sw_BuildRBlock (uint8_t bCidEnabled, uint8_t bCid, uint8_t bPcbBlockNum, uint8_t bIsAck, uint8_t *pTxBuffer, uint16_t *pTxLength) |
Build R(ACK) / R(NAK) frames. More... | |
phStatus_t | phpalI14443p4_Sw_BuildSBlock (uint8_t bCidEnabled, uint8_t bCid, uint8_t bIsWtx, uint8_t bWtxm, uint8_t *pTxBuffer, uint16_t *pTxLength) |
Build S-Block frames. More... | |
phStatus_t | phpalI14443p4_Sw_IsValidIBlock (uint8_t bCheckCid, uint8_t bCid, uint8_t bCheckNad, uint8_t bNad, uint8_t *pRxBuffer, uint16_t wRxLength) |
Check if received I-Block is valid. More... | |
phStatus_t | phpalI14443p4_Sw_IsValidRBlock (uint8_t bCheckCid, uint8_t bCid, uint8_t *pRxBuffer, uint16_t wRxLength) |
Check if received R-Block is valid. More... | |
phStatus_t | phpalI14443p4_Sw_IsValidSBlock (uint8_t bCheckCid, uint8_t bCid, uint8_t *pRxBuffer, uint16_t wRxLength) |
Check if received S-Block is valid. More... | |
phStatus_t | phpalI14443p4_Sw_IsoHandling (phpalI14443p4_Sw_DataParams_t *pDataParams, uint16_t wOption, uint8_t bRetryCount, uint8_t *pTxBuffer, uint16_t wTxLength, uint8_t **ppRxBuffer, uint16_t *pRxLength) |
Perform actual exchanging and take care about error handling etc. More... | |
phStatus_t | phpalI18092mPI_Sw_WriteFrameHeader (phpalI18092mPI_Sw_DataParams_t *pDataParams, uint16_t wOption, uint8_t bCommandCode, uint8_t bDataLength) |
Write header of transport protocol frame to internal buffer of HAL. More... | |
phStatus_t | phpalI18092mPI_Sw_WritePduHeader (phpalI18092mPI_Sw_DataParams_t *pDataParams, uint8_t bPduMask, uint8_t bOption, uint8_t bDataLength) |
Write PDU header to internal buffer of HAL. More... | |
phStatus_t | phpalI18092mPI_Sw_UpdatePduHeader (phpalI18092mPI_Sw_DataParams_t *pDataParams, uint8_t bDataLength) |
Update the length field within protocol frame header. More... | |
phStatus_t | phpalI18092mPI_Sw_GetPduHeaderLength (phpalI18092mPI_Sw_DataParams_t *pDataParams, uint8_t *pProtLength) |
Retrieve the length of protocol frame header. More... | |
phStatus_t | phpalI18092mPI_Sw_ValidateAndNormalizeResponseFrame (phpalI18092mPI_Sw_DataParams_t *pDataParams, uint8_t *pFrame, uint16_t wFrameLength, uint8_t bExpectedResponseCode, uint8_t **ppValidatedFrame, uint16_t *pValidatedFrameLength, uint8_t **ppPayload, uint16_t *pPayloadLength) |
Basic check if the received response is a valid frame. More... | |
phStatus_t | phpalI18092mPI_Sw_ConvertDatarate (uint16_t wHalDatarate, uint8_t *pI18092Datarate) |
Convert data rate read out from HAL to ISO18092 compatible data rate value (PHPAL_I18092MPI_DATARATE_*). More... | |
phStatus_t | phpalI18092mPI_Sw_TransceivePdu (phpalI18092mPI_Sw_DataParams_t *pDataParams, uint16_t wOption, uint8_t *pTxBuffer, uint16_t wTxLength, uint8_t **ppRawResponse, uint16_t *pRawResponseLength, uint8_t **ppNormalizedResponse, uint16_t *pNormalizedResponseLength, uint8_t **ppPayload, uint16_t *pPayloadLength) |
Transmit PDU to target and receive response. More... | |
phStatus_t | phpalI18092mPI_Sw_ValidateReceivedPdu (phpalI18092mPI_Sw_DataParams_t *pDataParams, phStatus_t statusRx, uint8_t **pRawResponse, uint16_t *wRawResponseLength, uint8_t **ppNormalizedResponse, uint16_t *pNormalizedResponseLength, uint8_t **ppPayload, uint16_t *pPayloadLength) |
Validate the status. More... | |
phStatus_t | phpalMifare_SamAV2_X_ConvertNak (phStatus_t status) |
Convert HAL Nak codes into palMifare NAK codes. More... | |
phStatus_t | phpalSli15693_Sw_InventoryEx (phpalSli15693_Sw_DataParams_t *pDataParams, uint8_t bOption, uint8_t bFlags, uint8_t bAfi, uint8_t *pMask, uint8_t bMaskBitLength, uint8_t bBlockNo, uint16_t wNoOfBlocks, uint8_t *pUid, uint8_t *pUidLength, uint8_t *pData, uint16_t *pLength) |
Perform all kinds of Inventory commands. More... | |
phStatus_t | phpalSli15693_Sw_InventoryExt (phpalSli15693_Sw_DataParams_t *pDataParams, uint8_t bOption, uint8_t bFlags, uint8_t bAfi, uint8_t bExtended, uint8_t bExtendedOptions, uint8_t *pMask, uint8_t bMaskBitLength, uint8_t bBlockNo, uint16_t wNoOfBlocks, uint8_t *pUid, uint8_t *pUidLength, uint8_t *pData, uint16_t *pLength) |
Perform Inventory Read Extended mode. More... | |
Felica Command Codes | |
#define | PHAL_FELICA_CMD_REQUEST_RESPONSE 0x04U |
Get the PICCs current mode. More... | |
#define | PHAL_FELICA_CMD_REQUEST_SERVICE 0x02U |
Get area key version and service key version. More... | |
#define | PHAL_FELICA_CMD_READ 0x06U |
Read the record value of the specified service. More... | |
#define | PHAL_FELICA_CMD_WRITE 0x08U |
Write records of the specified service. More... | |
#define | PHAL_FELICA_RSP_REQUEST_RESPONSE 0x05U |
Response code to the Request Response command. More... | |
#define | PHAL_FELICA_RSP_REQUEST_SERVICE 0x03U |
Response code to the Request Service command. More... | |
#define | PHAL_FELICA_RSP_READ 0x07U |
Response code to the Read command. More... | |
#define | PHAL_FELICA_RSP_WRITE 0x09U |
Response code to the Write command. More... | |
Command Codes | |
#define | PHAL_I18000P3M3_CMD_REQ_RN 0xC1 |
ReqRn command code. More... | |
#define | PHAL_I18000P3M3_CMD_READ 0xC2 |
Read command code. More... | |
#define | PHAL_I18000P3M3_CMD_WRITE 0xC3 |
Write command code. More... | |
#define | PHAL_I18000P3M3_CMD_KILL 0xC4 |
Kill command code. More... | |
#define | PHAL_I18000P3M3_CMD_LOCK 0xC5 |
Lock command code. More... | |
#define | PHAL_I18000P3M3_CMD_ACCESS 0xC6 |
Access command code. More... | |
#define | PHAL_I18000P3M3_CMD_BLOCKWRITE 0xC7 |
BlockWrite command code. More... | |
#define | PHAL_I18000P3M3_CMD_BLOCKERASE 0xC8 |
BlockErase command code. More... | |
#define | PHAL_I18000P3M3_CMD_BLOCKPERMALOCK 0xC9 |
BlockPermaLock command code. More... | |
I180000 Error Codes | |
#define | PHAL_I18000P3M3_ERRCODE_OTHER 0x00U |
Other Error. More... | |
#define | PHAL_I18000P3M3_ERRCODE_MEMORY_OVERRUN 0x03U |
Memory overrun. More... | |
#define | PHAL_I18000P3M3_ERRCODE_MEMORY_LOCKED 0x04U |
Memory locked. More... | |
#define | PHAL_I18000P3M3_ERRCODE_INSUFFICIENT_POWER 0x0BU |
Insufficient power. More... | |
#define | PHAL_I18000P3M3_ERRCODE_NON_SPECIFIC 0x0FU |
Non-specific error. More... | |
MIFARE Desfire Native Commands | |
#define | PHAL_MFDF_CMD_AUTHENTICATE 0x0A |
MF DF Authenticate command. More... | |
#define | PHAL_MFDF_CMD_AUTHENTICATE_ISO 0x1A |
MF DF Authenticate ISO command. More... | |
#define | PHAL_MFDF_CMD_AUTHENTICATE_AES 0xAA |
MF DF Authenticate AES command. More... | |
#define | PHAL_MFDF_CMD_CHANGE_KEY_SETTINGS 0x54 |
MF DF Change key settings cmd. More... | |
#define | PHAL_MFDF_CMD_GET_KEY_SETTINGS 0x45 |
MF DF Get Key Settings Cmd. More... | |
#define | PHAL_MFDF_CMD_CHANGE_KEY 0xC4 |
MF DF Change key cmd. More... | |
#define | PHAL_MFDF_CMD_GET_KEY_VERSION 0x64 |
MF DF Get Key Version. More... | |
#define | PHAL_MFDF_CMD_CREATE_APPLN 0xCA |
MF DF Create Application cmd. More... | |
#define | PHAL_MFDF_CMD_DELETE_APPLN 0xDA |
MF DF Delete Application cmd. More... | |
#define | PHAL_MFDF_CMD_GET_APPLN_IDS 0x6A |
MF DF Get Application Ids cmd. More... | |
#define | PHAL_MFDF_CMD_GET_DF_NAMES 0x6D |
MF DF Get Dedicated Fine names cmd. More... | |
#define | PHAL_MFDF_CMD_SELECT_APPLN 0x5A |
MF DF Select Application Cmd. More... | |
#define | PHAL_MFDF_CMD_FORMAT_PICC 0xFC |
MF DF Format PICC Cmd. More... | |
#define | PHAL_MFDF_CMD_GET_VERSION 0x60 |
MF DF Get Version cmd. More... | |
#define | PHAL_MFDF_CMD_FREE_MEM 0x6E |
MF DF Free Memory cmd. More... | |
#define | PHAL_MFDF_CMD_SET_CONFIG 0x5C |
MF DF Set Configuration Cmd. More... | |
#define | PHAL_MFDF_CMD_GET_CARD_UID 0x51 |
MF DF Get Card UID cmd. More... | |
#define | PHAL_MFDF_CMD_GET_FILE_IDS 0x6F |
MF DF Get File IDs cmd. More... | |
#define | PHAL_MFDF_CMD_GET_ISO_FILE_IDS 0x61 |
MF DF Get ISO File IDs cmd. More... | |
#define | PHAL_MFDF_CMD_GET_FILE_SETTINGS 0xF5 |
MF DF Get File settings cmd. More... | |
#define | PHAL_MFDF_CMD_CHANGE_FILE_SETTINGS 0x5F |
MF DF Change file settings cmd. More... | |
#define | PHAL_MFDF_CMD_CREATE_STD_DATAFILE 0xCD |
MF DF Create Standard data file cmd. More... | |
#define | PHAL_MFDF_CMD_CREATE_BKUP_DATAFILE 0xCB |
MF DF Create Backup data file cmd. More... | |
#define | PHAL_MFDF_CMD_CREATE_VALUE_FILE 0xCC |
MF DF Create Value File cmd. More... | |
#define | PHAL_MFDF_CMD_CREATE_LINEAR_RECFILE 0xC1 |
MF DF Create Linear record file cmd. More... | |
#define | PHAL_MFDF_CMD_CREATE_CYCLIC_RECFILE 0xC0 |
MF DF Create Cyclic record file cmd. More... | |
#define | PHAL_MFDF_CMD_DELETE_FILE 0xDF |
MF DF Delete File cmd. More... | |
#define | PHAL_MFDF_CMD_READ_DATA 0xBD |
MF DF Read Data cmd. More... | |
#define | PHAL_MFDF_CMD_WRITE_DATA 0x3D |
MF DF Write data cmd. More... | |
#define | PHAL_MFDF_CMD_GET_VALUE 0x6C |
MF DF Get Value cmd. More... | |
#define | PHAL_MFDF_CMD_CREDIT 0x0C |
MF DF Credit cmd. More... | |
#define | PHAL_MFDF_CMD_DEBIT 0xDC |
MF DF Debit cmd. More... | |
#define | PHAL_MFDF_CMD_LIMITED_CREDIT 0x1C |
MF DF Limited Credit cmd. More... | |
#define | PHAL_MFDF_CMD_WRITE_RECORD 0x3B |
MF DF Write Record cmd. More... | |
#define | PHAL_MFDF_CMD_READ_RECORDS 0xBB |
MF DF Read Records cmd. More... | |
#define | PHAL_MFDF_CMD_CLEAR_RECORDS_FILE 0xEB |
MF DF Clear records file cmd. More... | |
#define | PHAL_MFDF_CMD_COMMIT_TXN 0xC7 |
MF DF Commit transaction cmd. More... | |
#define | PHAL_MFDF_CMD_ABORT_TXN 0xA7 |
MF DF Abort transaction cmd. More... | |
MIFARE Desfire Response Codes | |
#define | PHAL_MFDF_RESP_OPERATION_OK 0x00U |
MF DF Response - Successful operation. More... | |
#define | PHAL_MFDF_RESP_NO_CHANGES 0x0CU |
MF DF Response - No changes done to backup files. More... | |
#define | PHAL_MFDF_RESP_ERR_OUT_OF_EEPROM_ERROR 0x0EU |
MF DF Response - Insufficient NV-Memory. More... | |
#define | PHAL_MFDF_RESP_ILLEGAL_COMMAND_CODE 0x1CU |
MF DF command code not supported. More... | |
#define | PHAL_MFDF_RESP_ERR_INTEGRITY_ERROR 0x1EU |
MF DF CRC or MAC does not match data padding bytes not valid. More... | |
#define | PHAL_MFDF_RESP_NO_SUCH_KEY 0x40U |
MF DF Invalid key number specified. More... | |
#define | PHAL_MFDF_RESP_ERR_LENGTH_ERROR 0x7EU |
MF DF Length of command string invalid. More... | |
#define | PHAL_MFDF_RESP_PERMISSION_DENIED 0x9DU |
MF DF Current configuration/status does not allow the requested command. More... | |
#define | PHAL_MFDF_RESP_ERR_PARAMETER_ERROR 0x9EU |
MF DF Value of params invalid. More... | |
#define | PHAL_MFDF_RESP_APPLICATION_NOT_FOUND 0xA0U |
MF DF Requested AID not found on PICC. More... | |
#define | PHAL_MFDF_RESP_ERR_APPL_INTEGRITY_ERROR 0xA1U |
MF DF Unrecoverable error within application, appln will be disabled. More... | |
#define | PHAL_MFDF_RESP_ERR_AUTHENTICATION_ERROR 0xAEU |
MF DF Current authentication status does not allow the requested cmd. More... | |
#define | PHAL_MFDF_RESP_ADDITIONAL_FRAME 0xAFU |
MF DF Additional data frame is expected to be sent. More... | |
#define | PHAL_MFDF_RESP_ERR_BOUNDARY_ERROR 0xBEU |
MF DF Attempt to read/write data from/to beyond the files/record's limits. More... | |
#define | PHAL_MFDF_RESP_ERR_PICC_INTEGRITY 0xC1U |
MF DF Unrecoverable error within PICC. More... | |
#define | PHAL_MFDF_RESP_ERR_COMMAND_ABORTED 0xCAU |
MF DF Previous cmd not fully completed. More... | |
#define | PHAL_MFDF_RESP_ERR_PIC_DISABLED 0xCDU |
MF DF PICC was disabled by an unrecoverable error. More... | |
#define | PHAL_MFDF_RESP_ERR_COUNT 0xCEU |
MF DF Num. More... | |
#define | PHAL_MFDF_RESP_ERR_DUPLICATE 0xDEU |
MF DF File/Application with same number already exists. More... | |
#define | PHAL_MFDF_RESP_ERR_EEPROM 0xEEU |
MF DF Could not complete NV-Write operation due to loss of power. More... | |
#define | PHAL_MFDF_RESP_ERR_FILE_NOT_FOUND 0xF0U |
MF DF Specified file number does not exist. More... | |
#define | PHAL_MFDF_RESP_ERR_FILE_INTEGRITY 0xF1U |
MF DF Unrecoverable error within file. More... | |
ISO 7816 Instructions | |
#define | PHAL_MFDF_CMD_ISO7816_SELECT_FILE 0xA4 |
ISO Select File. More... | |
#define | PHAL_MFDF_CMD_ISO7816_READ_RECORDS 0xB2 |
ISO Read records. More... | |
#define | PHAL_MFDF_CMD_ISO7816_READ_BINARY 0xB0 |
ISO Read Binary. More... | |
#define | PHAL_MFDF_CMD_ISO7816_UPDATE_BINARY 0xD6 |
ISO UPDATE Binary. More... | |
#define | PHAL_MFDF_CMD_ISO7816_APPEND_RECORD 0xE2 |
ISO Append record. More... | |
#define | PHAL_MFDF_CMD_ISO7816_UPDATE_RECORD 0xD2 |
ISO Update record. More... | |
#define | PHAL_MFDF_CMD_ISO7816_GET_CHALLENGE 0x84 |
ISO Get challenge. More... | |
#define | PHAL_MFDF_CMD_ISO7816_EXT_AUTHENTICATE 0x82 |
ISO Ext. More... | |
#define | PHAL_MFDF_CMD_ISO7816_INT_AUTHENTICATE 0x88 |
ISO Int. More... | |
MIFARE Desfire specific defines | |
#define | PHAL_MFDF_MAXWRAPPEDAPDU_SIZE 0x37u |
Maximum size of wrapped APDU 55 bytes. More... | |
#define | PHAL_MFDF_MAXDFAPDU_SIZE 0x3Cu |
Maximum size of DESFire APDU 60 bytes. More... | |
#define | PHAL_MFDF_DFAPPID_SIZE 0x03u |
Size of MF DF application Id. More... | |
#define | PHAL_MFDF_DATA_BLOCK_SIZE 0x10u |
Data block size need for internal purposes. More... | |
#define | PHAL_MFDF_MAX_FRAME_SIZE 0x40u |
Max size in a ISO 14443-4 frame. More... | |
ISO 7816 DF return Codes | |
#define | PHAL_MFDF_ISO7816_SUCCESS 0x9000U |
Correct execution. More... | |
#define | PHAL_MFDF_ISO7816_ERR_WRONG_LENGTH 0x6700U |
Wrong length. More... | |
#define | PHAL_MFDF_ISO7816_ERR_WRONG_PARAMS 0x6A86U |
Wrong parameters P1 and/or P2. More... | |
#define | PHAL_MFDF_ISO7816_ERR_WRONG_LC 0x6A87U |
Lc inconsistent with P1/p2. More... | |
#define | PHAL_MFDF_ISO7816_ERR_WRONG_LE 0x6C00U |
Wrong Le. More... | |
#define | PHAL_MFDF_ISO7816_ERR_NO_PRECISE_DIAGNOSTICS 0x6F00U |
No precise diagnostics. More... | |
#define | PHAL_MFDF_ISO7816_ERR_EOF_REACHED 0x6282U |
End of File reached. More... | |
#define | PHAL_MFDF_ISO7816_ERR_FILE_ACCESS 0x6982U |
File access not allowed. More... | |
#define | PHAL_MFDF_ISO7816_ERR_FILE_EMPTY 0x6985U |
File empty or access conditions not satisfied. More... | |
#define | PHAL_MFDF_ISO7816_ERR_FILE_NOT_FOUND 0x6A82U |
Application / File not found. More... | |
#define | PHAL_MFDF_ISO7816_ERR_MEMORY_FAILURE 0x6581U |
Memory failure (unsuccessful update). More... | |
#define | PHAL_MFDF_ISO7816_ERR_INCORRECT_PARAMS 0x6B00U |
Wrong parameter p1 or p2. More... | |
#define | PHAL_MFDF_ISO7816_ERR_WRONG_CLA 0x6E00U |
Wrong Class byte. More... | |
#define | PHAL_MFDF_ISO7816_ERR_UNSUPPORTED_INS 0x6D00U |
Instruction not supported. More... | |
MIFARE Plus Commands in MIFARE Plus Mode | |
#define | PHAL_MFP_CMD_AUTH1_FIRST 0x70 |
MFP Authenticate command (part 1, first authentication). More... | |
#define | PHAL_MFP_CMD_AUTH1 0x76 |
MFP Authenticate command (part 1, non-first authentication). More... | |
#define | PHAL_MFP_CMD_AUTH2 0x72 |
MFP Authenticate command (part 2). More... | |
#define | PHAL_MFP_CMD_AUTH3 0x74 |
MFP Authenticate command (part 3). More... | |
#define | PHAL_MFP_CMD_RAUTH 0x78 |
MFP ResetAuth command. More... | |
#define | PHAL_MFP_CMD_READ_ENM 0x30 |
MFP Read Encrypted, No mac on response, Mac on command. More... | |
#define | PHAL_MFP_CMD_READ_EMM 0x31 |
MFP Read Encrypted, Mac on response, Mac on command. More... | |
#define | PHAL_MFP_CMD_READ_PNM 0x32 |
MFP Read Plain, No mac on response, Mac on command. More... | |
#define | PHAL_MFP_CMD_READ_PMM 0x33 |
MFP Read Plain, Mac on response, Mac on command. More... | |
#define | PHAL_MFP_CMD_READ_ENU 0x34 |
MFP Read Encrypted, No mac on response, Unmac'ed command. More... | |
#define | PHAL_MFP_CMD_READ_EMU 0x35 |
MFP Read Encrypted, Mac on response, Unmac'ed command. More... | |
#define | PHAL_MFP_CMD_READ_PNU 0x36 |
MFP Read Plain, No mac on response, Unmac'ed command. More... | |
#define | PHAL_MFP_CMD_READ_PMU 0x37 |
MFP Read Plain, Mac on response, Unmac'ed command. More... | |
#define | PHAL_MFP_CMD_WRITE_EN 0xA0 |
MFP Write Encrypted, No mac on response, (Mac on command). More... | |
#define | PHAL_MFP_CMD_WRITE_EM 0xA1 |
MFP Write Encrypted, Mac on response, (Mac on command). More... | |
#define | PHAL_MFP_CMD_WRITE_PN 0xA2 |
MFP Write Plain, No mac on response, (Mac on command). More... | |
#define | PHAL_MFP_CMD_WRITE_PM 0xA3 |
MFP Write Plain, Mac on response, (Mac on command). More... | |
#define | PHAL_MFP_CMD_WRITEPERSO 0xA8 |
MFP Write Perso. More... | |
#define | PHAL_MFP_CMD_COMMITPERSO 0xAA |
MFP Commit Perso. More... | |
#define | PHAL_MFP_CMD_INCR 0xB0 |
MFP Increment command. More... | |
#define | PHAL_MFP_CMD_INCR_M 0xB1 |
MFP Increment command MACed. More... | |
#define | PHAL_MFP_CMD_DECR 0xB2 |
MFP Decrement command. More... | |
#define | PHAL_MFP_CMD_DECR_M 0xB3 |
MFP Decrement command MACed. More... | |
#define | PHAL_MFP_CMD_TRANS 0xB4 |
MFP Transfer command. More... | |
#define | PHAL_MFP_CMD_TRANS_M 0xB5 |
MFP Transfer command MACed. More... | |
#define | PHAL_MFP_CMD_INCRTR 0xB6 |
MFP Increment Transfer command. More... | |
#define | PHAL_MFP_CMD_INCRTR_M 0xB7 |
MFP Increment Transfer command MACed. More... | |
#define | PHAL_MFP_CMD_DECRTR 0xB8 |
MFP Decrement Transfer command. More... | |
#define | PHAL_MFP_CMD_DECRTR_M 0xB9 |
MFP Decrement Transfer command MACed. More... | |
#define | PHAL_MFP_CMD_REST 0xC2 |
MFP Restore command. More... | |
#define | PHAL_MFP_CMD_REST_M 0xC3 |
MFP Restore command MACed. More... | |
#define | PHAL_MFP_CMD_PPC 0xF0 |
MFP Prepare Proximity Check. More... | |
#define | PHAL_MFP_CMD_PC 0xF2 |
MFP Proximity Check command. More... | |
#define | PHAL_MFP_CMD_VPC 0xFD |
MFP Verify Proximity Check command. More... | |
MIFARE Plus Commands in MIFARE Mode | |
#define | PHAL_MFP_CMD_MBREAD 0x38 |
MFP Multi Block Read. More... | |
#define | PHAL_MFP_CMD_MBWRITE 0xA8 |
MFP Multi Block Read. More... | |
SLI Command Codes | |
#define | PHAL_SLI_CMD_SET_EAS 0xA2 |
SLI-S/SLI-L This command enables the EAS mode if the EAS mode is not locked. More... | |
#define | PHAL_SLI_CMD_RESET_EAS 0xA3 |
SLI-S/SLI-L This command disables the EAS mode if the EAS mode is not locked. More... | |
#define | PHAL_SLI_CMD_LOCK_EAS 0xA4 |
SLI-S/SLI-L This command locks the current state of the EAS mode and the EAS ID. More... | |
#define | PHAL_SLI_CMD_EAS_ALARM 0xA5 |
SLI-S/SLI-L EAS Alarm command. More... | |
#define | PHAL_SLI_CMD_PASSWORD_PROTECT_EAS 0xA6 |
SLI-S/SLI-L This command enables the password protection for EAS. More... | |
#define | PHAL_SLI_CMD_WRITE_EAS_ID 0xA7 |
SLI-S/SLI-L Write a new AES Identifier in the corresponding configuration memory. More... | |
#define | PHAL_SLI_CMD_READ_EPC 0xA8 |
SLI-S Return the EPC data. More... | |
#define | PHAL_SLI_CMD_GET_NXP_SYSTEM_INFOMATION 0xAB |
SLIX2 Return the information about the IC access conditions and supported features. More... | |
#define | PHAL_SLI_CMD_GET_RANDOM_NUMBER 0xB2 |
SLI-S/SLI-L Receive a random number from the label IC. More... | |
#define | PHAL_SLI_CMD_SET_PASSWORD 0xB3 |
SLI-S/SLI-L Set password to get access to different protected functionalities. More... | |
#define | PHAL_SLI_CMD_WRITE_PASSWORD 0xB4 |
SLI-S/SLI-L Write a new password into the related memory. More... | |
#define | PHAL_SLI_CMD_LOCK_PASSWORD 0xB5 |
SLI-S/SLI-L This command will lock the addressed password to prevent futur change. More... | |
#define | PHAL_SLI_CMD_PROTECT_PAGE 0xB6 |
SLI-S Define the restriction to get access to the related page. More... | |
#define | PHAL_SLI_CMD_LOCK_PAGE_PROTECT_COND 0xB7 |
SLI-S Lock the page protection condition. More... | |
#define | PHAL_SLI_CMD_GET_MULT_BLOCK_PROT_ST 0xB8 |
SLI-S Return the block protection status of the requested blocks. More... | |
#define | PHAL_SLI_CMD_DESTROY_SLI 0xB9 |
SLI-S/SLI-L This irreversible command destroys the label IC. More... | |
#define | PHAL_SLI_CMD_ENABLE_PRIVACY 0xBA |
SLI-S/SLI-L Enter into the privacy mode. More... | |
#define | PHAL_SLI_CMD_64BIT_PASSWORD_PROTECT 0xBB |
SLI-S Lead to require both Rd and Wr passwords to get access to password protected blocks. More... | |
#define | PHAL_SLI_CMD_READ_SIGNATURE 0xBD |
SLI-S/SLI-L returns an IC specific, 32-byte ECC signature. More... | |
Felica Command Codes | |
#define | PHPAL_FELICA_SW_CMD_REQC 0x00U |
RequestC. More... | |
#define | PHPAL_FELICA_SW_CMD_REQ_RESP 0x04U |
Request Response. More... | |
#define | PHPAL_FELICA_SW_CMD_REQ_SERVICE 0x02U |
Request Service. More... | |
#define | PHPAL_FELICA_SW_CMD_READ 0x06U |
Read. More... | |
#define | PHPAL_FELICA_SW_CMD_WRITE 0x08U |
Write. More... | |
#define | PHPAL_FELICA_SW_CMD_AUTH1 0x10U |
Authentication1. More... | |
#define | PHPAL_FELICA_SW_CMD_AUTH2 0x12U |
Authentication2. More... | |
#define | PHPAL_FELICA_SW_CMD_READ_SECF 0x14U |
Read from secure file. More... | |
#define | PHPAL_FELICA_SW_CMD_WRITE_SECF 0x16U |
Write to secure file. More... | |
#define | PHPAL_FELICA_SW_RSP_REQC 0x01U |
Response to RequestC. More... | |
#define | PHPAL_FELICA_SW_LEN_BYTE_SIZE 0x01U |
Size of Length byte in RequestC response. More... | |
#define | PHPAL_FELICA_SW_RESP_REQC_SIZE 0x01U |
Length of Response byte in RequestC response. More... | |
Flags | |
#define | PHPAL_FELICA_SW_FLAG_ERROR 0x01U |
Error Flag. More... | |
#define | PHPAL_FELICA_SW_FLAG_ADDRESSED 0x20U |
Addressed Flag. More... | |
#define | PHPAL_FELICA_SW_FLAG_SELECTED 0x10U |
Selected Flag. More... | |
Values | |
#define | PHPAL_FELICA_SW_IDMPMM_VALID 0x01U |
Stored UID is valid. More... | |
#define | PHPAL_FELICA_SW_IDMPMM_INVALID 0x00U |
Stored UID is not valid. More... | |
#define | PHPAL_FELICA_SW_RESP_FRAME_SIZE 32U |
Size of one Felica Response Frame. More... | |
Timing constants | |
#define | PHPAL_FELICA_SW_TIME_T_US 302U |
#define | PHPAL_FELICA_SW_EXT_TIME_US 500U |
Time extension in microseconds for all commands. More... | |
#define | PHPAL_FELICA_SW_T_DELAY_US 2417 |
NFC Forum Digital Protocol Technical Specification v1.1 : Appendix A.4. | |
#define | PHPAL_FELICA_SW_T_TIMESLOT_US 1208 |
NFC Forum Digital Protocol Technical Specification v1.1 : Appendix A.4. | |
#define | PHPAL_FELICA_SW_T_DELTA_F_POLL_US 1 |
NFC Forum Digital Protocol Technical Specification v1.1 : Appendix A.4. | |
#define | PHPAL_FELICA_SW_TR1_48BITS_AT212_US 227 |
NFC Forum Digital Protocol Technical Specification v1.1 : 8.1.2. | |
#define | PHPAL_FELICA_SW_TR1_56BITS_AT212_US 255 |
#define | PHPAL_FELICA_SW_TR1_64BITS_AT212_US 302 |
#define | PHPAL_FELICA_SW_TR1_72BITS_AT212_US 340 |
#define | PHPAL_FELICA_SW_TR1_48BITS_AT424_US 114 |
NFC Forum Digital Protocol Technical Specification v1.1 : 8.1.2. | |
#define | PHPAL_FELICA_SW_TR1_56BITS_AT424_US 128 |
#define | PHPAL_FELICA_SW_TR1_64BITS_AT424_US 151 |
#define | PHPAL_FELICA_SW_TR1_72BITS_AT424_US 170 |
Command Codes | |
#define | PHPAL_I18000P3M3_CMD_SELECT 0x0A |
Select command code. More... | |
#define | PHPAL_I18000P3M3_CMD_BEGIN_ROUND 0x08 |
BeginRound command code. More... | |
#define | PHPAL_I18000P3M3_CMD_RESIZE_ROUND 0x09 |
ResizeRound command code. More... | |
#define | PHPAL_I18000P3M3_CMD_NEXT_SLOT 0x00 |
NextSlot command code. More... | |
#define | PHPAL_I18000P3M3_CMD_ACK 0x01 |
ACK command code. More... | |
#define | PHPAL_I18000P3M3_CMD_NAK 0xC0 |
NAK command code. More... | |
Constats | |
#define | PHPAL_SLI15693_SW_NXP_MFG_CODE 0x04U |
IC Manufacturer Code of NXP. More... | |
#define | PHPAL_SLI15693_SW_EXT_TIME_US 60 |
Time extension in microseconds for all commands. More... | |
#define | PHPAL_SLI15693_SW_T1_WAITING_TIME 324U |
Waiting time T1 in us (ISO/IEC15693, 9.1.4.) | |
#define | PHPAL_SLI15693_SW_T2_WAITING_TIME 310U |
Waiting time T2 in us (ISO/IEC15693, 9.1.4.) | |
#define | PHPAL_SLI15693_SW_UID_COMPLETE 64U |
UID length in bits when complete. More... | |
#define | PHPAL_SLI15693_SW_FLAGS_DEFAULT 0x06U |
Default flags (DATA_RATE and INVENTORY BIT is set). More... | |
#define | PHPAL_SLI15693_SW_TIMEOUT_SLOT_US PHPAL_SLI15693_SW_T1_WAITING_TIME + PHPAL_SLI15693_SW_T2_WAITING_TIME |
Slot timeout. | |
Mandatory commands | |
#define | PHPAL_SLI15693_SW_CMD_INVENTORY 0x01U |
Anticollision inventory cmd code. | |
#define | PHPAL_SLI15693_SW_CMD_STAY_QUIET 0x02U |
Stay Quiet cmd code. | |
Optional commands | |
#define | PHPAL_SLI15693_SW_CMD_SELECT 0x25U |
Select cmd code. | |
#define | PHPAL_SLI15693_SW_CMD_RESET_TO_READY 0x26U |
Reset to ready cmd code. | |
Custom commands | |
#define | PHPAL_SLI15693_SW_CMD_INVENTORY_READ 0xA0U |
Inventory read cmd code. | |
#define | PHPAL_SLI15693_SW_CMD_FAST_INVENTORY_READ 0xA1U |
Fast inventory read cmd code. | |
#define | PHPAL_SLI15693_SW_CMD_INVENTORY_PAGE_READ 0xB0U |
Inventory page read cmd code. | |
#define | PHPAL_SLI15693_SW_CMD_FAST_INVENTORY_PAGE_READ 0xB1U |
Fast inventory page read cmd code. | |
#define | PHPAL_SLI15693_SW_CMD_STAY_QUIET_PERSISTENT 0xBCU |
Stay quiet persistent cmd code. | |
Private definitions and functions of all components.
#define PHAL_FELICA_CMD_REQUEST_RESPONSE 0x04U |
Get the PICCs current mode.
#define PHAL_FELICA_CMD_REQUEST_SERVICE 0x02U |
Get area key version and service key version.
#define PHAL_FELICA_CMD_READ 0x06U |
Read the record value of the specified service.
#define PHAL_FELICA_CMD_WRITE 0x08U |
Write records of the specified service.
#define PHAL_FELICA_RSP_REQUEST_RESPONSE 0x05U |
Response code to the Request Response command.
#define PHAL_FELICA_RSP_REQUEST_SERVICE 0x03U |
Response code to the Request Service command.
#define PHAL_FELICA_RSP_READ 0x07U |
Response code to the Read command.
#define PHAL_FELICA_RSP_WRITE 0x09U |
Response code to the Write command.
#define PHAL_I18000P3M3_CMD_REQ_RN 0xC1 |
ReqRn command code.
#define PHAL_I18000P3M3_CMD_READ 0xC2 |
Read command code.
#define PHAL_I18000P3M3_CMD_WRITE 0xC3 |
Write command code.
#define PHAL_I18000P3M3_CMD_KILL 0xC4 |
Kill command code.
#define PHAL_I18000P3M3_CMD_LOCK 0xC5 |
Lock command code.
#define PHAL_I18000P3M3_CMD_ACCESS 0xC6 |
Access command code.
#define PHAL_I18000P3M3_CMD_BLOCKWRITE 0xC7 |
BlockWrite command code.
#define PHAL_I18000P3M3_CMD_BLOCKERASE 0xC8 |
BlockErase command code.
#define PHAL_I18000P3M3_CMD_BLOCKPERMALOCK 0xC9 |
BlockPermaLock command code.
#define PHAL_I18000P3M3_ERRCODE_OTHER 0x00U |
Other Error.
#define PHAL_I18000P3M3_ERRCODE_MEMORY_OVERRUN 0x03U |
Memory overrun.
#define PHAL_I18000P3M3_ERRCODE_MEMORY_LOCKED 0x04U |
Memory locked.
#define PHAL_I18000P3M3_ERRCODE_INSUFFICIENT_POWER 0x0BU |
Insufficient power.
#define PHAL_I18000P3M3_ERRCODE_NON_SPECIFIC 0x0FU |
Non-specific error.
#define PHAL_MFDF_CMD_AUTHENTICATE 0x0A |
MF DF Authenticate command.
#define PHAL_MFDF_CMD_AUTHENTICATE_ISO 0x1A |
MF DF Authenticate ISO command.
#define PHAL_MFDF_CMD_AUTHENTICATE_AES 0xAA |
MF DF Authenticate AES command.
#define PHAL_MFDF_CMD_CHANGE_KEY_SETTINGS 0x54 |
MF DF Change key settings cmd.
#define PHAL_MFDF_CMD_GET_KEY_SETTINGS 0x45 |
MF DF Get Key Settings Cmd.
#define PHAL_MFDF_CMD_CHANGE_KEY 0xC4 |
MF DF Change key cmd.
#define PHAL_MFDF_CMD_GET_KEY_VERSION 0x64 |
MF DF Get Key Version.
#define PHAL_MFDF_CMD_CREATE_APPLN 0xCA |
MF DF Create Application cmd.
#define PHAL_MFDF_CMD_DELETE_APPLN 0xDA |
MF DF Delete Application cmd.
#define PHAL_MFDF_CMD_GET_APPLN_IDS 0x6A |
MF DF Get Application Ids cmd.
#define PHAL_MFDF_CMD_GET_DF_NAMES 0x6D |
MF DF Get Dedicated Fine names cmd.
#define PHAL_MFDF_CMD_SELECT_APPLN 0x5A |
MF DF Select Application Cmd.
#define PHAL_MFDF_CMD_FORMAT_PICC 0xFC |
MF DF Format PICC Cmd.
#define PHAL_MFDF_CMD_GET_VERSION 0x60 |
MF DF Get Version cmd.
#define PHAL_MFDF_CMD_FREE_MEM 0x6E |
MF DF Free Memory cmd.
#define PHAL_MFDF_CMD_SET_CONFIG 0x5C |
MF DF Set Configuration Cmd.
#define PHAL_MFDF_CMD_GET_CARD_UID 0x51 |
MF DF Get Card UID cmd.
#define PHAL_MFDF_CMD_GET_FILE_IDS 0x6F |
MF DF Get File IDs cmd.
#define PHAL_MFDF_CMD_GET_ISO_FILE_IDS 0x61 |
MF DF Get ISO File IDs cmd.
#define PHAL_MFDF_CMD_GET_FILE_SETTINGS 0xF5 |
MF DF Get File settings cmd.
#define PHAL_MFDF_CMD_CHANGE_FILE_SETTINGS 0x5F |
MF DF Change file settings cmd.
#define PHAL_MFDF_CMD_CREATE_STD_DATAFILE 0xCD |
MF DF Create Standard data file cmd.
#define PHAL_MFDF_CMD_CREATE_BKUP_DATAFILE 0xCB |
MF DF Create Backup data file cmd.
#define PHAL_MFDF_CMD_CREATE_VALUE_FILE 0xCC |
MF DF Create Value File cmd.
#define PHAL_MFDF_CMD_CREATE_LINEAR_RECFILE 0xC1 |
MF DF Create Linear record file cmd.
#define PHAL_MFDF_CMD_CREATE_CYCLIC_RECFILE 0xC0 |
MF DF Create Cyclic record file cmd.
#define PHAL_MFDF_CMD_DELETE_FILE 0xDF |
MF DF Delete File cmd.
#define PHAL_MFDF_CMD_READ_DATA 0xBD |
MF DF Read Data cmd.
#define PHAL_MFDF_CMD_WRITE_DATA 0x3D |
MF DF Write data cmd.
#define PHAL_MFDF_CMD_GET_VALUE 0x6C |
MF DF Get Value cmd.
#define PHAL_MFDF_CMD_CREDIT 0x0C |
MF DF Credit cmd.
#define PHAL_MFDF_CMD_DEBIT 0xDC |
MF DF Debit cmd.
#define PHAL_MFDF_CMD_LIMITED_CREDIT 0x1C |
MF DF Limited Credit cmd.
#define PHAL_MFDF_CMD_WRITE_RECORD 0x3B |
MF DF Write Record cmd.
#define PHAL_MFDF_CMD_READ_RECORDS 0xBB |
MF DF Read Records cmd.
#define PHAL_MFDF_CMD_CLEAR_RECORDS_FILE 0xEB |
MF DF Clear records file cmd.
#define PHAL_MFDF_CMD_COMMIT_TXN 0xC7 |
MF DF Commit transaction cmd.
#define PHAL_MFDF_CMD_ABORT_TXN 0xA7 |
MF DF Abort transaction cmd.
#define PHAL_MFDF_RESP_OPERATION_OK 0x00U |
MF DF Response - Successful operation.
#define PHAL_MFDF_RESP_NO_CHANGES 0x0CU |
MF DF Response - No changes done to backup files.
#define PHAL_MFDF_RESP_ERR_OUT_OF_EEPROM_ERROR 0x0EU |
MF DF Response - Insufficient NV-Memory.
#define PHAL_MFDF_RESP_ILLEGAL_COMMAND_CODE 0x1CU |
MF DF command code not supported.
#define PHAL_MFDF_RESP_ERR_INTEGRITY_ERROR 0x1EU |
MF DF CRC or MAC does not match data padding bytes not valid.
#define PHAL_MFDF_RESP_NO_SUCH_KEY 0x40U |
MF DF Invalid key number specified.
#define PHAL_MFDF_RESP_ERR_LENGTH_ERROR 0x7EU |
MF DF Length of command string invalid.
#define PHAL_MFDF_RESP_PERMISSION_DENIED 0x9DU |
MF DF Current configuration/status does not allow the requested command.
#define PHAL_MFDF_RESP_ERR_PARAMETER_ERROR 0x9EU |
MF DF Value of params invalid.
#define PHAL_MFDF_RESP_APPLICATION_NOT_FOUND 0xA0U |
MF DF Requested AID not found on PICC.
#define PHAL_MFDF_RESP_ERR_APPL_INTEGRITY_ERROR 0xA1U |
MF DF Unrecoverable error within application, appln will be disabled.
#define PHAL_MFDF_RESP_ERR_AUTHENTICATION_ERROR 0xAEU |
MF DF Current authentication status does not allow the requested cmd.
#define PHAL_MFDF_RESP_ADDITIONAL_FRAME 0xAFU |
MF DF Additional data frame is expected to be sent.
#define PHAL_MFDF_RESP_ERR_BOUNDARY_ERROR 0xBEU |
MF DF Attempt to read/write data from/to beyond the files/record's limits.
#define PHAL_MFDF_RESP_ERR_PICC_INTEGRITY 0xC1U |
MF DF Unrecoverable error within PICC.
PICC will be disabled.
#define PHAL_MFDF_RESP_ERR_COMMAND_ABORTED 0xCAU |
MF DF Previous cmd not fully completed.
Not all frames were requested or provided by the PCD.
#define PHAL_MFDF_RESP_ERR_PIC_DISABLED 0xCDU |
MF DF PICC was disabled by an unrecoverable error.
#define PHAL_MFDF_RESP_ERR_COUNT 0xCEU |
MF DF Num.
of applns limited to 28. No additional applications possible.
#define PHAL_MFDF_RESP_ERR_DUPLICATE 0xDEU |
MF DF File/Application with same number already exists.
#define PHAL_MFDF_RESP_ERR_EEPROM 0xEEU |
MF DF Could not complete NV-Write operation due to loss of power.
#define PHAL_MFDF_RESP_ERR_FILE_NOT_FOUND 0xF0U |
MF DF Specified file number does not exist.
#define PHAL_MFDF_RESP_ERR_FILE_INTEGRITY 0xF1U |
MF DF Unrecoverable error within file.
File will be disabled.
#define PHAL_MFDF_CMD_ISO7816_SELECT_FILE 0xA4 |
ISO Select File.
#define PHAL_MFDF_CMD_ISO7816_READ_RECORDS 0xB2 |
ISO Read records.
#define PHAL_MFDF_CMD_ISO7816_READ_BINARY 0xB0 |
ISO Read Binary.
#define PHAL_MFDF_CMD_ISO7816_UPDATE_BINARY 0xD6 |
ISO UPDATE Binary.
#define PHAL_MFDF_CMD_ISO7816_APPEND_RECORD 0xE2 |
ISO Append record.
#define PHAL_MFDF_CMD_ISO7816_UPDATE_RECORD 0xD2 |
ISO Update record.
#define PHAL_MFDF_CMD_ISO7816_GET_CHALLENGE 0x84 |
ISO Get challenge.
#define PHAL_MFDF_CMD_ISO7816_EXT_AUTHENTICATE 0x82 |
ISO Ext.
Authenticate.
#define PHAL_MFDF_CMD_ISO7816_INT_AUTHENTICATE 0x88 |
ISO Int.
Authenticate.
#define PHAL_MFDF_MAXWRAPPEDAPDU_SIZE 0x37u |
Maximum size of wrapped APDU 55 bytes.
#define PHAL_MFDF_MAXDFAPDU_SIZE 0x3Cu |
Maximum size of DESFire APDU 60 bytes.
#define PHAL_MFDF_DFAPPID_SIZE 0x03u |
Size of MF DF application Id.
#define PHAL_MFDF_DATA_BLOCK_SIZE 0x10u |
Data block size need for internal purposes.
#define PHAL_MFDF_MAX_FRAME_SIZE 0x40u |
Max size in a ISO 14443-4 frame.
#define PHAL_MFDF_ISO7816_SUCCESS 0x9000U |
Correct execution.
#define PHAL_MFDF_ISO7816_ERR_WRONG_LENGTH 0x6700U |
Wrong length.
#define PHAL_MFDF_ISO7816_ERR_WRONG_PARAMS 0x6A86U |
Wrong parameters P1 and/or P2.
#define PHAL_MFDF_ISO7816_ERR_WRONG_LC 0x6A87U |
Lc inconsistent with P1/p2.
#define PHAL_MFDF_ISO7816_ERR_WRONG_LE 0x6C00U |
Wrong Le.
#define PHAL_MFDF_ISO7816_ERR_NO_PRECISE_DIAGNOSTICS 0x6F00U |
No precise diagnostics.
#define PHAL_MFDF_ISO7816_ERR_EOF_REACHED 0x6282U |
End of File reached.
#define PHAL_MFDF_ISO7816_ERR_FILE_ACCESS 0x6982U |
File access not allowed.
#define PHAL_MFDF_ISO7816_ERR_FILE_EMPTY 0x6985U |
File empty or access conditions not satisfied.
#define PHAL_MFDF_ISO7816_ERR_FILE_NOT_FOUND 0x6A82U |
Application / File not found.
#define PHAL_MFDF_ISO7816_ERR_MEMORY_FAILURE 0x6581U |
Memory failure (unsuccessful update).
#define PHAL_MFDF_ISO7816_ERR_INCORRECT_PARAMS 0x6B00U |
Wrong parameter p1 or p2.
READ RECORDS.
#define PHAL_MFDF_ISO7816_ERR_WRONG_CLA 0x6E00U |
Wrong Class byte.
#define PHAL_MFDF_ISO7816_ERR_UNSUPPORTED_INS 0x6D00U |
Instruction not supported.
#define PHAL_MFP_CMD_AUTH1_FIRST 0x70 |
MFP Authenticate command (part 1, first authentication).
#define PHAL_MFP_CMD_AUTH1 0x76 |
MFP Authenticate command (part 1, non-first authentication).
#define PHAL_MFP_CMD_AUTH2 0x72 |
MFP Authenticate command (part 2).
#define PHAL_MFP_CMD_AUTH3 0x74 |
MFP Authenticate command (part 3).
#define PHAL_MFP_CMD_RAUTH 0x78 |
MFP ResetAuth command.
#define PHAL_MFP_CMD_READ_ENM 0x30 |
MFP Read Encrypted, No mac on response, Mac on command.
#define PHAL_MFP_CMD_READ_EMM 0x31 |
MFP Read Encrypted, Mac on response, Mac on command.
#define PHAL_MFP_CMD_READ_PNM 0x32 |
MFP Read Plain, No mac on response, Mac on command.
#define PHAL_MFP_CMD_READ_PMM 0x33 |
MFP Read Plain, Mac on response, Mac on command.
#define PHAL_MFP_CMD_READ_ENU 0x34 |
MFP Read Encrypted, No mac on response, Unmac'ed command.
#define PHAL_MFP_CMD_READ_EMU 0x35 |
MFP Read Encrypted, Mac on response, Unmac'ed command.
#define PHAL_MFP_CMD_READ_PNU 0x36 |
MFP Read Plain, No mac on response, Unmac'ed command.
#define PHAL_MFP_CMD_READ_PMU 0x37 |
MFP Read Plain, Mac on response, Unmac'ed command.
#define PHAL_MFP_CMD_WRITE_EN 0xA0 |
MFP Write Encrypted, No mac on response, (Mac on command).
#define PHAL_MFP_CMD_WRITE_EM 0xA1 |
MFP Write Encrypted, Mac on response, (Mac on command).
#define PHAL_MFP_CMD_WRITE_PN 0xA2 |
MFP Write Plain, No mac on response, (Mac on command).
#define PHAL_MFP_CMD_WRITE_PM 0xA3 |
MFP Write Plain, Mac on response, (Mac on command).
#define PHAL_MFP_CMD_WRITEPERSO 0xA8 |
MFP Write Perso.
#define PHAL_MFP_CMD_COMMITPERSO 0xAA |
MFP Commit Perso.
#define PHAL_MFP_CMD_INCR 0xB0 |
MFP Increment command.
#define PHAL_MFP_CMD_INCR_M 0xB1 |
MFP Increment command MACed.
#define PHAL_MFP_CMD_DECR 0xB2 |
MFP Decrement command.
#define PHAL_MFP_CMD_DECR_M 0xB3 |
MFP Decrement command MACed.
#define PHAL_MFP_CMD_TRANS 0xB4 |
MFP Transfer command.
#define PHAL_MFP_CMD_TRANS_M 0xB5 |
MFP Transfer command MACed.
#define PHAL_MFP_CMD_INCRTR 0xB6 |
MFP Increment Transfer command.
#define PHAL_MFP_CMD_INCRTR_M 0xB7 |
MFP Increment Transfer command MACed.
#define PHAL_MFP_CMD_DECRTR 0xB8 |
MFP Decrement Transfer command.
#define PHAL_MFP_CMD_DECRTR_M 0xB9 |
MFP Decrement Transfer command MACed.
#define PHAL_MFP_CMD_REST 0xC2 |
MFP Restore command.
#define PHAL_MFP_CMD_REST_M 0xC3 |
MFP Restore command MACed.
#define PHAL_MFP_CMD_PPC 0xF0 |
MFP Prepare Proximity Check.
#define PHAL_MFP_CMD_PC 0xF2 |
MFP Proximity Check command.
#define PHAL_MFP_CMD_VPC 0xFD |
MFP Verify Proximity Check command.
#define PHAL_MFP_CMD_MBREAD 0x38 |
MFP Multi Block Read.
#define PHAL_MFP_CMD_MBWRITE 0xA8 |
MFP Multi Block Read.
#define PHAL_MFP_TRUNCATED_MAC_SIZE 8 |
Size of the truncated MAC.
#define PHAL_MFP_MIFARE_VALUE_BLOCK_SIZE 4 |
Size of a MIFARE value block.
#define PHAL_MFP_MIFARE_BLOCK_SIZE 16 |
Size of the MIFARE blocks.
#define PHAL_MFP_PC_RND_LEN 7 |
Size of the Proximity Check Random numbers.
#define PHAL_MFUL_PREAMBLE_TX 0xAFU |
MIFARE Ultralight preamble byte (tx) for authentication.
#define PHAL_MFUL_PREAMBLE_RX 0x00U |
MIFARE Ultralight preamble byte (rx) for authentication.
#define PHAL_MFUL_COMPWRITE_BLOCK_LENGTH 16U |
Length of a compatibility write MIFARE(R) Ultralight data block.
#define PHAL_SLI_CMD_SET_EAS 0xA2 |
SLI-S/SLI-L This command enables the EAS mode if the EAS mode is not locked.
#define PHAL_SLI_CMD_RESET_EAS 0xA3 |
SLI-S/SLI-L This command disables the EAS mode if the EAS mode is not locked.
#define PHAL_SLI_CMD_LOCK_EAS 0xA4 |
SLI-S/SLI-L This command locks the current state of the EAS mode and the EAS ID.
#define PHAL_SLI_CMD_EAS_ALARM 0xA5 |
SLI-S/SLI-L EAS Alarm command.
#define PHAL_SLI_CMD_PASSWORD_PROTECT_EAS 0xA6 |
SLI-S/SLI-L This command enables the password protection for EAS.
#define PHAL_SLI_CMD_WRITE_EAS_ID 0xA7 |
SLI-S/SLI-L Write a new AES Identifier in the corresponding configuration memory.
#define PHAL_SLI_CMD_READ_EPC 0xA8 |
SLI-S Return the EPC data.
#define PHAL_SLI_CMD_GET_NXP_SYSTEM_INFOMATION 0xAB |
SLIX2 Return the information about the IC access conditions and supported features.
#define PHAL_SLI_CMD_GET_RANDOM_NUMBER 0xB2 |
SLI-S/SLI-L Receive a random number from the label IC.
#define PHAL_SLI_CMD_SET_PASSWORD 0xB3 |
SLI-S/SLI-L Set password to get access to different protected functionalities.
#define PHAL_SLI_CMD_WRITE_PASSWORD 0xB4 |
SLI-S/SLI-L Write a new password into the related memory.
#define PHAL_SLI_CMD_LOCK_PASSWORD 0xB5 |
SLI-S/SLI-L This command will lock the addressed password to prevent futur change.
#define PHAL_SLI_CMD_PROTECT_PAGE 0xB6 |
SLI-S Define the restriction to get access to the related page.
#define PHAL_SLI_CMD_LOCK_PAGE_PROTECT_COND 0xB7 |
SLI-S Lock the page protection condition.
#define PHAL_SLI_CMD_GET_MULT_BLOCK_PROT_ST 0xB8 |
SLI-S Return the block protection status of the requested blocks.
#define PHAL_SLI_CMD_DESTROY_SLI 0xB9 |
SLI-S/SLI-L This irreversible command destroys the label IC.
#define PHAL_SLI_CMD_ENABLE_PRIVACY 0xBA |
SLI-S/SLI-L Enter into the privacy mode.
#define PHAL_SLI_CMD_64BIT_PASSWORD_PROTECT 0xBB |
SLI-S Lead to require both Rd and Wr passwords to get access to password protected blocks.
#define PHAL_SLI_CMD_READ_SIGNATURE 0xBD |
SLI-S/SLI-L returns an IC specific, 32-byte ECC signature.
#define PHAL_T1T_CMD_WRITENOERASEBLOCK 0x1BU |
T1T Write_NE8 command byte.
#define PHAL_T1T_HEADER_ROM0 0x10U |
T1T Header Rom 0 byte to check.
#define PHAL_T1T_SW_READ_TIME_US 91U |
Read commands timeout in microseconds.
#define PHAL_T1T_SW_WRITE_ERASE_TIME_US 5236U |
Write Erase commands timeout in microseconds.
#define PHAL_T1T_SW_WRITE_NO_ERASE_TIME_US 2659U |
Write No Erase commands timeout in microseconds.
#define PHAL_T1T_SW_EXT_TIME_US 200U |
Time extension in microseconds.
#define PHPAL_FELICA_SW_CMD_REQC 0x00U |
RequestC.
#define PHPAL_FELICA_SW_CMD_REQ_RESP 0x04U |
Request Response.
#define PHPAL_FELICA_SW_CMD_REQ_SERVICE 0x02U |
Request Service.
#define PHPAL_FELICA_SW_CMD_READ 0x06U |
Read.
#define PHPAL_FELICA_SW_CMD_WRITE 0x08U |
Write.
#define PHPAL_FELICA_SW_CMD_AUTH1 0x10U |
Authentication1.
#define PHPAL_FELICA_SW_CMD_AUTH2 0x12U |
Authentication2.
#define PHPAL_FELICA_SW_CMD_READ_SECF 0x14U |
Read from secure file.
#define PHPAL_FELICA_SW_CMD_WRITE_SECF 0x16U |
Write to secure file.
#define PHPAL_FELICA_SW_RSP_REQC 0x01U |
Response to RequestC.
#define PHPAL_FELICA_SW_LEN_BYTE_SIZE 0x01U |
Size of Length byte in RequestC response.
#define PHPAL_FELICA_SW_RESP_REQC_SIZE 0x01U |
Length of Response byte in RequestC response.
#define PHPAL_FELICA_SW_FLAG_ERROR 0x01U |
Error Flag.
#define PHPAL_FELICA_SW_FLAG_ADDRESSED 0x20U |
Addressed Flag.
#define PHPAL_FELICA_SW_FLAG_SELECTED 0x10U |
Selected Flag.
#define PHPAL_FELICA_SW_IDMPMM_VALID 0x01U |
Stored UID is valid.
#define PHPAL_FELICA_SW_IDMPMM_INVALID 0x00U |
Stored UID is not valid.
#define PHPAL_FELICA_SW_RESP_FRAME_SIZE 32U |
Size of one Felica Response Frame.
#define PHPAL_FELICA_SW_EXT_TIME_US 500U |
Time extension in microseconds for all commands.
#define PHPAL_I14443P3A_EXT_TIME_US 60 |
Time extension in microseconds for all commands.
#define PHPAL_I14443P3B_SW_ATQB_TIME_US 600 |
TR0 + TR1 (ISO14443-2 9.2.5 75,5 + 94,4 ~ 170 –> set 200 us).
#define PHPAL_I14443P3B_SW_DELTA_POLL 17 |
T(B,POLL) (Digital Protocol Ver1.1 (Article 7.9.1.5) is 16.4ms = ~17ms).
#define PHPAL_I14443P3B_SW_ATTRIB_TIME_US 4800 |
Answer to ATTRIB FWT (ISO14443-3 7.9.4.3).
#define PHPAL_I14443P3B_SW_EXT_TIME_US 63 |
Time extension in microseconds for all commands.
#define PHPAL_I14443P3B_FRAMESIZE_MAX 12 |
The maximum allowed FSDI/FSCI value.
#define PHPAL_I14443P3B_SW_TXWAIT_US_TR2_0 133U |
Minimum TxWait in case received TR2 value is (00)b.
#define PHPAL_I14443P3B_SW_TXWAIT_US_TR2_1 246U |
Minimum TxWait in case received TR2 value is (01)b.
#define PHPAL_I14443P3B_SW_TXWAIT_US_TR2_2 397U |
Minimum TxWait in case received TR2 value is (10)b.
#define PHPAL_I14443P3B_SW_TXWAIT_US_TR2_3 699U |
Minimum TxWait in case received TR2 value is (11)b.
#define PHPAL_I14443P3B_SW_MINIMUM_TR2_MASK 0x06U |
Minimum TR2 Mask to extract TR2 value.
#define PHPAL_I14443P3B_SW_MINIMUM_TR2_POS 1U |
TR2 position.
#define PHPAL_I14443P3B_SW_MINIMUM_TR2_VALUE_0 0U |
TR2 bit value (00)b.
#define PHPAL_I14443P3B_SW_MINIMUM_TR2_VALUE_1 1U |
TR2 bit value (01)b.
#define PHPAL_I14443P3B_SW_MINIMUM_TR2_VALUE_2 2U |
TR2 bit value (10)b.
#define PHPAL_I14443P3B_SW_MINIMUM_TR2_VALUE_3 3U |
TR2 bit value (11)b.
#define PHPAL_I14443P4_EXT_TIME_US 60 |
Time extension in microseconds for all commands.
#define PHPAL_I14443P4A_SAMAV2_X_PPSS 0xD0U |
PPS Command code.
#define PHPAL_I14443P4A_SAMAV2_X_PPS0 0x11U |
PPS0 code.
#define PHPAL_I14443P4A_SAMAV2_X_ATS_LEN 0 |
Position of LEN within ATS.
#define PHPAL_I14443P4A_SAMAV2_X_ATS_T0 1 |
Position of T0 within ATS.
#define PHPAL_I14443P4A_SAMAV2_X_ATS_TA1_PRESENT 0x10U |
Bit which signals TA(1) presence.
#define PHPAL_I14443P4A_SAMAV2_X_ATS_TB1_PRESENT 0x20U |
Bit which signals TB(1) presence.
#define PHPAL_I14443P4A_SAMAV2_X_ATS_TC1_PRESENT 0x40U |
Bit which signals TC(1) presence.
#define PHPAL_I14443P4A_SAMAV2_X_ATS_TC1_NAD_SUPPORT 0x01U |
Bit within TC(1) which signals NAD support.
#define PHPAL_I14443P4A_SAMAV2_X_ATS_TC1_CID_SUPPORT 0x02U |
Bit within TC(1) which signals CID support.
#define PHPAL_I14443P4A_SAMAV2_X_FWI_DEFAULT 0x04U |
FWI default value.
#define PHPAL_I14443P4A_SAMAV2_X_FSCI_DEFAULT 0x02U |
FSCI default value.
#define PHPAL_I14443P4A_SW_HALT_CMD 0x50U |
HltA Command code.
#define PHPAL_I14443P4A_SW_RATS 0xE0U |
Rats Command code.
#define PHPAL_I14443P4A_SW_PPSS 0xD0U |
PPS Command code.
#define PHPAL_I14443P4A_SW_PPS0 0x11U |
PPS0 code.
#define PHPAL_I14443P4A_SW_S_BLOCK 0xC0U |
ISO 14443-4 S-Block.
#define PHPAL_I14443P4A_SW_S_BLOCK_RFU_BITS 0x02U |
ISO 14443-4 S-Block RFU bits.
#define PHPAL_I14443P4A_SW_PCB_CID_FOLLOWING 0x08U |
Bit within PCB which signals presence of CID byte .
#define PHPAL_I14443P4A_SW_PCB_DESELECT 0x00U |
Bits within PCB which signal a DESELECT command.
#define PHPAL_I14443P4A_SW_FWT_ACTIVATION_US 5286 |
Activation FTW in microseconds.
#define PHPAL_I14443P4A_SW_ATS_T0 1 |
Position of T0 within ATS.
#define PHPAL_I14443P4A_SW_ATS_TA1_PRESENT 0x10U |
Bit which signals TA(1) presence.
#define PHPAL_I14443P4A_SW_ATS_TB1_PRESENT 0x20U |
Bit which signals TB(1) presence.
#define PHPAL_I14443P4A_SW_ATS_TC1_PRESENT 0x40U |
Bit which signals TC(1) presence.
#define PHPAL_I14443P4A_SW_ATS_TC1_NAD_SUPPORT 0x01U |
Bit within TC(1) which signals NAD support.
#define PHPAL_I14443P4A_SW_ATS_TC1_CID_SUPPORT 0x02U |
Bit within TC(1) which signals CID support.
#define PHPAL_I14443P4A_SW_FWI_DEFAULT 0x04U |
FWI default value.
#define PHPAL_I14443P4A_SW_SFGI_DEFAULT 0x00U |
SFGI default value.
#define PHPAL_I14443P4A_SW_FSCI_DEFAULT 0x02U |
FSCI default value.
#define PHPAL_I14443P4A_SW_FWT_MIN_US 303 |
FTW min in microseconds.
#define PHPAL_I14443P4A_SW_HALT_TIME_US 1100U |
Wait time for halt command in microseconds.
#define PHPAL_I14443P4A_SW_EXT_TIME_US 60 |
Time extension in microseconds for all commands.
#define PHPAL_I14443P4A_FRAMESIZE_MAX 12 |
The maximum allowed FSDI/FSCI value as per ISO.
#define PHPAL_I14443P4A_EMVCO_FRAMESIZE_MAX 8 |
The maximum allowed FSDI/FSCI value as per Emvco and NfcForum.
#define PHPAL_I18000P3M3_CMD_SELECT 0x0A |
Select command code.
#define PHPAL_I18000P3M3_CMD_BEGIN_ROUND 0x08 |
BeginRound command code.
#define PHPAL_I18000P3M3_CMD_RESIZE_ROUND 0x09 |
ResizeRound command code.
#define PHPAL_I18000P3M3_CMD_NEXT_SLOT 0x00 |
NextSlot command code.
#define PHPAL_I18000P3M3_CMD_ACK 0x01 |
ACK command code.
#define PHPAL_I18000P3M3_CMD_NAK 0xC0 |
NAK command code.
#define PHPAL_I18092MPI_SW_IS_INVALID_BLOCK_STATUS | ( | bStatus | ) |
Macro which checks for invalid block status.
#define PHPAL_I18092MPI_SW_IS_TIMEOUT | ( | bPfb | ) |
Macro which checks if given PDU is timeout PDU.
#define PHPAL_I18092MPI_SW_IS_ATTENTION | ( | bPfb | ) |
Macro which checks if given PDU is ATN PDU.
#define PHPAL_I18092MPI_SW_IS_ACK | ( | bPfb | ) |
Macro which checks if given PDU is ACK PDU.
#define PHPAL_I18092MPI_SW_IS_NACK | ( | bPfb | ) |
Macro which checks if given PDU is NACK PDU.
#define PHPAL_I18092MPI_SW_IS_CHAINING | ( | bPfb | ) |
Macro which checks if given I-PDU is chaining.
#define PHPAL_I18092MPI_SW_IS_NOT_CHAINING | ( | bPfb | ) |
Macro which checks if given I-PDU is not chaining.
#define PHPAL_I18092MPI_SW_IS_INFORMATION_PDU | ( | bPfb | ) |
Macro which checks if given PDU is an I-PDU.
#define PHPAL_I18092MPI_SW_INCREMENT_PNI | ( | bPni | ) | (((bPni) == 3) ? 0 : ((bPni) + 1)) |
Macro used to increment PNI.
#define PHPAL_I18092MPI_SW_START_BYTE 0xF0U |
Start Byte to be added to the protocol header in case underlying protocol is ISO14443.
#define PHPAL_I18092MPI_SW_CMD_REQUEST 0xD4U |
Request command code.
#define PHPAL_I18092MPI_SW_CMD_RESPONSE 0xD5U |
Response command code.
#define PHPAL_I18092MPI_SW_CMD_ATR_REQ 0x00U |
Attribute request command code.
#define PHPAL_I18092MPI_SW_ATR_PPI_LRI_BIT 0x04U |
Bit position of LRi field within PPi byte for attribute request command.
#define PHPAL_I18092MPI_SW_CMD_ATR_RES 0x01U |
Attribute response command code.
#define PHPAL_I18092MPI_SW_CMD_PSL_REQ 0x04U |
Parameter select request command code.
#define PHPAL_I18092MPI_SW_CMD_PSL_RES 0x05U |
Parameter select response command code.
#define PHPAL_I18092MPI_SW_CMD_DEP_REQ 0x06U |
Data exchange protocol request command code.
#define PHPAL_I18092MPI_SW_CMD_DEP_RES 0x07U |
Data exchange protocol response command code.
#define PHPAL_I18092MPI_SW_CMD_DSL_REQ 0x08U |
Deselect request command code.
#define PHPAL_I18092MPI_SW_CMD_DSL_RES 0x09U |
Deselect response command code.
#define PHPAL_I18092MPI_SW_CMD_RLS_REQ 0x0AU |
Release request command code.
#define PHPAL_I18092MPI_SW_CMD_RLS_RES 0x0BU |
Release response command code.
#define PHPAL_I18092MPI_SW_CMD_WUP_REQ 0x02U |
Wakeup request command code.
#define PHPAL_I18092MPI_SW_CMD_WUP_RES 0x03U |
Wakeup response command code.
#define PHPAL_I18092MPI_SW_ATR_RES_NFCID3_POS 0x02U |
Position of NFCID3 within ATR_RES.
#define PHPAL_I18092MPI_SW_ATR_RES_DID_POS 12U |
Position of DID within ATR_RES.
#define PHPAL_I18092MPI_SW_ATR_RES_BST_POS 13U |
Position of BS(T) within ATR_RES.
#define PHPAL_I18092MPI_SW_ATR_RES_BRT_POS 14U |
Position of BR(T) within ATR_RES.
#define PHPAL_I18092MPI_SW_ATR_RES_TO_POS 15U |
Position of TO within ATR_RES.
#define PHPAL_I18092MPI_SW_ATR_RES_PPT_POS 16U |
Position of PP(T) within ATR_RES.
#define PHPAL_I18092MPI_SW_ATR_RES_PPT_GT_AVAILABLE 0x02U |
Gt_available bit within PP(T) byte of ATR_RES.
#define PHPAL_I18092MPI_SW_ATR_RES_PPT_NAD_USED 0x01U |
NAD_used bit within PP(T) byte of ATR_RES.
#define PHPAL_I18092MPI_SW_PFB_INFORMATION_PDU_MASK 0x00U |
Bit mask within PFB identifying an information PDU.
#define PHPAL_I18092MPI_SW_PFB_ACK_PDU_MASK 0x40U |
Bit mask within PFB identifying an ACK/NACK PDU.
#define PHPAL_I18092MPI_SW_PFB_SUPERVISORY_PDU_MASK 0x80U |
Bit mask within PFB identifying a supervisory PDU.
#define PHPAL_I18092MPI_SW_PFB_PDU_TYPE_MASK 0xE0U |
Bit mask within PFB to get type of PDU.
#define PHPAL_I18092MPI_SW_PFB_NAD_MASK 0x08U |
Bit mask within PFB for checking NAD enabler.
#define PHPAL_I18092MPI_SW_PFB_DID_MASK 0x04U |
Bit mask within PFB for checking DID enabler.
#define PHPAL_I18092MPI_SW_PFB_PNI_MASK 0x03U |
Bit mask within PFB for getting PNI.
#define PHPAL_I18092MPI_SW_PFB_OPTION_MASK 0x10U |
Bit mask within PDU for getting option field (NACK/ACK or ATTENTION/RTOS or MI).
#define PHPAL_I18092MPI_SW_DELTA_T_INITIATOR_MS 100U |
Activation response waiting time in milliseconds, NFCForum-TS-DigitalProtocol-1.0 section A.10.
#define PHPAL_I18092MPI_SW_DELTA_RWT_US 2U |
Time extension in microseconds for all commands, NFCForum-TS-DigitalProtocol-1.0 section A.10.
#define PHPAL_I18092MPI_SW_RWT_ACTIVATION_MS 1239U |
Activation response waiting time in milliseconds, NFCForum-TS-DigitalProtocol-1.0 section A.10.
deltaRWT is included in this case.
#define PHPAL_I18092MPI_SW_RWT_MIN_US 302U |
Minimum response waiting time, ISO/IEC 18092:2004(E) section 12.5.1.2.1.
#define PHPAL_I18092MPI_SW_TIRFG_MIN_MS 5U |
Minimum initial RF guard time before retry of ATR_REQ.
#define PHPAL_I18092MPI_SW_MIN_FRAMESIZE 3U |
Minimum frame size, NFCForum-TS-DigitalProtocol-1.0.
#define PHPAL_I18092MPI_SW_MAX_FRAMESIZE 255U |
Maximum frame size, NFCForum-TS-DigitalProtocol-1.0.
#define PHPAL_I18092MPI_SW_RETRIES_DEFAULT 2U |
Default (=minimum) Maximum Retry count, NFCForum-TS-DigitalProtocol-1.0 section A.10.
#define PHPAL_I18092MPI_SW_MIN_ACTIVATION_FRAME_LENGTH 17U |
Frame length must be min.
17 bytes during activation. (NFCForum-TS-DigitalProtocol-1.0, section 14.6.1.1.
#define PHPAL_I18092MPI_SW_MAX_ACTIVATION_FRAME_LENGTH 64U |
Frame length is limited to 64 bytes during activation.
(NFCForum-TS-DigitalProtocol-1.0, section 14.6.1.1.
#define PHPAL_I18092MPI_SW_STATE_INFORMATION_PDU_TX 0x00U |
State information PDU to be transmitted.
#define PHPAL_I18092MPI_SW_STATE_ACK_PDU_TX 0x01U |
State ACK PDU to be transmitted.
#define PHPAL_I18092MPI_SW_STATE_INFORMATION_PDU_RX 0x02U |
State information PDU to be received.
#define PHPAL_I18092MPI_SW_STATE_FINISHED 0x03U |
Finished state.
#define PHPAL_I18092MPI_SW_STATE_MASK 0x0FU |
State mask.
#define PHPAL_I18092MPI_SW_STATE_RETRANSMIT_BIT 0x10U |
Retransmission of information PDU.
#define PHPAL_I18092MPI_SW_STATE_CHAINING_BIT 0x20U |
Information PDU is chaining.
#define PHPAL_I18092MPI_SW_STATE_CHAINING_FIRST_BIT 0x40U |
Information PDU is first block in chain.
#define PHPAL_I18092MPI_SW_STATE_CHAINING_LAST_BIT 0x80U |
Information PDU is last block in chain.
#define PHPAL_SLI15693_SW_NXP_MFG_CODE 0x04U |
IC Manufacturer Code of NXP.
#define PHPAL_SLI15693_SW_EXT_TIME_US 60 |
Time extension in microseconds for all commands.
#define PHPAL_SLI15693_SW_UID_COMPLETE 64U |
UID length in bits when complete.
#define PHPAL_SLI15693_SW_FLAGS_DEFAULT 0x06U |
Default flags (DATA_RATE and INVENTORY BIT is set).
phStatus_t phalI18000p3m3_Sw_ParseError | ( | phalI18000p3m3_Sw_DataParams_t * | pDataParams, |
uint8_t * | pRxData, | ||
uint16_t | wRxDataLength, | ||
uint8_t | bRxLastBits | ||
) |
Parse received error frame.
[in] | pDataParams | Pointer to this layer's parameter structure. |
[in] | pRxData | Received data. |
[in] | wRxDataLength | Length of received data in bytes. |
[in] | bRxLastBits | Valid bits of last byte of RxData. |
phStatus_t phalMfc_Int_Transfer | ( | void * | pPalMifareDataParams, |
uint8_t | bBlockNo | ||
) |
Perform MIFARE(R) Transfer command with MIFARE Picc.
PH_ERR_SUCCESS | Operation successful. |
[in] | pPalMifareDataParams | Pointer to a palMifare component context. |
[in] | bBlockNo | block number the transfer buffer shall be transferred to. |
phStatus_t phalMfc_Int_Value | ( | void * | pPalMifareDataParams, |
uint8_t | bCmdCode, | ||
uint8_t | bBlockNo, | ||
uint8_t * | pValue | ||
) |
Perform a MIFARE(R) Value operation with MIFARE Picc.
This is used by INCREMENT, DECREMENT and RESTORE commands.
PH_ERR_SUCCESS | Operation successful. |
[in] | pPalMifareDataParams | Pointer to a palMifare component context. |
[in] | bCmdCode | Command Code - INC/DEC or RST. |
[in] | bBlockNo | Block Number. |
[in] | pValue | Value; (Needs to be zero in case of RST command). |
Create a Value block for a given value/addr pair.
PH_ERR_SUCCESS | Operation successful. |
[in] | pValue | Value to be converted. |
[in] | bAddrData | bAddrData containing destination address. |
[out] | pBlock | Formatted Value block. |
phStatus_t phalMfc_Int_CheckValueBlockFormat | ( | uint8_t * | pBlock | ) |
Check value block format of a given block.
PH_ERR_SUCCESS | Operation successful. |
[in] | pBlock | Formatted Value block. |
phStatus_t phalMfc_Int_ResolveReturnCode | ( | uint8_t | bRetCode | ) |
Resolve MIFARE(R) error code from response.
PH_ERR_SUCCESS | ACK received. |
PHPAL_MIFARE_ERR_NAK0 | NAK0 received. |
PHPAL_MIFARE_ERR_NAK1 | NAK1 received. |
PHPAL_MIFARE_ERR_NAK4 | NAK4 received. |
PHPAL_MIFARE_ERR_NAK5 | NAK5 received. |
PH_ERR_PROTOCOL_ERROR | Unspecified response. |
[in] | bRetCode | Return Code byte from Card. |
phStatus_t phalMfc_SamAV2_X_ConvertNak | ( | phStatus_t | status | ) |
Convert HAL Nak codes into palMifare NAK codes.
PHPAL_MIFARE_ERR_NAK0 | NAK 0. |
PHPAL_MIFARE_ERR_NAK1 | NAK 1. |
PHPAL_MIFARE_ERR_NAK4 | NAK 4. |
PHPAL_MIFARE_ERR_NAK5 | NAK 5. |
Other | Depending on implementation and underlying component. |
[in] | status | HAL NAK Code. |
phStatus_t phalMfp_Int_ComputeErrorResponse | ( | uint16_t | wNumBytesReceived, |
uint8_t | bStatus, | ||
uint8_t | bLayer4Comm | ||
) |
Evaluate if the received response is erroneus.
PH_ERR_SUCCESS | Operation successful. |
[in] | wNumBytesReceived | Number of bytes received from the card. |
[in] | bStatus | Status byte received from the card. |
[in] | bLayer4Comm | 0 : use ISO14443-3 protocol; 1 : use ISO14443-4 protocol. |
phStatus_t phalMfp_Int_WritePerso | ( | void * | pPalMifareDataParams, |
uint8_t | bLayer4Comm, | ||
uint16_t | wBlockNr, | ||
uint8_t * | pValue | ||
) |
Perform a MIFARE Plus Write Perso command.
The Write Perso command can be executed using the ISO14443-3 communication protocol (after layer 3 activation) or using the ISO14443-4 protocol (after layer 4 activation).
PH_ERR_SUCCESS | Operation successful. |
Other | Depending on implementation and underlying component. |
[in] | pPalMifareDataParams | Pointer to a palMifare component context. |
[in] | bLayer4Comm | 0 : use ISO14443-3 protocol; 1 : use ISO14443-4 protocol. |
[in] | wBlockNr | MIFARE Block number. |
[in] | pValue | Value (16 bytes). |
phStatus_t phalMfp_Int_CommitPerso | ( | void * | pPalMifareDataParams, |
uint8_t | bLayer4Comm | ||
) |
Perform a MIFARE Plus Commit Perso command.
The Commit Perso command can be executed using the ISO14443-3 communication protocol (after layer 3 activation) or using the ISO14443-4 protocol (after layer 4 activation).
PH_ERR_SUCCESS | Operation successful. |
Other | Depending on implementation and underlying component. |
[in] | pPalMifareDataParams | Pointer to a palMifare component context. |
[in] | bLayer4Comm | 0 : use ISO14443-3 protocol; 1 : use ISO14443-4 protocol. |
phStatus_t phalMfp_Int_ResetAuth | ( | void * | pPalMifareDataParams | ) |
Perform a MIFARE Plus Reset Authenticate command.
The Reset Authenticate command is executed using the ISO14443-4 communication protocol (after layer 4 activation)
PH_ERR_SUCCESS | Operation successful. |
Other | Depending on implementation and underlying component. |
[in] | pPalMifareDataParams | Pointer to a palMifare component context. |
phStatus_t phalMfp_Int_PrepareProximityCheck | ( | void * | pPalMifareDataParams | ) |
Perform a Prepare Proximity Check command.
PH_ERR_SUCCESS | Operation successful. |
Other | Depending on implementation and underlying component. |
[in] | pPalMifareDataParams | Pointer to a palMifare component context. |
phStatus_t phalMfp_Int_ProximityCheck | ( | void * | pPalMifareDataParams, |
uint8_t | bNumSteps, | ||
uint8_t * | pRndC, | ||
uint8_t * | pRndRC | ||
) |
Perform a Proximity Check command.
PH_ERR_SUCCESS | Operation successful. |
Other | Depending on implementation and underlying component. |
[in] | pPalMifareDataParams | Pointer to a palMifare component context. |
[in] | bNumSteps | Number of steps for the PC (1..7). |
[in] | pRndC | RndC[7]. |
[out] | pRndRC | RndRC[14]. |
phStatus_t phalMfp_Int_MultiBlockRead | ( | void * | pPalMifareDataParams, |
uint8_t | bBlockNr, | ||
uint8_t | bNumBlocks, | ||
uint8_t * | pBlocks | ||
) |
Perform a Multi Block Read command.
PH_ERR_SUCCESS | Operation successful. |
Other | Depending on implementation and underlying component. |
[in] | pPalMifareDataParams | Pointer to a palMifare component context. |
[in] | bBlockNr | MIFARE Block number. |
[in] | bNumBlocks | Number of blocks to read (should not be more than 3). |
[out] | pBlocks | Block(s); uint8_t[16 * bNumBlocks ]. |
phStatus_t phalMfp_Int_MultiBlockWrite | ( | void * | pPalMifareDataParams, |
uint8_t | bBlockNr, | ||
uint8_t | bNumBlocks, | ||
uint8_t * | pBlocks | ||
) |
Perform a Multi Block Write command.
PH_ERR_SUCCESS | Operation successful. |
Other | Depending on implementation and underlying component. |
[in] | pPalMifareDataParams | Pointer to a palMifare component context. |
[in] | bBlockNr | MIFARE Block number. |
[in] | bNumBlocks | Number of blocks to write (should not be more than 3). |
[in] | pBlocks | Block(s); uint8_t[16 * bNumBlocks ]. |
Create a Value block for a given value/addr pair.
PH_ERR_SUCCESS | Operation successful. |
[in] | pValue | Value to be converted. |
[in] | bAddrData | bAddrData containing destination address. |
[out] | pBlock | Formatted Value block. |
phStatus_t phalMfp_Int_CheckValueBlockFormat | ( | uint8_t * | pBlock | ) |
Check value block format of a given block.
PH_ERR_SUCCESS | Operation successful. |
[in] | pBlock | Formatted Value block. |
phStatus_t phalMfp_SamAV2_AuthenticateGeneral | ( | phalMfp_SamAV2_DataParams_t * | pDataParams, |
uint8_t | bLayer4Comm, | ||
uint8_t | bFirstAuth, | ||
uint16_t | wBlockNr, | ||
uint16_t | wKeyNumber, | ||
uint16_t | wKeyVersion, | ||
uint8_t | bLenDivInput, | ||
uint8_t * | pDivInput, | ||
uint8_t | bUseKdfSl2, | ||
uint8_t | bLenPcdCap2, | ||
uint8_t * | pPcdCap2In, | ||
uint8_t * | pPcdCap2Out, | ||
uint8_t * | pPdCap2 | ||
) |
Perform a complete MIFARE Plus Authentication for either Security Level.
Refer to the respective Authentication function for description.
PH_ERR_SUCCESS | Operation successful. |
Other | Depending on implementation and underlying component. |
[in] | pDataParams | Pointer to this layer's parameter structure. |
[in] | bLayer4Comm | 0 : use ISO14443-3 protocol; 1 : use ISO14443-4 protocol; |
[in] | bFirstAuth | 0 : Following Authentication; 1 : First Authentication; |
[in] | wBlockNr | Key Block number. |
[in] | wKeyNumber | Key Storage number. |
[in] | wKeyVersion | Key Storage version. |
[in] | bLenDivInput | Length of diversification input used to diversify the key. If 0, no diversification is performed. |
[in] | pDivInput | Diversification Input used to diversify the key. |
[in] | bUseKdfSl2 | Indicates if a Key derivation for SL2 should be performed. |
[in] | bLenPcdCap2 | Lengh of the supplied PCDCaps. |
[in] | pPcdCap2In | Pointer to PCDCaps (bLenPcdCap2 bytes), ignored if bLenPcdCap2 == 0. |
[out] | pPcdCap2Out | Pointer to PCDCaps sent from the card (6 bytes). |
[out] | pPdCap2 | Pointer to PCDCaps sent from the card (6 bytes). |
phStatus_t phalMfp_SamAV2_WriteExt | ( | phalMfp_SamAV2_DataParams_t * | pDataParams, |
uint8_t | bCmdCode, | ||
uint16_t | wSrcBnr, | ||
uint16_t | wDstBnr, | ||
uint8_t * | pData, | ||
uint8_t | bDataLength | ||
) |
Perform a Write command in all it's flavours.
Refer to the respective Write function for description.
PH_ERR_SUCCESS | Operation successful. |
Other | Depending on implementation and underlying component. |
[in] | pDataParams | Pointer to this layer's parameter structure. |
[in] | bCmdCode | MIFARE Plus Command Code. |
[in] | wSrcBnr | Source Block number. |
[in] | wDstBnr | Destination Block number. |
[in] | pData | Payload data. |
[in] | bDataLength | Length of payload data. |
phStatus_t phalMfp_SamAV2_X_WriteExt | ( | phalMfp_SamAV2_X_DataParams_t * | pDataParams, |
uint8_t | bCmdCode, | ||
uint16_t | wSrcBnr, | ||
uint16_t | wDstBnr, | ||
uint8_t * | pData, | ||
uint8_t | bDataLength | ||
) |
Perform a Write command in all it's flavours.
Refer to the respective Write function for description.
PH_ERR_SUCCESS | Operation successful. |
Other | Depending on implementation and underlying component. |
[in] | pDataParams | Pointer to this layer's parameter structure. |
[in] | bCmdCode | MIFARE Plus Command Code. |
[in] | wSrcBnr | Source Block number. |
[in] | wDstBnr | Destination Block number. |
[in] | pData | Payload data. |
[in] | bDataLength | Length of payload data. |
phStatus_t phalMfp_SamAV2_X_ConvertNak | ( | phStatus_t | status | ) |
Convert HAL Nak codes into palMifare NAK codes.
PHPAL_MIFARE_ERR_NAK0 | NAK 0. |
PHPAL_MIFARE_ERR_NAK1 | NAK 1. |
PHPAL_MIFARE_ERR_NAK4 | NAK 4. |
PHPAL_MIFARE_ERR_NAK5 | NAK 5. |
Other | Depending on implementation and underlying component. |
[in] | status | HAL NAK Code. |
phStatus_t phalMfp_Sw_AuthenticateGeneral | ( | phalMfp_Sw_DataParams_t * | pDataParams, |
uint8_t | bLayer4Comm, | ||
uint8_t | bFirstAuth, | ||
uint16_t | wBlockNr, | ||
uint16_t | wKeyNumber, | ||
uint16_t | wKeyVersion, | ||
uint8_t | bLenDivInput, | ||
uint8_t * | pDivInput, | ||
uint8_t | bUseKdfSl2, | ||
uint8_t | bLenPcdCap2, | ||
uint8_t * | pPcdCap2In, | ||
uint8_t * | pPcdCap2Out, | ||
uint8_t * | pPdCap2 | ||
) |
Perform a complete MIFARE Plus Authentication for either Security Level.
Refer to the respective Authentication function for description.
PH_ERR_SUCCESS | Operation successful. |
Other | Depending on implementation and underlying component. |
[in] | pDataParams | Pointer to this layer's parameter structure. |
[in] | bLayer4Comm | 0 : use ISO14443-3 protocol; 1 : use ISO14443-4 protocol; |
[in] | bFirstAuth | 0 : Following Authentication; 1 : First Authentication; |
[in] | wBlockNr | Key Block number. |
[in] | wKeyNumber | Key Storage number. |
[in] | wKeyVersion | Key Storage version. |
[in] | bLenDivInput | Length of diversification input used to diversify the key. If 0, no diversification is performed. |
[in] | pDivInput | Diversification Input used to diversify the key. |
[in] | bUseKdfSl2 | Indicates if a Key derivation for SL2 should be performed. |
[in] | bLenPcdCap2 | Lengh of the supplied PCDCaps. |
[in] | pPcdCap2In | Pointer to PCDCaps (bLenPcdCap2 bytes), ignored if bLenPcdCap2 == 0. |
[in] | pPcdCap2Out | Pointer to PCDCaps sent from the card (6 bytes). |
[out] | pPdCap2 | Pointer to PDCaps sent from the card (6 bytes). |
phStatus_t phalMfp_Sw_WriteExt | ( | phalMfp_Sw_DataParams_t * | pDataParams, |
uint8_t | bCmdCode, | ||
uint16_t | wSrcBnr, | ||
uint16_t | wDstBnr, | ||
uint8_t * | pData, | ||
uint16_t | wDataLength, | ||
uint8_t | bEncrypted | ||
) |
Perform a Write command in all it's flavours.
Refer to the respective Write function for description.
PH_ERR_SUCCESS | Operation successful. |
Other | Depending on implementation and underlying component. |
[in] | pDataParams | Pointer to this layer's parameter structure. |
[in] | bCmdCode | MIFARE Plus Command Code. |
[in] | wSrcBnr | Source Block number. |
[in] | wDstBnr | Destination Block number. |
[in] | pData | Payload data. |
[in] | wDataLength | Length of payload data. |
[in] | bEncrypted | indicates whether the data should be encrypted or not. |
phStatus_t phalMfp_Sw_Int_ComputeIv | ( | uint8_t | bIsResponse, |
uint8_t * | pTi, | ||
uint16_t | wRCtr, | ||
uint16_t | wWCtr, | ||
uint8_t * | pIv | ||
) |
Calculate the Init-Vector for encryption from input data.
PH_ERR_SUCCESS | Operation successful. |
[in] | bIsResponse | Whether this is a response or command or not. |
[in] | pTi | Transaction Identifier; uint8_t[4]. |
[in] | wRCtr | R_CTR (read counter). |
[in] | wWCtr | W_CTR (write counter). |
[out] | pIv | Initvector; uint8_t[16]. |
phStatus_t phalMfp_Sw_Int_KdfSl2 | ( | phalMfp_Sw_DataParams_t * | pDataParams, |
uint8_t * | pRndA, | ||
uint8_t * | pRndB | ||
) |
Perform a SL2 Key Derivation Function.
This function derives the MIFARE Sector Key.
PH_ERR_SUCCESS | Operation successful. |
Other | Depending on implementation and underlying component. |
[in] | pDataParams | Pointer to this layer's parameter structure. |
[in] | pRndA | Pointer to RndA Buffer. |
[in] | pRndB | Pointer to RndB Buffer. |
phStatus_t phalMfp_Sw_Int_KdfSl3 | ( | phalMfp_Sw_DataParams_t * | pDataParams, |
uint8_t * | pRndA, | ||
uint8_t * | pRndB | ||
) |
Perform a SL3 Key Derivation Function.
This function derives the MIFARE Sector Key.
PH_ERR_SUCCESS | Operation successful. |
Other | Depending on implementation and underlying component. |
[in] | pDataParams | Pointer to this layer's parameter structure. |
[in] | pRndA | Pointer to RndA Buffer. |
[in] | pRndB | Pointer to RndB Buffer. |
Perform MIFARE Plus specific MAC truncation.
[in] | pMac | MAC; uint8_t[16]. |
[out] | pTruncatedMac | Truncated MAC; uint8_t[8]. |
Change host bit rate.
Changes host bit rate, stop bits and applies default settings (parity and the like).
PH_ERR_SUCCESS | Operation successful. |
Other | Depending on implementation and underlaying component. |
[in] | phPort | handle to an open communication port |
[in] | dwBitRate | bit rate value in windows-style (like '115200', in decimal) |
[in] | bStopBits | number of stop bits |
phStatus_t phbalReg_SerialWin_SetTimeout | ( | void * | phPort, |
uint32_t | dwTimeout | ||
) |
Change reception timeout.
Applies new serial reception timeout
PH_ERR_SUCCESS | Operation successful. |
Other | Depending on implementation and underlaying component. |
[in] | phPort | handle to an open communication port |
[in] | dwTimeout | timeout value in windows-style (like '500', in milliseconds) |
phStatus_t phKeyStore_Sw_GetKeyValuePtrPos | ( | phKeyStore_Sw_DataParams_t * | pDataParams, |
uint16_t | wKeyNumber, | ||
uint16_t | wPos, | ||
phKeyStore_Sw_KeyVersionPair_t ** | pKeyVersion | ||
) |
Get the pointer to a KeyValue Pair given a Key number and a Key position.
PH_ERR_SUCCESS | Operation successful. |
Other | Depending on implementation and underlaying component. |
[in] | pDataParams | Pointer to this layer's parameter structure. |
[in] | wKeyNumber | desired key number. |
[in] | wPos | desired key position. |
[out] | pKeyVersion | Pointer to the KeyVerison Pair. |
phStatus_t phKeyStore_Sw_GetKeyValuePtrVersion | ( | phKeyStore_Sw_DataParams_t * | pDataParams, |
uint16_t | wKeyNumber, | ||
uint16_t | wKeyVersion, | ||
phKeyStore_Sw_KeyVersionPair_t ** | pKeyVersion | ||
) |
Get the pointer to a KeyValue Pair given a Key number and a KeyVersion.
PH_ERR_SUCCESS | Operation successful. |
Other | Depending on implementation and underlaying component. |
[in] | pDataParams | Pointer to this layer's parameter structure. |
[in] | wKeyNumber | desired key number. |
[in] | wKeyVersion | desired key version. |
[out] | pKeyVersion | Pointer to the KeyVerison Pair. |
phStatus_t phKeyStore_Sw_CheckUpdateKUC | ( | phKeyStore_Sw_DataParams_t * | pDataParams, |
uint16_t | wKeyUsageCtrNumber | ||
) |
Check value of a counter and increment it accordingly.
PH_ERR_SUCCESS | Operation successful. |
Other | Depending on implementation and underlaying component. |
[in] | pDataParams | Pointer to this layer's parameter structure. |
[in] | wKeyUsageCtrNumber | KUC Number. |
phLog_RegisterEntry_t* phLog_GetRegisteredEntry | ( | void * | pDataParams | ) |
Retreive phLog_RegisterEntry_t corresponding to given DataParams pointer.
[in] | pDataParams | The DataParams of the calling function. |
void phLog_AddParam_Raw | ( | void * | pDataParams, |
uint8_t | bLogType, | ||
const char * | pName, | ||
const void * | pParam, | ||
uint16_t | wLength, | ||
uint8_t | bDataType | ||
) |
Add a new log entry containing raw data.
[in] | pDataParams | The DataParams of the calling function. |
[in] | bLogType | Type of Entry (one of the PH_LOG_LOGTYPE_* values). |
[in] | pName | The Null-terminated name of the parameter. |
[in] | pParam | Pointer to the memory where the parameter resides. |
[in] | wLength | The length in bytes to the supplied buffer. |
[in] | bDataType | Indicates the value type (either #PH_LOG_DATATYPE_BUFFER or #PH_LOG_DATATYPE_VALUE). |
phStatus_t phpalI14443p3a_Sw_RequestAEx | ( | phpalI14443p3a_Sw_DataParams_t * | pDataParams, |
uint8_t | bReqCode, | ||
uint8_t * | pAtqa | ||
) |
Perform a ISO14443-3A Request or Wakeup command.
Request Codes:
REQUEST: bReqCode = 0x52
WAKEUP: bReqCode = 0x26
PH_ERR_SUCCESS | Operation successful. |
PH_ERR_PROTOCOL_ERROR | Invalid response received. |
Other | Depending on implementation and underlaying component. |
[in] | pDataParams | Pointer to this layer's parameter structure. |
[in] | bReqCode | request code according to ISO14443-3A. |
[out] | pAtqa | AtqA; uint8_t[2]. |
phStatus_t phpalI14443p3b_Sw_RequestBEx | ( | phpalI14443p3b_Sw_DataParams_t * | pDataParams, |
uint8_t | bIsWakeUp, | ||
uint8_t | bNumSlots, | ||
uint8_t | bAfi, | ||
uint8_t | bExtAtqb, | ||
uint8_t * | pAtqb, | ||
uint8_t * | pAtqbLen | ||
) |
Perform a ISO14443-3B Request/Wakeup command.
PH_ERR_SUCCESS | Operation successful. |
PH_ERR_PROTOCOL_ERROR | Invalid response received. |
Other | Depending on implementation and underlaying component. |
[in] | pDataParams | Pointer to this layers parameter structure. |
[in] | bIsWakeUp | Performs ReqB if bIsWakeUp=0 and WupB if bIsWakeUp=1 . |
[in] | bNumSlots | Number of slots. |
[in] | bAfi | AFI; Application Family Indentifier. |
[in] | bExtAtqb | Enable Extended AtqB. |
[out] | pAtqb | AtqB; uint8_t[13]. |
[out] | pAtqbLen | Length of received ATQB (12/13 bytes) |
phStatus_t phpalI14443p3b_Sw_CheckATQBEx | ( | phpalI14443p3b_Sw_DataParams_t * | pDataParams, |
uint8_t * | pResp, | ||
uint16_t | wRespLength, | ||
uint8_t * | pAtqb, | ||
uint8_t * | pAtqbLen | ||
) |
Check the received answer to Request/Wakeup/SlotMarker command.
PH_ERR_SUCCESS | Operation successful. |
PH_ERR_PROTOCOL_ERROR | Invalid response received. |
Other | Depending on implementation and underlaying component. |
phStatus_t phpalI14443p3b_Sw_SetReaderBaudRateEx | ( | phpalI14443p3b_Sw_DataParams_t * | pDataParams | ) |
Set the baud rate on the reader device.
PH_ERR_SUCCESS | Operation successful. |
PH_ERR_PROTOCOL_ERROR | Invalid response received. |
Other | Depending on implementation and underlaying component. |
phStatus_t phpalI14443p3b_Sw_DecideBaudRateEx | ( | uint8_t | bBitRateCapability, |
uint8_t * | pbDri, | ||
uint8_t * | pbDsi | ||
) |
Decide which baud rate to use depending on the VICCs capabilities and the callers request.
PH_ERR_SUCCESS | Operation successful. |
PH_ERR_PROTOCOL_ERROR | Invalid response received. |
Other | Depending on implementation and underlaying component. |
phStatus_t phpalI14443p4_Sw_BuildIBlock | ( | uint8_t | bCidEnabled, |
uint8_t | bCid, | ||
uint8_t | bNadEnabled, | ||
uint8_t | bNad, | ||
uint8_t | bPcbBlockNum, | ||
uint8_t | bChaining, | ||
uint8_t * | pTxBuffer, | ||
uint16_t * | pTxLength | ||
) |
Build I-Block frame header.
PH_ERR_SUCCESS | Operation successful. |
Other | Depending on implementation and underlaying component. |
[in] | bCidEnabled | Set to != 0 to enable CID byte |
[in] | bCid | CID byte |
[in] | bNadEnabled | Set to != 0 to enable NAD byte |
[in] | bNad | NAD byte |
[in] | bPcbBlockNum | PCB block number bit |
[in] | bChaining | Set to != 0 if chaining bit should be set |
[out] | pTxBuffer | transmit buffer |
[out] | pTxLength | number of bytes to send |
phStatus_t phpalI14443p4_Sw_BuildRBlock | ( | uint8_t | bCidEnabled, |
uint8_t | bCid, | ||
uint8_t | bPcbBlockNum, | ||
uint8_t | bIsAck, | ||
uint8_t * | pTxBuffer, | ||
uint16_t * | pTxLength | ||
) |
Build R(ACK) / R(NAK) frames.
PH_ERR_SUCCESS | Operation successful. |
Other | Depending on implementation and underlaying component. |
[in] | bCidEnabled | Set to != 0 to enable CID byte |
[in] | bCid | CID byte |
[in] | bPcbBlockNum | PCB block number bit |
[in] | bIsAck | Set to != 0 if an ACK should be generated |
[out] | pTxBuffer | transmit buffer |
[out] | pTxLength | number of bytes to send |
phStatus_t phpalI14443p4_Sw_BuildSBlock | ( | uint8_t | bCidEnabled, |
uint8_t | bCid, | ||
uint8_t | bIsWtx, | ||
uint8_t | bWtxm, | ||
uint8_t * | pTxBuffer, | ||
uint16_t * | pTxLength | ||
) |
Build S-Block frames.
PH_ERR_SUCCESS | Operation successful. |
Other | Depending on implementation and underlaying component. |
[in] | bCidEnabled | Set to != 0 to enable CID byte |
[in] | bCid | CID byte |
[in] | bIsWtx | Set to != 0 if a WTX frame should be generated |
[in] | bWtxm | WTXM bits, used if /ref bIsWtx is set |
[out] | pTxBuffer | transmit buffer |
[out] | pTxLength | number of bytes to send |
phStatus_t phpalI14443p4_Sw_IsValidIBlock | ( | uint8_t | bCheckCid, |
uint8_t | bCid, | ||
uint8_t | bCheckNad, | ||
uint8_t | bNad, | ||
uint8_t * | pRxBuffer, | ||
uint16_t | wRxLength | ||
) |
Check if received I-Block is valid.
PH_ERR_SUCCESS | Operation successful. |
PH_ERR_PROTOCOL_ERROR | Block invalid. |
[in] | bCheckCid | Set to != 0 to enable CID check |
[in] | bCid | Current CID for comparison |
[in] | bCheckNad | Set to != 0 to enable NAD check |
[in] | bNad | Current NAD for comparison |
[in] | pRxBuffer | Received data |
[in] | wRxLength | Number of received data bytes |
phStatus_t phpalI14443p4_Sw_IsValidRBlock | ( | uint8_t | bCheckCid, |
uint8_t | bCid, | ||
uint8_t * | pRxBuffer, | ||
uint16_t | wRxLength | ||
) |
Check if received R-Block is valid.
PH_ERR_SUCCESS | Operation successful. |
PH_ERR_PROTOCOL_ERROR | Block invalid. |
[in] | bCheckCid | Set to != 0 to enable CID check |
[in] | bCid | Current CID for comparison |
[in] | pRxBuffer | Received data |
[in] | wRxLength | Number of received data bytes |
phStatus_t phpalI14443p4_Sw_IsValidSBlock | ( | uint8_t | bCheckCid, |
uint8_t | bCid, | ||
uint8_t * | pRxBuffer, | ||
uint16_t | wRxLength | ||
) |
Check if received S-Block is valid.
PH_ERR_SUCCESS | Operation successful. |
PH_ERR_PROTOCOL_ERROR | Block invalid. |
[in] | bCheckCid | Set to != 0 to enable CID check |
[in] | bCid | Current CID for comparison |
[in] | pRxBuffer | Received data |
[in] | wRxLength | Number of received data bytes |
phStatus_t phpalI14443p4_Sw_IsoHandling | ( | phpalI14443p4_Sw_DataParams_t * | pDataParams, |
uint16_t | wOption, | ||
uint8_t | bRetryCount, | ||
uint8_t * | pTxBuffer, | ||
uint16_t | wTxLength, | ||
uint8_t ** | ppRxBuffer, | ||
uint16_t * | pRxLength | ||
) |
Perform actual exchanging and take care about error handling etc.
Checks response and performs state transition and complete error & WTX handling if neecessary.
PH_ERR_SUCCESS | Operation successful. |
Other | Depending on implementation and underlaying component. |
[in] | pDataParams | Pointer to this layer's parameter structure. |
[in] | wOption | option parameter. |
[in] | bRetryCount | number of already performed retries. |
[in] | pTxBuffer | data to transmit |
[in] | wTxLength | length of input data |
[out] | ppRxBuffer | Pointer to received data |
[in] | pRxLength | Received data bytes |
phStatus_t phpalI18092mPI_Sw_WriteFrameHeader | ( | phpalI18092mPI_Sw_DataParams_t * | pDataParams, |
uint16_t | wOption, | ||
uint8_t | bCommandCode, | ||
uint8_t | bDataLength | ||
) |
Write header of transport protocol frame to internal buffer of HAL.
Internal buffer is cleared first and protocol frame header is written without setting length field since frame size is not known at this point.
PH_ERR_SUCCESS | Operation successful. |
Other | Depending on implementation and underlying component. |
[in] | pDataParams | Pointer to this layer's parameter structure. |
[in] | wOption | Option parameter. |
[in] | bCommandCode | Code of the request command to send. |
[in] | bDataLength | Length of data field. |
phStatus_t phpalI18092mPI_Sw_WritePduHeader | ( | phpalI18092mPI_Sw_DataParams_t * | pDataParams, |
uint8_t | bPduMask, | ||
uint8_t | bOption, | ||
uint8_t | bDataLength | ||
) |
Write PDU header to internal buffer of HAL.
The following values for bPduMask
are possible:
PH_ERR_SUCCESS | Operation successful. |
phStatus_t phpalI18092mPI_Sw_UpdatePduHeader | ( | phpalI18092mPI_Sw_DataParams_t * | pDataParams, |
uint8_t | bDataLength | ||
) |
Update the length field within protocol frame header.
PH_ERR_SUCCESS | Operation successful. |
[in] | pDataParams | Pointer to this layer's parameter structure. |
[in] | bDataLength | Length of data field. |
phStatus_t phpalI18092mPI_Sw_GetPduHeaderLength | ( | phpalI18092mPI_Sw_DataParams_t * | pDataParams, |
uint8_t * | pProtLength | ||
) |
Retrieve the length of protocol frame header.
PH_ERR_SUCCESS | Operation successful. |
[in] | pDataParams | Pointer to this layer's parameter structure. |
[out] | pProtLength | Complete protocol length starting at the command byte. |
phStatus_t phpalI18092mPI_Sw_ValidateAndNormalizeResponseFrame | ( | phpalI18092mPI_Sw_DataParams_t * | pDataParams, |
uint8_t * | pFrame, | ||
uint16_t | wFrameLength, | ||
uint8_t | bExpectedResponseCode, | ||
uint8_t ** | ppValidatedFrame, | ||
uint16_t * | pValidatedFrameLength, | ||
uint8_t ** | ppPayload, | ||
uint16_t * | pPayloadLength | ||
) |
Basic check if the received response is a valid frame.
Frame is also normalized, i.e. start byte in case of 106kbps data rate is removed.
PH_ERR_SUCCESS | Operation successful, frame seems to be a valid response frame. |
PH_ERR_PROTOCOL_ERROR | Not a valid response frame. |
[in] | pDataParams | Pointer to this layer's parameter structure. |
[in] | pFrame | Pointer to the received data buffer. |
[in] | wFrameLength | Length of the received frame. |
[in] | bExpectedResponseCode | The expected response command code the frame should contain. |
[out] | ppValidatedFrame | Pointer to validated and normalized frame. |
[out] | pValidatedFrameLength | Length of validated and normalized frame. |
[out] | ppPayload | Pointer to begin of data payload (header skipped). |
[out] | pPayloadLength | Length of data payload. |
Convert data rate read out from HAL to ISO18092 compatible data rate value (PHPAL_I18092MPI_DATARATE_*).
PH_ERR_SUCCESS | Operation successful. |
PH_ERR_INTERNAL_ERROR | Data rate can't be converted. |
[in] | wHalDatarate | Datarate read out from HAL. |
[out] | pI18092Datarate | Pointer to a converted datarate; uint8_t[1] |
phStatus_t phpalI18092mPI_Sw_TransceivePdu | ( | phpalI18092mPI_Sw_DataParams_t * | pDataParams, |
uint16_t | wOption, | ||
uint8_t * | pTxBuffer, | ||
uint16_t | wTxLength, | ||
uint8_t ** | ppRawResponse, | ||
uint16_t * | pRawResponseLength, | ||
uint8_t ** | ppNormalizedResponse, | ||
uint16_t * | pNormalizedResponseLength, | ||
uint8_t ** | ppPayload, | ||
uint16_t * | pPayloadLength | ||
) |
Transmit PDU to target and receive response.
PH_ERR_SUCCESS | Operation successful. |
Other | Depending on implementation and underlying component. |
[in] | pDataParams | Pointer to this layer's parameter structure. |
[in] | wOption | Option parameter. |
[in] | pTxBuffer | Data to transmit. |
[in] | wTxLength | Length of data to transmit. |
[out] | ppRawResponse | Pointer to raw DEP frame. |
[out] | pRawResponseLength | Length of raw DEP frame. |
[out] | ppNormalizedResponse | Pointer to validated and normalized frame. |
[out] | pNormalizedResponseLength | Length of validated and normalized frame. |
[out] | ppPayload | Pointer to begin of data payload (header skipped). |
[out] | pPayloadLength | Length of data payload. |
phStatus_t phpalI18092mPI_Sw_ValidateReceivedPdu | ( | phpalI18092mPI_Sw_DataParams_t * | pDataParams, |
phStatus_t | statusRx, | ||
uint8_t ** | pRawResponse, | ||
uint16_t * | wRawResponseLength, | ||
uint8_t ** | ppNormalizedResponse, | ||
uint16_t * | pNormalizedResponseLength, | ||
uint8_t ** | ppPayload, | ||
uint16_t * | pPayloadLength | ||
) |
Validate the status.
If status is success then validate the received PDU from target.
PH_ERR_SUCCESS | Operation successful. |
Other | Depending on implementation and underlying component. |
[in] | pDataParams | Pointer to this layer's parameter structure. |
[in] | statusRx | Status returned by HAL Receive. |
[out] | pRawResponse | Pointer to raw DEP frame. |
[out] | wRawResponseLength | Length of raw DEP frame. |
[out] | ppNormalizedResponse | Pointer to validated and normalized frame. |
[out] | pNormalizedResponseLength | Length of validated and normalized frame. |
[out] | ppPayload | Pointer to begin of data payload (header skipped). |
[out] | pPayloadLength | Length of data payload. |
phStatus_t phpalMifare_SamAV2_X_ConvertNak | ( | phStatus_t | status | ) |
Convert HAL Nak codes into palMifare NAK codes.
PHPAL_MIFARE_ERR_NAK0 | NAK 0. |
PHPAL_MIFARE_ERR_NAK1 | NAK 1. |
PHPAL_MIFARE_ERR_NAK4 | NAK 4. |
PHPAL_MIFARE_ERR_NAK5 | NAK 5. |
Other | Depending on implementation and underlying component. |
[in] | status | HAL NAK Code. |
phStatus_t phpalSli15693_Sw_InventoryEx | ( | phpalSli15693_Sw_DataParams_t * | pDataParams, |
uint8_t | bOption, | ||
uint8_t | bFlags, | ||
uint8_t | bAfi, | ||
uint8_t * | pMask, | ||
uint8_t | bMaskBitLength, | ||
uint8_t | bBlockNo, | ||
uint16_t | wNoOfBlocks, | ||
uint8_t * | pUid, | ||
uint8_t * | pUidLength, | ||
uint8_t * | pData, | ||
uint16_t * | pLength | ||
) |
Perform all kinds of Inventory commands.
PH_ERR_SUCCESS | Operation successful. |
PH_ERR_PROTOCOL_ERROR | Invalid response received. |
Other | Depending on implementation and underlaying component. |
[in] | pDataParams | Pointer to this layers parameter structure. |
[in] | bOption | defines which way of (Fast)Inventory(Page)Read is done.bOption bits are defined as follows:
|
[in] | bFlags | Request flags byte. |
[in] | bAfi | Application Family Identifier. |
[in] | pMask | UID mask, holding known UID bits. |
[in] | bMaskBitLength | Number of UID bits within pMask. |
[in] | bBlockNo | Block number of first block to read. |
[in] | wNoOfBlocks | Number of blocks to read |
[out] | pUid | Received Uid |
[out] | pUidLength | Number of received UID bytes. |
[out] | pData | Received data. |
[out] | pLength | Number of received data bytes. |
phStatus_t phpalSli15693_Sw_InventoryExt | ( | phpalSli15693_Sw_DataParams_t * | pDataParams, |
uint8_t | bOption, | ||
uint8_t | bFlags, | ||
uint8_t | bAfi, | ||
uint8_t | bExtended, | ||
uint8_t | bExtendedOptions, | ||
uint8_t * | pMask, | ||
uint8_t | bMaskBitLength, | ||
uint8_t | bBlockNo, | ||
uint16_t | wNoOfBlocks, | ||
uint8_t * | pUid, | ||
uint8_t * | pUidLength, | ||
uint8_t * | pData, | ||
uint16_t * | pLength | ||
) |
Perform Inventory Read Extended mode.
PH_ERR_SUCCESS | Operation successful. |
PH_ERR_PROTOCOL_ERROR | Invalid response received. |
Other | Depending on implementation and underlaying component. |
[in] | pDataParams | Pointer to this layers parameter structure. |
[in] | bOption | defines which way of (Fast)Inventory(Page)Read is done.bOption bits are defined as follows:
|
[in] | bFlags | Request flags byte. |
[in] | bAfi | Application Family Identifier. |
[in] | bExtended | Extended mode |
[in] | bExtendedOptions | Features of the extended mode |
[in] | pMask | UID mask, holding known UID bits. |
[in] | bMaskBitLength | Number of UID bits within pMask. |
[in] | bBlockNo | Block number of first block to read. |
[in] | wNoOfBlocks | Number of blocks to read |
[out] | pUid | Received Uid |
[out] | pUidLength | Number of received UID bytes. |
[out] | pData | Received data. |
[out] | pLength | Number of received data bytes. |