SubGhz: refactoring add descriptions (#1012)
* SubGhz: add descriptions * SubGhz: fix syntax Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
@@ -19,25 +19,55 @@ struct SubGhzProtocolDecoderBase {
|
||||
void* context;
|
||||
};
|
||||
|
||||
/**
|
||||
* Set a callback upon completion of successful decoding of one of the protocols.
|
||||
* @param decoder_base Pointer to a SubGhzProtocolDecoderBase instance
|
||||
* @param callback Callback, SubGhzProtocolDecoderBaseRxCallback
|
||||
* @param context Context
|
||||
*/
|
||||
void subghz_protocol_decoder_base_set_decoder_callback(
|
||||
SubGhzProtocolDecoderBase* decoder_base,
|
||||
SubGhzProtocolDecoderBaseRxCallback callback,
|
||||
void* context);
|
||||
|
||||
/**
|
||||
* Getting a textual representation of the received data.
|
||||
* @param decoder_base Pointer to a SubGhzProtocolDecoderBase instance
|
||||
* @param output Resulting text
|
||||
*/
|
||||
bool subghz_protocol_decoder_base_get_string(
|
||||
SubGhzProtocolDecoderBase* decoder_base,
|
||||
string_t output);
|
||||
|
||||
/**
|
||||
* Serialize data SubGhzProtocolDecoderBase.
|
||||
* @param decoder_base Pointer to a SubGhzProtocolDecoderBase instance
|
||||
* @param flipper_format Pointer to a FlipperFormat instance
|
||||
* @param frequency The frequency at which the signal was received, Hz
|
||||
* @param preset The modulation on which the signal was received, FuriHalSubGhzPreset
|
||||
* @return true On success
|
||||
*/
|
||||
bool subghz_protocol_decoder_base_serialize(
|
||||
SubGhzProtocolDecoderBase* decoder_base,
|
||||
FlipperFormat* flipper_format,
|
||||
uint32_t frequency,
|
||||
FuriHalSubGhzPreset preset);
|
||||
|
||||
/**
|
||||
* Deserialize data SubGhzProtocolDecoderBase.
|
||||
* @param decoder_base Pointer to a SubGhzProtocolDecoderBase instance
|
||||
* @param flipper_format Pointer to a FlipperFormat instance
|
||||
* @return true On success
|
||||
*/
|
||||
bool subghz_protocol_decoder_base_deserialize(
|
||||
SubGhzProtocolDecoderBase* decoder_base,
|
||||
FlipperFormat* flipper_format);
|
||||
|
||||
/**
|
||||
* Getting the hash sum of the last randomly received parcel.
|
||||
* @param decoder_base Pointer to a SubGhzProtocolDecoderBase instance
|
||||
* @return hash Hash sum
|
||||
*/
|
||||
uint8_t subghz_protocol_decoder_base_get_hash_data(SubGhzProtocolDecoderBase* decoder_base);
|
||||
|
||||
// Encoder Base
|
||||
|
Reference in New Issue
Block a user