decoder.h 433 B

1234567891011121314151617
  1. #pragma once
  2. #include <stdbool.h>
  3. #include <stdint.h>
  4. #include <stddef.h>
  5. typedef struct SubGhzBlockDecoder SubGhzBlockDecoder;
  6. struct SubGhzBlockDecoder {
  7. uint32_t parser_step;
  8. uint32_t te_last;
  9. uint64_t decode_data;
  10. uint8_t decode_count_bit;
  11. };
  12. void subghz_protocol_blocks_add_bit(SubGhzBlockDecoder* decoder, uint8_t bit);
  13. uint8_t subghz_protocol_blocks_get_hash_data(SubGhzBlockDecoder* decoder, size_t len);