mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-24 03:29:57 -07:00
Rename funcs
This commit is contained in:
@@ -116,7 +116,7 @@ bool subghz_txrx_gen_keeloq_protocol( //TODO lead to a general appearance
|
|||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool subghz_scene_set_type_submenu_gen_data_keeloq_bft( //TODO rename & lead to a general appearance
|
bool subghz_txrx_gen_keeloq_bft_protocol( //TODO rename & lead to a general appearance
|
||||||
void* context,
|
void* context,
|
||||||
const char* preset_name,
|
const char* preset_name,
|
||||||
uint32_t frequency,
|
uint32_t frequency,
|
||||||
@@ -161,7 +161,7 @@ bool subghz_scene_set_type_submenu_gen_data_keeloq_bft( //TODO rename & lead to
|
|||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool subghz_scene_set_type_submenu_gen_data_nice_flor( //TODO rename & lead to a general appearance
|
bool subghz_txrx_gen_nice_flor_s_protocol( //TODO rename & lead to a general appearance
|
||||||
void* context,
|
void* context,
|
||||||
const char* preset_name,
|
const char* preset_name,
|
||||||
uint32_t frequency,
|
uint32_t frequency,
|
||||||
@@ -193,7 +193,7 @@ bool subghz_scene_set_type_submenu_gen_data_nice_flor( //TODO rename & lead to a
|
|||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool subghz_scene_set_type_submenu_gen_data_faac_slh( //TODO rename & lead to a general appearance
|
bool subghz_txrx_gen_faac_slh_protocol( //TODO rename & lead to a general appearance
|
||||||
void* context,
|
void* context,
|
||||||
const char* preset_name,
|
const char* preset_name,
|
||||||
uint32_t frequency,
|
uint32_t frequency,
|
||||||
@@ -236,7 +236,7 @@ bool subghz_scene_set_type_submenu_gen_data_faac_slh( //TODO rename & lead to a
|
|||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool subghz_scene_set_type_submenu_gen_data_alutech_at_4n( //TODO rename & lead to a general appearance
|
bool subghz_txrx_gen_alutech_at_4n_protocol( //TODO rename & lead to a general appearance
|
||||||
void* context,
|
void* context,
|
||||||
const char* preset_name,
|
const char* preset_name,
|
||||||
uint32_t frequency,
|
uint32_t frequency,
|
||||||
@@ -266,7 +266,7 @@ bool subghz_scene_set_type_submenu_gen_data_alutech_at_4n( //TODO rename & lead
|
|||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool subghz_scene_set_type_submenu_gen_data_somfy_telis( //TODO rename & lead to a general appearance
|
bool subghz_txrx_gen_somfy_telis_protocol( //TODO rename & lead to a general appearance
|
||||||
void* context,
|
void* context,
|
||||||
const char* preset_name,
|
const char* preset_name,
|
||||||
uint32_t frequency,
|
uint32_t frequency,
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ bool subghz_txrx_gen_keeloq_protocol(
|
|||||||
uint16_t cnt,
|
uint16_t cnt,
|
||||||
const char* manufacture_name);
|
const char* manufacture_name);
|
||||||
|
|
||||||
bool subghz_scene_set_type_submenu_gen_data_keeloq_bft( //TODO rename
|
bool subghz_txrx_gen_keeloq_bft_protocol( //TODO rename
|
||||||
void* context,
|
void* context,
|
||||||
const char* preset_name,
|
const char* preset_name,
|
||||||
uint32_t frequency,
|
uint32_t frequency,
|
||||||
@@ -73,7 +73,7 @@ bool subghz_scene_set_type_submenu_gen_data_keeloq_bft( //TODO rename
|
|||||||
uint32_t seed,
|
uint32_t seed,
|
||||||
const char* manufacture_name);
|
const char* manufacture_name);
|
||||||
|
|
||||||
bool subghz_scene_set_type_submenu_gen_data_nice_flor( //TODO rename
|
bool subghz_txrx_gen_nice_flor_s_protocol( //TODO rename
|
||||||
void* context,
|
void* context,
|
||||||
const char* preset_name,
|
const char* preset_name,
|
||||||
uint32_t frequency,
|
uint32_t frequency,
|
||||||
@@ -82,7 +82,7 @@ bool subghz_scene_set_type_submenu_gen_data_nice_flor( //TODO rename
|
|||||||
uint16_t cnt,
|
uint16_t cnt,
|
||||||
bool nice_one);
|
bool nice_one);
|
||||||
|
|
||||||
bool subghz_scene_set_type_submenu_gen_data_faac_slh( //TODO rename
|
bool subghz_txrx_gen_faac_slh_protocol( //TODO rename
|
||||||
void* context,
|
void* context,
|
||||||
const char* preset_name,
|
const char* preset_name,
|
||||||
uint32_t frequency,
|
uint32_t frequency,
|
||||||
@@ -92,7 +92,7 @@ bool subghz_scene_set_type_submenu_gen_data_faac_slh( //TODO rename
|
|||||||
uint32_t seed,
|
uint32_t seed,
|
||||||
const char* manufacture_name);
|
const char* manufacture_name);
|
||||||
|
|
||||||
bool subghz_scene_set_type_submenu_gen_data_alutech_at_4n( //TODO rename
|
bool subghz_txrx_gen_alutech_at_4n_protocol( //TODO rename
|
||||||
void* context,
|
void* context,
|
||||||
const char* preset_name,
|
const char* preset_name,
|
||||||
uint32_t frequency,
|
uint32_t frequency,
|
||||||
@@ -100,7 +100,7 @@ bool subghz_scene_set_type_submenu_gen_data_alutech_at_4n( //TODO rename
|
|||||||
uint8_t btn,
|
uint8_t btn,
|
||||||
uint16_t cnt);
|
uint16_t cnt);
|
||||||
|
|
||||||
bool subghz_scene_set_type_submenu_gen_data_somfy_telis( //TODO rename
|
bool subghz_txrx_gen_somfy_telis_protocol( //TODO rename
|
||||||
void* context,
|
void* context,
|
||||||
const char* preset_name,
|
const char* preset_name,
|
||||||
uint32_t frequency,
|
uint32_t frequency,
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ bool subghz_scene_set_seed_on_event(void* context, SceneManagerEvent event) {
|
|||||||
seed = subghz->secure_data->seed[0] << 24 | subghz->secure_data->seed[1] << 16 |
|
seed = subghz->secure_data->seed[0] << 24 | subghz->secure_data->seed[1] << 16 |
|
||||||
subghz->secure_data->seed[2] << 8 | subghz->secure_data->seed[3];
|
subghz->secure_data->seed[2] << 8 | subghz->secure_data->seed[3];
|
||||||
|
|
||||||
generated_protocol = subghz_scene_set_type_submenu_gen_data_keeloq_bft(
|
generated_protocol = subghz_txrx_gen_keeloq_bft_protocol(
|
||||||
subghz->txrx,
|
subghz->txrx,
|
||||||
"AM650",
|
"AM650",
|
||||||
433920000,
|
433920000,
|
||||||
@@ -74,7 +74,7 @@ bool subghz_scene_set_seed_on_event(void* context, SceneManagerEvent event) {
|
|||||||
subghz->secure_data->seed[2] << 8 | subghz->secure_data->seed[3];
|
subghz->secure_data->seed[2] << 8 | subghz->secure_data->seed[3];
|
||||||
|
|
||||||
if(state == SubmenuIndexFaacSLH_433) {
|
if(state == SubmenuIndexFaacSLH_433) {
|
||||||
generated_protocol = subghz_scene_set_type_submenu_gen_data_faac_slh(
|
generated_protocol = subghz_txrx_gen_faac_slh_protocol(
|
||||||
subghz->txrx,
|
subghz->txrx,
|
||||||
"AM650",
|
"AM650",
|
||||||
433920000,
|
433920000,
|
||||||
@@ -84,7 +84,7 @@ bool subghz_scene_set_seed_on_event(void* context, SceneManagerEvent event) {
|
|||||||
seed,
|
seed,
|
||||||
"FAAC_SLH");
|
"FAAC_SLH");
|
||||||
} else if(state == SubmenuIndexFaacSLH_868) {
|
} else if(state == SubmenuIndexFaacSLH_868) {
|
||||||
generated_protocol = subghz_scene_set_type_submenu_gen_data_faac_slh(
|
generated_protocol = subghz_txrx_gen_faac_slh_protocol(
|
||||||
subghz->txrx,
|
subghz->txrx,
|
||||||
"AM650",
|
"AM650",
|
||||||
868350000,
|
868350000,
|
||||||
|
|||||||
@@ -535,7 +535,7 @@ bool subghz_scene_set_type_on_event(void* context, SceneManagerEvent event) {
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case SubmenuIndexBFTMitto:
|
case SubmenuIndexBFTMitto:
|
||||||
generated_protocol = subghz_scene_set_type_submenu_gen_data_keeloq_bft(
|
generated_protocol = subghz_txrx_gen_keeloq_bft_protocol(
|
||||||
subghz->txrx,
|
subghz->txrx,
|
||||||
"AM650",
|
"AM650",
|
||||||
433920000,
|
433920000,
|
||||||
@@ -551,7 +551,7 @@ bool subghz_scene_set_type_on_event(void* context, SceneManagerEvent event) {
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case SubmenuIndexAlutechAT4N:
|
case SubmenuIndexAlutechAT4N:
|
||||||
generated_protocol = subghz_scene_set_type_submenu_gen_data_alutech_at_4n(
|
generated_protocol = subghz_txrx_gen_alutech_at_4n_protocol(
|
||||||
subghz->txrx, "AM650", 433920000, (key & 0x000FFFFF) | 0x00100000, 0x44, 0x0003);
|
subghz->txrx, "AM650", 433920000, (key & 0x000FFFFF) | 0x00100000, 0x44, 0x0003);
|
||||||
if(!generated_protocol) {
|
if(!generated_protocol) {
|
||||||
furi_string_set(
|
furi_string_set(
|
||||||
@@ -560,7 +560,7 @@ bool subghz_scene_set_type_on_event(void* context, SceneManagerEvent event) {
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case SubmenuIndexSomfyTelis:
|
case SubmenuIndexSomfyTelis:
|
||||||
generated_protocol = subghz_scene_set_type_submenu_gen_data_somfy_telis(
|
generated_protocol = subghz_txrx_gen_somfy_telis_protocol(
|
||||||
subghz->txrx, "AM650", 433920000, key & 0x00FFFFFF, 0x2, 0x0003);
|
subghz->txrx, "AM650", 433920000, key & 0x00FFFFFF, 0x2, 0x0003);
|
||||||
if(!generated_protocol) { //TODO does not use databases
|
if(!generated_protocol) { //TODO does not use databases
|
||||||
furi_string_set(
|
furi_string_set(
|
||||||
@@ -587,7 +587,7 @@ bool subghz_scene_set_type_on_event(void* context, SceneManagerEvent event) {
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case SubmenuIndexNiceFlorS_433_92:
|
case SubmenuIndexNiceFlorS_433_92:
|
||||||
generated_protocol = subghz_scene_set_type_submenu_gen_data_nice_flor(
|
generated_protocol = subghz_txrx_gen_nice_flor_s_protocol(
|
||||||
subghz->txrx, "AM650", 433920000, key & 0x0FFFFFFF, 0x1, 0x0003, false);
|
subghz->txrx, "AM650", 433920000, key & 0x0FFFFFFF, 0x1, 0x0003, false);
|
||||||
if(!generated_protocol) {
|
if(!generated_protocol) {
|
||||||
furi_string_set(
|
furi_string_set(
|
||||||
@@ -596,7 +596,7 @@ bool subghz_scene_set_type_on_event(void* context, SceneManagerEvent event) {
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case SubmenuIndexNiceOne_433_92:
|
case SubmenuIndexNiceOne_433_92:
|
||||||
generated_protocol = subghz_scene_set_type_submenu_gen_data_nice_flor(
|
generated_protocol = subghz_txrx_gen_nice_flor_s_protocol(
|
||||||
subghz->txrx, "AM650", 433920000, key & 0x0FFFFFFF, 0x1, 0x0003, true);
|
subghz->txrx, "AM650", 433920000, key & 0x0FFFFFFF, 0x1, 0x0003, true);
|
||||||
if(!generated_protocol) {
|
if(!generated_protocol) {
|
||||||
furi_string_set(
|
furi_string_set(
|
||||||
|
|||||||
Reference in New Issue
Block a user