mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-26 23:05:05 +03: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>
48 lines
1.2 KiB
C
48 lines
1.2 KiB
C
#pragma once
|
|
|
|
#include "types.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef struct SubGhzEnvironment SubGhzEnvironment;
|
|
|
|
typedef struct SubGhzProtocolRegistry SubGhzProtocolRegistry;
|
|
|
|
struct SubGhzProtocolRegistry {
|
|
const SubGhzProtocol** items;
|
|
const size_t size;
|
|
};
|
|
|
|
/**
|
|
* Registration by name SubGhzProtocol.
|
|
* @param protocol_registry SubGhzProtocolRegistry
|
|
* @param name Protocol name
|
|
* @return SubGhzProtocol* pointer to a SubGhzProtocol instance
|
|
*/
|
|
const SubGhzProtocol* subghz_protocol_registry_get_by_name(
|
|
const SubGhzProtocolRegistry* protocol_registry,
|
|
const char* name);
|
|
|
|
/**
|
|
* Registration protocol by index in array SubGhzProtocol.
|
|
* @param protocol_registry SubGhzProtocolRegistry
|
|
* @param index Protocol by index in array
|
|
* @return SubGhzProtocol* pointer to a SubGhzProtocol instance
|
|
*/
|
|
const SubGhzProtocol* subghz_protocol_registry_get_by_index(
|
|
const SubGhzProtocolRegistry* protocol_registry,
|
|
size_t index);
|
|
|
|
/**
|
|
* Getting the number of registered protocols.
|
|
* @param protocol_registry SubGhzProtocolRegistry
|
|
* @return Number of protocols
|
|
*/
|
|
size_t subghz_protocol_registry_count(const SubGhzProtocolRegistry* protocol_registry);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|