mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-24 05:23:06 +00:00
31 lines
1.4 KiB
C
31 lines
1.4 KiB
C
|
#pragma once
|
||
|
|
||
|
#include "base.h"
|
||
|
|
||
|
#define SUBGHZ_PROTOCOL_NICE_FLO_NAME "Nice FLO"
|
||
|
|
||
|
typedef struct SubGhzProtocolDecoderNiceFlo SubGhzProtocolDecoderNiceFlo;
|
||
|
typedef struct SubGhzProtocolEncoderNiceFlo SubGhzProtocolEncoderNiceFlo;
|
||
|
|
||
|
extern const SubGhzProtocolDecoder subghz_protocol_nice_flo_decoder;
|
||
|
extern const SubGhzProtocolEncoder subghz_protocol_nice_flo_encoder;
|
||
|
extern const SubGhzProtocol subghz_protocol_nice_flo;
|
||
|
|
||
|
void* subghz_protocol_encoder_nice_flo_alloc(SubGhzEnvironment* environment);
|
||
|
void subghz_protocol_encoder_nice_flo_free(void* context);
|
||
|
bool subghz_protocol_encoder_nice_flo_deserialize(void* context, FlipperFormat* flipper_format);
|
||
|
void subghz_protocol_encoder_nice_flo_stop(void* context);
|
||
|
LevelDuration subghz_protocol_encoder_nice_flo_yield(void* context);
|
||
|
void* subghz_protocol_decoder_nice_flo_alloc(SubGhzEnvironment* environment);
|
||
|
void subghz_protocol_decoder_nice_flo_free(void* context);
|
||
|
void subghz_protocol_decoder_nice_flo_reset(void* context);
|
||
|
void subghz_protocol_decoder_nice_flo_feed(void* context, bool level, uint32_t duration);
|
||
|
uint8_t subghz_protocol_decoder_nice_flo_get_hash_data(void* context);
|
||
|
void subghz_protocol_decoder_nice_flo_get_string(void* context, string_t output);
|
||
|
bool subghz_protocol_decoder_nice_flo_serialize(
|
||
|
void* context,
|
||
|
FlipperFormat* flipper_format,
|
||
|
uint32_t frequency,
|
||
|
FuriHalSubGhzPreset preset);
|
||
|
bool subghz_protocol_decoder_nice_flo_deserialize(void* context, FlipperFormat* flipper_format);
|