Symbols
loading...
Files
loading...

i2s_es7210_tdm sample sample

i2s_es7210_tdm sample is a sample project defining the following symbols:

Most used functions

Other commonly used symbols

Name
Location
Summary
Type of es7210 device handle
Clock coefficient structure
ES7210 I2C config struct
ES7210 codec config struct
ES7210 clock coefficient lookup table
left justify format
DSP-A format, MSB is available on 2nd SCLK rising edge after LRCK rising edge
DSP-B format, MSB is available on 1st SCLK rising edge after LRCK rising edge
I2C port used to connecte ES7210 device
I2C address of ES7210 device, can be 0x40 0x41 0x42 or 0x43 according to A0 and A1 pin
Sample rate in Hz, common values are supported
MCLK-to-Sample-rate clock ratio, typically 256
I2S format of ES7210's output, can be any value in es7210_i2s_fmt_t
I2S bit width of ES7210's output, can be any value in es7210_i2s_bits_t
Bias volatge of analog MIC, please refer to your MIC's datasheet
Gain of analog MIC, please adjust according to your MIC's sensitivity
Choose whether to enable TDM mode
mclk frequency
adcclk divider
dll_bypass
doubler enable
The high 4 bits of lrck
The low 8 bits of lrck
select mclk source
I2C address of the ES7210 The 8-bit address format is as follows: (Slave Address) ┌─────────────────┷─────────────────┐ ┌─────┐─────┐─────┐─────┐─────┐─────┐─────┐─────┐ | 1 | 0 | 0 | 0 | 0 | AD1 | AD0 | R/W | └─────┘─────┘─────┘─────┘─────┘─────┘─────┘─────┘ └────────┯────────┘ └───┯───┘ (Fixed) (Hardware Selectable) And the 7-bit slave address is the most important data for users. For example, if the chip's AD0,AD1 are connected to GND, its 7-bit slave address is 1000000b(0x40). Then users can use `ES7210_ADDRRES_00` to init it.

Dependencies

i2s_es7210_tdm sample depends on the following libraries: