mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2025-09-28 04:26:42 +02:00
41 lines
1018 B
C
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
|