Add write without encryption command.

This commit is contained in:
Thomas Sutter 2019-10-29 11:14:38 +01:00
commit 2e60cb4fa6
2 changed files with 43 additions and 16 deletions

View file

@ -179,7 +179,7 @@ typedef struct {
typedef struct {
uint8_t status_flag1[1];
uint8_t status_flag2[1];
} PACKED felica_status_flag_response_t;
} PACKED felica_status_flags_t;
typedef struct {
felica_frame_response_t frame_response;
@ -194,12 +194,17 @@ typedef struct {
typedef struct {
felica_frame_response_t frame_response;
felica_status_flag_response_t status_flags;
felica_status_flags_t status_flags;
uint8_t number_of_block[1];
uint8_t block_data[16];
uint8_t block_element_number[1];
} PACKED felica_read_without_encryption_response_t;
typedef struct {
felica_frame_response_t frame_response;
felica_status_flags_t status_flags;
} PACKED felica_status_response_t;
typedef enum FELICA_COMMAND {
FELICA_CONNECT = (1 << 0),
FELICA_NO_DISCONNECT = (1 << 1),