2021-10-27 17:37:11 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <gui/view.h>
|
|
|
|
#include "../helpers/subghz_custom_event.h"
|
|
|
|
|
|
|
|
typedef struct SubghzReadRAW SubghzReadRAW;
|
|
|
|
|
|
|
|
typedef void (*SubghzReadRAWCallback)(SubghzCustomEvent event, void* context);
|
|
|
|
|
2021-11-24 13:59:45 +00:00
|
|
|
typedef enum {
|
|
|
|
SubghzReadRAWStatusStart,
|
|
|
|
SubghzReadRAWStatusIDLE,
|
|
|
|
SubghzReadRAWStatusREC,
|
|
|
|
SubghzReadRAWStatusTX,
|
|
|
|
SubghzReadRAWStatusTXRepeat,
|
|
|
|
} SubghzReadRAWStatus;
|
|
|
|
|
2021-10-27 17:37:11 +00:00
|
|
|
void subghz_read_raw_set_callback(
|
|
|
|
SubghzReadRAW* subghz_read_raw,
|
|
|
|
SubghzReadRAWCallback callback,
|
|
|
|
void* context);
|
|
|
|
|
|
|
|
SubghzReadRAW* subghz_read_raw_alloc();
|
|
|
|
|
|
|
|
void subghz_read_raw_free(SubghzReadRAW* subghz_static);
|
|
|
|
|
|
|
|
void subghz_read_raw_add_data_statusbar(
|
|
|
|
SubghzReadRAW* instance,
|
|
|
|
const char* frequency_str,
|
|
|
|
const char* preset_str);
|
|
|
|
|
|
|
|
void subghz_read_raw_update_sample_write(SubghzReadRAW* instance, size_t sample);
|
|
|
|
|
2021-11-24 13:59:45 +00:00
|
|
|
void subghz_read_raw_stop_send(SubghzReadRAW* instance);
|
|
|
|
|
|
|
|
void subghz_read_raw_update_sin(SubghzReadRAW* instance);
|
|
|
|
|
2021-10-27 17:37:11 +00:00
|
|
|
void subghz_read_raw_add_data_rssi(SubghzReadRAW* instance, float rssi);
|
|
|
|
|
2021-12-08 15:00:54 +00:00
|
|
|
void subghz_read_raw_set_status(
|
|
|
|
SubghzReadRAW* instance,
|
|
|
|
SubghzReadRAWStatus satus,
|
|
|
|
const char* file_name);
|
2021-11-24 13:59:45 +00:00
|
|
|
|
2021-10-27 17:37:11 +00:00
|
|
|
View* subghz_read_raw_get_view(SubghzReadRAW* subghz_static);
|