dtmf_dolphin_tone.h 748 B

12345678910111213141516171819202122232425
  1. #pragma once
  2. #include "tones/dtmf_dolphin_dialer_tones.h"
  3. #include "tones/dtmf_dolphin_bluebox_tones.h"
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7. typedef enum {
  8. DTMF_DOLPHIN_TONE_BLOCK_DIALER,
  9. DTMF_DOLPHIN_TONE_BLOCK_BLUEBOX,
  10. DTMF_DOLPHIN_TONE_BLOCK_REDBOX,
  11. } DTMFDolphinToneSection;
  12. const char* dtmf_dolphin_get_tone_name(uint8_t row, uint8_t col, DTMFDolphinToneSection block);
  13. uint8_t dtmf_dolphin_get_tone_span(uint8_t row, uint8_t col, DTMFDolphinToneSection block);
  14. void dtmf_dolphin_get_tone_frequencies(float *freq, uint8_t row, uint8_t col, DTMFDolphinToneSection block);
  15. void dtmf_dolphin_tone_get_max_pos(uint8_t *max_rows, uint8_t *max_cols, uint8_t *max_span, DTMFDolphinToneSection block);
  16. #ifdef __cplusplus
  17. }
  18. #endif