Loading...
Searching...
No Matches
generic.h
1#pragma once
2
3#include <stdbool.h>
4#include <stdint.h>
5#include <stddef.h>
6
8#include <furi.h>
9#include <furi_hal.h>
10#include "../types.h"
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
17
19 const char* protocol_name;
20 uint64_t data;
21 uint32_t serial;
22 uint16_t data_count_bit;
23 uint8_t btn;
24 uint32_t cnt;
25};
26
32void subghz_block_generic_get_preset_name(const char* preset_name, FuriString* preset_str);
33
41SubGhzProtocolStatus subghz_block_generic_serialize(
42 SubGhzBlockGeneric* instance,
43 FlipperFormat* flipper_format,
44 SubGhzRadioPreset* preset);
45
52SubGhzProtocolStatus
53 subghz_block_generic_deserialize(SubGhzBlockGeneric* instance, FlipperFormat* flipper_format);
54
62SubGhzProtocolStatus subghz_block_generic_deserialize_check_count_bit(
63 SubGhzBlockGeneric* instance,
64 FlipperFormat* flipper_format,
65 uint16_t count_bit);
66
67#ifdef __cplusplus
68}
69#endif
Flipper File Format helper library.
Furi HAL API.
Definition flipper_format.c:12
Definition string.c:4
Definition generic.h:18
Definition types.h:35