Fix typo in subghz (#1467)
* fix typo across subghz Co-authored-by: あく <alleteam@gmail.com> Co-authored-by: Aleksandr Kutuzov <aku@plooks.com>
This commit is contained in:
		
							parent
							
								
									4c39dcbe0c
								
							
						
					
					
						commit
						712a48b5db
					
				| @ -72,11 +72,11 @@ typedef enum { | |||||||
|     SubGhzViewIdTestPacket, |     SubGhzViewIdTestPacket, | ||||||
| } SubGhzViewId; | } SubGhzViewId; | ||||||
| 
 | 
 | ||||||
| struct SubGhzPesetDefinition { | struct SubGhzPresetDefinition { | ||||||
|     string_t name; |     string_t name; | ||||||
|     uint32_t frequency; |     uint32_t frequency; | ||||||
|     uint8_t* data; |     uint8_t* data; | ||||||
|     size_t data_size; |     size_t data_size; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| typedef struct SubGhzPesetDefinition SubGhzPesetDefinition; | typedef struct SubGhzPresetDefinition SubGhzPresetDefinition; | ||||||
|  | |||||||
| @ -28,8 +28,8 @@ static bool subghz_scene_receiver_info_update_parser(void* context) { | |||||||
|             subghz->txrx->decoder_result, |             subghz->txrx->decoder_result, | ||||||
|             subghz_history_get_raw_data(subghz->txrx->history, subghz->txrx->idx_menu_chosen)); |             subghz_history_get_raw_data(subghz->txrx->history, subghz->txrx->idx_menu_chosen)); | ||||||
| 
 | 
 | ||||||
|         SubGhzPesetDefinition* preset = |         SubGhzPresetDefinition* preset = | ||||||
|             subghz_history_get_presset(subghz->txrx->history, subghz->txrx->idx_menu_chosen); |             subghz_history_get_preset_def(subghz->txrx->history, subghz->txrx->idx_menu_chosen); | ||||||
|         subghz_preset_init( |         subghz_preset_init( | ||||||
|             subghz, |             subghz, | ||||||
|             string_get_cstr(preset->name), |             string_get_cstr(preset->name), | ||||||
|  | |||||||
| @ -199,7 +199,7 @@ SubGhz* subghz_alloc() { | |||||||
|     //init Worker & Protocol & History & KeyBoard
 |     //init Worker & Protocol & History & KeyBoard
 | ||||||
|     subghz->lock = SubGhzLockOff; |     subghz->lock = SubGhzLockOff; | ||||||
|     subghz->txrx = malloc(sizeof(SubGhzTxRx)); |     subghz->txrx = malloc(sizeof(SubGhzTxRx)); | ||||||
|     subghz->txrx->preset = malloc(sizeof(SubGhzPesetDefinition)); |     subghz->txrx->preset = malloc(sizeof(SubGhzPresetDefinition)); | ||||||
|     string_init(subghz->txrx->preset->name); |     string_init(subghz->txrx->preset->name); | ||||||
|     subghz_preset_init( |     subghz_preset_init( | ||||||
|         subghz, "AM650", subghz_setting_get_default_frequency(subghz->setting), NULL, 0); |         subghz, "AM650", subghz_setting_get_default_frequency(subghz->setting), NULL, 0); | ||||||
|  | |||||||
| @ -12,7 +12,7 @@ typedef struct { | |||||||
|     string_t item_str; |     string_t item_str; | ||||||
|     FlipperFormat* flipper_string; |     FlipperFormat* flipper_string; | ||||||
|     uint8_t type; |     uint8_t type; | ||||||
|     SubGhzPesetDefinition* preset; |     SubGhzPresetDefinition* preset; | ||||||
| } SubGhzHistoryItem; | } SubGhzHistoryItem; | ||||||
| 
 | 
 | ||||||
| ARRAY_DEF(SubGhzHistoryItemArray, SubGhzHistoryItem, M_POD_OPLIST) | ARRAY_DEF(SubGhzHistoryItemArray, SubGhzHistoryItem, M_POD_OPLIST) | ||||||
| @ -61,7 +61,7 @@ uint32_t subghz_history_get_frequency(SubGhzHistory* instance, uint16_t idx) { | |||||||
|     return item->preset->frequency; |     return item->preset->frequency; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| SubGhzPesetDefinition* subghz_history_get_presset(SubGhzHistory* instance, uint16_t idx) { | SubGhzPresetDefinition* subghz_history_get_preset_def(SubGhzHistory* instance, uint16_t idx) { | ||||||
|     furi_assert(instance); |     furi_assert(instance); | ||||||
|     SubGhzHistoryItem* item = SubGhzHistoryItemArray_get(instance->history->data, idx); |     SubGhzHistoryItem* item = SubGhzHistoryItemArray_get(instance->history->data, idx); | ||||||
|     return item->preset; |     return item->preset; | ||||||
| @ -139,7 +139,7 @@ void subghz_history_get_text_item_menu(SubGhzHistory* instance, string_t output, | |||||||
| bool subghz_history_add_to_history( | bool subghz_history_add_to_history( | ||||||
|     SubGhzHistory* instance, |     SubGhzHistory* instance, | ||||||
|     void* context, |     void* context, | ||||||
|     SubGhzPesetDefinition* preset) { |     SubGhzPresetDefinition* preset) { | ||||||
|     furi_assert(instance); |     furi_assert(instance); | ||||||
|     furi_assert(context); |     furi_assert(context); | ||||||
| 
 | 
 | ||||||
| @ -159,7 +159,7 @@ bool subghz_history_add_to_history( | |||||||
|     string_t text; |     string_t text; | ||||||
|     string_init(text); |     string_init(text); | ||||||
|     SubGhzHistoryItem* item = SubGhzHistoryItemArray_push_raw(instance->history->data); |     SubGhzHistoryItem* item = SubGhzHistoryItemArray_push_raw(instance->history->data); | ||||||
|     item->preset = malloc(sizeof(SubGhzPesetDefinition)); |     item->preset = malloc(sizeof(SubGhzPresetDefinition)); | ||||||
|     item->type = decoder_base->protocol->type; |     item->type = decoder_base->protocol->type; | ||||||
|     item->preset->frequency = preset->frequency; |     item->preset->frequency = preset->frequency; | ||||||
|     string_init(item->preset->name); |     string_init(item->preset->name); | ||||||
|  | |||||||
| @ -35,7 +35,7 @@ void subghz_history_reset(SubGhzHistory* instance); | |||||||
|  */ |  */ | ||||||
| uint32_t subghz_history_get_frequency(SubGhzHistory* instance, uint16_t idx); | uint32_t subghz_history_get_frequency(SubGhzHistory* instance, uint16_t idx); | ||||||
| 
 | 
 | ||||||
| SubGhzPesetDefinition* subghz_history_get_presset(SubGhzHistory* instance, uint16_t idx); | SubGhzPresetDefinition* subghz_history_get_preset_def(SubGhzHistory* instance, uint16_t idx); | ||||||
| 
 | 
 | ||||||
| /** Get preset to history[idx]
 | /** Get preset to history[idx]
 | ||||||
|  *  |  *  | ||||||
| @ -88,13 +88,13 @@ bool subghz_history_get_text_space_left(SubGhzHistory* instance, string_t output | |||||||
|  *  |  *  | ||||||
|  * @param instance  - SubGhzHistory instance |  * @param instance  - SubGhzHistory instance | ||||||
|  * @param context    - SubGhzProtocolCommon context |  * @param context    - SubGhzProtocolCommon context | ||||||
|  * @param preset    - SubGhzPesetDefinition preset |  * @param preset    - SubGhzPresetDefinition preset | ||||||
|  * @return bool; |  * @return bool; | ||||||
|  */ |  */ | ||||||
| bool subghz_history_add_to_history( | bool subghz_history_add_to_history( | ||||||
|     SubGhzHistory* instance, |     SubGhzHistory* instance, | ||||||
|     void* context, |     void* context, | ||||||
|     SubGhzPesetDefinition* preset); |     SubGhzPresetDefinition* preset); | ||||||
| 
 | 
 | ||||||
| /** Get SubGhzProtocolCommonLoad to load into the protocol decoder bin data
 | /** Get SubGhzProtocolCommonLoad to load into the protocol decoder bin data
 | ||||||
|  *  |  *  | ||||||
|  | |||||||
| @ -49,7 +49,7 @@ struct SubGhzTxRx { | |||||||
|     SubGhzProtocolDecoderBase* decoder_result; |     SubGhzProtocolDecoderBase* decoder_result; | ||||||
|     FlipperFormat* fff_data; |     FlipperFormat* fff_data; | ||||||
| 
 | 
 | ||||||
|     SubGhzPesetDefinition* preset; |     SubGhzPresetDefinition* preset; | ||||||
|     SubGhzHistory* history; |     SubGhzHistory* history; | ||||||
|     uint16_t idx_menu_chosen; |     uint16_t idx_menu_chosen; | ||||||
|     SubGhzTxRxState txrx_state; |     SubGhzTxRxState txrx_state; | ||||||
|  | |||||||
| @ -23,7 +23,7 @@ void subghz_block_generic_get_preset_name(const char* preset_name, string_t pres | |||||||
| bool subghz_block_generic_serialize( | bool subghz_block_generic_serialize( | ||||||
|     SubGhzBlockGeneric* instance, |     SubGhzBlockGeneric* instance, | ||||||
|     FlipperFormat* flipper_format, |     FlipperFormat* flipper_format, | ||||||
|     SubGhzPesetDefinition* preset) { |     SubGhzPresetDefinition* preset) { | ||||||
|     furi_assert(instance); |     furi_assert(instance); | ||||||
|     bool res = false; |     bool res = false; | ||||||
|     string_t temp_str; |     string_t temp_str; | ||||||
|  | |||||||
| @ -31,13 +31,13 @@ void subghz_block_generic_get_preset_name(const char* preset_name, string_t pres | |||||||
|  * Serialize data SubGhzBlockGeneric. |  * Serialize data SubGhzBlockGeneric. | ||||||
|  * @param instance Pointer to a SubGhzBlockGeneric instance |  * @param instance Pointer to a SubGhzBlockGeneric instance | ||||||
|  * @param flipper_format Pointer to a FlipperFormat instance |  * @param flipper_format Pointer to a FlipperFormat instance | ||||||
|  * @param preset The modulation on which the signal was received, SubGhzPesetDefinition |  * @param preset The modulation on which the signal was received, SubGhzPresetDefinition | ||||||
|  * @return true On success |  * @return true On success | ||||||
|  */ |  */ | ||||||
| bool subghz_block_generic_serialize( | bool subghz_block_generic_serialize( | ||||||
|     SubGhzBlockGeneric* instance, |     SubGhzBlockGeneric* instance, | ||||||
|     FlipperFormat* flipper_format, |     FlipperFormat* flipper_format, | ||||||
|     SubGhzPesetDefinition* preset); |     SubGhzPresetDefinition* preset); | ||||||
| 
 | 
 | ||||||
| /**
 | /**
 | ||||||
|  * Deserialize data SubGhzBlockGeneric. |  * Deserialize data SubGhzBlockGeneric. | ||||||
|  | |||||||
| @ -26,7 +26,7 @@ bool subghz_protocol_decoder_base_get_string( | |||||||
| bool subghz_protocol_decoder_base_serialize( | bool subghz_protocol_decoder_base_serialize( | ||||||
|     SubGhzProtocolDecoderBase* decoder_base, |     SubGhzProtocolDecoderBase* decoder_base, | ||||||
|     FlipperFormat* flipper_format, |     FlipperFormat* flipper_format, | ||||||
|     SubGhzPesetDefinition* preset) { |     SubGhzPresetDefinition* preset) { | ||||||
|     bool status = false; |     bool status = false; | ||||||
| 
 | 
 | ||||||
|     if(decoder_base->protocol && decoder_base->protocol->decoder && |     if(decoder_base->protocol && decoder_base->protocol->decoder && | ||||||
|  | |||||||
| @ -43,13 +43,13 @@ bool subghz_protocol_decoder_base_get_string( | |||||||
|  * Serialize data SubGhzProtocolDecoderBase. |  * Serialize data SubGhzProtocolDecoderBase. | ||||||
|  * @param decoder_base Pointer to a SubGhzProtocolDecoderBase instance |  * @param decoder_base Pointer to a SubGhzProtocolDecoderBase instance | ||||||
|  * @param flipper_format Pointer to a FlipperFormat instance |  * @param flipper_format Pointer to a FlipperFormat instance | ||||||
|  * @param preset The modulation on which the signal was received, SubGhzPesetDefinition |  * @param preset The modulation on which the signal was received, SubGhzPresetDefinition | ||||||
|  * @return true On success |  * @return true On success | ||||||
|  */ |  */ | ||||||
| bool subghz_protocol_decoder_base_serialize( | bool subghz_protocol_decoder_base_serialize( | ||||||
|     SubGhzProtocolDecoderBase* decoder_base, |     SubGhzProtocolDecoderBase* decoder_base, | ||||||
|     FlipperFormat* flipper_format, |     FlipperFormat* flipper_format, | ||||||
|     SubGhzPesetDefinition* preset); |     SubGhzPresetDefinition* preset); | ||||||
| 
 | 
 | ||||||
| /**
 | /**
 | ||||||
|  * Deserialize data SubGhzProtocolDecoderBase. |  * Deserialize data SubGhzProtocolDecoderBase. | ||||||
|  | |||||||
| @ -284,7 +284,7 @@ uint8_t subghz_protocol_decoder_came_get_hash_data(void* context) { | |||||||
| bool subghz_protocol_decoder_came_serialize( | bool subghz_protocol_decoder_came_serialize( | ||||||
|     void* context, |     void* context, | ||||||
|     FlipperFormat* flipper_format, |     FlipperFormat* flipper_format, | ||||||
|     SubGhzPesetDefinition* preset) { |     SubGhzPresetDefinition* preset) { | ||||||
|     furi_assert(context); |     furi_assert(context); | ||||||
|     SubGhzProtocolDecoderCame* instance = context; |     SubGhzProtocolDecoderCame* instance = context; | ||||||
|     return subghz_block_generic_serialize(&instance->generic, flipper_format, preset); |     return subghz_block_generic_serialize(&instance->generic, flipper_format, preset); | ||||||
|  | |||||||
| @ -83,13 +83,13 @@ uint8_t subghz_protocol_decoder_came_get_hash_data(void* context); | |||||||
|  * Serialize data SubGhzProtocolDecoderCame. |  * Serialize data SubGhzProtocolDecoderCame. | ||||||
|  * @param context Pointer to a SubGhzProtocolDecoderCame instance |  * @param context Pointer to a SubGhzProtocolDecoderCame instance | ||||||
|  * @param flipper_format Pointer to a FlipperFormat instance |  * @param flipper_format Pointer to a FlipperFormat instance | ||||||
|  * @param preset The modulation on which the signal was received, SubGhzPesetDefinition |  * @param preset The modulation on which the signal was received, SubGhzPresetDefinition | ||||||
|  * @return true On success |  * @return true On success | ||||||
|  */ |  */ | ||||||
| bool subghz_protocol_decoder_came_serialize( | bool subghz_protocol_decoder_came_serialize( | ||||||
|     void* context, |     void* context, | ||||||
|     FlipperFormat* flipper_format, |     FlipperFormat* flipper_format, | ||||||
|     SubGhzPesetDefinition* preset); |     SubGhzPresetDefinition* preset); | ||||||
| 
 | 
 | ||||||
| /**
 | /**
 | ||||||
|  * Deserialize data SubGhzProtocolDecoderCame. |  * Deserialize data SubGhzProtocolDecoderCame. | ||||||
|  | |||||||
| @ -301,7 +301,7 @@ uint8_t subghz_protocol_decoder_came_atomo_get_hash_data(void* context) { | |||||||
| bool subghz_protocol_decoder_came_atomo_serialize( | bool subghz_protocol_decoder_came_atomo_serialize( | ||||||
|     void* context, |     void* context, | ||||||
|     FlipperFormat* flipper_format, |     FlipperFormat* flipper_format, | ||||||
|     SubGhzPesetDefinition* preset) { |     SubGhzPresetDefinition* preset) { | ||||||
|     furi_assert(context); |     furi_assert(context); | ||||||
|     SubGhzProtocolDecoderCameAtomo* instance = context; |     SubGhzProtocolDecoderCameAtomo* instance = context; | ||||||
|     return subghz_block_generic_serialize(&instance->generic, flipper_format, preset); |     return subghz_block_generic_serialize(&instance->generic, flipper_format, preset); | ||||||
|  | |||||||
| @ -48,13 +48,13 @@ uint8_t subghz_protocol_decoder_came_atomo_get_hash_data(void* context); | |||||||
|  * Serialize data SubGhzProtocolDecoderCameAtomo. |  * Serialize data SubGhzProtocolDecoderCameAtomo. | ||||||
|  * @param context Pointer to a SubGhzProtocolDecoderCameAtomo instance |  * @param context Pointer to a SubGhzProtocolDecoderCameAtomo instance | ||||||
|  * @param flipper_format Pointer to a FlipperFormat instance |  * @param flipper_format Pointer to a FlipperFormat instance | ||||||
|  * @param preset The modulation on which the signal was received, SubGhzPesetDefinition |  * @param preset The modulation on which the signal was received, SubGhzPresetDefinition | ||||||
|  * @return true On success |  * @return true On success | ||||||
|  */ |  */ | ||||||
| bool subghz_protocol_decoder_came_atomo_serialize( | bool subghz_protocol_decoder_came_atomo_serialize( | ||||||
|     void* context, |     void* context, | ||||||
|     FlipperFormat* flipper_format, |     FlipperFormat* flipper_format, | ||||||
|     SubGhzPesetDefinition* preset); |     SubGhzPresetDefinition* preset); | ||||||
| 
 | 
 | ||||||
| /**
 | /**
 | ||||||
|  * Deserialize data SubGhzProtocolDecoderCameAtomo. |  * Deserialize data SubGhzProtocolDecoderCameAtomo. | ||||||
|  | |||||||
| @ -418,7 +418,7 @@ uint8_t subghz_protocol_decoder_came_twee_get_hash_data(void* context) { | |||||||
| bool subghz_protocol_decoder_came_twee_serialize( | bool subghz_protocol_decoder_came_twee_serialize( | ||||||
|     void* context, |     void* context, | ||||||
|     FlipperFormat* flipper_format, |     FlipperFormat* flipper_format, | ||||||
|     SubGhzPesetDefinition* preset) { |     SubGhzPresetDefinition* preset) { | ||||||
|     furi_assert(context); |     furi_assert(context); | ||||||
|     SubGhzProtocolDecoderCameTwee* instance = context; |     SubGhzProtocolDecoderCameTwee* instance = context; | ||||||
|     return subghz_block_generic_serialize(&instance->generic, flipper_format, preset); |     return subghz_block_generic_serialize(&instance->generic, flipper_format, preset); | ||||||
|  | |||||||
| @ -83,13 +83,13 @@ uint8_t subghz_protocol_decoder_came_twee_get_hash_data(void* context); | |||||||
|  * Serialize data SubGhzProtocolDecoderCameTwee. |  * Serialize data SubGhzProtocolDecoderCameTwee. | ||||||
|  * @param context Pointer to a SubGhzProtocolDecoderCameTwee instance |  * @param context Pointer to a SubGhzProtocolDecoderCameTwee instance | ||||||
|  * @param flipper_format Pointer to a FlipperFormat instance |  * @param flipper_format Pointer to a FlipperFormat instance | ||||||
|  * @param preset The modulation on which the signal was received, SubGhzPesetDefinition |  * @param preset The modulation on which the signal was received, SubGhzPresetDefinition | ||||||
|  * @return true On success |  * @return true On success | ||||||
|  */ |  */ | ||||||
| bool subghz_protocol_decoder_came_twee_serialize( | bool subghz_protocol_decoder_came_twee_serialize( | ||||||
|     void* context, |     void* context, | ||||||
|     FlipperFormat* flipper_format, |     FlipperFormat* flipper_format, | ||||||
|     SubGhzPesetDefinition* preset); |     SubGhzPresetDefinition* preset); | ||||||
| 
 | 
 | ||||||
| /**
 | /**
 | ||||||
|  * Deserialize data SubGhzProtocolDecoderCameTwee. |  * Deserialize data SubGhzProtocolDecoderCameTwee. | ||||||
|  | |||||||
| @ -423,7 +423,7 @@ uint8_t subghz_protocol_decoder_chamb_code_get_hash_data(void* context) { | |||||||
| bool subghz_protocol_decoder_chamb_code_serialize( | bool subghz_protocol_decoder_chamb_code_serialize( | ||||||
|     void* context, |     void* context, | ||||||
|     FlipperFormat* flipper_format, |     FlipperFormat* flipper_format, | ||||||
|     SubGhzPesetDefinition* preset) { |     SubGhzPresetDefinition* preset) { | ||||||
|     furi_assert(context); |     furi_assert(context); | ||||||
|     SubGhzProtocolDecoderChamb_Code* instance = context; |     SubGhzProtocolDecoderChamb_Code* instance = context; | ||||||
|     return subghz_block_generic_serialize(&instance->generic, flipper_format, preset); |     return subghz_block_generic_serialize(&instance->generic, flipper_format, preset); | ||||||
|  | |||||||
| @ -83,13 +83,13 @@ uint8_t subghz_protocol_decoder_chamb_code_get_hash_data(void* context); | |||||||
|  * Serialize data SubGhzProtocolDecoderChamb_Code. |  * Serialize data SubGhzProtocolDecoderChamb_Code. | ||||||
|  * @param context Pointer to a SubGhzProtocolDecoderChamb_Code instance |  * @param context Pointer to a SubGhzProtocolDecoderChamb_Code instance | ||||||
|  * @param flipper_format Pointer to a FlipperFormat instance |  * @param flipper_format Pointer to a FlipperFormat instance | ||||||
|  * @param preset The modulation on which the signal was received, SubGhzPesetDefinition |  * @param preset The modulation on which the signal was received, SubGhzPresetDefinition | ||||||
|  * @return true On success |  * @return true On success | ||||||
|  */ |  */ | ||||||
| bool subghz_protocol_decoder_chamb_code_serialize( | bool subghz_protocol_decoder_chamb_code_serialize( | ||||||
|     void* context, |     void* context, | ||||||
|     FlipperFormat* flipper_format, |     FlipperFormat* flipper_format, | ||||||
|     SubGhzPesetDefinition* preset); |     SubGhzPresetDefinition* preset); | ||||||
| 
 | 
 | ||||||
| /**
 | /**
 | ||||||
|  * Deserialize data SubGhzProtocolDecoderChamb_Code. |  * Deserialize data SubGhzProtocolDecoderChamb_Code. | ||||||
|  | |||||||
| @ -183,7 +183,7 @@ uint8_t subghz_protocol_decoder_faac_slh_get_hash_data(void* context) { | |||||||
| bool subghz_protocol_decoder_faac_slh_serialize( | bool subghz_protocol_decoder_faac_slh_serialize( | ||||||
|     void* context, |     void* context, | ||||||
|     FlipperFormat* flipper_format, |     FlipperFormat* flipper_format, | ||||||
|     SubGhzPesetDefinition* preset) { |     SubGhzPresetDefinition* preset) { | ||||||
|     furi_assert(context); |     furi_assert(context); | ||||||
|     SubGhzProtocolDecoderFaacSLH* instance = context; |     SubGhzProtocolDecoderFaacSLH* instance = context; | ||||||
|     return subghz_block_generic_serialize(&instance->generic, flipper_format, preset); |     return subghz_block_generic_serialize(&instance->generic, flipper_format, preset); | ||||||
|  | |||||||
| @ -49,13 +49,13 @@ uint8_t subghz_protocol_decoder_faac_slh_get_hash_data(void* context); | |||||||
|  * Serialize data SubGhzProtocolDecoderFaacSLH. |  * Serialize data SubGhzProtocolDecoderFaacSLH. | ||||||
|  * @param context Pointer to a SubGhzProtocolDecoderFaacSLH instance |  * @param context Pointer to a SubGhzProtocolDecoderFaacSLH instance | ||||||
|  * @param flipper_format Pointer to a FlipperFormat instance |  * @param flipper_format Pointer to a FlipperFormat instance | ||||||
|  * @param preset The modulation on which the signal was received, SubGhzPesetDefinition |  * @param preset The modulation on which the signal was received, SubGhzPresetDefinition | ||||||
|  * @return true On success |  * @return true On success | ||||||
|  */ |  */ | ||||||
| bool subghz_protocol_decoder_faac_slh_serialize( | bool subghz_protocol_decoder_faac_slh_serialize( | ||||||
|     void* context, |     void* context, | ||||||
|     FlipperFormat* flipper_format, |     FlipperFormat* flipper_format, | ||||||
|     SubGhzPesetDefinition* preset); |     SubGhzPresetDefinition* preset); | ||||||
| 
 | 
 | ||||||
| /**
 | /**
 | ||||||
|  * Deserialize data SubGhzProtocolDecoderFaacSLH. |  * Deserialize data SubGhzProtocolDecoderFaacSLH. | ||||||
|  | |||||||
| @ -289,7 +289,7 @@ uint8_t subghz_protocol_decoder_gate_tx_get_hash_data(void* context) { | |||||||
| bool subghz_protocol_decoder_gate_tx_serialize( | bool subghz_protocol_decoder_gate_tx_serialize( | ||||||
|     void* context, |     void* context, | ||||||
|     FlipperFormat* flipper_format, |     FlipperFormat* flipper_format, | ||||||
|     SubGhzPesetDefinition* preset) { |     SubGhzPresetDefinition* preset) { | ||||||
|     furi_assert(context); |     furi_assert(context); | ||||||
|     SubGhzProtocolDecoderGateTx* instance = context; |     SubGhzProtocolDecoderGateTx* instance = context; | ||||||
|     return subghz_block_generic_serialize(&instance->generic, flipper_format, preset); |     return subghz_block_generic_serialize(&instance->generic, flipper_format, preset); | ||||||
|  | |||||||
| @ -83,13 +83,13 @@ uint8_t subghz_protocol_decoder_gate_tx_get_hash_data(void* context); | |||||||
|  * Serialize data SubGhzProtocolDecoderGateTx. |  * Serialize data SubGhzProtocolDecoderGateTx. | ||||||
|  * @param context Pointer to a SubGhzProtocolDecoderGateTx instance |  * @param context Pointer to a SubGhzProtocolDecoderGateTx instance | ||||||
|  * @param flipper_format Pointer to a FlipperFormat instance |  * @param flipper_format Pointer to a FlipperFormat instance | ||||||
|  * @param preset The modulation on which the signal was received, SubGhzPesetDefinition |  * @param preset The modulation on which the signal was received, SubGhzPresetDefinition | ||||||
|  * @return true On success |  * @return true On success | ||||||
|  */ |  */ | ||||||
| bool subghz_protocol_decoder_gate_tx_serialize( | bool subghz_protocol_decoder_gate_tx_serialize( | ||||||
|     void* context, |     void* context, | ||||||
|     FlipperFormat* flipper_format, |     FlipperFormat* flipper_format, | ||||||
|     SubGhzPesetDefinition* preset); |     SubGhzPresetDefinition* preset); | ||||||
| 
 | 
 | ||||||
| /**
 | /**
 | ||||||
|  * Deserialize data SubGhzProtocolDecoderGateTx. |  * Deserialize data SubGhzProtocolDecoderGateTx. | ||||||
|  | |||||||
| @ -322,7 +322,7 @@ uint8_t subghz_protocol_decoder_holtek_get_hash_data(void* context) { | |||||||
| bool subghz_protocol_decoder_holtek_serialize( | bool subghz_protocol_decoder_holtek_serialize( | ||||||
|     void* context, |     void* context, | ||||||
|     FlipperFormat* flipper_format, |     FlipperFormat* flipper_format, | ||||||
|     SubGhzPesetDefinition* preset) { |     SubGhzPresetDefinition* preset) { | ||||||
|     furi_assert(context); |     furi_assert(context); | ||||||
|     SubGhzProtocolDecoderHoltek* instance = context; |     SubGhzProtocolDecoderHoltek* instance = context; | ||||||
|     return subghz_block_generic_serialize(&instance->generic, flipper_format, preset); |     return subghz_block_generic_serialize(&instance->generic, flipper_format, preset); | ||||||
|  | |||||||
| @ -83,13 +83,13 @@ uint8_t subghz_protocol_decoder_holtek_get_hash_data(void* context); | |||||||
|  * Serialize data SubGhzProtocolDecoderHoltek. |  * Serialize data SubGhzProtocolDecoderHoltek. | ||||||
|  * @param context Pointer to a SubGhzProtocolDecoderHoltek instance |  * @param context Pointer to a SubGhzProtocolDecoderHoltek instance | ||||||
|  * @param flipper_format Pointer to a FlipperFormat instance |  * @param flipper_format Pointer to a FlipperFormat instance | ||||||
|  * @param preset The modulation on which the signal was received, SubGhzPesetDefinition |  * @param preset The modulation on which the signal was received, SubGhzPresetDefinition | ||||||
|  * @return true On success |  * @return true On success | ||||||
|  */ |  */ | ||||||
| bool subghz_protocol_decoder_holtek_serialize( | bool subghz_protocol_decoder_holtek_serialize( | ||||||
|     void* context, |     void* context, | ||||||
|     FlipperFormat* flipper_format, |     FlipperFormat* flipper_format, | ||||||
|     SubGhzPesetDefinition* preset); |     SubGhzPresetDefinition* preset); | ||||||
| 
 | 
 | ||||||
| /**
 | /**
 | ||||||
|  * Deserialize data SubGhzProtocolDecoderHoltek. |  * Deserialize data SubGhzProtocolDecoderHoltek. | ||||||
|  | |||||||
| @ -310,7 +310,7 @@ uint8_t subghz_protocol_decoder_hormann_get_hash_data(void* context) { | |||||||
| bool subghz_protocol_decoder_hormann_serialize( | bool subghz_protocol_decoder_hormann_serialize( | ||||||
|     void* context, |     void* context, | ||||||
|     FlipperFormat* flipper_format, |     FlipperFormat* flipper_format, | ||||||
|     SubGhzPesetDefinition* preset) { |     SubGhzPresetDefinition* preset) { | ||||||
|     furi_assert(context); |     furi_assert(context); | ||||||
|     SubGhzProtocolDecoderHormann* instance = context; |     SubGhzProtocolDecoderHormann* instance = context; | ||||||
|     return subghz_block_generic_serialize(&instance->generic, flipper_format, preset); |     return subghz_block_generic_serialize(&instance->generic, flipper_format, preset); | ||||||
|  | |||||||
| @ -83,13 +83,13 @@ uint8_t subghz_protocol_decoder_hormann_get_hash_data(void* context); | |||||||
|  * Serialize data SubGhzProtocolDecoderHormann. |  * Serialize data SubGhzProtocolDecoderHormann. | ||||||
|  * @param context Pointer to a SubGhzProtocolDecoderHormann instance |  * @param context Pointer to a SubGhzProtocolDecoderHormann instance | ||||||
|  * @param flipper_format Pointer to a FlipperFormat instance |  * @param flipper_format Pointer to a FlipperFormat instance | ||||||
|  * @param preset The modulation on which the signal was received, SubGhzPesetDefinition |  * @param preset The modulation on which the signal was received, SubGhzPresetDefinition | ||||||
|  * @return true On success |  * @return true On success | ||||||
|  */ |  */ | ||||||
| bool subghz_protocol_decoder_hormann_serialize( | bool subghz_protocol_decoder_hormann_serialize( | ||||||
|     void* context, |     void* context, | ||||||
|     FlipperFormat* flipper_format, |     FlipperFormat* flipper_format, | ||||||
|     SubGhzPesetDefinition* preset); |     SubGhzPresetDefinition* preset); | ||||||
| 
 | 
 | ||||||
| /**
 | /**
 | ||||||
|  * Deserialize data SubGhzProtocolDecoderHormann. |  * Deserialize data SubGhzProtocolDecoderHormann. | ||||||
|  | |||||||
| @ -182,7 +182,7 @@ uint8_t subghz_protocol_decoder_ido_get_hash_data(void* context) { | |||||||
| bool subghz_protocol_decoder_ido_serialize( | bool subghz_protocol_decoder_ido_serialize( | ||||||
|     void* context, |     void* context, | ||||||
|     FlipperFormat* flipper_format, |     FlipperFormat* flipper_format, | ||||||
|     SubGhzPesetDefinition* preset) { |     SubGhzPresetDefinition* preset) { | ||||||
|     furi_assert(context); |     furi_assert(context); | ||||||
|     SubGhzProtocolDecoderIDo* instance = context; |     SubGhzProtocolDecoderIDo* instance = context; | ||||||
|     return subghz_block_generic_serialize(&instance->generic, flipper_format, preset); |     return subghz_block_generic_serialize(&instance->generic, flipper_format, preset); | ||||||
|  | |||||||
| @ -49,13 +49,13 @@ uint8_t subghz_protocol_decoder_ido_get_hash_data(void* context); | |||||||
|  * Serialize data SubGhzProtocolDecoderIDo. |  * Serialize data SubGhzProtocolDecoderIDo. | ||||||
|  * @param context Pointer to a SubGhzProtocolDecoderIDo instance |  * @param context Pointer to a SubGhzProtocolDecoderIDo instance | ||||||
|  * @param flipper_format Pointer to a FlipperFormat instance |  * @param flipper_format Pointer to a FlipperFormat instance | ||||||
|  * @param preset The modulation on which the signal was received, SubGhzPesetDefinition |  * @param preset The modulation on which the signal was received, SubGhzPresetDefinition | ||||||
|  * @return true On success |  * @return true On success | ||||||
|  */ |  */ | ||||||
| bool subghz_protocol_decoder_ido_serialize( | bool subghz_protocol_decoder_ido_serialize( | ||||||
|     void* context, |     void* context, | ||||||
|     FlipperFormat* flipper_format, |     FlipperFormat* flipper_format, | ||||||
|     SubGhzPesetDefinition* preset); |     SubGhzPresetDefinition* preset); | ||||||
| 
 | 
 | ||||||
| /**
 | /**
 | ||||||
|  * Deserialize data SubGhzProtocolDecoderIDo. |  * Deserialize data SubGhzProtocolDecoderIDo. | ||||||
|  | |||||||
| @ -174,7 +174,7 @@ bool subghz_protocol_keeloq_create_data( | |||||||
|     uint8_t btn, |     uint8_t btn, | ||||||
|     uint16_t cnt, |     uint16_t cnt, | ||||||
|     const char* manufacture_name, |     const char* manufacture_name, | ||||||
|     SubGhzPesetDefinition* preset) { |     SubGhzPresetDefinition* preset) { | ||||||
|     furi_assert(context); |     furi_assert(context); | ||||||
|     SubGhzProtocolEncoderKeeloq* instance = context; |     SubGhzProtocolEncoderKeeloq* instance = context; | ||||||
|     instance->generic.serial = serial; |     instance->generic.serial = serial; | ||||||
| @ -631,7 +631,7 @@ uint8_t subghz_protocol_decoder_keeloq_get_hash_data(void* context) { | |||||||
| bool subghz_protocol_decoder_keeloq_serialize( | bool subghz_protocol_decoder_keeloq_serialize( | ||||||
|     void* context, |     void* context, | ||||||
|     FlipperFormat* flipper_format, |     FlipperFormat* flipper_format, | ||||||
|     SubGhzPesetDefinition* preset) { |     SubGhzPresetDefinition* preset) { | ||||||
|     furi_assert(context); |     furi_assert(context); | ||||||
|     SubGhzProtocolDecoderKeeloq* instance = context; |     SubGhzProtocolDecoderKeeloq* instance = context; | ||||||
|     subghz_protocol_keeloq_check_remote_controller( |     subghz_protocol_keeloq_check_remote_controller( | ||||||
|  | |||||||
| @ -32,7 +32,7 @@ void subghz_protocol_encoder_keeloq_free(void* context); | |||||||
|  * @param btn Button number, 4 bit |  * @param btn Button number, 4 bit | ||||||
|  * @param cnt Container value, 16 bit |  * @param cnt Container value, 16 bit | ||||||
|  * @param manufacture_name Name of manufacturer's key |  * @param manufacture_name Name of manufacturer's key | ||||||
|  * @param preset Modulation, SubGhzPesetDefinition |  * @param preset Modulation, SubGhzPresetDefinition | ||||||
|  * @return true On success |  * @return true On success | ||||||
|  */ |  */ | ||||||
| bool subghz_protocol_keeloq_create_data( | bool subghz_protocol_keeloq_create_data( | ||||||
| @ -42,7 +42,7 @@ bool subghz_protocol_keeloq_create_data( | |||||||
|     uint8_t btn, |     uint8_t btn, | ||||||
|     uint16_t cnt, |     uint16_t cnt, | ||||||
|     const char* manufacture_name, |     const char* manufacture_name, | ||||||
|     SubGhzPesetDefinition* preset); |     SubGhzPresetDefinition* preset); | ||||||
| 
 | 
 | ||||||
| /**
 | /**
 | ||||||
|  * Deserialize and generating an upload to send. |  * Deserialize and generating an upload to send. | ||||||
| @ -103,13 +103,13 @@ uint8_t subghz_protocol_decoder_keeloq_get_hash_data(void* context); | |||||||
|  * Serialize data SubGhzProtocolDecoderKeeloq. |  * Serialize data SubGhzProtocolDecoderKeeloq. | ||||||
|  * @param context Pointer to a SubGhzProtocolDecoderKeeloq instance |  * @param context Pointer to a SubGhzProtocolDecoderKeeloq instance | ||||||
|  * @param flipper_format Pointer to a FlipperFormat instance |  * @param flipper_format Pointer to a FlipperFormat instance | ||||||
|  * @param preset The modulation on which the signal was received, SubGhzPesetDefinition |  * @param preset The modulation on which the signal was received, SubGhzPresetDefinition | ||||||
|  * @return true On success |  * @return true On success | ||||||
|  */ |  */ | ||||||
| bool subghz_protocol_decoder_keeloq_serialize( | bool subghz_protocol_decoder_keeloq_serialize( | ||||||
|     void* context, |     void* context, | ||||||
|     FlipperFormat* flipper_format, |     FlipperFormat* flipper_format, | ||||||
|     SubGhzPesetDefinition* preset); |     SubGhzPresetDefinition* preset); | ||||||
| 
 | 
 | ||||||
| /**
 | /**
 | ||||||
|  * Deserialize data SubGhzProtocolDecoderKeeloq. |  * Deserialize data SubGhzProtocolDecoderKeeloq. | ||||||
|  | |||||||
| @ -233,7 +233,7 @@ uint8_t subghz_protocol_decoder_kia_get_hash_data(void* context) { | |||||||
| bool subghz_protocol_decoder_kia_serialize( | bool subghz_protocol_decoder_kia_serialize( | ||||||
|     void* context, |     void* context, | ||||||
|     FlipperFormat* flipper_format, |     FlipperFormat* flipper_format, | ||||||
|     SubGhzPesetDefinition* preset) { |     SubGhzPresetDefinition* preset) { | ||||||
|     furi_assert(context); |     furi_assert(context); | ||||||
|     SubGhzProtocolDecoderKIA* instance = context; |     SubGhzProtocolDecoderKIA* instance = context; | ||||||
|     return subghz_block_generic_serialize(&instance->generic, flipper_format, preset); |     return subghz_block_generic_serialize(&instance->generic, flipper_format, preset); | ||||||
|  | |||||||
| @ -49,13 +49,13 @@ uint8_t subghz_protocol_decoder_kia_get_hash_data(void* context); | |||||||
|  * Serialize data SubGhzProtocolDecoderKIA. |  * Serialize data SubGhzProtocolDecoderKIA. | ||||||
|  * @param context Pointer to a SubGhzProtocolDecoderKIA instance |  * @param context Pointer to a SubGhzProtocolDecoderKIA instance | ||||||
|  * @param flipper_format Pointer to a FlipperFormat instance |  * @param flipper_format Pointer to a FlipperFormat instance | ||||||
|  * @param preset The modulation on which the signal was received, SubGhzPesetDefinition |  * @param preset The modulation on which the signal was received, SubGhzPresetDefinition | ||||||
|  * @return true On success |  * @return true On success | ||||||
|  */ |  */ | ||||||
| bool subghz_protocol_decoder_kia_serialize( | bool subghz_protocol_decoder_kia_serialize( | ||||||
|     void* context, |     void* context, | ||||||
|     FlipperFormat* flipper_format, |     FlipperFormat* flipper_format, | ||||||
|     SubGhzPesetDefinition* preset); |     SubGhzPresetDefinition* preset); | ||||||
| 
 | 
 | ||||||
| /**
 | /**
 | ||||||
|  * Deserialize data SubGhzProtocolDecoderKIA. |  * Deserialize data SubGhzProtocolDecoderKIA. | ||||||
|  | |||||||
| @ -299,7 +299,7 @@ uint8_t subghz_protocol_decoder_linear_get_hash_data(void* context) { | |||||||
| bool subghz_protocol_decoder_linear_serialize( | bool subghz_protocol_decoder_linear_serialize( | ||||||
|     void* context, |     void* context, | ||||||
|     FlipperFormat* flipper_format, |     FlipperFormat* flipper_format, | ||||||
|     SubGhzPesetDefinition* preset) { |     SubGhzPresetDefinition* preset) { | ||||||
|     furi_assert(context); |     furi_assert(context); | ||||||
|     SubGhzProtocolDecoderLinear* instance = context; |     SubGhzProtocolDecoderLinear* instance = context; | ||||||
|     return subghz_block_generic_serialize(&instance->generic, flipper_format, preset); |     return subghz_block_generic_serialize(&instance->generic, flipper_format, preset); | ||||||
|  | |||||||
| @ -83,13 +83,13 @@ uint8_t subghz_protocol_decoder_linear_get_hash_data(void* context); | |||||||
|  * Serialize data SubGhzProtocolDecoderLinear. |  * Serialize data SubGhzProtocolDecoderLinear. | ||||||
|  * @param context Pointer to a SubGhzProtocolDecoderLinear instance |  * @param context Pointer to a SubGhzProtocolDecoderLinear instance | ||||||
|  * @param flipper_format Pointer to a FlipperFormat instance |  * @param flipper_format Pointer to a FlipperFormat instance | ||||||
|  * @param preset The modulation on which the signal was received, SubGhzPesetDefinition |  * @param preset The modulation on which the signal was received, SubGhzPresetDefinition | ||||||
|  * @return true On success |  * @return true On success | ||||||
|  */ |  */ | ||||||
| bool subghz_protocol_decoder_linear_serialize( | bool subghz_protocol_decoder_linear_serialize( | ||||||
|     void* context, |     void* context, | ||||||
|     FlipperFormat* flipper_format, |     FlipperFormat* flipper_format, | ||||||
|     SubGhzPesetDefinition* preset); |     SubGhzPresetDefinition* preset); | ||||||
| 
 | 
 | ||||||
| /**
 | /**
 | ||||||
|  * Deserialize data SubGhzProtocolDecoderLinear. |  * Deserialize data SubGhzProtocolDecoderLinear. | ||||||
|  | |||||||
| @ -380,7 +380,7 @@ uint8_t subghz_protocol_decoder_megacode_get_hash_data(void* context) { | |||||||
| bool subghz_protocol_decoder_megacode_serialize( | bool subghz_protocol_decoder_megacode_serialize( | ||||||
|     void* context, |     void* context, | ||||||
|     FlipperFormat* flipper_format, |     FlipperFormat* flipper_format, | ||||||
|     SubGhzPesetDefinition* preset) { |     SubGhzPresetDefinition* preset) { | ||||||
|     furi_assert(context); |     furi_assert(context); | ||||||
|     SubGhzProtocolDecoderMegaCode* instance = context; |     SubGhzProtocolDecoderMegaCode* instance = context; | ||||||
|     return subghz_block_generic_serialize(&instance->generic, flipper_format, preset); |     return subghz_block_generic_serialize(&instance->generic, flipper_format, preset); | ||||||
|  | |||||||
| @ -83,13 +83,13 @@ uint8_t subghz_protocol_decoder_megacode_get_hash_data(void* context); | |||||||
|  * Serialize data SubGhzProtocolDecoderMegaCode. |  * Serialize data SubGhzProtocolDecoderMegaCode. | ||||||
|  * @param context Pointer to a SubGhzProtocolDecoderMegaCode instance |  * @param context Pointer to a SubGhzProtocolDecoderMegaCode instance | ||||||
|  * @param flipper_format Pointer to a FlipperFormat instance |  * @param flipper_format Pointer to a FlipperFormat instance | ||||||
|  * @param preset The modulation on which the signal was received, SubGhzPesetDefinition |  * @param preset The modulation on which the signal was received, SubGhzPresetDefinition | ||||||
|  * @return true On success |  * @return true On success | ||||||
|  */ |  */ | ||||||
| bool subghz_protocol_decoder_megacode_serialize( | bool subghz_protocol_decoder_megacode_serialize( | ||||||
|     void* context, |     void* context, | ||||||
|     FlipperFormat* flipper_format, |     FlipperFormat* flipper_format, | ||||||
|     SubGhzPesetDefinition* preset); |     SubGhzPresetDefinition* preset); | ||||||
| 
 | 
 | ||||||
| /**
 | /**
 | ||||||
|  * Deserialize data SubGhzProtocolDecoderMegaCode. |  * Deserialize data SubGhzProtocolDecoderMegaCode. | ||||||
|  | |||||||
| @ -342,7 +342,7 @@ uint8_t subghz_protocol_decoder_nero_radio_get_hash_data(void* context) { | |||||||
| bool subghz_protocol_decoder_nero_radio_serialize( | bool subghz_protocol_decoder_nero_radio_serialize( | ||||||
|     void* context, |     void* context, | ||||||
|     FlipperFormat* flipper_format, |     FlipperFormat* flipper_format, | ||||||
|     SubGhzPesetDefinition* preset) { |     SubGhzPresetDefinition* preset) { | ||||||
|     furi_assert(context); |     furi_assert(context); | ||||||
|     SubGhzProtocolDecoderNeroRadio* instance = context; |     SubGhzProtocolDecoderNeroRadio* instance = context; | ||||||
|     return subghz_block_generic_serialize(&instance->generic, flipper_format, preset); |     return subghz_block_generic_serialize(&instance->generic, flipper_format, preset); | ||||||
|  | |||||||
| @ -83,13 +83,13 @@ uint8_t subghz_protocol_decoder_nero_radio_get_hash_data(void* context); | |||||||
|  * Serialize data SubGhzProtocolDecoderNeroRadio. |  * Serialize data SubGhzProtocolDecoderNeroRadio. | ||||||
|  * @param context Pointer to a SubGhzProtocolDecoderNeroRadio instance |  * @param context Pointer to a SubGhzProtocolDecoderNeroRadio instance | ||||||
|  * @param flipper_format Pointer to a FlipperFormat instance |  * @param flipper_format Pointer to a FlipperFormat instance | ||||||
|  * @param preset The modulation on which the signal was received, SubGhzPesetDefinition |  * @param preset The modulation on which the signal was received, SubGhzPresetDefinition | ||||||
|  * @return true On success |  * @return true On success | ||||||
|  */ |  */ | ||||||
| bool subghz_protocol_decoder_nero_radio_serialize( | bool subghz_protocol_decoder_nero_radio_serialize( | ||||||
|     void* context, |     void* context, | ||||||
|     FlipperFormat* flipper_format, |     FlipperFormat* flipper_format, | ||||||
|     SubGhzPesetDefinition* preset); |     SubGhzPresetDefinition* preset); | ||||||
| 
 | 
 | ||||||
| /**
 | /**
 | ||||||
|  * Deserialize data SubGhzProtocolDecoderNeroRadio. |  * Deserialize data SubGhzProtocolDecoderNeroRadio. | ||||||
|  | |||||||
| @ -327,7 +327,7 @@ uint8_t subghz_protocol_decoder_nero_sketch_get_hash_data(void* context) { | |||||||
| bool subghz_protocol_decoder_nero_sketch_serialize( | bool subghz_protocol_decoder_nero_sketch_serialize( | ||||||
|     void* context, |     void* context, | ||||||
|     FlipperFormat* flipper_format, |     FlipperFormat* flipper_format, | ||||||
|     SubGhzPesetDefinition* preset) { |     SubGhzPresetDefinition* preset) { | ||||||
|     furi_assert(context); |     furi_assert(context); | ||||||
|     SubGhzProtocolDecoderNeroSketch* instance = context; |     SubGhzProtocolDecoderNeroSketch* instance = context; | ||||||
|     return subghz_block_generic_serialize(&instance->generic, flipper_format, preset); |     return subghz_block_generic_serialize(&instance->generic, flipper_format, preset); | ||||||
|  | |||||||
| @ -83,13 +83,13 @@ uint8_t subghz_protocol_decoder_nero_sketch_get_hash_data(void* context); | |||||||
|  * Serialize data SubGhzProtocolDecoderNeroSketch. |  * Serialize data SubGhzProtocolDecoderNeroSketch. | ||||||
|  * @param context Pointer to a SubGhzProtocolDecoderNeroSketch instance |  * @param context Pointer to a SubGhzProtocolDecoderNeroSketch instance | ||||||
|  * @param flipper_format Pointer to a FlipperFormat instance |  * @param flipper_format Pointer to a FlipperFormat instance | ||||||
|  * @param preset The modulation on which the signal was received, SubGhzPesetDefinition |  * @param preset The modulation on which the signal was received, SubGhzPresetDefinition | ||||||
|  * @return true On success |  * @return true On success | ||||||
|  */ |  */ | ||||||
| bool subghz_protocol_decoder_nero_sketch_serialize( | bool subghz_protocol_decoder_nero_sketch_serialize( | ||||||
|     void* context, |     void* context, | ||||||
|     FlipperFormat* flipper_format, |     FlipperFormat* flipper_format, | ||||||
|     SubGhzPesetDefinition* preset); |     SubGhzPresetDefinition* preset); | ||||||
| 
 | 
 | ||||||
| /**
 | /**
 | ||||||
|  * Deserialize data SubGhzProtocolDecoderNeroSketch. |  * Deserialize data SubGhzProtocolDecoderNeroSketch. | ||||||
|  | |||||||
| @ -277,7 +277,7 @@ uint8_t subghz_protocol_decoder_nice_flo_get_hash_data(void* context) { | |||||||
| bool subghz_protocol_decoder_nice_flo_serialize( | bool subghz_protocol_decoder_nice_flo_serialize( | ||||||
|     void* context, |     void* context, | ||||||
|     FlipperFormat* flipper_format, |     FlipperFormat* flipper_format, | ||||||
|     SubGhzPesetDefinition* preset) { |     SubGhzPresetDefinition* preset) { | ||||||
|     furi_assert(context); |     furi_assert(context); | ||||||
|     SubGhzProtocolDecoderNiceFlo* instance = context; |     SubGhzProtocolDecoderNiceFlo* instance = context; | ||||||
|     return subghz_block_generic_serialize(&instance->generic, flipper_format, preset); |     return subghz_block_generic_serialize(&instance->generic, flipper_format, preset); | ||||||
|  | |||||||
| @ -83,13 +83,13 @@ uint8_t subghz_protocol_decoder_nice_flo_get_hash_data(void* context); | |||||||
|  * Serialize data SubGhzProtocolDecoderNiceFlo. |  * Serialize data SubGhzProtocolDecoderNiceFlo. | ||||||
|  * @param context Pointer to a SubGhzProtocolDecoderNiceFlo instance |  * @param context Pointer to a SubGhzProtocolDecoderNiceFlo instance | ||||||
|  * @param flipper_format Pointer to a FlipperFormat instance |  * @param flipper_format Pointer to a FlipperFormat instance | ||||||
|  * @param preset The modulation on which the signal was received, SubGhzPesetDefinition |  * @param preset The modulation on which the signal was received, SubGhzPresetDefinition | ||||||
|  * @return true On success |  * @return true On success | ||||||
|  */ |  */ | ||||||
| bool subghz_protocol_decoder_nice_flo_serialize( | bool subghz_protocol_decoder_nice_flo_serialize( | ||||||
|     void* context, |     void* context, | ||||||
|     FlipperFormat* flipper_format, |     FlipperFormat* flipper_format, | ||||||
|     SubGhzPesetDefinition* preset); |     SubGhzPresetDefinition* preset); | ||||||
| 
 | 
 | ||||||
| /**
 | /**
 | ||||||
|  * Deserialize data SubGhzProtocolDecoderNiceFlo. |  * Deserialize data SubGhzProtocolDecoderNiceFlo. | ||||||
|  | |||||||
| @ -330,7 +330,7 @@ uint8_t subghz_protocol_decoder_nice_flor_s_get_hash_data(void* context) { | |||||||
| bool subghz_protocol_decoder_nice_flor_s_serialize( | bool subghz_protocol_decoder_nice_flor_s_serialize( | ||||||
|     void* context, |     void* context, | ||||||
|     FlipperFormat* flipper_format, |     FlipperFormat* flipper_format, | ||||||
|     SubGhzPesetDefinition* preset) { |     SubGhzPresetDefinition* preset) { | ||||||
|     furi_assert(context); |     furi_assert(context); | ||||||
|     SubGhzProtocolDecoderNiceFlorS* instance = context; |     SubGhzProtocolDecoderNiceFlorS* instance = context; | ||||||
|     return subghz_block_generic_serialize(&instance->generic, flipper_format, preset); |     return subghz_block_generic_serialize(&instance->generic, flipper_format, preset); | ||||||
|  | |||||||
| @ -49,13 +49,13 @@ uint8_t subghz_protocol_decoder_nice_flor_s_get_hash_data(void* context); | |||||||
|  * Serialize data SubGhzProtocolDecoderNiceFlorS. |  * Serialize data SubGhzProtocolDecoderNiceFlorS. | ||||||
|  * @param context Pointer to a SubGhzProtocolDecoderNiceFlorS instance |  * @param context Pointer to a SubGhzProtocolDecoderNiceFlorS instance | ||||||
|  * @param flipper_format Pointer to a FlipperFormat instance |  * @param flipper_format Pointer to a FlipperFormat instance | ||||||
|  * @param preset The modulation on which the signal was received, SubGhzPesetDefinition |  * @param preset The modulation on which the signal was received, SubGhzPresetDefinition | ||||||
|  * @return true On success |  * @return true On success | ||||||
|  */ |  */ | ||||||
| bool subghz_protocol_decoder_nice_flor_s_serialize( | bool subghz_protocol_decoder_nice_flor_s_serialize( | ||||||
|     void* context, |     void* context, | ||||||
|     FlipperFormat* flipper_format, |     FlipperFormat* flipper_format, | ||||||
|     SubGhzPesetDefinition* preset); |     SubGhzPresetDefinition* preset); | ||||||
| 
 | 
 | ||||||
| /**
 | /**
 | ||||||
|  * Deserialize data SubGhzProtocolDecoderNiceFlorS. |  * Deserialize data SubGhzProtocolDecoderNiceFlorS. | ||||||
|  | |||||||
| @ -345,7 +345,7 @@ uint8_t subghz_protocol_decoder_power_smart_get_hash_data(void* context) { | |||||||
| bool subghz_protocol_decoder_power_smart_serialize( | bool subghz_protocol_decoder_power_smart_serialize( | ||||||
|     void* context, |     void* context, | ||||||
|     FlipperFormat* flipper_format, |     FlipperFormat* flipper_format, | ||||||
|     SubGhzPesetDefinition* preset) { |     SubGhzPresetDefinition* preset) { | ||||||
|     furi_assert(context); |     furi_assert(context); | ||||||
|     SubGhzProtocolDecoderPowerSmart* instance = context; |     SubGhzProtocolDecoderPowerSmart* instance = context; | ||||||
|     return subghz_block_generic_serialize(&instance->generic, flipper_format, preset); |     return subghz_block_generic_serialize(&instance->generic, flipper_format, preset); | ||||||
|  | |||||||
| @ -83,13 +83,13 @@ uint8_t subghz_protocol_decoder_power_smart_get_hash_data(void* context); | |||||||
|  * Serialize data SubGhzProtocolDecoderPowerSmart. |  * Serialize data SubGhzProtocolDecoderPowerSmart. | ||||||
|  * @param context Pointer to a SubGhzProtocolDecoderPowerSmart instance |  * @param context Pointer to a SubGhzProtocolDecoderPowerSmart instance | ||||||
|  * @param flipper_format Pointer to a FlipperFormat instance |  * @param flipper_format Pointer to a FlipperFormat instance | ||||||
|  * @param preset The modulation on which the signal was received, SubGhzPesetDefinition |  * @param preset The modulation on which the signal was received, SubGhzPresetDefinition | ||||||
|  * @return true On success |  * @return true On success | ||||||
|  */ |  */ | ||||||
| bool subghz_protocol_decoder_power_smart_serialize( | bool subghz_protocol_decoder_power_smart_serialize( | ||||||
|     void* context, |     void* context, | ||||||
|     FlipperFormat* flipper_format, |     FlipperFormat* flipper_format, | ||||||
|     SubGhzPesetDefinition* preset); |     SubGhzPresetDefinition* preset); | ||||||
| 
 | 
 | ||||||
| /**
 | /**
 | ||||||
|  * Deserialize data SubGhzProtocolDecoderPowerSmart. |  * Deserialize data SubGhzProtocolDecoderPowerSmart. | ||||||
|  | |||||||
| @ -300,7 +300,7 @@ uint8_t subghz_protocol_decoder_princeton_get_hash_data(void* context) { | |||||||
| bool subghz_protocol_decoder_princeton_serialize( | bool subghz_protocol_decoder_princeton_serialize( | ||||||
|     void* context, |     void* context, | ||||||
|     FlipperFormat* flipper_format, |     FlipperFormat* flipper_format, | ||||||
|     SubGhzPesetDefinition* preset) { |     SubGhzPresetDefinition* preset) { | ||||||
|     furi_assert(context); |     furi_assert(context); | ||||||
|     SubGhzProtocolDecoderPrinceton* instance = context; |     SubGhzProtocolDecoderPrinceton* instance = context; | ||||||
|     bool res = subghz_block_generic_serialize(&instance->generic, flipper_format, preset); |     bool res = subghz_block_generic_serialize(&instance->generic, flipper_format, preset); | ||||||
|  | |||||||
| @ -83,13 +83,13 @@ uint8_t subghz_protocol_decoder_princeton_get_hash_data(void* context); | |||||||
|  * Serialize data SubGhzProtocolDecoderPrinceton. |  * Serialize data SubGhzProtocolDecoderPrinceton. | ||||||
|  * @param context Pointer to a SubGhzProtocolDecoderPrinceton instance |  * @param context Pointer to a SubGhzProtocolDecoderPrinceton instance | ||||||
|  * @param flipper_format Pointer to a FlipperFormat instance |  * @param flipper_format Pointer to a FlipperFormat instance | ||||||
|  * @param preset The modulation on which the signal was received, SubGhzPesetDefinition |  * @param preset The modulation on which the signal was received, SubGhzPresetDefinition | ||||||
|  * @return true On success |  * @return true On success | ||||||
|  */ |  */ | ||||||
| bool subghz_protocol_decoder_princeton_serialize( | bool subghz_protocol_decoder_princeton_serialize( | ||||||
|     void* context, |     void* context, | ||||||
|     FlipperFormat* flipper_format, |     FlipperFormat* flipper_format, | ||||||
|     SubGhzPesetDefinition* preset); |     SubGhzPresetDefinition* preset); | ||||||
| 
 | 
 | ||||||
| /**
 | /**
 | ||||||
|  * Deserialize data SubGhzProtocolDecoderPrinceton. |  * Deserialize data SubGhzProtocolDecoderPrinceton. | ||||||
|  | |||||||
| @ -83,7 +83,7 @@ const SubGhzProtocol subghz_protocol_raw = { | |||||||
| bool subghz_protocol_raw_save_to_file_init( | bool subghz_protocol_raw_save_to_file_init( | ||||||
|     SubGhzProtocolDecoderRAW* instance, |     SubGhzProtocolDecoderRAW* instance, | ||||||
|     const char* dev_name, |     const char* dev_name, | ||||||
|     SubGhzPesetDefinition* preset) { |     SubGhzPresetDefinition* preset) { | ||||||
|     furi_assert(instance); |     furi_assert(instance); | ||||||
| 
 | 
 | ||||||
|     instance->storage = furi_record_open(RECORD_STORAGE); |     instance->storage = furi_record_open(RECORD_STORAGE); | ||||||
|  | |||||||
| @ -17,13 +17,13 @@ extern const SubGhzProtocol subghz_protocol_raw; | |||||||
|  * Open file for writing |  * Open file for writing | ||||||
|  * @param instance Pointer to a SubGhzProtocolDecoderRAW instance |  * @param instance Pointer to a SubGhzProtocolDecoderRAW instance | ||||||
|  * @param dev_name  File name |  * @param dev_name  File name | ||||||
|  * @param preset The modulation on which the signal was received, SubGhzPesetDefinition |  * @param preset The modulation on which the signal was received, SubGhzPresetDefinition | ||||||
|  * @return true On success |  * @return true On success | ||||||
|  */ |  */ | ||||||
| bool subghz_protocol_raw_save_to_file_init( | bool subghz_protocol_raw_save_to_file_init( | ||||||
|     SubGhzProtocolDecoderRAW* instance, |     SubGhzProtocolDecoderRAW* instance, | ||||||
|     const char* dev_name, |     const char* dev_name, | ||||||
|     SubGhzPesetDefinition* preset); |     SubGhzPresetDefinition* preset); | ||||||
| 
 | 
 | ||||||
| /**
 | /**
 | ||||||
|  * Stop writing file to flash |  * Stop writing file to flash | ||||||
|  | |||||||
| @ -251,7 +251,7 @@ uint8_t subghz_protocol_decoder_scher_khan_get_hash_data(void* context) { | |||||||
| bool subghz_protocol_decoder_scher_khan_serialize( | bool subghz_protocol_decoder_scher_khan_serialize( | ||||||
|     void* context, |     void* context, | ||||||
|     FlipperFormat* flipper_format, |     FlipperFormat* flipper_format, | ||||||
|     SubGhzPesetDefinition* preset) { |     SubGhzPresetDefinition* preset) { | ||||||
|     furi_assert(context); |     furi_assert(context); | ||||||
|     SubGhzProtocolDecoderScherKhan* instance = context; |     SubGhzProtocolDecoderScherKhan* instance = context; | ||||||
|     return subghz_block_generic_serialize(&instance->generic, flipper_format, preset); |     return subghz_block_generic_serialize(&instance->generic, flipper_format, preset); | ||||||
|  | |||||||
| @ -49,13 +49,13 @@ uint8_t subghz_protocol_decoder_scher_khan_get_hash_data(void* context); | |||||||
|  * Serialize data SubGhzProtocolDecoderScherKhan. |  * Serialize data SubGhzProtocolDecoderScherKhan. | ||||||
|  * @param context Pointer to a SubGhzProtocolDecoderScherKhan instance |  * @param context Pointer to a SubGhzProtocolDecoderScherKhan instance | ||||||
|  * @param flipper_format Pointer to a FlipperFormat instance |  * @param flipper_format Pointer to a FlipperFormat instance | ||||||
|  * @param preset The modulation on which the signal was received, SubGhzPesetDefinition |  * @param preset The modulation on which the signal was received, SubGhzPresetDefinition | ||||||
|  * @return true On success |  * @return true On success | ||||||
|  */ |  */ | ||||||
| bool subghz_protocol_decoder_scher_khan_serialize( | bool subghz_protocol_decoder_scher_khan_serialize( | ||||||
|     void* context, |     void* context, | ||||||
|     FlipperFormat* flipper_format, |     FlipperFormat* flipper_format, | ||||||
|     SubGhzPesetDefinition* preset); |     SubGhzPresetDefinition* preset); | ||||||
| 
 | 
 | ||||||
| /**
 | /**
 | ||||||
|  * Deserialize data SubGhzProtocolDecoderScherKhan. |  * Deserialize data SubGhzProtocolDecoderScherKhan. | ||||||
|  | |||||||
| @ -515,7 +515,7 @@ uint8_t subghz_protocol_decoder_secplus_v1_get_hash_data(void* context) { | |||||||
| bool subghz_protocol_decoder_secplus_v1_serialize( | bool subghz_protocol_decoder_secplus_v1_serialize( | ||||||
|     void* context, |     void* context, | ||||||
|     FlipperFormat* flipper_format, |     FlipperFormat* flipper_format, | ||||||
|     SubGhzPesetDefinition* preset) { |     SubGhzPresetDefinition* preset) { | ||||||
|     furi_assert(context); |     furi_assert(context); | ||||||
|     SubGhzProtocolDecoderSecPlus_v1* instance = context; |     SubGhzProtocolDecoderSecPlus_v1* instance = context; | ||||||
|     return subghz_block_generic_serialize(&instance->generic, flipper_format, preset); |     return subghz_block_generic_serialize(&instance->generic, flipper_format, preset); | ||||||
|  | |||||||
| @ -82,13 +82,13 @@ uint8_t subghz_protocol_decoder_secplus_v1_get_hash_data(void* context); | |||||||
|  * Serialize data SubGhzProtocolDecoderSecPlus_v1. |  * Serialize data SubGhzProtocolDecoderSecPlus_v1. | ||||||
|  * @param context Pointer to a SubGhzProtocolDecoderSecPlus_v1 instance |  * @param context Pointer to a SubGhzProtocolDecoderSecPlus_v1 instance | ||||||
|  * @param flipper_format Pointer to a FlipperFormat instance |  * @param flipper_format Pointer to a FlipperFormat instance | ||||||
|  * @param preset The modulation on which the signal was received, SubGhzPesetDefinition |  * @param preset The modulation on which the signal was received, SubGhzPresetDefinition | ||||||
|  * @return true On success |  * @return true On success | ||||||
|  */ |  */ | ||||||
| bool subghz_protocol_decoder_secplus_v1_serialize( | bool subghz_protocol_decoder_secplus_v1_serialize( | ||||||
|     void* context, |     void* context, | ||||||
|     FlipperFormat* flipper_format, |     FlipperFormat* flipper_format, | ||||||
|     SubGhzPesetDefinition* preset); |     SubGhzPresetDefinition* preset); | ||||||
| 
 | 
 | ||||||
| /**
 | /**
 | ||||||
|  * Deserialize data SubGhzProtocolDecoderSecPlus_v1. |  * Deserialize data SubGhzProtocolDecoderSecPlus_v1. | ||||||
|  | |||||||
| @ -588,7 +588,7 @@ bool subghz_protocol_secplus_v2_create_data( | |||||||
|     uint32_t serial, |     uint32_t serial, | ||||||
|     uint8_t btn, |     uint8_t btn, | ||||||
|     uint32_t cnt, |     uint32_t cnt, | ||||||
|     SubGhzPesetDefinition* preset) { |     SubGhzPresetDefinition* preset) { | ||||||
|     furi_assert(context); |     furi_assert(context); | ||||||
|     SubGhzProtocolEncoderSecPlus_v2* instance = context; |     SubGhzProtocolEncoderSecPlus_v2* instance = context; | ||||||
|     instance->generic.serial = serial; |     instance->generic.serial = serial; | ||||||
| @ -755,7 +755,7 @@ uint8_t subghz_protocol_decoder_secplus_v2_get_hash_data(void* context) { | |||||||
| bool subghz_protocol_decoder_secplus_v2_serialize( | bool subghz_protocol_decoder_secplus_v2_serialize( | ||||||
|     void* context, |     void* context, | ||||||
|     FlipperFormat* flipper_format, |     FlipperFormat* flipper_format, | ||||||
|     SubGhzPesetDefinition* preset) { |     SubGhzPresetDefinition* preset) { | ||||||
|     furi_assert(context); |     furi_assert(context); | ||||||
|     SubGhzProtocolDecoderSecPlus_v2* instance = context; |     SubGhzProtocolDecoderSecPlus_v2* instance = context; | ||||||
|     bool res = subghz_block_generic_serialize(&instance->generic, flipper_format, preset); |     bool res = subghz_block_generic_serialize(&instance->generic, flipper_format, preset); | ||||||
|  | |||||||
| @ -52,7 +52,7 @@ LevelDuration subghz_protocol_encoder_secplus_v2_yield(void* context); | |||||||
|  * @param btn Button number, 8 bit |  * @param btn Button number, 8 bit | ||||||
|  * @param cnt Container value, 28 bit |  * @param cnt Container value, 28 bit | ||||||
|  * @param manufacture_name Name of manufacturer's key |  * @param manufacture_name Name of manufacturer's key | ||||||
|  * @param preset Modulation, SubGhzPesetDefinition |  * @param preset Modulation, SubGhzPresetDefinition | ||||||
|  * @return true On success |  * @return true On success | ||||||
|  */ |  */ | ||||||
| bool subghz_protocol_secplus_v2_create_data( | bool subghz_protocol_secplus_v2_create_data( | ||||||
| @ -61,7 +61,7 @@ bool subghz_protocol_secplus_v2_create_data( | |||||||
|     uint32_t serial, |     uint32_t serial, | ||||||
|     uint8_t btn, |     uint8_t btn, | ||||||
|     uint32_t cnt, |     uint32_t cnt, | ||||||
|     SubGhzPesetDefinition* preset); |     SubGhzPresetDefinition* preset); | ||||||
| 
 | 
 | ||||||
| /**
 | /**
 | ||||||
|  * Allocate SubGhzProtocolDecoderSecPlus_v2. |  * Allocate SubGhzProtocolDecoderSecPlus_v2. | ||||||
| @ -101,13 +101,13 @@ uint8_t subghz_protocol_decoder_secplus_v2_get_hash_data(void* context); | |||||||
|  * Serialize data SubGhzProtocolDecoderSecPlus_v2. |  * Serialize data SubGhzProtocolDecoderSecPlus_v2. | ||||||
|  * @param context Pointer to a SubGhzProtocolDecoderSecPlus_v2 instance |  * @param context Pointer to a SubGhzProtocolDecoderSecPlus_v2 instance | ||||||
|  * @param flipper_format Pointer to a FlipperFormat instance |  * @param flipper_format Pointer to a FlipperFormat instance | ||||||
|  * @param preset The modulation on which the signal was received, SubGhzPesetDefinition |  * @param preset The modulation on which the signal was received, SubGhzPresetDefinition | ||||||
|  * @return true On success |  * @return true On success | ||||||
|  */ |  */ | ||||||
| bool subghz_protocol_decoder_secplus_v2_serialize( | bool subghz_protocol_decoder_secplus_v2_serialize( | ||||||
|     void* context, |     void* context, | ||||||
|     FlipperFormat* flipper_format, |     FlipperFormat* flipper_format, | ||||||
|     SubGhzPesetDefinition* preset); |     SubGhzPresetDefinition* preset); | ||||||
| 
 | 
 | ||||||
| /**
 | /**
 | ||||||
|  * Deserialize data SubGhzProtocolDecoderSecPlus_v2. |  * Deserialize data SubGhzProtocolDecoderSecPlus_v2. | ||||||
|  | |||||||
| @ -382,7 +382,7 @@ uint8_t subghz_protocol_decoder_somfy_keytis_get_hash_data(void* context) { | |||||||
| bool subghz_protocol_decoder_somfy_keytis_serialize( | bool subghz_protocol_decoder_somfy_keytis_serialize( | ||||||
|     void* context, |     void* context, | ||||||
|     FlipperFormat* flipper_format, |     FlipperFormat* flipper_format, | ||||||
|     SubGhzPesetDefinition* preset) { |     SubGhzPresetDefinition* preset) { | ||||||
|     furi_assert(context); |     furi_assert(context); | ||||||
|     SubGhzProtocolDecoderSomfyKeytis* instance = context; |     SubGhzProtocolDecoderSomfyKeytis* instance = context; | ||||||
|     bool res = subghz_block_generic_serialize(&instance->generic, flipper_format, preset); |     bool res = subghz_block_generic_serialize(&instance->generic, flipper_format, preset); | ||||||
|  | |||||||
| @ -49,13 +49,13 @@ uint8_t subghz_protocol_decoder_somfy_keytis_get_hash_data(void* context); | |||||||
|  * Serialize data SubGhzProtocolDecoderSomfyKeytis. |  * Serialize data SubGhzProtocolDecoderSomfyKeytis. | ||||||
|  * @param context Pointer to a SubGhzProtocolDecoderSomfyKeytis instance |  * @param context Pointer to a SubGhzProtocolDecoderSomfyKeytis instance | ||||||
|  * @param flipper_format Pointer to a FlipperFormat instance |  * @param flipper_format Pointer to a FlipperFormat instance | ||||||
|  * @param preset The modulation on which the signal was received, SubGhzPesetDefinition |  * @param preset The modulation on which the signal was received, SubGhzPresetDefinition | ||||||
|  * @return true On success |  * @return true On success | ||||||
|  */ |  */ | ||||||
| bool subghz_protocol_decoder_somfy_keytis_serialize( | bool subghz_protocol_decoder_somfy_keytis_serialize( | ||||||
|     void* context, |     void* context, | ||||||
|     FlipperFormat* flipper_format, |     FlipperFormat* flipper_format, | ||||||
|     SubGhzPesetDefinition* preset); |     SubGhzPresetDefinition* preset); | ||||||
| 
 | 
 | ||||||
| /**
 | /**
 | ||||||
|  * Deserialize data SubGhzProtocolDecoderSomfyKeytis. |  * Deserialize data SubGhzProtocolDecoderSomfyKeytis. | ||||||
|  | |||||||
| @ -339,7 +339,7 @@ uint8_t subghz_protocol_decoder_somfy_telis_get_hash_data(void* context) { | |||||||
| bool subghz_protocol_decoder_somfy_telis_serialize( | bool subghz_protocol_decoder_somfy_telis_serialize( | ||||||
|     void* context, |     void* context, | ||||||
|     FlipperFormat* flipper_format, |     FlipperFormat* flipper_format, | ||||||
|     SubGhzPesetDefinition* preset) { |     SubGhzPresetDefinition* preset) { | ||||||
|     furi_assert(context); |     furi_assert(context); | ||||||
|     SubGhzProtocolDecoderSomfyTelis* instance = context; |     SubGhzProtocolDecoderSomfyTelis* instance = context; | ||||||
|     return subghz_block_generic_serialize(&instance->generic, flipper_format, preset); |     return subghz_block_generic_serialize(&instance->generic, flipper_format, preset); | ||||||
|  | |||||||
| @ -49,13 +49,13 @@ uint8_t subghz_protocol_decoder_somfy_telis_get_hash_data(void* context); | |||||||
|  * Serialize data SubGhzProtocolDecoderSomfyTelis. |  * Serialize data SubGhzProtocolDecoderSomfyTelis. | ||||||
|  * @param context Pointer to a SubGhzProtocolDecoderSomfyTelis instance |  * @param context Pointer to a SubGhzProtocolDecoderSomfyTelis instance | ||||||
|  * @param flipper_format Pointer to a FlipperFormat instance |  * @param flipper_format Pointer to a FlipperFormat instance | ||||||
|  * @param preset The modulation on which the signal was received, SubGhzPesetDefinition |  * @param preset The modulation on which the signal was received, SubGhzPresetDefinition | ||||||
|  * @return true On success |  * @return true On success | ||||||
|  */ |  */ | ||||||
| bool subghz_protocol_decoder_somfy_telis_serialize( | bool subghz_protocol_decoder_somfy_telis_serialize( | ||||||
|     void* context, |     void* context, | ||||||
|     FlipperFormat* flipper_format, |     FlipperFormat* flipper_format, | ||||||
|     SubGhzPesetDefinition* preset); |     SubGhzPresetDefinition* preset); | ||||||
| 
 | 
 | ||||||
| /**
 | /**
 | ||||||
|  * Deserialize data SubGhzProtocolDecoderSomfyTelis. |  * Deserialize data SubGhzProtocolDecoderSomfyTelis. | ||||||
|  | |||||||
| @ -320,7 +320,7 @@ uint8_t subghz_protocol_decoder_star_line_get_hash_data(void* context) { | |||||||
| bool subghz_protocol_decoder_star_line_serialize( | bool subghz_protocol_decoder_star_line_serialize( | ||||||
|     void* context, |     void* context, | ||||||
|     FlipperFormat* flipper_format, |     FlipperFormat* flipper_format, | ||||||
|     SubGhzPesetDefinition* preset) { |     SubGhzPresetDefinition* preset) { | ||||||
|     furi_assert(context); |     furi_assert(context); | ||||||
|     SubGhzProtocolDecoderStarLine* instance = context; |     SubGhzProtocolDecoderStarLine* instance = context; | ||||||
|     subghz_protocol_star_line_check_remote_controller( |     subghz_protocol_star_line_check_remote_controller( | ||||||
|  | |||||||
| @ -49,13 +49,13 @@ uint8_t subghz_protocol_decoder_star_line_get_hash_data(void* context); | |||||||
|  * Serialize data SubGhzProtocolDecoderStarLine. |  * Serialize data SubGhzProtocolDecoderStarLine. | ||||||
|  * @param context Pointer to a SubGhzProtocolDecoderStarLine instance |  * @param context Pointer to a SubGhzProtocolDecoderStarLine instance | ||||||
|  * @param flipper_format Pointer to a FlipperFormat instance |  * @param flipper_format Pointer to a FlipperFormat instance | ||||||
|  * @param preset The modulation on which the signal was received, SubGhzPesetDefinition |  * @param preset The modulation on which the signal was received, SubGhzPresetDefinition | ||||||
|  * @return true On success |  * @return true On success | ||||||
|  */ |  */ | ||||||
| bool subghz_protocol_decoder_star_line_serialize( | bool subghz_protocol_decoder_star_line_serialize( | ||||||
|     void* context, |     void* context, | ||||||
|     FlipperFormat* flipper_format, |     FlipperFormat* flipper_format, | ||||||
|     SubGhzPesetDefinition* preset); |     SubGhzPresetDefinition* preset); | ||||||
| 
 | 
 | ||||||
| /**
 | /**
 | ||||||
|  * Deserialize data SubGhzProtocolDecoderStarLine. |  * Deserialize data SubGhzProtocolDecoderStarLine. | ||||||
|  | |||||||
| @ -31,8 +31,10 @@ typedef void* (*SubGhzAlloc)(SubGhzEnvironment* environment); | |||||||
| typedef void (*SubGhzFree)(void* context); | typedef void (*SubGhzFree)(void* context); | ||||||
| 
 | 
 | ||||||
| // Serialize and Deserialize
 | // Serialize and Deserialize
 | ||||||
| typedef bool ( | typedef bool (*SubGhzSerialize)( | ||||||
|     *SubGhzSerialize)(void* context, FlipperFormat* flipper_format, SubGhzPesetDefinition* preset); |     void* context, | ||||||
|  |     FlipperFormat* flipper_format, | ||||||
|  |     SubGhzPresetDefinition* preset); | ||||||
| typedef bool (*SubGhzDeserialize)(void* context, FlipperFormat* flipper_format); | typedef bool (*SubGhzDeserialize)(void* context, FlipperFormat* flipper_format); | ||||||
| 
 | 
 | ||||||
| // Decoder specific
 | // Decoder specific
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 MX
						MX