Loading...
Searching...
No Matches
raw.h
1#pragma once
2
3#include "base.h"
4
5#define SUBGHZ_PROTOCOL_RAW_NAME "RAW"
6
7#ifdef __cplusplus
8extern "C" {
9#endif
10
11typedef void (*SubGhzProtocolEncoderRAWCallbackEnd)(void* context);
12
15
16extern const SubGhzProtocolDecoder subghz_protocol_raw_decoder;
17extern const SubGhzProtocolEncoder subghz_protocol_raw_encoder;
18extern const SubGhzProtocol subghz_protocol_raw;
19
27bool subghz_protocol_raw_save_to_file_init(
29 const char* dev_name,
30 SubGhzRadioPreset* preset);
31
36void subghz_protocol_raw_save_to_file_stop(SubGhzProtocolDecoderRAW* instance);
37
43size_t subghz_protocol_raw_get_sample_write(SubGhzProtocolDecoderRAW* instance);
44
50void* subghz_protocol_decoder_raw_alloc(SubGhzEnvironment* environment);
51
56void subghz_protocol_decoder_raw_free(void* context);
57
62void subghz_protocol_decoder_raw_reset(void* context);
63
70void subghz_protocol_decoder_raw_feed(void* context, bool level, uint32_t duration);
71
78SubGhzProtocolStatus
79 subghz_protocol_decoder_raw_deserialize(void* context, FlipperFormat* flipper_format);
80
86void subghz_protocol_decoder_raw_get_string(void* context, FuriString* output);
87
93void* subghz_protocol_encoder_raw_alloc(SubGhzEnvironment* environment);
94
99void subghz_protocol_encoder_raw_free(void* context);
100
105void subghz_protocol_encoder_raw_stop(void* context);
106
112void subghz_protocol_raw_save_to_file_pause(SubGhzProtocolDecoderRAW* instance, bool pause);
113
120void subghz_protocol_raw_file_encoder_worker_set_callback_end(
121 SubGhzProtocolEncoderRAW* instance,
122 SubGhzProtocolEncoderRAWCallbackEnd callback_end,
123 void* context_end);
124
131void subghz_protocol_raw_gen_fff_data(
132 FlipperFormat* flipper_format,
133 const char* file_path,
134 const char* radio_dev_name);
135
142SubGhzProtocolStatus
143 subghz_protocol_encoder_raw_deserialize(void* context, FlipperFormat* flipper_format);
144
150LevelDuration subghz_protocol_encoder_raw_yield(void* context);
151
152#ifdef __cplusplus
153}
154#endif
Definition flipper_format.c:12
Definition string.c:4
Definition level_duration.h:15
Definition environment.c:4
Definition types.h:84
Definition raw.c:22
Definition types.h:97
Definition raw.c:36
Definition types.h:129
Definition types.h:35