Files
Momentum-Firmware/lib/subghz/protocols/pcsg_generic.h
2024-07-15 22:32:17 +01:00

41 lines
1018 B
C

#pragma once
#include "../blocks/generic_i.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct PCSGBlockGeneric PCSGBlockGeneric;
struct PCSGBlockGeneric {
const char* protocol_name;
FuriString* result_ric;
FuriString* result_msg;
};
/**
* Serialize data PCSGBlockGeneric.
* @param instance Pointer to a PCSGBlockGeneric instance
* @param flipper_format Pointer to a FlipperFormat instance
* @param preset The modulation on which the signal was received, SubGhzRadioPreset
* @return true On success
*/
SubGhzProtocolStatus pcsg_block_generic_serialize(
PCSGBlockGeneric* instance,
FlipperFormat* flipper_format,
SubGhzRadioPreset* preset);
/**
* Deserialize data PCSGBlockGeneric.
* @param instance Pointer to a PCSGBlockGeneric instance
* @param flipper_format Pointer to a FlipperFormat instance
* @return true On success
*/
SubGhzProtocolStatus
pcsg_block_generic_deserialize(PCSGBlockGeneric* instance, FlipperFormat* flipper_format);
#ifdef __cplusplus
}
#endif