flipper-zero-tutorials/subghz/apps/genie-recorder/genie_file.h

18 lines
571 B
C
Raw Permalink Normal View History

2023-09-28 19:56:39 +00:00
#pragma once
#include <furi.h>
2024-02-04 19:13:58 +00:00
typedef struct GenieFile GenieFile;
GenieFile* genie_file_load(const char* path);
void genie_file_free(GenieFile* file);
uint32_t genie_file_get_key_hi(GenieFile* file);
uint32_t genie_file_get_key_lo(GenieFile* file);
uint16_t genie_file_get_last_sent(GenieFile* file);
uint16_t genie_file_get_rec_count(GenieFile* file);
void genie_file_set_last_sent(const char* genie_path, uint16_t last_sent);
2023-09-28 19:56:39 +00:00
bool genie_save(uint32_t count, FuriString* key);
uint32_t genie_save_bin(const char* key);
uint32_t genie_load();
2023-10-11 21:27:41 +00:00
void genie_file_init();