[FL-3106] SubGhz: better and more verbose error handling in protocols, stricter CAME validation (#2443)
* SubGhz: add error protocol * WS: add error protocol * SubGhz: error processing * SubGhz: more stringent CAME protocol restrictions * SubGhz: fix header duration CAME protocol * SubGhz: delete comments * SubGhz: sync SubGhzProtocolStatus with FuriStatus * SubGhz: update documentation and bump api_version Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
@@ -28,9 +28,10 @@ void subghz_protocol_encoder_princeton_free(void* context);
|
||||
* Deserialize and generating an upload to send.
|
||||
* @param context Pointer to a SubGhzProtocolEncoderPrinceton instance
|
||||
* @param flipper_format Pointer to a FlipperFormat instance
|
||||
* @return true On success
|
||||
* @return status
|
||||
*/
|
||||
bool subghz_protocol_encoder_princeton_deserialize(void* context, FlipperFormat* flipper_format);
|
||||
SubGhzProtocolStatus
|
||||
subghz_protocol_encoder_princeton_deserialize(void* context, FlipperFormat* flipper_format);
|
||||
|
||||
/**
|
||||
* Forced transmission stop.
|
||||
@@ -84,9 +85,9 @@ uint8_t subghz_protocol_decoder_princeton_get_hash_data(void* context);
|
||||
* @param context Pointer to a SubGhzProtocolDecoderPrinceton instance
|
||||
* @param flipper_format Pointer to a FlipperFormat instance
|
||||
* @param preset The modulation on which the signal was received, SubGhzRadioPreset
|
||||
* @return true On success
|
||||
* @return status
|
||||
*/
|
||||
bool subghz_protocol_decoder_princeton_serialize(
|
||||
SubGhzProtocolStatus subghz_protocol_decoder_princeton_serialize(
|
||||
void* context,
|
||||
FlipperFormat* flipper_format,
|
||||
SubGhzRadioPreset* preset);
|
||||
@@ -95,9 +96,10 @@ bool subghz_protocol_decoder_princeton_serialize(
|
||||
* Deserialize data SubGhzProtocolDecoderPrinceton.
|
||||
* @param context Pointer to a SubGhzProtocolDecoderPrinceton instance
|
||||
* @param flipper_format Pointer to a FlipperFormat instance
|
||||
* @return true On success
|
||||
* @return status
|
||||
*/
|
||||
bool subghz_protocol_decoder_princeton_deserialize(void* context, FlipperFormat* flipper_format);
|
||||
SubGhzProtocolStatus
|
||||
subghz_protocol_decoder_princeton_deserialize(void* context, FlipperFormat* flipper_format);
|
||||
|
||||
/**
|
||||
* Getting a textual representation of the received data.
|
||||
|
Reference in New Issue
Block a user