Loading...
Searching...
No Matches
lfrfid_raw_file.h
1#pragma once
2#include <furi.h>
3#include <storage/storage.h>
4
5#ifdef __cplusplus
6extern "C" {
7#endif
8
9typedef struct LFRFIDRawFile LFRFIDRawFile;
10
17LFRFIDRawFile* lfrfid_raw_file_alloc(Storage* storage);
18
24void lfrfid_raw_file_free(LFRFIDRawFile* file);
25
33bool lfrfid_raw_file_open_write(LFRFIDRawFile* file, const char* file_path);
34
41bool lfrfid_raw_file_open_read(LFRFIDRawFile* file, const char* file_path);
42
52bool lfrfid_raw_file_write_header(
53 LFRFIDRawFile* file,
54 float frequency,
55 float duty_cycle,
56 uint32_t max_buffer_size);
57
66bool lfrfid_raw_file_write_buffer(LFRFIDRawFile* file, uint8_t* buffer_data, size_t buffer_size);
67
76bool lfrfid_raw_file_read_header(LFRFIDRawFile* file, float* frequency, float* duty_cycle);
77
87bool lfrfid_raw_file_read_pair(
88 LFRFIDRawFile* file,
89 uint32_t* duration,
90 uint32_t* pulse,
91 bool* pass_end);
92
93#ifdef __cplusplus
94}
95#endif
APIs for working with storages, directories and files.
Definition lfrfid_raw_file.c:19
Definition storage_i.h:23