Loading...
Searching...
No Matches
bin_raw.h
1#pragma once
2
3#include "base.h"
4#include "public_api.h"
5
6#define SUBGHZ_PROTOCOL_BIN_RAW_NAME "BinRAW"
7
10
11extern const SubGhzProtocolDecoder subghz_protocol_bin_raw_decoder;
12extern const SubGhzProtocolEncoder subghz_protocol_bin_raw_encoder;
13extern const SubGhzProtocol subghz_protocol_bin_raw;
14
20void* subghz_protocol_encoder_bin_raw_alloc(SubGhzEnvironment* environment);
21
26void subghz_protocol_encoder_bin_raw_free(void* context);
27
34SubGhzProtocolStatus
35 subghz_protocol_encoder_bin_raw_deserialize(void* context, FlipperFormat* flipper_format);
36
41void subghz_protocol_encoder_bin_raw_stop(void* context);
42
48LevelDuration subghz_protocol_encoder_bin_raw_yield(void* context);
49
55void* subghz_protocol_decoder_bin_raw_alloc(SubGhzEnvironment* environment);
56
61void subghz_protocol_decoder_bin_raw_free(void* context);
62
67void subghz_protocol_decoder_bin_raw_reset(void* context);
68
75void subghz_protocol_decoder_bin_raw_feed(void* context, bool level, uint32_t duration);
76
82uint8_t subghz_protocol_decoder_bin_raw_get_hash_data(void* context);
83
91SubGhzProtocolStatus subghz_protocol_decoder_bin_raw_serialize(
92 void* context,
93 FlipperFormat* flipper_format,
94 SubGhzRadioPreset* preset);
95
102SubGhzProtocolStatus
103 subghz_protocol_decoder_bin_raw_deserialize(void* context, FlipperFormat* flipper_format);
104
110void subghz_protocol_decoder_bin_raw_get_string(void* context, FuriString* output);
Definition flipper_format.c:12
Definition string.c:4
Definition level_duration.h:15
Definition environment.c:4
Definition bin_raw.c:68
Definition types.h:84
Definition bin_raw.c:81
Definition types.h:97
Definition types.h:129
Definition types.h:35