SubGhz: add protocol Somfy Telis RTS, Somfy Keytis RTS (#964)
* SubGhz: add 433.42 MHz for Somfy * SupGhz: add protocol Somfy Telis RTS, Somfy Keytis RTS Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
50
lib/subghz/protocols/subghz_protocol_somfy_keytis.h
Normal file
50
lib/subghz/protocols/subghz_protocol_somfy_keytis.h
Normal file
@@ -0,0 +1,50 @@
|
||||
#pragma once
|
||||
|
||||
#include "subghz_protocol_common.h"
|
||||
|
||||
typedef struct SubGhzProtocolSomfyKeytis SubGhzProtocolSomfyKeytis;
|
||||
|
||||
/** Allocate SubGhzProtocolSomfyKeytis
|
||||
*
|
||||
* @return SubGhzProtocolSomfyKeytis*
|
||||
*/
|
||||
SubGhzProtocolSomfyKeytis* subghz_protocol_somfy_keytis_alloc();
|
||||
|
||||
/** Free SubGhzProtocolSomfyKeytis
|
||||
*
|
||||
* @param instance
|
||||
*/
|
||||
void subghz_protocol_somfy_keytis_free(SubGhzProtocolSomfyKeytis* instance);
|
||||
|
||||
uint32_t subghz_protocol_somfy_keytis_get_press_duration(void* context);
|
||||
|
||||
/** Reset internal state
|
||||
* @param instance - SubGhzProtocolSomfyKeytis instance
|
||||
*/
|
||||
void subghz_protocol_somfy_keytis_reset(SubGhzProtocolSomfyKeytis* instance);
|
||||
|
||||
/** Parse accepted duration
|
||||
*
|
||||
* @param instance - SubGhzProtocolSomfyKeytis instance
|
||||
* @param data - LevelDuration level_duration
|
||||
*/
|
||||
void subghz_protocol_somfy_keytis_parse(
|
||||
SubGhzProtocolSomfyKeytis* instance,
|
||||
bool level,
|
||||
uint32_t duration);
|
||||
|
||||
/** Outputting information from the parser
|
||||
*
|
||||
* @param instance - SubGhzProtocolSomfyKeytis* instance
|
||||
* @param output - output string
|
||||
*/
|
||||
void subghz_protocol_somfy_keytis_to_str(SubGhzProtocolSomfyKeytis* instance, string_t output);
|
||||
|
||||
/** Loading protocol from bin data
|
||||
*
|
||||
* @param instance - SubGhzProtocolSomfyKeytis instance
|
||||
* @param context - SubGhzProtocolCommonLoad context
|
||||
*/
|
||||
void subghz_decoder_somfy_keytis_to_load_protocol(
|
||||
SubGhzProtocolSomfyKeytis* instance,
|
||||
void* context);
|
||||
Reference in New Issue
Block a user