environment.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. #pragma once
  2. #include <furi.h>
  3. #include "subghz_keystore.h"
  4. typedef struct SubGhzEnvironment SubGhzEnvironment;
  5. /**
  6. * Allocate SubGhzEnvironment.
  7. * @return SubGhzEnvironment* pointer to a SubGhzEnvironment instance
  8. */
  9. SubGhzEnvironment* subghz_environment_alloc();
  10. /**
  11. * Free SubGhzEnvironment.
  12. * @param instance Pointer to a SubGhzEnvironment instance
  13. */
  14. void subghz_environment_free(SubGhzEnvironment* instance);
  15. /**
  16. * Downloading the manufacture key file.
  17. * @param instance Pointer to a SubGhzEnvironment instance
  18. * @param filename Full path to the file
  19. * @return true On succes
  20. */
  21. bool subghz_environment_load_keystore(SubGhzEnvironment* instance, const char* filename);
  22. /**
  23. * Get pointer to a SubGhzKeystore* instance.
  24. * @return SubGhzEnvironment* pointer to a SubGhzEnvironment instance
  25. */
  26. SubGhzKeystore* subghz_environment_get_keystore(SubGhzEnvironment* instance);
  27. /**
  28. * Set filename to work with Came Atomo.
  29. * @param instance Pointer to a SubGhzEnvironment instance
  30. * @param filename Full path to the file
  31. */
  32. void subghz_environment_set_came_atomo_rainbow_table_file_name(
  33. SubGhzEnvironment* instance,
  34. const char* filename);
  35. /**
  36. * Get filename to work with Came Atomo.
  37. * @param instance Pointer to a SubGhzEnvironment instance
  38. * @return Full path to the file
  39. */
  40. const char* subghz_environment_get_came_atomo_rainbow_table_file_name(SubGhzEnvironment* instance);
  41. /**
  42. * Set filename to work with Nice Flor-S.
  43. * @param instance Pointer to a SubGhzEnvironment instance
  44. * @param filename Full path to the file
  45. */
  46. void subghz_environment_set_nice_flor_s_rainbow_table_file_name(
  47. SubGhzEnvironment* instance,
  48. const char* filename);
  49. /**
  50. * Get filename to work with Nice Flor-S.
  51. * @param instance Pointer to a SubGhzEnvironment instance
  52. * @return Full path to the file
  53. */
  54. const char*
  55. subghz_environment_get_nice_flor_s_rainbow_table_file_name(SubGhzEnvironment* instance);