iso15sim: rename, move and PACK iso15_tag struct to be usable in client
This commit is contained in:
1 parent
a9b068108b
commit
05912ff130
4 files changed
+30
-30
No files matched your search
@@ -44,4 +44,31 @@ typedef struct {
|
||||
uint8_t raw[]; // First byte in raw, raw[0] is ISO15693 protocol flag byte
|
||||
} PACKED iso15_raw_cmd_t;
|
||||
|
||||
#define ISO15693_TAG_MAX_PAGES 64 // in page
|
||||
#define ISO15693_TAG_MAX_SIZE 2048 // in byte (64 pages of 256 bits)
|
||||
|
||||
typedef struct {
|
||||
uint8_t uid[8];
|
||||
uint8_t dsfid;
|
||||
bool dsfidLock;
|
||||
uint8_t afi;
|
||||
bool afiLock;
|
||||
uint8_t bytesPerPage;
|
||||
uint8_t pagesCount;
|
||||
uint8_t ic;
|
||||
uint8_t locks[ISO15693_TAG_MAX_PAGES];
|
||||
uint8_t data[ISO15693_TAG_MAX_SIZE];
|
||||
uint8_t random[2];
|
||||
uint8_t privacyPasswd[4];
|
||||
enum {
|
||||
TAG_STATE_NO_FIELD,
|
||||
TAG_STATE_READY,
|
||||
TAG_STATE_ACTIVATED, // useless ?
|
||||
TAG_STATE_SELECTED,
|
||||
TAG_STATE_SILENCED
|
||||
} state;
|
||||
bool expectFast;
|
||||
bool expectFsk;
|
||||
} PACKED iso15_tag_t;
|
||||
|
||||
#endif // _ISO15_H_
|
||||
Reference in new issue
Block a user