unleashed-firmware/applications/external/pacs_fuzzer/helpers/protocol.h
2023-06-06 16:22:40 +03:00

32 lines
No EOL
550 B
C

#pragma once
#include <stdint.h>
#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[];