mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2025-03-08 08:57:25 +00:00
34 lines
No EOL
578 B
C
34 lines
No EOL
578 B
C
#pragma once
|
|
|
|
#include <stdint.h>
|
|
|
|
#define MAX_PAYLOAD_SIZE 8
|
|
|
|
#define FUZZ_TIME_DELAY_MIN (4)
|
|
#define FUZZ_TIME_DELAY_DEFAULT (8)
|
|
#define FUZZ_TIME_DELAY_MAX (80)
|
|
|
|
typedef enum {
|
|
DS1990,
|
|
Metakom,
|
|
Cyfral,
|
|
// Reserved
|
|
FuzzerProtoMax,
|
|
} FuzzerProtos;
|
|
|
|
struct ProtoDict {
|
|
const uint8_t* val;
|
|
const uint8_t len;
|
|
};
|
|
|
|
typedef struct ProtoDict ProtoDict;
|
|
|
|
struct FuzzerProtocol {
|
|
const char* name;
|
|
const uint8_t data_size;
|
|
const ProtoDict dict;
|
|
};
|
|
|
|
typedef struct FuzzerProtocol FuzzerProtocol;
|
|
|
|
extern const FuzzerProtocol fuzzer_proto_items[]; |