theCore C++ embedded framework
cs43l22.hpp File Reference

Contains implementation for CS43L22 driver. More...

#include <ecl/err.hpp>
#include <dev/bus.hpp>
#include <common/spi.hpp>
#include <functional>
Include dependency graph for cs43l22.hpp:
This graph shows which files directly or indirectly include this file:

Data Structures

class  ecl::cs43l22< I2c, I2s, Rst_gpio >
 The CS43L22 codec driver implementation. More...
 

Namespaces

 ecl
 

Detailed Description

Contains implementation for CS43L22 driver.

The CS43L22 is a highly integrated, low power stereo DAC with headphone and ClassD speaker amplifiers See: https://www.cirrus.com/products/cs43l22/

Restrictions: Current implementation supports only I2S audio format. Sample size is fixed and equal to 16 bits. Also, DAC requires external clock (MCLK) to operate correctly. In many implementations, I2S interface can output MCLK. It can be used as external clock for DAC.