mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-12-27 05:03:08 +00:00
9a9abd59e9
* WeatherStation: start * SubGhz: rename protocol magellen -> magellan * WeatherStation: err Unresolved symbols: {'subghz_protocol_decoder_base_get_string'} * WeatherStation: fix Unresolved symbols: {'subghz_protocol_decoder_base_get_string'} * Subghz: add set protocol_items * WeatherStation: adding your protocols * WS: add Infactory protocol * WS: add history * WS: add setting * WS: add lock * WS: add hopper frequency * WS: fix history * WS fix string_t -> FuriString* * WS: add images * WS: history record update when receiving data from the sensor again * WS: add receiver info, delete extra code * WS: add protocol ThermoPRO_TX4 * [FL-2900] SubGhz: Move icons in Sub-GHz * WS: add Notification * [FL-2890] SubGhz: Rename *_user files in resources to _user.example * WS: add about scene * WS: removing redundant code * WS: add protocol Nexus-TH * WS: add protocol GT_WT03 * WS: fix notification and rename "Weather Station" -> "Read Weather Station" * SubGhz: partial unit tests fix * SubGhz: fix unit_test * SubGhz: remove dead code * SubGhz: rename SubGhzPresetDefinition into SubGhzRadioPreset, cleanup subghz types. Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
36 lines
1 KiB
C
36 lines
1 KiB
C
#pragma once
|
|
|
|
#include <gui/view.h>
|
|
#include "../helpers/weather_station_types.h"
|
|
#include "../helpers/weather_station_event.h"
|
|
|
|
typedef struct WSReceiver WSReceiver;
|
|
|
|
typedef void (*WSReceiverCallback)(WSCustomEvent event, void* context);
|
|
|
|
void ws_view_receiver_set_lock(WSReceiver* ws_receiver, WSLock keyboard);
|
|
|
|
void ws_view_receiver_set_callback(
|
|
WSReceiver* ws_receiver,
|
|
WSReceiverCallback callback,
|
|
void* context);
|
|
|
|
WSReceiver* ws_view_receiver_alloc();
|
|
|
|
void ws_view_receiver_free(WSReceiver* ws_receiver);
|
|
|
|
View* ws_view_receiver_get_view(WSReceiver* ws_receiver);
|
|
|
|
void ws_view_receiver_add_data_statusbar(
|
|
WSReceiver* ws_receiver,
|
|
const char* frequency_str,
|
|
const char* preset_str,
|
|
const char* history_stat_str);
|
|
|
|
void ws_view_receiver_add_item_to_menu(WSReceiver* ws_receiver, const char* name, uint8_t type);
|
|
|
|
uint16_t ws_view_receiver_get_idx_menu(WSReceiver* ws_receiver);
|
|
|
|
void ws_view_receiver_set_idx_menu(WSReceiver* ws_receiver, uint16_t idx);
|
|
|
|
void ws_view_receiver_exit(void* context);
|