unleashed-firmware/applications/external/pacs_fuzzer/helpers/protocol.h

34 lines
578 B
C
Raw Normal View History

2023-06-02 14:48:21 +00:00
#pragma once
#include <stdint.h>
2023-06-02 21:32:32 +00:00
#define MAX_PAYLOAD_SIZE 8
2023-06-02 17:33:28 +00:00
#define FUZZ_TIME_DELAY_MIN (4)
#define FUZZ_TIME_DELAY_DEFAULT (8)
#define FUZZ_TIME_DELAY_MAX (80)
2023-06-02 14:48:21 +00:00
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[];