mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-23 13:03:13 +00:00
ffa3996a5e
* clang-format: AllowShortEnumsOnASingleLine: false * clang-format: InsertNewlineAtEOF: true * clang-format: Standard: c++20 * clang-format: AlignConsecutiveBitFields * clang-format: AlignConsecutiveMacros * clang-format: RemoveParentheses: ReturnStatement * clang-format: RemoveSemicolon: true * Restored RemoveParentheses: Leave, retained general changes for it * formatting: fixed logging TAGs * Formatting update for dev Co-authored-by: あく <alleteam@gmail.com>
31 lines
606 B
C
31 lines
606 B
C
#pragma once
|
|
#include <toolbox/protocols/protocol_dict.h>
|
|
#include "protocols/lfrfid_protocols.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/**
|
|
* @brief Save protocol from dictionary to file
|
|
*
|
|
* @param dict
|
|
* @param protocol
|
|
* @param filename
|
|
* @return true
|
|
* @return false
|
|
*/
|
|
bool lfrfid_dict_file_save(ProtocolDict* dict, ProtocolId protocol, const char* filename);
|
|
|
|
/**
|
|
* @brief Load protocol from file to dictionary
|
|
*
|
|
* @param dict
|
|
* @param filename
|
|
* @return ProtocolId
|
|
*/
|
|
ProtocolId lfrfid_dict_file_load(ProtocolDict* dict, const char* filename);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|