seed transfer to decoder

This commit is contained in:
r3df0xx
2022-04-27 17:01:07 +03:00
parent 8b984b363d
commit 77a1a58d67
3 changed files with 20 additions and 4 deletions

View File

@@ -393,6 +393,15 @@ void subghz_protocol_decoder_faac_slh_feed(void* context, bool level, uint32_t d
}
}
void subghz_protocol_faac_slh_set_seed_to_decoder(void* context, uint32_t seed) {
furi_assert(context);
SubGhzProtocolDecoderFaacSLH* instance = context;
instance->generic.seed = seed;
subghz_protocol_faac_slh_check_remote_controller(
&instance->generic, instance->keystore, &instance->manufacture_name);
FURI_LOG_I(TAG, "SEED (to_decoder): %8X\n", instance->generic.seed);
}
/**
* Analysis of received data
* @param instance Pointer to a SubGhzBlockGeneric* instance

View File

@@ -48,6 +48,13 @@ bool subghz_protocol_faac_slh_create_data(
uint32_t frequency,
FuriHalSubGhzPreset preset);
/**
* Transfering seed value from Encoder to Decoder
* @param context - Pointer to a SubGhzProtocolDecoderFaacSLH instance
* @param seed Seed value, 32 bit
*/
void subghz_protocol_faac_slh_set_seed_to_decoder(void* context, uint32_t seed);
/**
* Deserialize and generating an upload to send.
* @param context Pointer to a SubGhzProtocolEncoderFaacSLH instance