#pragma once #include #include #include #include #include #include "m-string.h" #include #include #include #include #include #include #include #include #include #include #include #define TAG "FlipFrid" typedef enum { FlipFridAttackDefaultValues, FlipFridAttackBfCustomerId, FlipFridAttackLoadFile, FlipFridAttackLoadFileCustomUids, } FlipFridAttacks; typedef enum { NoneScene, SceneEntryPoint, SceneSelectFile, SceneSelectField, SceneAttack, SceneLoadCustomUids, } FlipFridScene; typedef enum { EventTypeTick, EventTypeKey, } EventType; typedef struct { EventType evt_type; InputKey key; InputType input_type; } FlipFridEvent; // STRUCTS typedef struct { bool is_running; bool is_attacking; FlipFridScene current_scene; FlipFridScene previous_scene; NotificationApp* notify; u_int8_t menu_index; string_t data_str; uint8_t data[5]; uint8_t payload[5]; uint8_t attack_step; FlipFridAttacks attack; string_t attack_name; DialogsApp* dialogs; string_t notification_msg; uint8_t key_index; LFRFIDWorker* worker; ProtocolDict* dict; ProtocolId protocol; // Used for custom dictionnary Stream* uids_stream; } FlipFridState;