NFC definitions.
More...
#include <cstdint>
#include "manufacturer_id.hpp"
Go to the source code of this file.
|
| namespace | m5 |
| | Top level namespace of M5Stack.
|
| |
| namespace | nfc |
| | NFC related definitions.
|
| |
|
| enum class | m5::nfc::NFC : uint8_t {
None
, A
, B
, F
,
V
} |
| | NFC type. More...
|
| |
| enum class | m5::nfc::NFCForumTag : uint8_t {
None
, Type1
, Type2
, Type3
,
Type4
, Type5
} |
| | NFC Forum Tag Type. More...
|
| |
| enum class | m5::nfc::Bitrate : uint8_t {
Bps106K
, Bps212K
, Bps424K
, Bps848K
,
Invalid = 0xFF
} |
| | Communication bitrate. More...
|
| |
|
|
using | m5::nfc::file_system_feature_t = uint8_t |
| | Alias for file_system_feature_t.
|
| |
|
constexpr file_system_feature_t | m5::nfc::FILE_SYSTEM_FLAT_MEMORY {0x01} |
| | Block/Page base R/W (flat memory)
|
| |
|
constexpr file_system_feature_t | m5::nfc::FILE_SYSTEM_ISO7816_4 {0x02} |
| | ISO 7816-4 (multi file base)
|
| |
|
constexpr file_system_feature_t | m5::nfc::FILE_SYSTEM_DESFIRE {0x04} |
| | MIFARE DESFire (multi file base)
|
| |
|
constexpr file_system_feature_t | m5::nfc::FILE_SYSTEM_DESFIRE_LIGHT {0x08} |
| | MIFARE DESFire light (single file base)
|
| |
◆ Bitrate
Communication bitrate.
| Enumerator |
|---|
| Bps106K | 106K
|
| Bps212K | 212K
|
| Bps424K | 424K
|
| Bps848K | 848K
|
◆ NFC
NFC type.
| Enumerator |
|---|
| None | No mode.
|
| A | NFC-A.
|
| B | NFC-B.
|
| F | NFC-F.
|
| V | NFC-V.
|
◆ NFCForumTag
NFC Forum Tag Type.
| Enumerator |
|---|
| Type1 | Type 1 (NFC-A)
|
| Type2 | Type 2 (NFC-A)
|
| Type3 | Type 3 (NFC-F)
|
| Type4 | Type 4 (NFC-A, NFC-B)
|
| Type5 | Type 5 ISO/IEC 15693.
|
◆ is_file_system_desfire()
Has MIFARE DESFire (any variant) file system feature?
- Parameters
-
| fsf | File system feature bits |
- Returns
- True if MIFARE DESFire or DESFire Light file system access is supported
◆ is_file_system_desfire_light()
Has MIFARE DESFire light file system feature?
- Parameters
-
| fsf | File system feature bits |
- Returns
- True if MIFARE DESFire Light file system access is supported
◆ is_file_system_desfire_normal()
Has MIFARE DESFire (normal) file system feature?
- Parameters
-
| fsf | File system feature bits |
- Returns
- True if normal MIFARE DESFire file system access is supported
◆ is_file_system_file()
Has any file-based file system feature?
- Parameters
-
| fsf | File system feature bits |
- Returns
- True if any file-based access is supported
◆ is_file_system_ISO()
Has ISO 7816-4 file system feature?
- Parameters
-
| fsf | File system feature bits |
- Returns
- True if ISO 7816-4 file system access is supported
◆ is_file_system_memory()
Has flat-memory file system feature?
- Parameters
-
| fsf | File system feature bits |
- Returns
- True if flat-memory access is supported