mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-24 05:23:06 +00:00
3164184bbc
* SubGhz: protocols library refactoring * SubGhz: new architecture and refactoring * SubGhz: simplify protocol structure, remove unused types * SubGhz: rename Subghz to SubGhz * SubGhz: add environment concept Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com> Co-authored-by: DrZlo13 <who.just.the.doctor@gmail.com>
30 lines
1.4 KiB
C
30 lines
1.4 KiB
C
#pragma once
|
|
|
|
#include "base.h"
|
|
|
|
#define SUBGHZ_PROTOCOL_HORMANN_HSM_NAME "Hormann HSM"
|
|
|
|
typedef struct SubGhzProtocolDecoderHormann SubGhzProtocolDecoderHormann;
|
|
typedef struct SubGhzProtocolEncoderHormann SubGhzProtocolEncoderHormann;
|
|
|
|
extern const SubGhzProtocolDecoder subghz_protocol_hormann_decoder;
|
|
extern const SubGhzProtocolEncoder subghz_protocol_hormann_encoder;
|
|
extern const SubGhzProtocol subghz_protocol_hormann;
|
|
|
|
void* subghz_protocol_encoder_hormann_alloc(SubGhzEnvironment* environment);
|
|
void subghz_protocol_encoder_hormann_free(void* context);
|
|
bool subghz_protocol_encoder_hormann_deserialize(void* context, FlipperFormat* flipper_format);
|
|
void subghz_protocol_encoder_hormann_stop(void* context);
|
|
LevelDuration subghz_protocol_encoder_hormann_yield(void* context);
|
|
void* subghz_protocol_decoder_hormann_alloc(SubGhzEnvironment* environment);
|
|
void subghz_protocol_decoder_hormann_free(void* context);
|
|
void subghz_protocol_decoder_hormann_reset(void* context);
|
|
void subghz_protocol_decoder_hormann_feed(void* context, bool level, uint32_t duration);
|
|
uint8_t subghz_protocol_decoder_hormann_get_hash_data(void* context);
|
|
bool subghz_protocol_decoder_hormann_serialize(
|
|
void* context,
|
|
FlipperFormat* flipper_format,
|
|
uint32_t frequency,
|
|
FuriHalSubGhzPreset preset);
|
|
bool subghz_protocol_decoder_hormann_deserialize(void* context, FlipperFormat* flipper_format);
|
|
void subghz_protocol_decoder_hormann_get_string(void* context, string_t output);
|