2023-05-09 18:20:35 +00:00
|
|
|
#pragma once
|
2023-06-18 17:25:40 +00:00
|
|
|
|
2023-05-09 18:58:36 +00:00
|
|
|
#include "subghz_txrx.h"
|
2023-05-09 18:20:35 +00:00
|
|
|
|
|
|
|
struct SubGhzTxRx {
|
|
|
|
SubGhzWorker* worker;
|
|
|
|
|
|
|
|
SubGhzEnvironment* environment;
|
|
|
|
SubGhzReceiver* receiver;
|
|
|
|
SubGhzTransmitter* transmitter;
|
|
|
|
SubGhzProtocolDecoderBase* decoder_result;
|
|
|
|
FlipperFormat* fff_data;
|
|
|
|
|
|
|
|
SubGhzRadioPreset* preset;
|
|
|
|
SubGhzSetting* setting;
|
|
|
|
|
|
|
|
uint8_t hopper_timeout;
|
|
|
|
uint8_t hopper_idx_frequency;
|
2023-05-09 18:54:56 +00:00
|
|
|
bool is_database_loaded;
|
2023-05-09 18:20:35 +00:00
|
|
|
SubGhzHopperState hopper_state;
|
|
|
|
|
|
|
|
SubGhzTxRxState txrx_state;
|
|
|
|
SubGhzSpeakerState speaker_state;
|
2023-06-18 17:25:40 +00:00
|
|
|
const SubGhzDevice* radio_device;
|
|
|
|
SubGhzRadioDeviceType radio_device_type;
|
2023-05-09 18:20:35 +00:00
|
|
|
|
|
|
|
SubGhzTxRxNeedSaveCallback need_save_callback;
|
|
|
|
void* need_save_context;
|
|
|
|
|
|
|
|
bool debug_pin_state;
|
2023-06-18 17:25:40 +00:00
|
|
|
};
|