mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-26 06:20:21 +00:00
4bf29827f8
* Quicksave 1 * Header stage complete * Source stage complete * Lint & merge fixes * Includes * Documentation step 1 * FBT: output free size considering BT STACK * Documentation step 2 * py lint * Fix music player plugin * unit test stage 1: string allocator, mem, getters, setters, appends, compare, search. * unit test: string equality * unit test: string replace * unit test: string start_with, end_with * unit test: string trim * unit test: utf-8 * Rename * Revert fw_size changes * Simplify CLI backspace handling * Simplify CLI character insert * Merge fixes * Furi: correct filenaming and spelling * Bt: remove furi string include Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
26 lines
602 B
C
26 lines
602 B
C
#pragma once
|
|
|
|
#include <lib/nfc/protocols/mifare_classic.h>
|
|
|
|
typedef struct Mfkey32 Mfkey32;
|
|
|
|
typedef enum {
|
|
Mfkey32EventParamCollected,
|
|
} Mfkey32Event;
|
|
|
|
typedef void (*Mfkey32ParseDataCallback)(Mfkey32Event event, void* context);
|
|
|
|
Mfkey32* mfkey32_alloc(uint32_t cuid);
|
|
|
|
void mfkey32_free(Mfkey32* instance);
|
|
|
|
void mfkey32_process_data(
|
|
Mfkey32* instance,
|
|
uint8_t* data,
|
|
uint16_t len,
|
|
bool reader_to_tag,
|
|
bool crc_dropped);
|
|
|
|
void mfkey32_set_callback(Mfkey32* instance, Mfkey32ParseDataCallback callback, void* context);
|
|
|
|
uint16_t mfkey32_get_auth_sectors(FuriString* string);
|