lfrfid_dict_file.h 605 B

12345678910111213141516171819202122232425262728293031
  1. #pragma once
  2. #include <toolbox/protocols/protocol_dict.h>
  3. #include "protocols/lfrfid_protocols.h"
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7. /**
  8. * @brief Save protocol from dictionary to file
  9. *
  10. * @param dict
  11. * @param protocol
  12. * @param filename
  13. * @return true
  14. * @return false
  15. */
  16. bool lfrfid_dict_file_save(ProtocolDict* dict, ProtocolId protocol, const char* filename);
  17. /**
  18. * @brief Load protocol from file to dictionary
  19. *
  20. * @param dict
  21. * @param filename
  22. * @return ProtocolId
  23. */
  24. ProtocolId lfrfid_dict_file_load(ProtocolDict* dict, const char* filename);
  25. #ifdef __cplusplus
  26. }
  27. #endif