Go to the documentation of this file.
21 #define WM8741_DACLLSB_ATTENUATION 0x00
22 #define WM8741_DACLMSB_ATTENUATION 0x01
23 #define WM8741_DACRLSB_ATTENUATION 0x02
24 #define WM8741_DACRMSB_ATTENUATION 0x03
25 #define WM8741_VOLUME_CONTROL 0x04
26 #define WM8741_FORMAT_CONTROL 0x05
27 #define WM8741_FILTER_CONTROL 0x06
28 #define WM8741_MODE_CONTROL_1 0x07
29 #define WM8741_MODE_CONTROL_2 0x08
30 #define WM8741_RESET 0x09
31 #define WM8741_ADDITIONAL_CONTROL_1 0x20
33 #define WM8741_REGISTER_COUNT 11
34 #define WM8741_MAX_REGISTER 0x20
43 #define WM8741_UPDATELL 0x0020
44 #define WM8741_UPDATELL_MASK 0x0020
45 #define WM8741_UPDATELL_SHIFT 5
46 #define WM8741_UPDATELL_WIDTH 1
47 #define WM8741_LAT_4_0_MASK 0x001F
48 #define WM8741_LAT_4_0_SHIFT 0
49 #define WM8741_LAT_4_0_WIDTH 5
54 #define WM8741_UPDATELM 0x0020
55 #define WM8741_UPDATELM_MASK 0x0020
56 #define WM8741_UPDATELM_SHIFT 5
57 #define WM8741_UPDATELM_WIDTH 1
58 #define WM8741_LAT_9_5_0_MASK 0x001F
59 #define WM8741_LAT_9_5_0_SHIFT 0
60 #define WM8741_LAT_9_5_0_WIDTH 5
65 #define WM8741_UPDATERL 0x0020
66 #define WM8741_UPDATERL_MASK 0x0020
67 #define WM8741_UPDATERL_SHIFT 5
68 #define WM8741_UPDATERL_WIDTH 1
69 #define WM8741_RAT_4_0_MASK 0x001F
70 #define WM8741_RAT_4_0_SHIFT 0
71 #define WM8741_RAT_4_0_WIDTH 5
76 #define WM8741_UPDATERM 0x0020
77 #define WM8741_UPDATERM_MASK 0x0020
78 #define WM8741_UPDATERM_SHIFT 5
79 #define WM8741_UPDATERM_WIDTH 1
80 #define WM8741_RAT_9_5_0_MASK 0x001F
81 #define WM8741_RAT_9_5_0_SHIFT 0
82 #define WM8741_RAT_9_5_0_WIDTH 5
87 #define WM8741_AMUTE 0x0080
88 #define WM8741_AMUTE_MASK 0x0080
89 #define WM8741_AMUTE_SHIFT 7
90 #define WM8741_AMUTE_WIDTH 1
91 #define WM8741_ZFLAG_MASK 0x0060
92 #define WM8741_ZFLAG_SHIFT 5
93 #define WM8741_ZFLAG_WIDTH 2
94 #define WM8741_IZD 0x0010
95 #define WM8741_IZD_MASK 0x0010
96 #define WM8741_IZD_SHIFT 4
97 #define WM8741_IZD_WIDTH 1
98 #define WM8741_SOFT 0x0008
99 #define WM8741_SOFT_MASK 0x0008
100 #define WM8741_SOFT_SHIFT 3
101 #define WM8741_SOFT_WIDTH 1
102 #define WM8741_ATC 0x0004
103 #define WM8741_ATC_MASK 0x0004
104 #define WM8741_ATC_SHIFT 2
105 #define WM8741_ATC_WIDTH 1
106 #define WM8741_ATT2DB 0x0002
107 #define WM8741_ATT2DB_MASK 0x0002
108 #define WM8741_ATT2DB_SHIFT 1
109 #define WM8741_ATT2DB_WIDTH 1
110 #define WM8741_VOL_RAMP 0x0001
111 #define WM8741_VOL_RAMP_MASK 0x0001
112 #define WM8741_VOL_RAMP_SHIFT 0
113 #define WM8741_VOL_RAMP_WIDTH 1
118 #define WM8741_PWDN 0x0080
119 #define WM8741_PWDN_MASK 0x0080
120 #define WM8741_PWDN_SHIFT 7
121 #define WM8741_PWDN_WIDTH 1
122 #define WM8741_REV 0x0040
123 #define WM8741_REV_MASK 0x0040
124 #define WM8741_REV_SHIFT 6
125 #define WM8741_REV_WIDTH 1
126 #define WM8741_BCP 0x0020
127 #define WM8741_BCP_MASK 0x0020
128 #define WM8741_BCP_SHIFT 5
129 #define WM8741_BCP_WIDTH 1
130 #define WM8741_LRP 0x0010
131 #define WM8741_LRP_MASK 0x0010
132 #define WM8741_LRP_SHIFT 4
133 #define WM8741_LRP_WIDTH 1
134 #define WM8741_FMT_MASK 0x000C
135 #define WM8741_FMT_SHIFT 2
136 #define WM8741_FMT_WIDTH 2
137 #define WM8741_IWL_MASK 0x0003
138 #define WM8741_IWL_SHIFT 0
139 #define WM8741_IWL_WIDTH 2
144 #define WM8741_ZFLAG_HI 0x0080
145 #define WM8741_ZFLAG_HI_MASK 0x0080
146 #define WM8741_ZFLAG_HI_SHIFT 7
147 #define WM8741_ZFLAG_HI_WIDTH 1
148 #define WM8741_DEEMPH_MASK 0x0060
149 #define WM8741_DEEMPH_SHIFT 5
150 #define WM8741_DEEMPH_WIDTH 2
151 #define WM8741_DSDFILT_MASK 0x0018
152 #define WM8741_DSDFILT_SHIFT 3
153 #define WM8741_DSDFILT_WIDTH 2
154 #define WM8741_FIRSEL_MASK 0x0007
155 #define WM8741_FIRSEL_SHIFT 0
156 #define WM8741_FIRSEL_WIDTH 3
161 #define WM8741_MODE8X 0x0080
162 #define WM8741_MODE8X_MASK 0x0080
163 #define WM8741_MODE8X_SHIFT 7
164 #define WM8741_MODE8X_WIDTH 1
165 #define WM8741_OSR_MASK 0x0060
166 #define WM8741_OSR_SHIFT 5
167 #define WM8741_OSR_WIDTH 2
168 #define WM8741_SR_MASK 0x001C
169 #define WM8741_SR_SHIFT 2
170 #define WM8741_SR_WIDTH 3
171 #define WM8741_MODESEL_MASK 0x0003
172 #define WM8741_MODESEL_SHIFT 0
173 #define WM8741_MODESEL_WIDTH 2
178 #define WM8741_DSD_GAIN 0x0040
179 #define WM8741_DSD_GAIN_MASK 0x0040
180 #define WM8741_DSD_GAIN_SHIFT 6
181 #define WM8741_DSD_GAIN_WIDTH 1
182 #define WM8741_SDOUT 0x0020
183 #define WM8741_SDOUT_MASK 0x0020
184 #define WM8741_SDOUT_SHIFT 5
185 #define WM8741_SDOUT_WIDTH 1
186 #define WM8741_DOUT 0x0010
187 #define WM8741_DOUT_MASK 0x0010
188 #define WM8741_DOUT_SHIFT 4
189 #define WM8741_DOUT_WIDTH 1
190 #define WM8741_DIFF_MASK 0x000C
191 #define WM8741_DIFF_SHIFT 2
192 #define WM8741_DIFF_WIDTH 2
193 #define WM8741_DITHER_MASK 0x0003
194 #define WM8741_DITHER_SHIFT 0
195 #define WM8741_DITHER_WIDTH 2
200 #define WM8741_DSD_LEVEL 0x0002
201 #define WM8741_DSD_LEVEL_MASK 0x0002
202 #define WM8741_DSD_LEVEL_SHIFT 1
203 #define WM8741_DSD_LEVEL_WIDTH 1
204 #define WM8741_DSD_NO_NOTCH 0x0001
205 #define WM8741_DSD_NO_NOTCH_MASK 0x0001
206 #define WM8741_DSD_NO_NOTCH_SHIFT 0
207 #define WM8741_DSD_NO_NOTCH_WIDTH 1
209 #define WM8741_SYSCLK 0