subghz_protocol_nice_flor_s.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. #pragma once
  2. #include "subghz_protocol_common.h"
  3. typedef struct SubGhzProtocolNiceFlorS SubGhzProtocolNiceFlorS;
  4. /** Allocate SubGhzProtocolNiceFlorS
  5. *
  6. * @return SubGhzProtocolNiceFlorS*
  7. */
  8. SubGhzProtocolNiceFlorS* subghz_protocol_nice_flor_s_alloc();
  9. /** Free SubGhzProtocolNiceFlorS
  10. *
  11. * @param instance
  12. */
  13. void subghz_protocol_nice_flor_s_free(SubGhzProtocolNiceFlorS* instance);
  14. /** File name rainbow table Nice Flor-S
  15. *
  16. * @param instance - SubGhzProtocolNiceFlorS instance
  17. * @param file_name - "path/file_name"
  18. */
  19. void subghz_protocol_nice_flor_s_name_file(SubGhzProtocolNiceFlorS* instance, const char* name);
  20. /** Sends the key on the air
  21. *
  22. * @param instance - SubGhzProtocolNiceFlorS instance
  23. * @param key - key send
  24. * @param bit - count bit key
  25. * @param repeat - repeat send key
  26. */
  27. void subghz_protocol_nice_flor_s_send_key(
  28. SubGhzProtocolNiceFlorS* instance,
  29. uint64_t key,
  30. uint8_t bit,
  31. uint8_t repeat);
  32. /** Reset internal state
  33. * @param instance - SubGhzProtocolNiceFlorS instance
  34. */
  35. void subghz_protocol_nice_flor_s_reset(SubGhzProtocolNiceFlorS* instance);
  36. /** Parse accepted duration
  37. *
  38. * @param instance - SubGhzProtocolNiceFlorS instance
  39. * @param data - LevelDuration level_duration
  40. */
  41. void subghz_protocol_nice_flor_s_parse(
  42. SubGhzProtocolNiceFlorS* instance,
  43. bool level,
  44. uint32_t duration);
  45. /** Outputting information from the parser
  46. *
  47. * @param instance - SubGhzProtocolNiceFlorS* instance
  48. * @param output - output string
  49. */
  50. void subghz_protocol_nice_flor_s_to_str(SubGhzProtocolNiceFlorS* instance, string_t output);
  51. /** Loading protocol from bin data
  52. *
  53. * @param instance - SubGhzProtocolNiceFlorS instance
  54. * @param context - SubGhzProtocolCommonLoad context
  55. */
  56. void subghz_decoder_nice_flor_s_to_load_protocol(SubGhzProtocolNiceFlorS* instance, void* context);