mirror of
https://protopirate.net/ProtoPirate/ProtoPirate.git
synced 2026-06-07 20:51:40 +00:00
a4937375ea
This commit is from @xMasterX (MMX) and introduces implementation files for StarLine and Scher-Khan SubGhz protocols, including protocol decoders, encoders, and keeloq key management. Adds common protocol utilities, keystore handling, and protocol-specific logic for key generation, serialization, and deserialization.
18 lines
712 B
C
18 lines
712 B
C
#include "protocols_common.h"
|
|
|
|
const char* protopirate_get_short_preset_name(const char* preset_name) {
|
|
if(!strcmp(preset_name, "FuriHalSubGhzPresetOok270Async")) {
|
|
return "AM270";
|
|
} else if(!strcmp(preset_name, "FuriHalSubGhzPresetOok650Async")) {
|
|
return "AM650";
|
|
} else if(!strcmp(preset_name, "FuriHalSubGhzPreset2FSKDev238Async")) {
|
|
return "FM238";
|
|
} else if(!strcmp(preset_name, "FuriHalSubGhzPreset2FSKDev12KAsync")) {
|
|
return "FM12K";
|
|
} else if(!strcmp(preset_name, "FuriHalSubGhzPreset2FSKDev476Async")) {
|
|
return "FM476";
|
|
} else if(!strcmp(preset_name, "FuriHalSubGhzPresetCustom")) {
|
|
return "CUSTOM";
|
|
}
|
|
return preset_name;
|
|
} |