unleashed-firmware/applications/subghz/views/subghz_transmitter.h

27 lines
748 B
C
Raw Normal View History

2021-08-12 14:42:56 +00:00
#pragma once
#include <gui/view.h>
#include "../helpers/subghz_custom_event.h"
2021-08-12 14:42:56 +00:00
typedef struct SubghzTransmitter SubghzTransmitter;
typedef void (*SubghzTransmitterCallback)(SubghzCustomEvent event, void* context);
2021-08-12 14:42:56 +00:00
void subghz_transmitter_set_callback(
SubghzTransmitter* subghz_transmitter,
SubghzTransmitterCallback callback,
void* context);
SubghzTransmitter* subghz_transmitter_alloc();
void subghz_transmitter_free(SubghzTransmitter* subghz_transmitter);
View* subghz_transmitter_get_view(SubghzTransmitter* subghz_transmitter);
void subghz_transmitter_add_data_to_show(
2021-08-12 14:42:56 +00:00
SubghzTransmitter* subghz_transmitter,
const char* key_str,
const char* frequency_str,
const char* preset_str,
uint8_t show_button);