|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
-
-
- #if defined(__IMXRT1052__) || defined(__IMXRT1062__)
- #ifndef output_tdm2_h_
- #define output_tdm2_h_
-
- #include "Arduino.h"
- #include "AudioStream.h"
- #include "DMAChannel.h"
-
- class AudioOutputTDM2 : public AudioStream
- {
- public:
- AudioOutputTDM2(void) : AudioStream(16, inputQueueArray) { begin(); }
- virtual void update(void);
- void begin(void);
- friend class AudioInputTDM2;
- protected:
- static void config_tdm(void);
- static audio_block_t *block_input[16];
- static bool update_responsibility;
- static DMAChannel dma;
- static void isr(void);
- private:
- audio_block_t *inputQueueArray[16];
- };
-
-
- #endif
- #endif
|