Loading...
Searching...
No Matches
receiver.h
1#pragma once
2
3#include "types.h"
4#include "protocols/base.h"
5
6#ifdef __cplusplus
7extern "C" {
8#endif
9
10typedef struct SubGhzReceiver SubGhzReceiver;
11
12typedef void (*SubGhzReceiverCallback)(
13 SubGhzReceiver* decoder,
14 SubGhzProtocolDecoderBase* decoder_base,
15 void* context);
16
22SubGhzReceiver* subghz_receiver_alloc_init(SubGhzEnvironment* environment);
23
28void subghz_receiver_free(SubGhzReceiver* instance);
29
36void subghz_receiver_decode(SubGhzReceiver* instance, bool level, uint32_t duration);
37
42void subghz_receiver_reset(SubGhzReceiver* instance);
43
50void subghz_receiver_set_rx_callback(
51 SubGhzReceiver* instance,
52 SubGhzReceiverCallback callback,
53 void* context);
54
60void subghz_receiver_set_filter(SubGhzReceiver* instance, SubGhzProtocolFlag filter);
61
69 subghz_receiver_search_decoder_base_by_name(SubGhzReceiver* instance, const char* decoder_name);
70
71#ifdef __cplusplus
72}
73#endif
Definition environment.c:4
Definition lib/subghz/protocols/base.h:18
Definition receiver.c:14