|
PebbleOS
|
#include <board/board.h>#include <pbl/drivers/audio.h>#include <pbl/util/circular_buffer.h>#include <stdbool.h>#include <stdint.h>Data Structures | |
| struct | AudioDevice |
| DA7212 audio device. More... | |
Macros | |
| #define | CFG_AUDIO_PLAYBACK_PIPE_SIZE (1024) |
| Size, in bytes, of each half of the DAC DMA buffer. | |
| #define | CIRCULAR_BUF_SIZE_MS (128) |
| Length of the queue between audio_write() and DMA, in milliseconds. | |
| #define | CIRCULAR_BUF_SIZE_SAMPLES ((AUDIO_PLAYBACK_SAMPLE_RATE * CIRCULAR_BUF_SIZE_MS) / 1000) |
| Length of the queue between audio_write() and DMA, in samples. | |
| #define | CIRCULAR_BUF_SIZE_BYTES (CIRCULAR_BUF_SIZE_SAMPLES * sizeof(int16_t)) |
| Size of the queue between audio_write() and DMA, in bytes. | |
Functions | |
| void | audec_dac0_dma_irq_handler (AudioDevice *audio_device) |
| AUDCODEC DAC DMA interrupt handler. | |