dtmf_dolphin_data.h 993 B

123456789101112131415161718192021222324252627282930
  1. #pragma once
  2. #include <stddef.h>
  3. #include <stdint.h>
  4. #include <stdbool.h>
  5. #define DTMF_DOLPHIN_MAX_TONE_COUNT 16
  6. typedef enum {
  7. DTMF_DOLPHIN_TONE_BLOCK_DIALER,
  8. DTMF_DOLPHIN_TONE_BLOCK_BLUEBOX,
  9. DTMF_DOLPHIN_TONE_BLOCK_REDBOX_US,
  10. DTMF_DOLPHIN_TONE_BLOCK_REDBOX_UK,
  11. DTMF_DOLPHIN_TONE_BLOCK_MISC,
  12. } DTMFDolphinToneSection;
  13. void dtmf_dolphin_data_set_current_section(DTMFDolphinToneSection section);
  14. DTMFDolphinToneSection dtmf_dolphin_data_get_current_section();
  15. bool dtmf_dolphin_data_get_tone_frequencies(float *freq1, float *freq2, uint8_t row, uint8_t col);
  16. bool dtmf_dolphin_data_get_filter_data(uint16_t *pulses, uint16_t *pulse_ms, uint16_t *gap_ms, uint8_t row, uint8_t col);
  17. const char* dtmf_dolphin_data_get_tone_name(uint8_t row, uint8_t col);
  18. const char* dtmf_dolphin_data_get_current_section_name();
  19. void dtmf_dolphin_tone_get_max_pos(uint8_t* max_rows, uint8_t* max_cols, uint8_t* max_span);
  20. uint8_t dtmf_dolphin_get_tone_span(uint8_t row, uint8_t col);