unleashed-firmware/applications/external/pacs_fuzzer/views/attack.h

42 lines
1.1 KiB
C
Raw Normal View History

2023-06-02 17:33:28 +00:00
#pragma once
#include <gui/view.h>
2023-06-05 14:49:30 +00:00
2023-06-02 17:33:28 +00:00
#include "../helpers/fuzzer_custom_event.h"
2023-06-05 14:49:30 +00:00
#include "../helpers/fuzzer_types.h"
2023-06-05 11:10:51 +00:00
#include "../lib/worker/protocol.h"
2023-06-02 17:33:28 +00:00
typedef struct FuzzerViewAttack FuzzerViewAttack;
typedef void (*FuzzerViewAttackCallback)(FuzzerCustomEvent event, void* context);
void fuzzer_view_attack_set_callback(
FuzzerViewAttack* view_attack,
FuzzerViewAttackCallback callback,
void* context);
FuzzerViewAttack* fuzzer_view_attack_alloc();
void fuzzer_view_attack_free(FuzzerViewAttack* view_attack);
View* fuzzer_view_attack_get_view(FuzzerViewAttack* view_attack);
void fuzzer_view_attack_reset_data(
FuzzerViewAttack* view,
const char* attack_name,
2023-06-05 11:10:51 +00:00
const char* protocol_name);
2023-06-02 17:33:28 +00:00
void fuzzer_view_attack_set_uid(FuzzerViewAttack* view, const FuzzerPayload* uid);
2023-06-02 21:32:32 +00:00
2023-06-05 14:49:30 +00:00
void fuzzer_view_attack_start(FuzzerViewAttack* view);
void fuzzer_view_attack_stop(FuzzerViewAttack* view);
void fuzzer_view_attack_pause(FuzzerViewAttack* view);
void fuzzer_view_attack_end(FuzzerViewAttack* view);
2023-06-02 21:32:32 +00:00
2023-06-06 19:43:44 +00:00
uint8_t fuzzer_view_attack_get_time_delay(FuzzerViewAttack* view);
uint8_t fuzzer_view_attack_get_emu_time(FuzzerViewAttack* view);