Loading...
Searching...
No Matches
subghz_tx_rx_worker.h
1#pragma once
2
3#include <furi_hal.h>
4#include <devices/devices.h>
5
6#ifdef __cplusplus
7extern "C" {
8#endif
9
10typedef void (*SubGhzTxRxWorkerCallbackHaveRead)(void* context);
11
13
14typedef enum {
15 SubGhzTxRxWorkerStatusIDLE,
16 SubGhzTxRxWorkerStatusTx,
17 SubGhzTxRxWorkerStatusRx,
18} SubGhzTxRxWorkerStatus;
19
27bool subghz_tx_rx_worker_write(SubGhzTxRxWorker* instance, uint8_t* data, size_t size);
28
34size_t subghz_tx_rx_worker_available(SubGhzTxRxWorker* instance);
35
43size_t subghz_tx_rx_worker_read(SubGhzTxRxWorker* instance, uint8_t* data, size_t size);
44
51void subghz_tx_rx_worker_set_callback_have_read(
52 SubGhzTxRxWorker* instance,
53 SubGhzTxRxWorkerCallbackHaveRead callback,
54 void* context);
55
60SubGhzTxRxWorker* subghz_tx_rx_worker_alloc(void);
61
66void subghz_tx_rx_worker_free(SubGhzTxRxWorker* instance);
67
74bool subghz_tx_rx_worker_start(
75 SubGhzTxRxWorker* instance,
76 const SubGhzDevice* device,
77 uint32_t frequency);
78
83void subghz_tx_rx_worker_stop(SubGhzTxRxWorker* instance);
84
90bool subghz_tx_rx_worker_is_running(SubGhzTxRxWorker* instance);
91
92#ifdef __cplusplus
93}
94#endif
Furi HAL API.
Definition devices/types.h:88
Definition subghz_tx_rx_worker.c:13