You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
341B

  1. #pragma once
  2. #include <cstdint>
  3. #define DTMF_PI 3.14159265358979323846
  4. namespace SynthDevKit {
  5. class DTMF {
  6. public:
  7. DTMF (uint32_t);
  8. void reset ( );
  9. float stepValue ( );
  10. void setTone (char);
  11. private:
  12. uint32_t step;
  13. uint32_t sampleRate;
  14. uint16_t lowFreq;
  15. uint16_t highFreq;
  16. };
  17. }