mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-24 03:29:57 -07:00
Fix subghz lib create_data api
This commit is contained in:
@@ -23,24 +23,6 @@ void* subghz_protocol_encoder_alutech_at_4n_alloc(SubGhzEnvironment* environment
|
|||||||
*/
|
*/
|
||||||
void subghz_protocol_encoder_alutech_at_4n_free(void* context);
|
void subghz_protocol_encoder_alutech_at_4n_free(void* context);
|
||||||
|
|
||||||
/**
|
|
||||||
* Key generation from simple data.
|
|
||||||
* @param context Pointer to a SubGhzProtocolEncoderAlutech_at_4n instance
|
|
||||||
* @param flipper_format Pointer to a FlipperFormat instance
|
|
||||||
* @param serial Serial number, 24 bit
|
|
||||||
* @param btn Button number, 8 bit
|
|
||||||
* @param cnt Counter value, 16 bit
|
|
||||||
* @param preset Modulation, SubGhzRadioPreset
|
|
||||||
* @return true On success
|
|
||||||
*/
|
|
||||||
bool subghz_protocol_alutech_at_4n_create_data(
|
|
||||||
void* context,
|
|
||||||
FlipperFormat* flipper_format,
|
|
||||||
uint32_t serial,
|
|
||||||
uint8_t btn,
|
|
||||||
uint16_t cnt,
|
|
||||||
SubGhzRadioPreset* preset);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Deserialize and generating an upload to send.
|
* Deserialize and generating an upload to send.
|
||||||
* @param context Pointer to a SubGhzProtocolEncoderAlutech_at_4n instance
|
* @param context Pointer to a SubGhzProtocolEncoderAlutech_at_4n instance
|
||||||
|
|||||||
@@ -14,22 +14,6 @@ void atomo_decrypt(uint8_t* buff);
|
|||||||
|
|
||||||
void atomo_encrypt(uint8_t* buff);
|
void atomo_encrypt(uint8_t* buff);
|
||||||
|
|
||||||
/**
|
|
||||||
* Key generation from simple data.
|
|
||||||
* @param context Pointer to a SubGhzProtocolEncoderCameAtomo instance
|
|
||||||
* @param flipper_format Pointer to a FlipperFormat instance
|
|
||||||
* @param serial Serial number, 24 bit
|
|
||||||
* @param cnt Counter value, 16 bit
|
|
||||||
* @param preset Modulation, SubGhzRadioPreset
|
|
||||||
* @return true On success
|
|
||||||
*/
|
|
||||||
bool subghz_protocol_came_atomo_create_data(
|
|
||||||
void* context,
|
|
||||||
FlipperFormat* flipper_format,
|
|
||||||
uint32_t serial,
|
|
||||||
uint16_t cnt,
|
|
||||||
SubGhzRadioPreset* preset);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Allocate SubGhzProtocolEncoderCameAtomo.
|
* Allocate SubGhzProtocolEncoderCameAtomo.
|
||||||
* @param environment Pointer to a SubGhzEnvironment instance
|
* @param environment Pointer to a SubGhzEnvironment instance
|
||||||
|
|||||||
@@ -24,28 +24,6 @@ void* subghz_protocol_encoder_faac_slh_alloc(SubGhzEnvironment* environment);
|
|||||||
*/
|
*/
|
||||||
void subghz_protocol_encoder_faac_slh_free(void* context);
|
void subghz_protocol_encoder_faac_slh_free(void* context);
|
||||||
|
|
||||||
/**
|
|
||||||
* Key generation from simple data.
|
|
||||||
* @param context Pointer to a SubGhzProtocolEncoderFaacSLH instance
|
|
||||||
* @param flipper_format Pointer to a FlipperFormat instance
|
|
||||||
* @param serial Serial number, 28 bit
|
|
||||||
* @param btn Button number, 4 bit
|
|
||||||
* @param cnt Counter value, 16 bit
|
|
||||||
* @param seed Seed value, 32 bit
|
|
||||||
* @param manufacture_name Name of manufacturer's key
|
|
||||||
* @param preset Modulation, SubGhzRadioPreset
|
|
||||||
* @return true On success
|
|
||||||
*/
|
|
||||||
bool subghz_protocol_faac_slh_create_data(
|
|
||||||
void* context,
|
|
||||||
FlipperFormat* flipper_format,
|
|
||||||
uint32_t serial,
|
|
||||||
uint8_t btn,
|
|
||||||
uint32_t cnt,
|
|
||||||
uint32_t seed,
|
|
||||||
const char* manufacture_name,
|
|
||||||
SubGhzRadioPreset* preset);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Deserialize and generating an upload to send.
|
* Deserialize and generating an upload to send.
|
||||||
* @param context Pointer to a SubGhzProtocolEncoderFaacSLH instance
|
* @param context Pointer to a SubGhzProtocolEncoderFaacSLH instance
|
||||||
|
|||||||
@@ -48,26 +48,6 @@ LevelDuration subghz_protocol_encoder_nice_flor_s_yield(void* context);
|
|||||||
|
|
||||||
uint64_t subghz_protocol_nice_flor_s_encrypt(uint64_t data, const char* file_name);
|
uint64_t subghz_protocol_nice_flor_s_encrypt(uint64_t data, const char* file_name);
|
||||||
|
|
||||||
/**
|
|
||||||
* New remote generation.
|
|
||||||
* @param context Pointer to a SubGhzProtocolEncoderNiceFlorS instance
|
|
||||||
* @param flipper_format Pointer to a FlipperFormat instance
|
|
||||||
* @param serial Serial number
|
|
||||||
* @param btn Button number, 4 bit
|
|
||||||
* @param cnt Counter value, 16 bit
|
|
||||||
* @param preset Modulation, SubGhzRadioPreset
|
|
||||||
* @param nice_one Nice One if true, Nice Flor S if false
|
|
||||||
* @return true On success
|
|
||||||
*/
|
|
||||||
bool subghz_protocol_nice_flor_s_create_data(
|
|
||||||
void* context,
|
|
||||||
FlipperFormat* flipper_format,
|
|
||||||
uint32_t serial,
|
|
||||||
uint8_t btn,
|
|
||||||
uint16_t cnt,
|
|
||||||
SubGhzRadioPreset* preset,
|
|
||||||
bool nice_one);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Allocate SubGhzProtocolDecoderNiceFlorS.
|
* Allocate SubGhzProtocolDecoderNiceFlorS.
|
||||||
* @param environment Pointer to a SubGhzEnvironment instance
|
* @param environment Pointer to a SubGhzEnvironment instance
|
||||||
|
|||||||
@@ -67,6 +67,100 @@ bool subghz_protocol_keeloq_bft_create_data(
|
|||||||
const char* manufacture_name,
|
const char* manufacture_name,
|
||||||
SubGhzRadioPreset* preset);
|
SubGhzRadioPreset* preset);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Key generation from simple data.
|
||||||
|
* @param context Pointer to a SubGhzProtocolEncoderFaacSLH instance
|
||||||
|
* @param flipper_format Pointer to a FlipperFormat instance
|
||||||
|
* @param serial Serial number, 28 bit
|
||||||
|
* @param btn Button number, 4 bit
|
||||||
|
* @param cnt Counter value, 16 bit
|
||||||
|
* @param seed Seed value, 32 bit
|
||||||
|
* @param manufacture_name Name of manufacturer's key
|
||||||
|
* @param preset Modulation, SubGhzRadioPreset
|
||||||
|
* @return true On success
|
||||||
|
*/
|
||||||
|
bool subghz_protocol_faac_slh_create_data(
|
||||||
|
void* context,
|
||||||
|
FlipperFormat* flipper_format,
|
||||||
|
uint32_t serial,
|
||||||
|
uint8_t btn,
|
||||||
|
uint32_t cnt,
|
||||||
|
uint32_t seed,
|
||||||
|
const char* manufacture_name,
|
||||||
|
SubGhzRadioPreset* preset);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Key generation from simple data.
|
||||||
|
* @param context Pointer to a SubGhzProtocolEncoderAlutech_at_4n instance
|
||||||
|
* @param flipper_format Pointer to a FlipperFormat instance
|
||||||
|
* @param serial Serial number, 24 bit
|
||||||
|
* @param btn Button number, 8 bit
|
||||||
|
* @param cnt Counter value, 16 bit
|
||||||
|
* @param preset Modulation, SubGhzRadioPreset
|
||||||
|
* @return true On success
|
||||||
|
*/
|
||||||
|
bool subghz_protocol_alutech_at_4n_create_data(
|
||||||
|
void* context,
|
||||||
|
FlipperFormat* flipper_format,
|
||||||
|
uint32_t serial,
|
||||||
|
uint8_t btn,
|
||||||
|
uint16_t cnt,
|
||||||
|
SubGhzRadioPreset* preset);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* New remote generation.
|
||||||
|
* @param context Pointer to a SubGhzProtocolEncoderNiceFlorS instance
|
||||||
|
* @param flipper_format Pointer to a FlipperFormat instance
|
||||||
|
* @param serial Serial number
|
||||||
|
* @param btn Button number, 4 bit
|
||||||
|
* @param cnt Counter value, 16 bit
|
||||||
|
* @param preset Modulation, SubGhzRadioPreset
|
||||||
|
* @param nice_one Nice One if true, Nice Flor S if false
|
||||||
|
* @return true On success
|
||||||
|
*/
|
||||||
|
bool subghz_protocol_nice_flor_s_create_data(
|
||||||
|
void* context,
|
||||||
|
FlipperFormat* flipper_format,
|
||||||
|
uint32_t serial,
|
||||||
|
uint8_t btn,
|
||||||
|
uint16_t cnt,
|
||||||
|
SubGhzRadioPreset* preset,
|
||||||
|
bool nice_one);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Key generation from simple data.
|
||||||
|
* @param context Pointer to a SubGhzProtocolEncoderCameAtomo instance
|
||||||
|
* @param flipper_format Pointer to a FlipperFormat instance
|
||||||
|
* @param serial Serial number, 24 bit
|
||||||
|
* @param cnt Counter value, 16 bit
|
||||||
|
* @param preset Modulation, SubGhzRadioPreset
|
||||||
|
* @return true On success
|
||||||
|
*/
|
||||||
|
bool subghz_protocol_came_atomo_create_data(
|
||||||
|
void* context,
|
||||||
|
FlipperFormat* flipper_format,
|
||||||
|
uint32_t serial,
|
||||||
|
uint16_t cnt,
|
||||||
|
SubGhzRadioPreset* preset);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Key generation from simple data.
|
||||||
|
* @param context Pointer to a SubGhzProtocolEncoderSomfyTelis instance
|
||||||
|
* @param flipper_format Pointer to a FlipperFormat instance
|
||||||
|
* @param serial Serial number, 24 bit
|
||||||
|
* @param btn Button number, 8 bit
|
||||||
|
* @param cnt Counter value, 16 bit
|
||||||
|
* @param preset Modulation, SubGhzRadioPreset
|
||||||
|
* @return true On success
|
||||||
|
*/
|
||||||
|
bool subghz_protocol_somfy_telis_create_data(
|
||||||
|
void* context,
|
||||||
|
FlipperFormat* flipper_format,
|
||||||
|
uint32_t serial,
|
||||||
|
uint8_t btn,
|
||||||
|
uint16_t cnt,
|
||||||
|
SubGhzRadioPreset* preset);
|
||||||
|
|
||||||
typedef struct SubGhzProtocolDecoderBinRAW SubGhzProtocolDecoderBinRAW;
|
typedef struct SubGhzProtocolDecoderBinRAW SubGhzProtocolDecoderBinRAW;
|
||||||
|
|
||||||
void subghz_protocol_decoder_bin_raw_data_input_rssi(
|
void subghz_protocol_decoder_bin_raw_data_input_rssi(
|
||||||
|
|||||||
@@ -24,24 +24,6 @@ void* subghz_protocol_encoder_somfy_telis_alloc(SubGhzEnvironment* environment);
|
|||||||
*/
|
*/
|
||||||
void subghz_protocol_encoder_somfy_telis_free(void* context);
|
void subghz_protocol_encoder_somfy_telis_free(void* context);
|
||||||
|
|
||||||
/**
|
|
||||||
* Key generation from simple data.
|
|
||||||
* @param context Pointer to a SubGhzProtocolEncoderSomfyTelis instance
|
|
||||||
* @param flipper_format Pointer to a FlipperFormat instance
|
|
||||||
* @param serial Serial number, 24 bit
|
|
||||||
* @param btn Button number, 8 bit
|
|
||||||
* @param cnt Counter value, 16 bit
|
|
||||||
* @param preset Modulation, SubGhzRadioPreset
|
|
||||||
* @return true On success
|
|
||||||
*/
|
|
||||||
bool subghz_protocol_somfy_telis_create_data(
|
|
||||||
void* context,
|
|
||||||
FlipperFormat* flipper_format,
|
|
||||||
uint32_t serial,
|
|
||||||
uint8_t btn,
|
|
||||||
uint16_t cnt,
|
|
||||||
SubGhzRadioPreset* preset);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Deserialize and generating an upload to send.
|
* Deserialize and generating an upload to send.
|
||||||
* @param context Pointer to a SubGhzProtocolEncoderSomfyTelis instance
|
* @param context Pointer to a SubGhzProtocolEncoderSomfyTelis instance
|
||||||
|
|||||||
@@ -10,48 +10,6 @@ extern const SubGhzProtocolRegistry subghz_protocol_registry;
|
|||||||
|
|
||||||
typedef struct SubGhzProtocolDecoderBinRAW SubGhzProtocolDecoderBinRAW;
|
typedef struct SubGhzProtocolDecoderBinRAW SubGhzProtocolDecoderBinRAW;
|
||||||
|
|
||||||
bool subghz_protocol_faac_slh_create_data(
|
|
||||||
void* context,
|
|
||||||
FlipperFormat* flipper_format,
|
|
||||||
uint32_t serial,
|
|
||||||
uint8_t btn,
|
|
||||||
uint32_t cnt,
|
|
||||||
uint32_t seed,
|
|
||||||
const char* manufacture_name,
|
|
||||||
SubGhzRadioPreset* preset);
|
|
||||||
|
|
||||||
bool subghz_protocol_came_atomo_create_data(
|
|
||||||
void* context,
|
|
||||||
FlipperFormat* flipper_format,
|
|
||||||
uint32_t serial,
|
|
||||||
uint16_t cnt,
|
|
||||||
SubGhzRadioPreset* preset);
|
|
||||||
|
|
||||||
bool subghz_protocol_somfy_telis_create_data(
|
|
||||||
void* context,
|
|
||||||
FlipperFormat* flipper_format,
|
|
||||||
uint32_t serial,
|
|
||||||
uint8_t btn,
|
|
||||||
uint16_t cnt,
|
|
||||||
SubGhzRadioPreset* preset);
|
|
||||||
|
|
||||||
bool subghz_protocol_nice_flor_s_create_data(
|
|
||||||
void* context,
|
|
||||||
FlipperFormat* flipper_format,
|
|
||||||
uint32_t serial,
|
|
||||||
uint8_t btn,
|
|
||||||
uint16_t cnt,
|
|
||||||
SubGhzRadioPreset* preset,
|
|
||||||
bool nice_one);
|
|
||||||
|
|
||||||
bool subghz_protocol_alutech_at_4n_create_data(
|
|
||||||
void* context,
|
|
||||||
FlipperFormat* flipper_format,
|
|
||||||
uint32_t serial,
|
|
||||||
uint8_t btn,
|
|
||||||
uint16_t cnt,
|
|
||||||
SubGhzRadioPreset* preset);
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user