Enhance simulation of ISO15693 devices.

This adds the following things:
- support for reading multiple blocks,
- configurable block size,
- ability to provide a memory image.
This commit is contained in:
Markus Walter 2022-08-26 09:29:15 +02:00
commit eef1ce9c33
5 changed files with 113 additions and 22 deletions

View file

@ -27,6 +27,10 @@
#define PM3_CMD_DATA_SIZE 512
#define PM3_CMD_DATA_SIZE_MIX ( PM3_CMD_DATA_SIZE - 3 * sizeof(uint64_t) )
/* To be used for commands with a big blob of data along with some other data (for which 32 bytes
* is put aside, so if there is more of it this is unsuitable).
*/
#define PM3_CMD_BLOB_SIZE ( PM3_CMD_DATA_SIZE - 32 )
typedef struct {
uint64_t cmd;