5#include <nfc/protocols/iso15693_3/iso15693_3_i.h>
12#define SLIX_NXP_MANUFACTURER_CODE (0x04U)
14#define SLIX_LOCK_BITS_AFI (1U << 0)
15#define SLIX_LOCK_BITS_EAS (1U << 1)
16#define SLIX_LOCK_BITS_DSFID (1U << 2)
17#define SLIX_LOCK_BITS_PPL (1U << 3)
19#define SLIX_CMD_CUSTOM_START (0xA2U)
20#define SLIX_CMD_SET_EAS (0xA2U)
21#define SLIX_CMD_RESET_EAS (0xA3U)
22#define SLIX_CMD_LOCK_EAS (0xA4U)
23#define SLIX_CMD_EAS_ALARM (0xA5U)
24#define SLIX_CMD_PASSWORD_PROTECT_EAS_AFI (0xA6U)
25#define SLIX_CMD_WRITE_EAS_ID (0xA7U)
26#define SLIX_CMD_GET_NXP_SYSTEM_INFORMATION (0xABU)
27#define SLIX_CMD_INVENTORY_PAGE_READ (0xB0U)
28#define SLIX_CMD_INVENTORY_PAGE_READ_FAST (0xB1U)
29#define SLIX_CMD_GET_RANDOM_NUMBER (0xB2U)
30#define SLIX_CMD_SET_PASSWORD (0xB3U)
31#define SLIX_CMD_WRITE_PASSWORD (0xB4U)
32#define SLIX_CMD_64_BIT_PASSWORD_PROTECTION (0xB5U)
33#define SLIX_CMD_PROTECT_PAGE (0xB6U)
34#define SLIX_CMD_LOCK_PAGE_PROTECTION_CONDITION (0xB7U)
35#define SLIX_CMD_DESTROY (0xB9U)
36#define SLIX_CMD_ENABLE_PRIVACY (0xBAU)
37#define SLIX_CMD_STAY_QUIET_PERSISTENT (0xBCU)
38#define SLIX_CMD_READ_SIGNATURE (0xBDU)
39#define SLIX_CMD_CUSTOM_END (0xBEU)
40#define SLIX_CMD_CUSTOM_COUNT (SLIX_CMD_CUSTOM_END - SLIX_CMD_CUSTOM_START)
42#define SLIX_TYPE_FEATURES_SLIX (SLIX_TYPE_FEATURE_EAS)
43#define SLIX_TYPE_FEATURES_SLIX_S \
44 (SLIX_TYPE_FEATURE_READ | SLIX_TYPE_FEATURE_WRITE | SLIX_TYPE_FEATURE_PRIVACY | \
45 SLIX_TYPE_FEATURE_DESTROY | SLIX_TYPE_FEATURE_EAS)
46#define SLIX_TYPE_FEATURES_SLIX_L \
47 (SLIX_TYPE_FEATURE_PRIVACY | SLIX_TYPE_FEATURE_DESTROY | SLIX_TYPE_FEATURE_EAS)
48#define SLIX_TYPE_FEATURES_SLIX2 \
49 (SLIX_TYPE_FEATURE_READ | SLIX_TYPE_FEATURE_WRITE | SLIX_TYPE_FEATURE_PRIVACY | \
50 SLIX_TYPE_FEATURE_DESTROY | SLIX_TYPE_FEATURE_EAS | SLIX_TYPE_FEATURE_SIGNATURE | \
51 SLIX_TYPE_FEATURE_PROTECTION | SLIX_TYPE_FEATURE_NFC_SYSTEM_INFO)
53#define SLIX2_FEATURE_FLAGS \
54 (SLIX_FEATURE_FLAG_UM_PP | SLIX_FEATURE_FLAG_COUNTER | SLIX_FEATURE_FLAG_EAS_ID | \
55 SLIX_FEATURE_FLAG_EAS_PP | SLIX_FEATURE_FLAG_AFI_PP | SLIX_FEATURE_FLAG_INVENTORY_READ_EXT | \
56 SLIX_FEATURE_FLAG_EAS_IR | SLIX_FEATURE_FLAG_ORIGINALITY_SIG | \
57 SLIX_FEATURE_FLAG_PERSISTENT_QUIET | SLIX_FEATURE_FLAG_PRIVACY | SLIX_FEATURE_FLAG_DESTROY)
65 uint8_t bytes[SLIX_BLOCK_SIZE];
69bool slix_error_response_parse(SlixError* error,
const BitBuffer* buf);
71SlixError slix_process_iso15693_3_error(Iso15693_3Error iso15693_3_error);
73SlixError slix_get_nxp_system_info_response_parse(
SlixData* data,
const BitBuffer* buf);
75SlixError slix_read_signature_response_parse(SlixSignature data,
const BitBuffer* buf);
77SlixError slix_get_random_number_response_parse(SlixRandomNumber* data,
const BitBuffer* buf);
80void slix_set_password(
SlixData* data, SlixPasswordType password_type, SlixPassword password);
82void slix_set_privacy_mode(
SlixData* data,
bool set);
84void slix_increment_counter(
SlixData* data);
Definition bit_buffer.c:7