Plays USB Audio packets through external DAC (Cirrus Logic CS4344). Simple demo code, don't expect a sophisticated I2S library. HW setup: mbed DIP 5 (I2STX_SDA) -> DAC SDIN (Serial Audio Data Input) mbed DIP 6 (I2STX_WS) -> DAC LRCK (Left Right Clock) mbed DIP 7 (I2STX_CLK) -> DAC SCLK (External Serial Clock Input) mbed DIP 30 (I2SRX_CLK) -> DAC MCLK (Master Clock) also needed an extra USB connector wired to mbed. Does not work with built-in USB. Code needs a bit of clean up.

Dependencies:   mbed

I2S.h

Committer:
csorbag
Date:
2012-04-16
Revision:
1:12e8ee1b7ea2
Parent:
0:bf9e7b99dda5

File content as of revision 1:12e8ee1b7ea2:

#ifndef I2S_H
#define I2S_H

#include "mbed.h"

void setup(Serial *out);
void play(int16_t *buf,int16_t length);


#endif