f385340b2e
* SubGhz: refactoring * WeGet: Add support for outputting formatted lines, events center button pressed, center button released * Variable Item: slightly changed the display of data on the screen * SubGhz: add show errors, add show preset, refactoring * SubGhz: refactoring transmitter * SubGhz: removed unused modules * SubGhz: Add FuriHalSubGhzPresetOok270Async setting menu * SubGhz: fix annotation * SubGhz: add support Nero Radio Co-authored-by: あく <alleteam@gmail.com>
33 lines
889 B
C
33 lines
889 B
C
#pragma once
|
|
|
|
#include <gui/view.h>
|
|
|
|
typedef enum {
|
|
SubghzTransmitterEventSendStart,
|
|
SubghzTransmitterEventSendStop,
|
|
SubghzTransmitterEventBack,
|
|
SubghzTransmitterEventNoMan,
|
|
} SubghzTransmitterEvent;
|
|
|
|
typedef struct SubghzTransmitter SubghzTransmitter;
|
|
|
|
typedef void (*SubghzTransmitterCallback)(SubghzTransmitterEvent event, void* context);
|
|
|
|
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(
|
|
SubghzTransmitter* subghz_transmitter,
|
|
const char* key_str,
|
|
const char* frequency_str,
|
|
const char* preset_str,
|
|
uint8_t show_button);
|