unleashed-firmware/applications/main/subghz/views/transmitter.h
あく acc39a4bc0
Api Symbols: replace asserts with checks (#3507)
* Api Symbols: replace asserts with checks
* Api Symbols: replace asserts with checks part 2
* Update no args function signatures with void, to help compiler to track incorrect usage
* More unavoidable void
* Update PVS config and code to make it happy
* Format sources
* nfc: fix checks
* dead code cleanup & include fixes

Co-authored-by: gornekich <n.gorbadey@gmail.com>
Co-authored-by: hedger <hedger@users.noreply.github.com>
Co-authored-by: hedger <hedger@nanode.su>
2024-03-19 23:43:52 +09:00

40 lines
1.2 KiB
C

#pragma once
#include <gui/view.h>
#include "../helpers/subghz_types.h"
#include "../helpers/subghz_custom_event.h"
typedef struct SubGhzViewTransmitter SubGhzViewTransmitter;
typedef enum {
SubGhzViewTransmitterModelTypeTx,
SubGhzViewTransmitterModelTypeInfo,
} SubGhzViewTransmitterModelType;
typedef void (*SubGhzViewTransmitterCallback)(SubGhzCustomEvent event, void* context);
void subghz_view_transmitter_set_callback(
SubGhzViewTransmitter* subghz_transmitter,
SubGhzViewTransmitterCallback callback,
void* context);
void subghz_view_transmitter_set_radio_device_type(
SubGhzViewTransmitter* subghz_transmitter,
SubGhzRadioDeviceType device_type);
void subghz_view_transmitter_set_model_type(
SubGhzViewTransmitter* subghz_transmitter,
SubGhzViewTransmitterModelType model_type);
SubGhzViewTransmitter* subghz_view_transmitter_alloc(void);
void subghz_view_transmitter_free(SubGhzViewTransmitter* subghz_transmitter);
View* subghz_view_transmitter_get_view(SubGhzViewTransmitter* subghz_transmitter);
void subghz_view_transmitter_add_data_to_show(
SubGhzViewTransmitter* subghz_transmitter,
const char* key_str,
const char* frequency_str,
const char* preset_str,
bool show_button);