Loading...
Searching...
No Matches
subghz_worker.h
1#pragma once
2
3#include <furi_hal.h>
4
5#ifdef __cplusplus
6extern "C" {
7#endif
8
9typedef struct SubGhzWorker SubGhzWorker;
10
11typedef void (*SubGhzWorkerOverrunCallback)(void* context);
12
13typedef void (*SubGhzWorkerPairCallback)(void* context, bool level, uint32_t duration);
14
15void subghz_worker_rx_callback(bool level, uint32_t duration, void* context);
16
21SubGhzWorker* subghz_worker_alloc(void);
22
27void subghz_worker_free(SubGhzWorker* instance);
28
34void subghz_worker_set_overrun_callback(
35 SubGhzWorker* instance,
36 SubGhzWorkerOverrunCallback callback);
37
43void subghz_worker_set_pair_callback(SubGhzWorker* instance, SubGhzWorkerPairCallback callback);
44
50void subghz_worker_set_context(SubGhzWorker* instance, void* context);
51
56void subghz_worker_start(SubGhzWorker* instance);
57
61void subghz_worker_stop(SubGhzWorker* instance);
62
68bool subghz_worker_is_running(SubGhzWorker* instance);
69
76void subghz_worker_set_filter(SubGhzWorker* instance, uint16_t timeout);
77
78#ifdef __cplusplus
79}
80#endif
Furi HAL API.
Definition subghz_worker.c:7