|
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
-
-
-
- #if defined(__IMXRT1052__) || defined(__IMXRT1062__)
- #ifndef _input_spdif3_h_
- #define _input_spdif3_h_
-
- #include "Arduino.h"
- #include "AudioStream.h"
- #include "DMAChannel.h"
-
- class AudioInputSPDIF3 : public AudioStream
- {
- public:
- AudioInputSPDIF3(void) : AudioStream(0, NULL) { begin(); }
- virtual void update(void);
- void begin(void);
- static bool pllLocked(void);
- static unsigned int sampleRate(void);
- protected:
-
- static bool update_responsibility;
- static DMAChannel dma;
- static void isr(void);
- private:
- static audio_block_t *block_left;
- static audio_block_t *block_right;
- static uint16_t block_offset;
- };
-
- #endif
- #endif
|