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>
75 lines
2.2 KiB
C
75 lines
2.2 KiB
C
#pragma once
|
|
|
|
#include "subghz_protocol_common.h"
|
|
|
|
typedef struct SubGhzKeystore SubGhzKeystore;
|
|
|
|
typedef struct SubGhzProtocolStarLine SubGhzProtocolStarLine;
|
|
|
|
/** Allocate SubGhzProtocolStarLine
|
|
*
|
|
* @return SubGhzProtocolStarLine*
|
|
*/
|
|
SubGhzProtocolStarLine* subghz_protocol_star_line_alloc(SubGhzKeystore* keystore);
|
|
|
|
/** Free SubGhzProtocolStarLine
|
|
*
|
|
* @param instance
|
|
*/
|
|
void subghz_protocol_star_line_free(SubGhzProtocolStarLine* instance);
|
|
|
|
/** Find and get manufacture name
|
|
*
|
|
* @param context - SubGhzProtocolStarLine context
|
|
* @return name - char* manufacture name
|
|
*/
|
|
const char* subghz_protocol_star_line_find_and_get_manufacture_name(void* context);
|
|
|
|
/** Get manufacture name
|
|
*
|
|
* @param context - SubGhzProtocolStarLine context
|
|
* @return name - char* manufacture name
|
|
*/
|
|
const char* subghz_protocol_star_line_get_manufacture_name(void* context);
|
|
|
|
/** Sends the key on the air
|
|
*
|
|
* @param instance - SubGhzProtocolStarLine instance
|
|
* @param key - key send
|
|
* @param bit - count bit key
|
|
* @param repeat - repeat send key
|
|
*/
|
|
void subghz_protocol_star_line_send_key(SubGhzProtocolStarLine* instance, uint64_t key, uint8_t bit, uint8_t repeat);
|
|
|
|
/** Reset internal state
|
|
* @param instance - SubGhzProtocolStarLine instance
|
|
*/
|
|
void subghz_protocol_star_line_reset(SubGhzProtocolStarLine* instance);
|
|
|
|
/** Analysis of received data
|
|
*
|
|
* @param instance SubGhzProtocolStarLine instance
|
|
*/
|
|
void subghz_protocol_star_line_check_remote_controller(SubGhzProtocolStarLine* instance);
|
|
|
|
/** Parse accepted duration
|
|
*
|
|
* @param instance - SubGhzProtocolStarLine instance
|
|
* @param data - LevelDuration level_duration
|
|
*/
|
|
void subghz_protocol_star_line_parse(SubGhzProtocolStarLine* instance, bool level, uint32_t duration);
|
|
|
|
/** Outputting information from the parser
|
|
*
|
|
* @param instance - SubGhzProtocolStarLine* instance
|
|
* @param output - output string
|
|
*/
|
|
void subghz_protocol_star_line_to_str(SubGhzProtocolStarLine* instance, string_t output);
|
|
|
|
/** Loading protocol from bin data
|
|
*
|
|
* @param instance - SubGhzDecoderPrinceton instance
|
|
* @param context - SubGhzProtocolCommonLoad context
|
|
*/
|
|
void subghz_decoder_star_line_to_load_protocol(SubGhzProtocolStarLine* instance, void* context);
|