|
| constexpr bool | m5::nfc::a::mifare::classic::can_value_block_permission (const uint8_t permission) |
| | Can this permission be used as a value block?
|
| |
| constexpr bool | m5::nfc::a::mifare::classic::is_sector_trailer_block (const uint16_t block) |
| | Is this block a sector trailer?
|
| |
| constexpr uint16_t | m5::nfc::a::mifare::classic::get_sector_trailer_block (const uint16_t block) |
| | Obtains the block address of the sector to which it belongs from the block address.
|
| |
| constexpr uint16_t | m5::nfc::a::mifare::classic::get_sector (const uint16_t block) |
| | Obtains the sector to which the block belongs from the block address.
|
| |
| constexpr uint8_t | m5::nfc::a::mifare::classic::get_permission_offset (const uint16_t block) |
| | Get the offset in the permissions of this block.
|
| |
| constexpr uint16_t | m5::nfc::a::mifare::classic::get_sector_trailer_block_from_sector (const uint16_t sector) |
| | Obtains the block address of the sector trailer from sector.
|
| |
| bool | m5::nfc::a::mifare::classic::decode_value_block (int32_t &value, uint8_t &addr, const uint8_t buf[16]) |
| | Decode the value of value block.
|
| |
| const uint8_t * | m5::nfc::a::mifare::classic::encode_value_block (uint8_t buf[16], const int32_t value, const uint8_t addr) |
| | Encode the value of value block.
|
| |
| bool | m5::nfc::a::mifare::classic::encode_access_bits (uint8_t abits[3], const uint8_t p0, const uint8_t p1, const uint8_t p2, const uint8_t p3) |
| | Encode access bits from permissions.
|
| |
| bool | m5::nfc::a::mifare::classic::encode_access_bits (uint8_t abits[3], const uint8_t permissions[4]) |
| | Encode access bits from permissions.
|
| |
| bool | m5::nfc::a::mifare::classic::decode_access_bits (uint8_t permissions[4], const uint8_t ab0, const uint8_t ab1, const uint8_t ab2) |
| | Decode access bits to permissions.
|
| |
| bool | m5::nfc::a::mifare::classic::decode_access_bits (uint8_t permissions[4], const uint8_t abits[3]) |
| | Decode access bits to permissions.
|
| |
|
|
constexpr uint16_t | m5::nfc::a::mifare::classic::MIFARE_CLASSIC_MAX_TX_LEN {32} |
| |
|
constexpr uint16_t | m5::nfc::a::mifare::classic::MIFARE_CLASSIC_MAX_RX_LEN {32} |
| |
|
constexpr uint16_t | m5::nfc::a::mifare::classic::MIFARE_CLASSIC_MAX_TX_WITH_CRC {MIFARE_CLASSIC_MAX_TX_LEN + 2} |
| |
|
constexpr uint16_t | m5::nfc::a::mifare::classic::MIFARE_CLASSIC_MAX_RX_WITH_CRC {MIFARE_CLASSIC_MAX_RX_LEN + 2} |
| |
|
constexpr uint16_t | m5::nfc::a::mifare::classic::MIFARE_CLASSIC_MAX_BITSTREAM_LEN {(9 * MIFARE_CLASSIC_MAX_TX_WITH_CRC + 7) / 8} |
| |
|
constexpr Key | m5::nfc::a::mifare::classic::DEFAULT_KEY {0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF} |
| | Default key for MIFARE classic.
|
| |
|
constexpr uint32_t | m5::nfc::a::mifare::desfire::DESFIRE_NDEF_APP_ID {0x000001} |
| | DESFire NDEF application AID.
|
| |
|
constexpr uint8_t | m5::nfc::a::mifare::desfire::DESFIRE_CC_FILE_NO {0x01} |
| | AN11004 default CC file number.
|
| |
|
constexpr uint8_t | m5::nfc::a::mifare::desfire::DESFIRE_NDEF_FILE_NO {0x02} |
| | AN11004 default NDEF file number.
|
| |
|
constexpr uint8_t | m5::nfc::a::mifare::desfire::DESFIRE_NDEF_AID [] = {0x00, 0x00, 0x01} |
| | DESFire NDEF AID (3 bytes)
|
| |
| constexpr uint8_t | m5::nfc::a::mifare::desfire::DESFIRE_LIGHT_DF_NAME [] |
| |
|
constexpr uint16_t | m5::nfc::a::mifare::desfire::DESFIRE_LIGHT_DF_FID {0xDF01} |
| | DESFire Light default DF FID.
|
| |
|
constexpr uint8_t | m5::nfc::a::mifare::desfire::DESFIRE_LIGHT_CC_FILE_NO {0x00} |
| | DESFire Light CC file number.
|
| |
|
constexpr uint8_t | m5::nfc::a::mifare::desfire::DESFIRE_LIGHT_NDEF_FILE_NO {0x04} |
| | DESFire Light NDEF file number.
|
| |
|
constexpr uint16_t | m5::nfc::a::mifare::desfire::DESFIRE_LIGHT_CC_FILE_ID {0xEF00} |
| | DESFire Light CC file ID.
|
| |
|
constexpr uint16_t | m5::nfc::a::mifare::desfire::DESFIRE_LIGHT_NDEF_FILE_ID {0xEF04} |
| | DESFire Light NDEF file ID.
|
| |
|
constexpr uint16_t | m5::nfc::a::mifare::desfire::DESFIRE_LIGHT_NDEF_FILE_SIZE {256} |
| | DESFire Light NDEF file size (bytes)
|
| |
|
constexpr uint8_t | m5::nfc::a::mifare::desfire::DESFIRE_DEFAULT_KEY [16] {} |
| |
|
constexpr AESKey | m5::nfc::a::mifare::plus::DEFAULT_KEY {} |
| | Default key for MIFARE Plus.
|
| |
| constexpr AESKey | m5::nfc::a::mifare::plus::DEFAULT_FF_KEY |
| | Default AES sector key (as classic DEFAULT_KEY)
|
| |
|
|
constexpr std::array< uint8_t, 7 > | m5::nfc::a::mifare::historical_bytes_mifare_plus_s = {0xC1, 0x05, 0x2F, 0x2F, 0x00, 0x35, 0xC7} |
| |
|
constexpr std::array< uint8_t, 7 > | m5::nfc::a::mifare::historical_bytes_mifare_plus_x_ev = {0xC1, 0x05, 0x2F, 0x2F, 0x01, 0xBC, 0xD6} |
| |
|
constexpr std::array< uint8_t, 7 > | m5::nfc::a::mifare::historical_bytes_mifare_plus_se0 = {0xC1, 0x05, 0x21, 0x30, 0x00, 0xF6, 0xD1} |
| |
|
constexpr std::array< uint8_t, 7 > | m5::nfc::a::mifare::historical_bytes_mifare_plus_se1 = {0xC1, 0x05, 0x21, 0x30, 0x10, 0xF6, 0xD1} |
| |
|
constexpr std::array< uint8_t, 7 > | m5::nfc::a::mifare::historical_bytes_mifare_plus_se2 = {0xC1, 0x05, 0x21, 0x30, 0x00, 0x77, 0xC1} |
| |
|
|
constexpr uint8_t | m5::nfc::a::mifare::classic::READ_WRITE_BLOCK {0x00} |
| | Read and write block.
|
| |
|
constexpr uint8_t | m5::nfc::a::mifare::classic::VALUE_BLOCK_NON_RECHARGEABLE {0x01} |
| | Value block (debit only)
|
| |
|
constexpr uint8_t | m5::nfc::a::mifare::classic::VALUE_BLOCK_RECHARGEABLE {0x06} |
| | Value block (rechargeable)
|
| |