dtmf_dolphin_data.h 870 B

12345678910111213141516171819202122232425262728
  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. const char* dtmf_dolphin_data_get_tone_name(uint8_t row, uint8_t col);
  17. const char* dtmf_dolphin_data_get_current_section_name();
  18. void dtmf_dolphin_tone_get_max_pos(uint8_t* max_rows, uint8_t* max_cols, uint8_t* max_span);
  19. uint8_t dtmf_dolphin_get_tone_span(uint8_t row, uint8_t col);