Sub-GHz: Streamline generic serialize, -1.5k dfu

This commit is contained in:
Willy-JL
2024-06-18 01:15:23 +02:00
parent 3ac2d00a77
commit 2c9b289c21
11 changed files with 54 additions and 316 deletions

View File

@@ -1,22 +1,13 @@
#pragma once
#include <stdbool.h>
#include <stdint.h>
#include <stddef.h>
#include "../blocks/generic_i.h"
#include <lib/flipper_format/flipper_format.h>
#include "furi.h"
#include <furi_hal.h>
#include <lib/subghz/types.h>
#include <locale/locale.h>
#ifdef __cplusplus
extern "C" {
#endif
#define TPMS_KEY_FILE_VERSION 1
#define TPMS_KEY_FILE_TYPE "Flipper SubGhz Key File"
#define TPMS_NO_BATT 0xFF
typedef struct TPMSBlockGeneric TPMSBlockGeneric;
@@ -35,13 +26,6 @@ struct TPMSBlockGeneric {
float temperature; // celsius
};
/**
* Get name preset.
* @param preset_name name preset
* @param preset_str Output name preset
*/
void tpms_block_generic_get_preset_name(const char* preset_name, FuriString* preset_str);
/**
* Serialize data TPMSBlockGeneric.
* @param instance Pointer to a TPMSBlockGeneric instance