2023-05-04 03:04:26 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "subghz_txrx.h"
|
|
|
|
|
|
|
|
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;
|
|
|
|
bool is_database_loaded;
|
|
|
|
SubGhzHopperState hopper_state;
|
|
|
|
|
|
|
|
SubGhzTxRxState txrx_state;
|
|
|
|
SubGhzSpeakerState speaker_state;
|
2023-06-30 14:03:36 +00:00
|
|
|
const SubGhzDevice* radio_device;
|
|
|
|
SubGhzRadioDeviceType radio_device_type;
|
2023-05-04 03:04:26 +00:00
|
|
|
|
|
|
|
SubGhzTxRxNeedSaveCallback need_save_callback;
|
|
|
|
void* need_save_context;
|
|
|
|
};
|