Kestrel Interface
Loading...
Searching...
No Matches
kest_sgtl5000.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define CHIP_ID   0x0000
#define CHIP_DIG_POWER   0x0002
#define CHIP_CLK_CTRL   0x0004
#define CHIP_I2S_CTRL   0x0006
#define CHIP_SSS_CTRL   0x000A
#define CHIP_ADCDAC_CTRL   0x000E
#define CHIP_DAC_VOL   0x0010
#define CHIP_PAD_STRENGTH   0x0014
#define CHIP_ANA_ADC_CTRL   0x0020
#define CHIP_ANA_HP_CTRL   0x0022
#define CHIP_ANA_CTRL   0x0024
#define CHIP_LINREG_CTRL   0x0026
#define CHIP_REF_CTRL   0x0028
#define CHIP_MIC_CTRL   0x002A
#define CHIP_LINE_OUT_CTRL   0x002C
#define CHIP_LINE_OUT_VOL   0x002E
#define CHIP_ANA_POWER   0x0030
#define CHIP_PLL_CTRL   0x0032
#define CHIP_CLK_TOP_CTRL   0x0034
#define CHIP_ANA_STATUS   0x0036
#define CHIP_ANA_TEST1   0x0038
#define CHIP_ANA_TEST2   0x003A
#define CHIP_SHORT_CTRL   0x003C
#define DAP_CONTROL   0x0100
#define DAP_PEQ   0x0102
#define DAP_BASS_ENHANCE   0x0104
#define DAP_BASS_ENHANCE_CTRL   0x0106
#define DAP_AUDIO_EQ   0x0108
#define DAP_SGTL_SURROUND   0x010A
#define DAP_FILTER_COEF_ACCESS   0x010C
#define DAP_COEF_WR_B0_MSB   0x010E
#define DAP_COEF_WR_B0_LSB   0x0110
#define DAP_AUDIO_EQ_BASS_BAND0   0x0116
#define DAP_AUDIO_EQ_BAND1   0x0118
#define DAP_AUDIO_EQ_BAND2   0x011A
#define DAP_AUDIO_EQ_BAND3   0x011C
#define DAP_AUDIO_EQ_TREBLE_BAND4   0x011E
#define DAP_MAIN_CHAN   0x0120
#define DAP_MIX_CHAN   0x0122
#define DAP_AVC_CTRL   0x0124
#define DAP_AVC_THRESHOLD   0x0126
#define DAP_AVC_ATTACK   0x0128
#define DAP_AVC_DECAY   0x012A
#define DAP_COEF_WR_B1_MSB   0x012C
#define DAP_COEF_WR_B1_LSB   0x012E
#define DAP_COEF_WR_B2_MSB   0x0130
#define DAP_COEF_WR_B2_LSB   0x0132
#define DAP_COEF_WR_A1_MSB   0x0134
#define DAP_COEF_WR_A1_LSB   0x0136
#define DAP_COEF_WR_A2_MSB   0x0138
#define DAP_COEF_WR_A2_LSB   0x013A
#define SGTL5000_I2C_ADDR_CS_LOW   0x0A
#define SGTL5000_I2C_ADDR_CS_HIGH   0x2A

Functions

void kest_sgtl5000_init (void *param)

Macro Definition Documentation

◆ CHIP_ADCDAC_CTRL

#define CHIP_ADCDAC_CTRL   0x000E

Definition at line 9 of file kest_sgtl5000.h.

Referenced by sgtl5000_enable(), and sgtl5000_readout_registers().

◆ CHIP_ANA_ADC_CTRL

#define CHIP_ANA_ADC_CTRL   0x0020

Definition at line 12 of file kest_sgtl5000.h.

Referenced by sgtl5000_line_in_level(), and sgtl5000_readout_registers().

◆ CHIP_ANA_CTRL

#define CHIP_ANA_CTRL   0x0024

Definition at line 14 of file kest_sgtl5000.h.

Referenced by sgtl5000_enable(), sgtl5000_readout_registers(), and sgtl5000_write_reg().

◆ CHIP_ANA_HP_CTRL

#define CHIP_ANA_HP_CTRL   0x0022

Definition at line 13 of file kest_sgtl5000.h.

Referenced by sgtl5000_enable(), and sgtl5000_readout_registers().

◆ CHIP_ANA_POWER

#define CHIP_ANA_POWER   0x0030

Definition at line 20 of file kest_sgtl5000.h.

Referenced by sgtl5000_enable(), and sgtl5000_readout_registers().

◆ CHIP_ANA_STATUS

#define CHIP_ANA_STATUS   0x0036

Definition at line 24 of file kest_sgtl5000.h.

Referenced by sgtl5000_readout_registers().

◆ CHIP_ANA_TEST1

#define CHIP_ANA_TEST1   0x0038

Definition at line 25 of file kest_sgtl5000.h.

Referenced by sgtl5000_readout_registers().

◆ CHIP_ANA_TEST2

#define CHIP_ANA_TEST2   0x003A

Definition at line 26 of file kest_sgtl5000.h.

Referenced by sgtl5000_readout_registers().

◆ CHIP_CLK_CTRL

#define CHIP_CLK_CTRL   0x0004

Definition at line 6 of file kest_sgtl5000.h.

Referenced by sgtl5000_enable(), and sgtl5000_readout_registers().

◆ CHIP_CLK_TOP_CTRL

#define CHIP_CLK_TOP_CTRL   0x0034

Definition at line 23 of file kest_sgtl5000.h.

Referenced by sgtl5000_readout_registers().

◆ CHIP_DAC_VOL

#define CHIP_DAC_VOL   0x0010

Definition at line 10 of file kest_sgtl5000.h.

Referenced by sgtl5000_enable(), and sgtl5000_readout_registers().

◆ CHIP_DIG_POWER

#define CHIP_DIG_POWER   0x0002

Definition at line 5 of file kest_sgtl5000.h.

Referenced by sgtl5000_enable(), and sgtl5000_readout_registers().

◆ CHIP_I2S_CTRL

#define CHIP_I2S_CTRL   0x0006

Definition at line 7 of file kest_sgtl5000.h.

Referenced by sgtl5000_enable(), and sgtl5000_readout_registers().

◆ CHIP_ID

#define CHIP_ID   0x0000

Definition at line 4 of file kest_sgtl5000.h.

Referenced by sgtl5000_readout_registers().

◆ CHIP_LINE_OUT_CTRL

#define CHIP_LINE_OUT_CTRL   0x002C

Definition at line 18 of file kest_sgtl5000.h.

Referenced by sgtl5000_enable(), and sgtl5000_readout_registers().

◆ CHIP_LINE_OUT_VOL

#define CHIP_LINE_OUT_VOL   0x002E

◆ CHIP_LINREG_CTRL

#define CHIP_LINREG_CTRL   0x0026

Definition at line 15 of file kest_sgtl5000.h.

Referenced by sgtl5000_enable(), and sgtl5000_readout_registers().

◆ CHIP_MIC_CTRL

#define CHIP_MIC_CTRL   0x002A

Definition at line 17 of file kest_sgtl5000.h.

Referenced by sgtl5000_readout_registers().

◆ CHIP_PAD_STRENGTH

#define CHIP_PAD_STRENGTH   0x0014

Definition at line 11 of file kest_sgtl5000.h.

Referenced by sgtl5000_readout_registers().

◆ CHIP_PLL_CTRL

#define CHIP_PLL_CTRL   0x0032

Definition at line 22 of file kest_sgtl5000.h.

Referenced by sgtl5000_readout_registers().

◆ CHIP_REF_CTRL

#define CHIP_REF_CTRL   0x0028

Definition at line 16 of file kest_sgtl5000.h.

Referenced by sgtl5000_enable(), and sgtl5000_readout_registers().

◆ CHIP_SHORT_CTRL

#define CHIP_SHORT_CTRL   0x003C

Definition at line 27 of file kest_sgtl5000.h.

Referenced by sgtl5000_enable(), and sgtl5000_readout_registers().

◆ CHIP_SSS_CTRL

#define CHIP_SSS_CTRL   0x000A

Definition at line 8 of file kest_sgtl5000.h.

Referenced by sgtl5000_enable(), and sgtl5000_readout_registers().

◆ DAP_AUDIO_EQ

#define DAP_AUDIO_EQ   0x0108

Definition at line 32 of file kest_sgtl5000.h.

◆ DAP_AUDIO_EQ_BAND1

#define DAP_AUDIO_EQ_BAND1   0x0118

Definition at line 38 of file kest_sgtl5000.h.

◆ DAP_AUDIO_EQ_BAND2

#define DAP_AUDIO_EQ_BAND2   0x011A

Definition at line 39 of file kest_sgtl5000.h.

◆ DAP_AUDIO_EQ_BAND3

#define DAP_AUDIO_EQ_BAND3   0x011C

Definition at line 40 of file kest_sgtl5000.h.

◆ DAP_AUDIO_EQ_BASS_BAND0

#define DAP_AUDIO_EQ_BASS_BAND0   0x0116

Definition at line 37 of file kest_sgtl5000.h.

◆ DAP_AUDIO_EQ_TREBLE_BAND4

#define DAP_AUDIO_EQ_TREBLE_BAND4   0x011E

Definition at line 41 of file kest_sgtl5000.h.

◆ DAP_AVC_ATTACK

#define DAP_AVC_ATTACK   0x0128

Definition at line 46 of file kest_sgtl5000.h.

◆ DAP_AVC_CTRL

#define DAP_AVC_CTRL   0x0124

Definition at line 44 of file kest_sgtl5000.h.

◆ DAP_AVC_DECAY

#define DAP_AVC_DECAY   0x012A

Definition at line 47 of file kest_sgtl5000.h.

◆ DAP_AVC_THRESHOLD

#define DAP_AVC_THRESHOLD   0x0126

Definition at line 45 of file kest_sgtl5000.h.

◆ DAP_BASS_ENHANCE

#define DAP_BASS_ENHANCE   0x0104

Definition at line 30 of file kest_sgtl5000.h.

◆ DAP_BASS_ENHANCE_CTRL

#define DAP_BASS_ENHANCE_CTRL   0x0106

Definition at line 31 of file kest_sgtl5000.h.

◆ DAP_COEF_WR_A1_LSB

#define DAP_COEF_WR_A1_LSB   0x0136

Definition at line 53 of file kest_sgtl5000.h.

◆ DAP_COEF_WR_A1_MSB

#define DAP_COEF_WR_A1_MSB   0x0134

Definition at line 52 of file kest_sgtl5000.h.

◆ DAP_COEF_WR_A2_LSB

#define DAP_COEF_WR_A2_LSB   0x013A

Definition at line 55 of file kest_sgtl5000.h.

◆ DAP_COEF_WR_A2_MSB

#define DAP_COEF_WR_A2_MSB   0x0138

Definition at line 54 of file kest_sgtl5000.h.

◆ DAP_COEF_WR_B0_LSB

#define DAP_COEF_WR_B0_LSB   0x0110

Definition at line 36 of file kest_sgtl5000.h.

◆ DAP_COEF_WR_B0_MSB

#define DAP_COEF_WR_B0_MSB   0x010E

Definition at line 35 of file kest_sgtl5000.h.

◆ DAP_COEF_WR_B1_LSB

#define DAP_COEF_WR_B1_LSB   0x012E

Definition at line 49 of file kest_sgtl5000.h.

◆ DAP_COEF_WR_B1_MSB

#define DAP_COEF_WR_B1_MSB   0x012C

Definition at line 48 of file kest_sgtl5000.h.

◆ DAP_COEF_WR_B2_LSB

#define DAP_COEF_WR_B2_LSB   0x0132

Definition at line 51 of file kest_sgtl5000.h.

◆ DAP_COEF_WR_B2_MSB

#define DAP_COEF_WR_B2_MSB   0x0130

Definition at line 50 of file kest_sgtl5000.h.

◆ DAP_CONTROL

#define DAP_CONTROL   0x0100

Definition at line 28 of file kest_sgtl5000.h.

◆ DAP_FILTER_COEF_ACCESS

#define DAP_FILTER_COEF_ACCESS   0x010C

Definition at line 34 of file kest_sgtl5000.h.

◆ DAP_MAIN_CHAN

#define DAP_MAIN_CHAN   0x0120

Definition at line 42 of file kest_sgtl5000.h.

◆ DAP_MIX_CHAN

#define DAP_MIX_CHAN   0x0122

Definition at line 43 of file kest_sgtl5000.h.

◆ DAP_PEQ

#define DAP_PEQ   0x0102

Definition at line 29 of file kest_sgtl5000.h.

◆ DAP_SGTL_SURROUND

#define DAP_SGTL_SURROUND   0x010A

Definition at line 33 of file kest_sgtl5000.h.

◆ SGTL5000_I2C_ADDR_CS_HIGH

#define SGTL5000_I2C_ADDR_CS_HIGH   0x2A

Definition at line 58 of file kest_sgtl5000.h.

Referenced by sgtl5000_set_address_level().

◆ SGTL5000_I2C_ADDR_CS_LOW

#define SGTL5000_I2C_ADDR_CS_LOW   0x0A

Definition at line 57 of file kest_sgtl5000.h.

Referenced by sgtl5000_set_address_level().

Function Documentation

◆ kest_sgtl5000_init()

void kest_sgtl5000_init ( void * param)

Definition at line 267 of file kest_sgtl5000.c.

Referenced by app_main().

Here is the call graph for this function:
Here is the caller graph for this function: