These Functions implement the MIFARE DESFire Light commands. More...

Modules | |
| Component : Software | |
| Error Codes | |
| Lists the PICC response codes and equivalent library codes that correponds to PICC Return code. | |
| Commands_SecureMessaging | |
| These Components implement the MIFARE DESFire Light Secure Messaging related commands. | |
| Commands_MemoryConfiguration | |
| These Components implement the MIFARE DESFire Light Memory and Configuration Management related commands. | |
| Commands_KeyManagement | |
| These Components implement the MIFARE DESFire Light Key Management related commands. | |
| Commands_FileManagement | |
| These Components implement the MIFARE DESFire Light File Management related commands. | |
| Commands_DataManagement | |
| These Components implement the MIFARE DESFire Light Data Management related commands. | |
| Commands_TransactionManagement | |
| These Components implement the MIFARE DESFire Light Transaction Management related commands. | |
| Commands_ISO7816 | |
| These Components implement the MIFARE DESFire Light ISO/IEC 7816-4 Basic commands. | |
| Commands_OriginalityCheck | |
| These Components implement the MIFARE DESFire Light Originality Check functions. | |
| Commands_Miscellaneous | |
| These Components implement the MIFARE DESFire Light Miscellaneous functions. These are not part of actual DESFire Light data sheet rather its for internal purpose. | |
Other Options for various Functions | |
| #define | PHAL_MFDFLIGHT_ORIGINALITY_KEY_FIRST 0x01U |
| Originality key for AES. | |
| #define | PHAL_MFDFLIGHT_ORIGINALITY_KEY_LAST 0x04U |
| Originality key for AES | |
| #define | PHAL_MFDFLIGHT_APP_KEY_LAST 0x04U |
| Numebr of application keys. | |
| #define | PHAL_MFDFLIGHT_MAC_DATA_INCOMPLETE 0x01U |
| Option for indicating more data to come in next call for MAC calculation. | |
| #define | PHAL_MFDFLIGHT_COMMUNICATION_MAC_ON_RC 0x02U |
| MAC is appended over response | |
| #define | PHAL_MFDFLIGHT_AUTHENTICATE_RESET 0x08U |
| authentication state shall be reset | |
The communication mode to be used. | |
| #define | PHAL_MFDFLIGHT_COMMUNICATION_PLAIN 0x00U |
| Plain mode of communication. | |
| #define | PHAL_MFDFLIGHT_COMMUNICATION_PLAIN_1 0x20U |
| Plain mode of communication. | |
| #define | PHAL_MFDFLIGHT_COMMUNICATION_MACD 0x10U |
| MAC mode of communication. | |
| #define | PHAL_MFDFLIGHT_COMMUNICATION_ENC 0x30U |
| Enciphered mode of communication. | |
Key Types | |
| #define | PHAL_MFDFLIGHT_KEY_TYPE_2K3DES 0x00U |
| 2 Key Triple Des | |
| #define | PHAL_MFDFLIGHT_KEY_TYPE_3K3DES 0x01U |
| 3 Key Triple Des | |
| #define | PHAL_MFDFLIGHT_KEY_TYPE_AES128 0x02U |
| AES 128 Key. | |
MIFARE DESFire Light Native Commands | |
| #define | PHAL_MFDFLIGHT_CMD_AUTHENTICATE_EV2_FIRST 0x71 |
| MFDFLIGHT Authenticate Ev2 First command. | |
| #define | PHAL_MFDFLIGHT_CMD_AUTHENTICATE_EV2_NON_FIRST 0x77 |
| MFDFLIGHT Authenticate Ev2 Non First command. | |
| #define | PHAL_MFDFLIGHT_CMD_CHANGE_KEY 0xC4 |
| MFDFLIGHT Change key cmd. | |
| #define | PHAL_MFDFLIGHT_CMD_GET_KEY_VERSION 0x64 |
| MFDFLIGHT Get Key Version. | |
| #define | PHAL_MFDFLIGHT_CMD_GET_VERSION 0x60 |
| MFDFLIGHT Get Version cmd. | |
| #define | PHAL_MFDFLIGHT_CMD_SET_CONFIG 0x5C |
| MFDFLIGHT Set Configuration Cmd. | |
| #define | PHAL_MFDFLIGHT_CMD_GET_CARD_UID 0x51 |
| MFDFLIGHT Get Card UID cmd. | |
| #define | PHAL_MFDFLIGHT_CMD_DELETE_APPLN 0xDA |
| MFDFLIGHT Delete Application cmd. | |
| #define | PHAL_MFDFLIGHT_CMD_GET_FILE_IDS 0x6F |
| MFDFLIGHT Get File IDs cmd. | |
| #define | PHAL_MFDFLIGHT_CMD_GET_ISO_FILE_IDS 0x61 |
| MFDFLIGHT Get ISO File IDs cmd. | |
| #define | PHAL_MFDFLIGHT_CMD_GET_FILE_SETTINGS 0xF5 |
| MFDFLIGHT Get File settings cmd. | |
| #define | PHAL_MFDFLIGHT_CMD_CHANGE_FILE_SETTINGS 0x5F |
| MFDFLIGHT Change file settings cmd. | |
| #define | PHAL_MFDFLIGHT_CMD_CREATE_TRANSACTION_MACFILE 0xCE |
| MFDFLIGHT Create Transaction MAC file cmd. | |
| #define | PHAL_MFDFLIGHT_CMD_DELETE_FILE 0xDF |
| MFDFLIGHT Delete File cmd. | |
| #define | PHAL_MFDFLIGHT_CMD_READ_DATA 0xBD |
| MFDFLIGHT Read Data cmd. | |
| #define | PHAL_MFDFLIGHT_CMD_READ_DATA_ISO 0xAD |
| MFDFLIGHT Read Data cmd using ISO chaining. | |
| #define | PHAL_MFDFLIGHT_CMD_WRITE_DATA 0x3D |
| MFDFLIGHT Write data cmd. | |
| #define | PHAL_MFDFLIGHT_CMD_WRITE_DATA_ISO 0x8D |
| MFDFLIGHT Write data cmd using ISO chaining. | |
| #define | PHAL_MFDFLIGHT_CMD_GET_VALUE 0x6C |
| MFDFLIGHT Get Value cmd. | |
| #define | PHAL_MFDFLIGHT_CMD_CREDIT 0x0C |
| MFDFLIGHT Credit cmd. | |
| #define | PHAL_MFDFLIGHT_CMD_DEBIT 0xDC |
| MFDFLIGHT Debit cmd. | |
| #define | PHAL_MFDFLIGHT_CMD_LIMITED_CREDIT 0x1C |
| MFDFLIGHT Limited Credit cmd. | |
| #define | PHAL_MFDFLIGHT_CMD_WRITE_RECORD 0x3B |
| MFDFLIGHT Write Record cmd. | |
| #define | PHAL_MFDFLIGHT_CMD_WRITE_RECORD_ISO 0x8B |
| MFDFLIGHT Write Record cmd using ISO chaining. | |
| #define | PHAL_MFDFLIGHT_CMD_UPDATE_RECORD 0xDB |
| MFDFLIGHT Update Record cmd. | |
| #define | PHAL_MFDFLIGHT_CMD_UPDATE_RECORD_ISO 0xBA |
| MFDFLIGHT Update Record cmd using ISO chaining. | |
| #define | PHAL_MFDFLIGHT_CMD_READ_RECORDS 0xBB |
| MFDFLIGHT Read Records cmd. | |
| #define | PHAL_MFDFLIGHT_CMD_READ_RECORDS_ISO 0xAB |
| MFDFLIGHT Read Records cmd using ISO chaining. | |
| #define | PHAL_MFDFLIGHT_CMD_CLEAR_RECORD_FILE 0xEB |
| MFDFLIGHT Clear records file cmd. | |
| #define | PHAL_MFDFLIGHT_CMD_COMMIT_TXN 0xC7 |
| MFDFLIGHT Commit transaction cmd. | |
| #define | PHAL_MFDFLIGHT_CMD_ABORT_TXN 0xA7 |
| MFDFLIGHT Abort transaction cmd. | |
| #define | PHAL_MFDFLIGHT_CMD_COMMIT_READER_ID 0xC8 |
| MFDFLIGHT Commit Reader ID cmd. | |
| #define | PHAL_MFDFLIGHT_CMD_READ_SIG 0x3C |
| MFDFLIGHT Verify read signature command. | |
| #define | PHAL_MFDFLIGHT_CMD_CLEAR_RECORDS_FILE 0xEB |
| MFDFLIGHT Clear records file cmd. | |
MIFARE DESFire Light ISO7816 Commands | |
| #define | PHAL_MFDFLIGHT_CMD_ISO7816_SELECT_FILE 0xA4 |
| ISO Select File. | |
| #define | PHAL_MFDFLIGHT_CMD_ISO7816_READ_BINARY 0xB0 |
| ISO Read Binary. | |
| #define | PHAL_MFDFLIGHT_CMD_ISO7816_UPDATE_BINARY 0xD6 |
| ISO UPDATE Binary. | |
| #define | PHAL_MFDFLIGHT_CMD_ISO7816_APPEND_RECORD 0xE2 |
| ISO Append record. | |
| #define | PHAL_MFDFLIGHT_CMD_ISO7816_UPDATE_RECORD 0xD2 |
| ISO Update record. | |
These Functions implement the MIFARE DESFire Light commands.