mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-16 01:02:32 +03:00
e17336498d
* Gui: move rotation logic to ViewPort, replace delayed View switch in ViewDispatcher with event filtering and redirection to previous view. * SubGhz: add function description * Gui, Input: add event id to input events. * SubGhz: fix "crashing on ?" * SubGhz: add icon scanning * SubGhz: updated interface read scene, updated interface config scene * Assets: update subghz assets * SubGhz: replaced the picture in the read scene, changed the paths to additional files * SubGhz: fix deadlock in timer callback * SubGhz: fix icon read scene * SubGhz: fix icon read scene * SubGhz: fix duble text transmitter scene * SubGhz: correct spelling. Gui: bigger queue for ViewDispatcher. * SubGhz: fix creation and transmission of dynamic code without the presence of a manufactory key * SubGhz: fix keelog, setting a name in the absence of a manufactory key * SubGhz: fix load bad keelog key * Format sources * Furi: remove garbage from core. GpioTester: fix memory leak and cleanup * Accessor: remove obsolete notification code * MusicPlayer: remove input event injection * Input: rename id to sequence Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
35 lines
1015 B
C
35 lines
1015 B
C
#pragma once
|
|
|
|
#include <gui/view.h>
|
|
#include <lib/subghz/protocols/subghz_protocol_common.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_set_protocol(
|
|
SubghzTransmitter* subghz_transmitter,
|
|
SubGhzProtocolCommon* protocol);
|
|
void subghz_transmitter_set_frequency_preset(
|
|
SubghzTransmitter* subghz_transmitter,
|
|
uint32_t frequency,
|
|
FuriHalSubGhzPreset preset);
|