Pyalpha tools for performance audio demo in PRSDK.
[processor-sdk/performance-audio-tools.git] / alpha / pafvol_a.h
2 /*
3 * Copyright (C) 2004-2014 Texas Instruments Incorporated - http://www.ti.com/
4 * All rights reserved.  
5 *
6 *  Redistribution and use in source and binary forms, with or without
7 *  modification, are permitted provided that the following conditions
8 *  are met:
9 *
10 *    Redistributions of source code must retain the above copyright
11 *    notice, this list of conditions and the following disclaimer.
12 *
13 *    Redistributions in binary form must reproduce the above copyright
14 *    notice, this list of conditions and the following disclaimer in the
15 *    documentation and/or other materials provided with the
16 *    distribution.
17 *
18 *    Neither the name of Texas Instruments Incorporated nor the names of
19 *    its contributors may be used to endorse or promote products derived
20 *    from this software without specific prior written permission.
21 *
22 *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 
23 *  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
24 *  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
25 *  A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
26 *  OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
27 *  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
28 *  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
29 *  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
30 *  THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31 *  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
32 *  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33 *
34 */
36 //
37 //
38 // Performance Audio Framework Volume Declarations
39 //
40 //
41 //
43 #ifndef _PAFVOL_A
44 #define _PAFVOL_A
46 #include <paftyp_a.h>
47 #include <acpbeta.h>
49 #define  readVOLMode 0xc200+STD_BETA_VOLUME,0x0400
50 #define writeVOLModeDisable 0xca00+STD_BETA_VOLUME,0x0400
51 #define writeVOLModeEnable 0xca00+STD_BETA_VOLUME,0x0401
53 #define  readVOLChannelCount 0xc200+STD_BETA_VOLUME,0x0500
54 #define writeVOLChannelCountN(NN) 0xca00+STD_BETA_VOLUME,0x0500+((NN)&0xff)
56 #define  readVOLImplementation 0xc200+STD_BETA_VOLUME,0x0600
57 #define writeVOLImplementationInactive 0xca00+STD_BETA_VOLUME,0x0600
58 #define writeVOLImplementationInternal 0xca00+STD_BETA_VOLUME,0x060f
59 #define writeVOLImplementationInternalDirect 0xca00+STD_BETA_VOLUME,0x060e
60 #define writeVOLImplementationExternal 0xca00+STD_BETA_VOLUME,0x060d
61 #define writeVOLImplementationExternalDirect 0xca00+STD_BETA_VOLUME,0x060c
62 #define writeVOLImplementationN(NN) 0xca00+STD_BETA_VOLUME,0x0600+((NN)&0xff)
63     // ... and more could be named, but N will do.
65 #define  readVOLRampTime 0xc300+STD_BETA_VOLUME,0x0008
66 #define writeVOLRampTimeN(NN) 0xcb00+STD_BETA_VOLUME,0x0008,NN
67 #define wroteVOLRampTime 0xcb00+STD_BETA_VOLUME,0x0008
69 #define  readVOLControlMaster 0xc300+STD_BETA_VOLUME,0x0010
70 #define  readVOLOffsetMaster 0xc300+STD_BETA_VOLUME,0x0012
71 #define  readVOLInternalStatusMaster 0xc300+STD_BETA_VOLUME,0x0014
72 #define  readVOLExternalStatusMaster 0xc300+STD_BETA_VOLUME,0x0016
74 #define writeVOLControlMasterN(NN) 0xcb00+STD_BETA_VOLUME,0x0010,NN
75 #define writeVOLOffsetMasterN(NN) 0xcb00+STD_BETA_VOLUME,0x0012,NN
77 #if PAF_MAXNUMCHAN_AF==8
79 #define  readVOLTrimLeft 0xc300+STD_BETA_VOLUME,0x0018
80 #define  readVOLOffsetLeft 0xc300+STD_BETA_VOLUME,0x001a
81 #define  readVOLInternalStatusLeft 0xc300+STD_BETA_VOLUME,0x001c
82 #define  readVOLExternalStatusLeft 0xc300+STD_BETA_VOLUME,0x001e
83 #define  readVOLTrimRght 0xc300+STD_BETA_VOLUME,0x0020
84 #define  readVOLOffsetRght 0xc300+STD_BETA_VOLUME,0x0022
85 #define  readVOLInternalStatusRght 0xc300+STD_BETA_VOLUME,0x0024
86 #define  readVOLExternalStatusRght 0xc300+STD_BETA_VOLUME,0x0026
87 #define  readVOLTrimCntr 0xc300+STD_BETA_VOLUME,0x0028
88 #define  readVOLOffsetCntr 0xc300+STD_BETA_VOLUME,0x002a
89 #define  readVOLInternalStatusCntr 0xc300+STD_BETA_VOLUME,0x002c
90 #define  readVOLExternalStatusCntr 0xc300+STD_BETA_VOLUME,0x002e
91 #define  readVOLTrimSurr 0xc300+STD_BETA_VOLUME,0x0030
92 #define  readVOLOffsetSurr 0xc300+STD_BETA_VOLUME,0x0032
93 #define  readVOLInternalStatusSurr 0xc300+STD_BETA_VOLUME,0x0034
94 #define  readVOLExternalStatusSurr 0xc300+STD_BETA_VOLUME,0x0036
95 #define  readVOLTrimLSur 0xc300+STD_BETA_VOLUME,0x0030
96 #define  readVOLOffsetLSur 0xc300+STD_BETA_VOLUME,0x0032
97 #define  readVOLInternalStatusLSur 0xc300+STD_BETA_VOLUME,0x0034
98 #define  readVOLExternalStatusLSur 0xc300+STD_BETA_VOLUME,0x0036
99 #define  readVOLTrimRSur 0xc300+STD_BETA_VOLUME,0x0038
100 #define  readVOLOffsetRSur 0xc300+STD_BETA_VOLUME,0x003a
101 #define  readVOLInternalStatusRSur 0xc300+STD_BETA_VOLUME,0x003c
102 #define  readVOLExternalStatusRSur 0xc300+STD_BETA_VOLUME,0x003e
103 #define  readVOLTrimSubw 0xc300+STD_BETA_VOLUME,0x0040
104 #define  readVOLOffsetSubw 0xc300+STD_BETA_VOLUME,0x0042
105 #define  readVOLInternalStatusSubw 0xc300+STD_BETA_VOLUME,0x0044
106 #define  readVOLExternalStatusSubw 0xc300+STD_BETA_VOLUME,0x0046
107 #define  readVOLTrimBack 0xc300+STD_BETA_VOLUME,0x0048
108 #define  readVOLOffsetBack 0xc300+STD_BETA_VOLUME,0x004a
109 #define  readVOLInternalStatusBack 0xc300+STD_BETA_VOLUME,0x004c
110 #define  readVOLExternalStatusBack 0xc300+STD_BETA_VOLUME,0x004e
111 #define  readVOLTrimLBak 0xc300+STD_BETA_VOLUME,0x0048
112 #define  readVOLOffsetLBak 0xc300+STD_BETA_VOLUME,0x004a
113 #define  readVOLInternalStatusLBak 0xc300+STD_BETA_VOLUME,0x004c
114 #define  readVOLExternalStatusLBak 0xc300+STD_BETA_VOLUME,0x004e
115 #define  readVOLTrimRBak 0xc300+STD_BETA_VOLUME,0x0050
116 #define  readVOLOffsetRBak 0xc300+STD_BETA_VOLUME,0x0052
117 #define  readVOLInternalStatusRBak 0xc300+STD_BETA_VOLUME,0x0054
118 #define  readVOLExternalStatusRBak 0xc300+STD_BETA_VOLUME,0x0056
120 #define writeVOLTrimLeftN(NN) 0xcb00+STD_BETA_VOLUME,0x0018,NN
121 #define writeVOLOffsetLeftN(NN) 0xcb00+STD_BETA_VOLUME,0x001a,NN
122 #define writeVOLTrimRghtN(NN) 0xcb00+STD_BETA_VOLUME,0x0020,NN
123 #define writeVOLOffsetRghtN(NN) 0xcb00+STD_BETA_VOLUME,0x0022,NN
124 #define writeVOLTrimCntrN(NN) 0xcb00+STD_BETA_VOLUME,0x0028,NN
125 #define writeVOLOffsetCntrN(NN) 0xcb00+STD_BETA_VOLUME,0x002a,NN
126 #define writeVOLTrimSurrN(NN) 0xcb00+STD_BETA_VOLUME,0x0030,NN
127 #define writeVOLOffsetSurrN(NN) 0xcb00+STD_BETA_VOLUME,0x0032,NN
128 #define writeVOLTrimLSurN(NN) 0xcb00+STD_BETA_VOLUME,0x0030,NN
129 #define writeVOLOffsetLSurN(NN) 0xcb00+STD_BETA_VOLUME,0x0032,NN
130 #define writeVOLTrimRSurN(NN) 0xcb00+STD_BETA_VOLUME,0x0038,NN
131 #define writeVOLOffsetRSurN(NN) 0xcb00+STD_BETA_VOLUME,0x003a,NN
132 #define writeVOLTrimSubwN(NN) 0xcb00+STD_BETA_VOLUME,0x0040,NN
133 #define writeVOLOffsetSubwN(NN) 0xcb00+STD_BETA_VOLUME,0x0042,NN
134 #define writeVOLTrimBackN(NN) 0xcb00+STD_BETA_VOLUME,0x0048,NN
135 #define writeVOLOffsetBackN(NN) 0xcb00+STD_BETA_VOLUME,0x004a,NN
136 #define writeVOLTrimLBakN(NN) 0xcb00+STD_BETA_VOLUME,0x0048,NN
137 #define writeVOLOffsetLBakN(NN) 0xcb00+STD_BETA_VOLUME,0x004a,NN
138 #define writeVOLTrimRBakN(NN) 0xcb00+STD_BETA_VOLUME,0x0050,NN
139 #define writeVOLOffsetRBakN(NN) 0xcb00+STD_BETA_VOLUME,0x0052,NN
141 #define wroteVOLTrimLeft 0x0800+readVOLTrimLeft
142 #define wroteVOLOffsetLeft 0x0800+readVOLOffsetLeft
143 #define wroteVOLInternalStatusLeft 0x0800+readVOLInternalStatusLeft
144 #define wroteVOLExternalStatusLeft 0x0800+readVOLExternalStatusLeft
145 #define wroteVOLTrimRght 0x0800+readVOLTrimRght
146 #define wroteVOLOffsetRght 0x0800+readVOLOffsetRght
147 #define wroteVOLInternalStatusRght 0x0800+readVOLInternalStatusRght
148 #define wroteVOLExternalStatusRght 0x0800+readVOLExternalStatusRght
149 #define wroteVOLTrimCntr 0x0800+readVOLTrimCntr
150 #define wroteVOLOffsetCntr 0x0800+readVOLOffsetCntr
151 #define wroteVOLInternalStatusCntr 0x0800+readVOLInternalStatusCntr
152 #define wroteVOLExternalStatusCntr 0x0800+readVOLExternalStatusCntr
153 #define wroteVOLTrimSurr 0x0800+readVOLTrimSurr
154 #define wroteVOLOffsetSurr 0x0800+readVOLOffsetSurr
155 #define wroteVOLInternalStatusSurr 0x0800+readVOLInternalStatusSurr
156 #define wroteVOLExternalStatusSurr 0x0800+readVOLExternalStatusSurr
157 #define wroteVOLTrimLSur 0x0800+readVOLTrimLSur
158 #define wroteVOLOffsetLSur 0x0800+readVOLOffsetLSur
159 #define wroteVOLInternalStatusLSur 0x0800+readVOLInternalStatusLSur
160 #define wroteVOLExternalStatusLSur 0x0800+readVOLExternalStatusLSur
161 #define wroteVOLTrimRSur 0x0800+readVOLTrimRSur
162 #define wroteVOLOffsetRSur 0x0800+readVOLOffsetRSur
163 #define wroteVOLInternalStatusRSur 0x0800+readVOLInternalStatusRSur
164 #define wroteVOLExternalStatusRSur 0x0800+readVOLExternalStatusRSur
165 #define wroteVOLTrimSubw 0x0800+readVOLTrimSubw
166 #define wroteVOLOffsetSubw 0x0800+readVOLOffsetSubw
167 #define wroteVOLInternalStatusSubw 0x0800+readVOLInternalStatusSubw
168 #define wroteVOLExternalStatusSubw 0x0800+readVOLExternalStatusSubw
169 #define wroteVOLTrimBack 0x0800+readVOLTrimBack
170 #define wroteVOLOffsetBack 0x0800+readVOLOffsetBack
171 #define wroteVOLInternalStatusBack 0x0800+readVOLInternalStatusBack
172 #define wroteVOLExternalStatusBack 0x0800+readVOLExternalStatusBack
173 #define wroteVOLTrimLBak 0x0800+readVOLTrimLBak
174 #define wroteVOLOffsetLBak 0x0800+readVOLOffsetLBak
175 #define wroteVOLInternalStatusLBak 0x0800+readVOLInternalStatusLBak
176 #define wroteVOLExternalStatusLBak 0x0800+readVOLExternalStatusLBak
177 #define wroteVOLTrimRBak 0x0800+readVOLTrimRBak
178 #define wroteVOLOffsetRBak 0x0800+readVOLOffsetRBak
179 #define wroteVOLInternalStatusRBak 0x0800+readVOLInternalStatusRBak
180 #define wroteVOLExternalStatusRBak 0x0800+readVOLExternalStatusRBak
182 #elif PAF_MAXNUMCHAN_AF==16
184 #define  readVOLControlMaster 0xc300+STD_BETA_VOLUME,0x0010
185 #define  readVOLOffsetMaster 0xc300+STD_BETA_VOLUME,0x0012
186 #define  readVOLInternalStatusMaster 0xc300+STD_BETA_VOLUME,0x0014
187 #define  readVOLExternalStatusMaster 0xc300+STD_BETA_VOLUME,0x0016
188 #define  readVOLTrimLeft 0xc300+STD_BETA_VOLUME,0x0018
189 #define  readVOLOffsetLeft 0xc300+STD_BETA_VOLUME,0x001a
190 #define  readVOLInternalStatusLeft 0xc300+STD_BETA_VOLUME,0x001c
191 #define  readVOLExternalStatusLeft 0xc300+STD_BETA_VOLUME,0x001e
192 #define  readVOLTrimRght 0xc300+STD_BETA_VOLUME,0x0020
193 #define  readVOLOffsetRght 0xc300+STD_BETA_VOLUME,0x0022
194 #define  readVOLInternalStatusRght 0xc300+STD_BETA_VOLUME,0x0024
195 #define  readVOLExternalStatusRght 0xc300+STD_BETA_VOLUME,0x0026
196 #define  readVOLTrimCntr 0xc300+STD_BETA_VOLUME,0x0028
197 #define  readVOLOffsetCntr 0xc300+STD_BETA_VOLUME,0x002a
198 #define  readVOLInternalStatusCntr 0xc300+STD_BETA_VOLUME,0x002c
199 #define  readVOLExternalStatusCntr 0xc300+STD_BETA_VOLUME,0x002e
200 #define  readVOLTrimLCtr 0xc300+STD_BETA_VOLUME,0x0028
201 #define  readVOLOffsetLCtr 0xc300+STD_BETA_VOLUME,0x002a
202 #define  readVOLInternalStatusLCtr 0xc300+STD_BETA_VOLUME,0x002c
203 #define  readVOLExternalStatusLCtr 0xc300+STD_BETA_VOLUME,0x002e
204 #define  readVOLTrimRCtr 0xc300+STD_BETA_VOLUME,0x0030
205 #define  readVOLOffsetRCtr 0xc300+STD_BETA_VOLUME,0x0032
206 #define  readVOLInternalStatusRCtr 0xc300+STD_BETA_VOLUME,0x0034
207 #define  readVOLExternalStatusRCtr 0xc300+STD_BETA_VOLUME,0x0036
208 #define  readVOLTrimWide 0xc300+STD_BETA_VOLUME,0x0038
209 #define  readVOLOffsetWide 0xc300+STD_BETA_VOLUME,0x003a
210 #define  readVOLInternalStatusWide 0xc300+STD_BETA_VOLUME,0x003c
211 #define  readVOLExternalStatusWide 0xc300+STD_BETA_VOLUME,0x003e
212 #define  readVOLTrimLWid 0xc300+STD_BETA_VOLUME,0x0038
213 #define  readVOLOffsetLWid 0xc300+STD_BETA_VOLUME,0x003a
214 #define  readVOLInternalStatusLWid 0xc300+STD_BETA_VOLUME,0x003c
215 #define  readVOLExternalStatusLWid 0xc300+STD_BETA_VOLUME,0x003e
216 #define  readVOLTrimRWid 0xc300+STD_BETA_VOLUME,0x0040
217 #define  readVOLOffsetRWid 0xc300+STD_BETA_VOLUME,0x0042
218 #define  readVOLInternalStatusRWid 0xc300+STD_BETA_VOLUME,0x0044
219 #define  readVOLExternalStatusRWid 0xc300+STD_BETA_VOLUME,0x0046
220 #define  readVOLTrimOver 0xc300+STD_BETA_VOLUME,0x0048
221 #define  readVOLOffsetOver 0xc300+STD_BETA_VOLUME,0x004a
222 #define  readVOLInternalStatusOver 0xc300+STD_BETA_VOLUME,0x004c
223 #define  readVOLExternalStatusOver 0xc300+STD_BETA_VOLUME,0x004e
224 #define  readVOLTrimLOvr 0xc300+STD_BETA_VOLUME,0x0048
225 #define  readVOLOffsetLOvr 0xc300+STD_BETA_VOLUME,0x004a
226 #define  readVOLInternalStatusLOvr 0xc300+STD_BETA_VOLUME,0x004c
227 #define  readVOLExternalStatusLOvr 0xc300+STD_BETA_VOLUME,0x004e
228 #define  readVOLTrimROvr 0xc300+STD_BETA_VOLUME,0x0050
229 #define  readVOLOffsetROvr 0xc300+STD_BETA_VOLUME,0x0052
230 #define  readVOLInternalStatusROvr 0xc300+STD_BETA_VOLUME,0x0054
231 #define  readVOLExternalStatusROvr 0xc300+STD_BETA_VOLUME,0x0056
232 #define  readVOLTrimSurr 0xc300+STD_BETA_VOLUME,0x0058
233 #define  readVOLOffsetSurr 0xc300+STD_BETA_VOLUME,0x005a
234 #define  readVOLInternalStatusSurr 0xc300+STD_BETA_VOLUME,0x005c
235 #define  readVOLExternalStatusSurr 0xc300+STD_BETA_VOLUME,0x005e
236 #define  readVOLTrimLSur 0xc300+STD_BETA_VOLUME,0x0058
237 #define  readVOLOffsetLSur 0xc300+STD_BETA_VOLUME,0x005a
238 #define  readVOLInternalStatusLSur 0xc300+STD_BETA_VOLUME,0x005c
239 #define  readVOLExternalStatusLSur 0xc300+STD_BETA_VOLUME,0x005e
240 #define  readVOLTrimRSur 0xc300+STD_BETA_VOLUME,0x0060
241 #define  readVOLOffsetRSur 0xc300+STD_BETA_VOLUME,0x0062
242 #define  readVOLInternalStatusRSur 0xc300+STD_BETA_VOLUME,0x0064
243 #define  readVOLExternalStatusRSur 0xc300+STD_BETA_VOLUME,0x0066
244 #define  readVOLTrimBack 0xc300+STD_BETA_VOLUME,0x0068
245 #define  readVOLOffsetBack 0xc300+STD_BETA_VOLUME,0x006a
246 #define  readVOLInternalStatusBack 0xc300+STD_BETA_VOLUME,0x006c
247 #define  readVOLExternalStatusBack 0xc300+STD_BETA_VOLUME,0x006e
248 #define  readVOLTrimLBak 0xc300+STD_BETA_VOLUME,0x0068
249 #define  readVOLOffsetLBak 0xc300+STD_BETA_VOLUME,0x006a
250 #define  readVOLInternalStatusLBak 0xc300+STD_BETA_VOLUME,0x006c
251 #define  readVOLExternalStatusLBak 0xc300+STD_BETA_VOLUME,0x006e
252 #define  readVOLTrimRBak 0xc300+STD_BETA_VOLUME,0x0070
253 #define  readVOLOffsetRBak 0xc300+STD_BETA_VOLUME,0x0072
254 #define  readVOLInternalStatusRBak 0xc300+STD_BETA_VOLUME,0x0074
255 #define  readVOLExternalStatusRBak 0xc300+STD_BETA_VOLUME,0x0076
256 #define  readVOLTrimSubw 0xc300+STD_BETA_VOLUME,0x0078
257 #define  readVOLOffsetSubw 0xc300+STD_BETA_VOLUME,0x007a
258 #define  readVOLInternalStatusSubw 0xc300+STD_BETA_VOLUME,0x007c
259 #define  readVOLExternalStatusSubw 0xc300+STD_BETA_VOLUME,0x007e
260 #define  readVOLTrimLSub 0xc300+STD_BETA_VOLUME,0x0078
261 #define  readVOLOffsetLSub 0xc300+STD_BETA_VOLUME,0x007a
262 #define  readVOLInternalStatusLSub 0xc300+STD_BETA_VOLUME,0x007c
263 #define  readVOLExternalStatusLSub 0xc300+STD_BETA_VOLUME,0x007e
264 #define  readVOLTrimRSub 0xc300+STD_BETA_VOLUME,0x0080
265 #define  readVOLOffsetRSub 0xc300+STD_BETA_VOLUME,0x0082
266 #define  readVOLInternalStatusRSub 0xc300+STD_BETA_VOLUME,0x0084
267 #define  readVOLExternalStatusRSub 0xc300+STD_BETA_VOLUME,0x0086
268 #define  readVOLTrimHead 0xc300+STD_BETA_VOLUME,0x0088
269 #define  readVOLOffsetHead 0xc300+STD_BETA_VOLUME,0x008a
270 #define  readVOLInternalStatusHead 0xc300+STD_BETA_VOLUME,0x008c
271 #define  readVOLExternalStatusHead 0xc300+STD_BETA_VOLUME,0x008e
272 #define  readVOLTrimLHed 0xc300+STD_BETA_VOLUME,0x0088
273 #define  readVOLOffsetLHed 0xc300+STD_BETA_VOLUME,0x008a
274 #define  readVOLInternalStatusLHed 0xc300+STD_BETA_VOLUME,0x008c
275 #define  readVOLExternalStatusLHed 0xc300+STD_BETA_VOLUME,0x008e
276 #define  readVOLTrimRHed 0xc300+STD_BETA_VOLUME,0x0090
277 #define  readVOLOffsetRHed 0xc300+STD_BETA_VOLUME,0x0092
278 #define  readVOLInternalStatusRHed 0xc300+STD_BETA_VOLUME,0x0094
279 #define  readVOLExternalStatusRHed 0xc300+STD_BETA_VOLUME,0x0096
281 #define writeVOLControlMasterN(NN) 0xcb00+STD_BETA_VOLUME,0x0010,NN
282 #define writeVOLOffsetMasterN(NN) 0xcb00+STD_BETA_VOLUME,0x0012,NN
283 #define writeVOLTrimLeftN(NN) 0xcb00+STD_BETA_VOLUME,0x0018,NN
284 #define writeVOLOffsetLeftN(NN) 0xcb00+STD_BETA_VOLUME,0x001a,NN
285 #define writeVOLTrimRghtN(NN) 0xcb00+STD_BETA_VOLUME,0x0020,NN
286 #define writeVOLOffsetRghtN(NN) 0xcb00+STD_BETA_VOLUME,0x0022,NN
287 #define writeVOLTrimCntrN(NN) 0xcb00+STD_BETA_VOLUME,0x0028,NN
288 #define writeVOLOffsetCntrN(NN) 0xcb00+STD_BETA_VOLUME,0x002a,NN
289 #define writeVOLTrimLCtrN(NN) 0xcb00+STD_BETA_VOLUME,0x0028,NN
290 #define writeVOLOffsetLCtrN(NN) 0xcb00+STD_BETA_VOLUME,0x002a,NN
291 #define writeVOLTrimRCtrN(NN) 0xcb00+STD_BETA_VOLUME,0x0030,NN
292 #define writeVOLOffsetRCtrN(NN) 0xcb00+STD_BETA_VOLUME,0x0032,NN
293 #define writeVOLTrimWideN(NN) 0xcb00+STD_BETA_VOLUME,0x0038,NN
294 #define writeVOLOffsetWideN(NN) 0xcb00+STD_BETA_VOLUME,0x003a,NN
295 #define writeVOLTrimLWidN(NN) 0xcb00+STD_BETA_VOLUME,0x0038,NN
296 #define writeVOLOffsetLWidN(NN) 0xcb00+STD_BETA_VOLUME,0x003a,NN
297 #define writeVOLTrimRWidN(NN) 0xcb00+STD_BETA_VOLUME,0x0040,NN
298 #define writeVOLOffsetRWidN(NN) 0xcb00+STD_BETA_VOLUME,0x0042,NN
299 #define writeVOLTrimOverN(NN) 0xcb00+STD_BETA_VOLUME,0x0048,NN
300 #define writeVOLOffsetOverN(NN) 0xcb00+STD_BETA_VOLUME,0x004a,NN
301 #define writeVOLTrimLOvrN(NN) 0xcb00+STD_BETA_VOLUME,0x0048,NN
302 #define writeVOLOffsetLOvrN(NN) 0xcb00+STD_BETA_VOLUME,0x004a,NN
303 #define writeVOLTrimROvrN(NN) 0xcb00+STD_BETA_VOLUME,0x0050,NN
304 #define writeVOLOffsetROvrN(NN) 0xcb00+STD_BETA_VOLUME,0x0052,NN
305 #define writeVOLTrimSurrN(NN) 0xcb00+STD_BETA_VOLUME,0x0058,NN
306 #define writeVOLOffsetSurrN(NN) 0xcb00+STD_BETA_VOLUME,0x005a,NN
307 #define writeVOLTrimLSurN(NN) 0xcb00+STD_BETA_VOLUME,0x0058,NN
308 #define writeVOLOffsetLSurN(NN) 0xcb00+STD_BETA_VOLUME,0x005a,NN
309 #define writeVOLTrimRSurN(NN) 0xcb00+STD_BETA_VOLUME,0x0060,NN
310 #define writeVOLOffsetRSurN(NN) 0xcb00+STD_BETA_VOLUME,0x0062,NN
311 #define writeVOLTrimBackN(NN) 0xcb00+STD_BETA_VOLUME,0x0068,NN
312 #define writeVOLOffsetBackN(NN) 0xcb00+STD_BETA_VOLUME,0x006a,NN
313 #define writeVOLTrimLBakN(NN) 0xcb00+STD_BETA_VOLUME,0x0068,NN
314 #define writeVOLOffsetLBakN(NN) 0xcb00+STD_BETA_VOLUME,0x006a,NN
315 #define writeVOLTrimRBakN(NN) 0xcb00+STD_BETA_VOLUME,0x0070,NN
316 #define writeVOLOffsetRBakN(NN) 0xcb00+STD_BETA_VOLUME,0x0072,NN
317 #define writeVOLTrimSubwN(NN) 0xcb00+STD_BETA_VOLUME,0x0078,NN
318 #define writeVOLOffsetSubwN(NN) 0xcb00+STD_BETA_VOLUME,0x007a,NN
319 #define writeVOLTrimLSubN(NN) 0xcb00+STD_BETA_VOLUME,0x0078,NN
320 #define writeVOLOffsetLSubN(NN) 0xcb00+STD_BETA_VOLUME,0x007a,NN
321 #define writeVOLTrimRSubN(NN) 0xcb00+STD_BETA_VOLUME,0x0080,NN
322 #define writeVOLOffsetRSubN(NN) 0xcb00+STD_BETA_VOLUME,0x0082,NN
323 #define writeVOLTrimHeadN(NN) 0xcb00+STD_BETA_VOLUME,0x0088,NN
324 #define writeVOLOffsetHeadN(NN) 0xcb00+STD_BETA_VOLUME,0x008a,NN
325 #define writeVOLTrimLHedN(NN) 0xcb00+STD_BETA_VOLUME,0x0088,NN
326 #define writeVOLOffsetLHedN(NN) 0xcb00+STD_BETA_VOLUME,0x008a,NN
327 #define writeVOLTrimRHedN(NN) 0xcb00+STD_BETA_VOLUME,0x0090,NN
328 #define writeVOLOffsetRHedN(NN) 0xcb00+STD_BETA_VOLUME,0x0092,NN
330 //ATMOS
331 #define  readVOLTrimLtrr 0xc300+STD_BETA_VOLUME,0x0048
332 #define  readVOLOffsetLtrr 0xc300+STD_BETA_VOLUME,0x004a
333 #define  readVOLInternalStatusLtrr 0xc300+STD_BETA_VOLUME,0x004c
334 #define  readVOLExternalStatusLtrr 0xc300+STD_BETA_VOLUME,0x004e
335 #define  readVOLTrimRtrr 0xc300+STD_BETA_VOLUME,0x0050
336 #define  readVOLOffsetRtrr 0xc300+STD_BETA_VOLUME,0x0052
337 #define  readVOLInternalStatusRtrr 0xc300+STD_BETA_VOLUME,0x0054
338 #define  readVOLExternalStatusRtrr 0xc300+STD_BETA_VOLUME,0x0056
339 #define  readVOLTrimLtrh 0xc300+STD_BETA_VOLUME,0x0048
340 #define  readVOLOffsetLtrh 0xc300+STD_BETA_VOLUME,0x004a
341 #define  readVOLInternalStatusLtrh 0xc300+STD_BETA_VOLUME,0x004c
342 #define  readVOLExternalStatusLtrh 0xc300+STD_BETA_VOLUME,0x004e
343 #define  readVOLTrimRtrh 0xc300+STD_BETA_VOLUME,0x0050
344 #define  readVOLOffsetRtrh 0xc300+STD_BETA_VOLUME,0x0052
345 #define  readVOLInternalStatusRtrh 0xc300+STD_BETA_VOLUME,0x0054
346 #define  readVOLExternalStatusRtrh 0xc300+STD_BETA_VOLUME,0x0056
347 #define  readVOLTrimLtmd 0xc300+STD_BETA_VOLUME,0x0088
348 #define  readVOLOffsetLtmd 0xc300+STD_BETA_VOLUME,0x008a
349 #define  readVOLInternalStatusLtmd 0xc300+STD_BETA_VOLUME,0x008c
350 #define  readVOLExternalStatusLtmd 0xc300+STD_BETA_VOLUME,0x008e
351 #define  readVOLTrimRtmd 0xc300+STD_BETA_VOLUME,0x0090
352 #define  readVOLOffsetRtmd 0xc300+STD_BETA_VOLUME,0x0092
353 #define  readVOLInternalStatusRtmd 0xc300+STD_BETA_VOLUME,0x0094
354 #define  readVOLExternalStatusRtmd 0xc300+STD_BETA_VOLUME,0x0096
355 #define  readVOLTrimLtft 0xc300+STD_BETA_VOLUME,0x0088
356 #define  readVOLOffsetLtft 0xc300+STD_BETA_VOLUME,0x008a
357 #define  readVOLInternalStatusLtft 0xc300+STD_BETA_VOLUME,0x008c
358 #define  readVOLExternalStatusLtft 0xc300+STD_BETA_VOLUME,0x008e
359 #define  readVOLTrimRtft 0xc300+STD_BETA_VOLUME,0x0090
360 #define  readVOLOffsetRtft 0xc300+STD_BETA_VOLUME,0x0092
361 #define  readVOLInternalStatusRtft 0xc300+STD_BETA_VOLUME,0x0094
362 #define  readVOLExternalStatusRtft 0xc300+STD_BETA_VOLUME,0x0096
363 #define  readVOLTrimLtfh 0xc300+STD_BETA_VOLUME,0x0088
364 #define  readVOLOffsetLtfh 0xc300+STD_BETA_VOLUME,0x008a
365 #define  readVOLInternalStatusLtfh 0xc300+STD_BETA_VOLUME,0x008c
366 #define  readVOLExternalStatusLtfh 0xc300+STD_BETA_VOLUME,0x008e
367 #define  readVOLTrimRtfh 0xc300+STD_BETA_VOLUME,0x0090
368 #define  readVOLOffsetRtfh 0xc300+STD_BETA_VOLUME,0x0092
369 #define  readVOLInternalStatusRtfh 0xc300+STD_BETA_VOLUME,0x0094
370 #define  readVOLExternalStatusRtfh 0xc300+STD_BETA_VOLUME,0x0096
372 #define wroteVOLControlMaster 0x0800+readVOLControlMaster
373 #define wroteVOLOffsetMaster 0x0800+readVOLOffsetMaster
374 #define wroteVOLInternalStatusMaster 0x0800+readVOLInternalStatusMaster
375 #define wroteVOLExternalStatusMaster 0x0800+readVOLExternalStatusMaster
376 #define wroteVOLTrimLeft 0x0800+readVOLTrimLeft
377 #define wroteVOLOffsetLeft 0x0800+readVOLOffsetLeft
378 #define wroteVOLInternalStatusLeft 0x0800+readVOLInternalStatusLeft
379 #define wroteVOLExternalStatusLeft 0x0800+readVOLExternalStatusLeft
380 #define wroteVOLTrimRght 0x0800+readVOLTrimRght
381 #define wroteVOLOffsetRght 0x0800+readVOLOffsetRght
382 #define wroteVOLInternalStatusRght 0x0800+readVOLInternalStatusRght
383 #define wroteVOLExternalStatusRght 0x0800+readVOLExternalStatusRght
384 #define wroteVOLTrimCntr 0x0800+readVOLTrimCntr
385 #define wroteVOLOffsetCntr 0x0800+readVOLOffsetCntr
386 #define wroteVOLInternalStatusCntr 0x0800+readVOLInternalStatusCntr
387 #define wroteVOLExternalStatusCntr 0x0800+readVOLExternalStatusCntr
388 #define wroteVOLTrimLCtr 0x0800+readVOLTrimLCtr
389 #define wroteVOLOffsetLCtr 0x0800+readVOLOffsetLCtr
390 #define wroteVOLInternalStatusLCtr 0x0800+readVOLInternalStatusLCtr
391 #define wroteVOLExternalStatusLCtr 0x0800+readVOLExternalStatusLCtr
392 #define wroteVOLTrimRCtr 0x0800+readVOLTrimRCtr
393 #define wroteVOLOffsetRCtr 0x0800+readVOLOffsetRCtr
394 #define wroteVOLInternalStatusRCtr 0x0800+readVOLInternalStatusRCtr
395 #define wroteVOLExternalStatusRCtr 0x0800+readVOLExternalStatusRCtr
396 #define wroteVOLTrimWide 0x0800+readVOLTrimWide
397 #define wroteVOLOffsetWide 0x0800+readVOLOffsetWide
398 #define wroteVOLInternalStatusWide 0x0800+readVOLInternalStatusWide
399 #define wroteVOLExternalStatusWide 0x0800+readVOLExternalStatusWide
400 #define wroteVOLTrimLWid 0x0800+readVOLTrimLWid
401 #define wroteVOLOffsetLWid 0x0800+readVOLOffsetLWid
402 #define wroteVOLInternalStatusLWid 0x0800+readVOLInternalStatusLWid
403 #define wroteVOLExternalStatusLWid 0x0800+readVOLExternalStatusLWid
404 #define wroteVOLTrimRWid 0x0800+readVOLTrimRWid
405 #define wroteVOLOffsetRWid 0x0800+readVOLOffsetRWid
406 #define wroteVOLInternalStatusRWid 0x0800+readVOLInternalStatusRWid
407 #define wroteVOLExternalStatusRWid 0x0800+readVOLExternalStatusRWid
408 #define wroteVOLTrimOver 0x0800+readVOLTrimOver
409 #define wroteVOLOffsetOver 0x0800+readVOLOffsetOver
410 #define wroteVOLInternalStatusOver 0x0800+readVOLInternalStatusOver
411 #define wroteVOLExternalStatusOver 0x0800+readVOLExternalStatusOver
412 #define wroteVOLTrimLOvr 0x0800+readVOLTrimLOvr
413 #define wroteVOLOffsetLOvr 0x0800+readVOLOffsetLOvr
414 #define wroteVOLInternalStatusLOvr 0x0800+readVOLInternalStatusLOvr
415 #define wroteVOLExternalStatusLOvr 0x0800+readVOLExternalStatusLOvr
416 #define wroteVOLTrimROvr 0x0800+readVOLTrimROvr
417 #define wroteVOLOffsetROvr 0x0800+readVOLOffsetROvr
418 #define wroteVOLInternalStatusROvr 0x0800+readVOLInternalStatusROvr
419 #define wroteVOLExternalStatusROvr 0x0800+readVOLExternalStatusROvr
420 #define wroteVOLTrimSurr 0x0800+readVOLTrimSurr
421 #define wroteVOLOffsetSurr 0x0800+readVOLOffsetSurr
422 #define wroteVOLInternalStatusSurr 0x0800+readVOLInternalStatusSurr
423 #define wroteVOLExternalStatusSurr 0x0800+readVOLExternalStatusSurr
424 #define wroteVOLTrimLSur 0x0800+readVOLTrimLSur
425 #define wroteVOLOffsetLSur 0x0800+readVOLOffsetLSur
426 #define wroteVOLInternalStatusLSur 0x0800+readVOLInternalStatusLSur
427 #define wroteVOLExternalStatusLSur 0x0800+readVOLExternalStatusLSur
428 #define wroteVOLTrimRSur 0x0800+readVOLTrimRSur
429 #define wroteVOLOffsetRSur 0x0800+readVOLOffsetRSur
430 #define wroteVOLInternalStatusRSur 0x0800+readVOLInternalStatusRSur
431 #define wroteVOLExternalStatusRSur 0x0800+readVOLExternalStatusRSur
432 #define wroteVOLTrimBack 0x0800+readVOLTrimBack
433 #define wroteVOLOffsetBack 0x0800+readVOLOffsetBack
434 #define wroteVOLInternalStatusBack 0x0800+readVOLInternalStatusBack
435 #define wroteVOLExternalStatusBack 0x0800+readVOLExternalStatusBack
436 #define wroteVOLTrimLBak 0x0800+readVOLTrimLBak
437 #define wroteVOLOffsetLBak 0x0800+readVOLOffsetLBak
438 #define wroteVOLInternalStatusLBak 0x0800+readVOLInternalStatusLBak
439 #define wroteVOLExternalStatusLBak 0x0800+readVOLExternalStatusLBak
440 #define wroteVOLTrimRBak 0x0800+readVOLTrimRBak
441 #define wroteVOLOffsetRBak 0x0800+readVOLOffsetRBak
442 #define wroteVOLInternalStatusRBak 0x0800+readVOLInternalStatusRBak
443 #define wroteVOLExternalStatusRBak 0x0800+readVOLExternalStatusRBak
444 #define wroteVOLTrimSubw 0x0800+readVOLTrimSubw
445 #define wroteVOLOffsetSubw 0x0800+readVOLOffsetSubw
446 #define wroteVOLInternalStatusSubw 0x0800+readVOLInternalStatusSubw
447 #define wroteVOLExternalStatusSubw 0x0800+readVOLExternalStatusSubw
448 #define wroteVOLTrimLSub 0x0800+readVOLTrimLSub
449 #define wroteVOLOffsetLSub 0x0800+readVOLOffsetLSub
450 #define wroteVOLInternalStatusLSub 0x0800+readVOLInternalStatusLSub
451 #define wroteVOLExternalStatusLSub 0x0800+readVOLExternalStatusLSub
452 #define wroteVOLTrimRSub 0x0800+readVOLTrimRSub
453 #define wroteVOLOffsetRSub 0x0800+readVOLOffsetRSub
454 #define wroteVOLInternalStatusRSub 0x0800+readVOLInternalStatusRSub
455 #define wroteVOLExternalStatusRSub 0x0800+readVOLExternalStatusRSub
456 #define wroteVOLTrimHead 0x0800+readVOLTrimHead
457 #define wroteVOLOffsetHead 0x0800+readVOLOffsetHead
458 #define wroteVOLInternalStatusHead 0x0800+readVOLInternalStatusHead
459 #define wroteVOLExternalStatusHead 0x0800+readVOLExternalStatusHead
460 #define wroteVOLTrimLHed 0x0800+readVOLTrimLHed
461 #define wroteVOLOffsetLHed 0x0800+readVOLOffsetLHed
462 #define wroteVOLInternalStatusLHed 0x0800+readVOLInternalStatusLHed
463 #define wroteVOLExternalStatusLHed 0x0800+readVOLExternalStatusLHed
464 #define wroteVOLTrimRHed 0x0800+readVOLTrimRHed
465 #define wroteVOLOffsetRHed 0x0800+readVOLOffsetRHed
466 #define wroteVOLInternalStatusRHed 0x0800+readVOLInternalStatusRHed
467 #define wroteVOLExternalStatusRHed 0x0800+readVOLExternalStatusRHed
469 //ATMOS
471 #define wroteVOLTrimLtrr 0x0800+readVOLTrimLtrr
472 #define wroteVOLOffsetLtrr 0x0800+readVOLOffsetLtrr
473 #define wroteVOLInternalStatusLtrr 0x0800+readVOLInternalStatusLtrr
474 #define wroteVOLExternalStatusLtrr 0x0800+readVOLExternalStatusLtrr
475 #define wroteVOLTrimRtrr 0x0800+readVOLTrimRtrr
476 #define wroteVOLOffsetRtrr 0x0800+readVOLOffsetRtrr
477 #define wroteVOLInternalStatusRtrr 0x0800+readVOLInternalStatusRtrr
478 #define wroteVOLExternalStatusRtrr 0x0800+readVOLExternalStatusRtrr
479 #define wroteVOLTrimLtrh 0x0800+readVOLTrimLtrh
480 #define wroteVOLOffsetLtrh 0x0800+readVOLOffsetLtrh
481 #define wroteVOLInternalStatusLtrh 0x0800+readVOLInternalStatusLtrh
482 #define wroteVOLExternalStatusLtrh 0x0800+readVOLExternalStatusLtrh
483 #define wroteVOLTrimRtrh 0x0800+readVOLTrimRtrh
484 #define wroteVOLOffsetRtrh 0x0800+readVOLOffsetRtrh
485 #define wroteVOLInternalStatusRtrh 0x0800+readVOLInternalStatusRtrh
486 #define wroteVOLExternalStatusRtrh 0x0800+readVOLExternalStatusRtrh
487 #define wroteVOLTrimLtmd 0x0800+readVOLTrimLtmd
488 #define wroteVOLOffsetLtmd 0x0800+readVOLOffsetLtmd
489 #define wroteVOLInternalStatusLtmd 0x0800+readVOLInternalStatusLtmd
490 #define wroteVOLExternalStatusLtmd 0x0800+readVOLExternalStatusLtmd
491 #define wroteVOLTrimRtmd 0x0800+readVOLTrimRtmd
492 #define wroteVOLOffsetRtmd 0x0800+readVOLOffsetRtmd
493 #define wroteVOLInternalStatusRtmd 0x0800+readVOLInternalStatusRtmd
494 #define wroteVOLExternalStatusRtmd 0x0800+readVOLExternalStatusRtmd
495 #define wroteVOLTrimLtft 0x0800+readVOLTrimLtft
496 #define wroteVOLOffsetLtft 0x0800+readVOLOffsetLtft
497 #define wroteVOLInternalStatusLtft 0x0800+readVOLInternalStatusLtft
498 #define wroteVOLExternalStatusLtft 0x0800+readVOLExternalStatusLtft
499 #define wroteVOLTrimRtft 0x0800+readVOLTrimRtft
500 #define wroteVOLOffsetRtft 0x0800+readVOLOffsetRtft
501 #define wroteVOLInternalStatusRtft 0x0800+readVOLInternalStatusRtft
502 #define wroteVOLExternalStatusRtft 0x0800+readVOLExternalStatusRtft
503 #define wroteVOLTrimLtfh 0x0800+readVOLTrimLtfh
504 #define wroteVOLOffsetLtfh 0x0800+readVOLOffsetLtfh
505 #define wroteVOLInternalStatusLtfh 0x0800+readVOLInternalStatusLtfh
506 #define wroteVOLExternalStatusLtfh 0x0800+readVOLExternalStatusLtfh
507 #define wroteVOLTrimRtfh 0x0800+readVOLTrimRtfh
508 #define wroteVOLOffsetRtfh 0x0800+readVOLOffsetRtfh
509 #define wroteVOLInternalStatusRtfh 0x0800+readVOLInternalStatusRtfh
510 #define wroteVOLExternalStatusRtfh 0x0800+readVOLExternalStatusRtfh
512 //==========================================================================================
513 #elif PAF_MAXNUMCHAN_AF==32
514 //==========================================================================================
516 #define PAF_VOL_RAMPTIME_BASE 0x08
517 #define PAF_VOL_RAMPTIME_LENGTH 2
519 #define PAF_VOL_UNUSED2_BASE PAF_VOL_RAMPTIME_BASE+PAF_VOL_RAMPTIME_LENGTH //10
520 #define PAF_VOL_UNUSED2_LENGTH 2
522 #define PAF_VOL_UNUSED3_BASE PAF_VOL_UNUSED2_BASE+PAF_VOL_UNUSED2_LENGTH //12
523 #define PAF_VOL_UNUSED3_LENGTH 4
525 #define PAF_VOL_MASTER_BASE PAF_VOL_UNUSED3_BASE+PAF_VOL_UNUSED3_LENGTH//16=0x10
526 #define PAF_VOL_MASTER_LENGTH  4*2
528 #define PAF_VOL_TRIM_BASE PAF_VOL_MASTER_BASE+PAF_VOL_MASTER_LENGTH//24 
529 #define PAF_VOL_TRIM_LENGTH  PAF_MAXNUMCHAN_AF*4*2 
531 //==========================================================================================
533 //
534 //PAF_VOL_TRIM_BASE => PAF_VolumeQuad :: control
535 //
536 #define writeVOLTrimLeftN(NN) 0xcb00+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_LEFT*8,NN //0
537 //
538 #define writeVOLTrimRghtN(NN) 0xcb00+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_RGHT*8,NN //1
539 //
540 #define writeVOLTrimCntrN(NN)    0xcb00+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_CNTR*8,NN //2
541 //
542 #define writeVOLTrimLCtrN(NN)    0xcb00+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_LCTR*8,NN //2
543 #define writeVOLTrimRCtrN(NN)    0xcb00+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_RCTR*8,NN //3
544 //
545 #define writeVOLTrimWideN(NN)    0xcb00+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_WIDE*8,NN //4
546 #define writeVOLTrimLWidN(NN)    0xcb00+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_LWID*8,NN //4
547 //
548 #define writeVOLTrimRWidN(NN)    0xcb00+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_RWID*8,NN //5
549 //
550 //PAF_OVER      6 : Undefined
551 //PAF_LOVR      6
552 //#define writeVOLTrimOverN(NN)  0xcb00+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_OVER*8,NN //6
553 //#define writeVOLTrimLOvrN(NN)  0xcb00+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_LOVR*8,NN //6
554 //
555 #define writeVOLTrimROvrN(NN)    0xcb00+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_ROVR*8,NN //7
556 //
557 #define writeVOLTrimLtmdN(NN)    0xcb00+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_LTMD*8,NN //6
558 #define writeVOLTrimRtmdN(NN)    0xcb00+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_RTMD*8,NN //7
560 #define writeVOLTrimSurrN(NN)    0xcb00+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_SURR*8,NN //8
561 #define writeVOLTrimLSurN(NN)    0xcb00+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_LSUR*8,NN //8
562 //
563 #define writeVOLTrimRSurN(NN)    0xcb00+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_RSUR*8,NN //9
564 #define writeVOLTrimBackN(NN)    0xcb00+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_BACK*8,NN //10
565 #define writeVOLTrimLBakN(NN)    0xcb00+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_LBAK*8,NN //10
566 //
567 #define writeVOLTrimRBakN(NN)    0xcb00+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_RBAK*8,NN //11
568 #define writeVOLTrimSubwN(NN)    0xcb00+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_SUBW*8,NN //12
569 #define writeVOLTrimLSubN(NN)    0xcb00+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_LSUB*8,NN //12
570 //
571 #define writeVOLTrimRSubN(NN)    0xcb00+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_RSUB*8,NN //13
572 #define writeVOLTrimLHedN(NN)    0xcb00+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_LHED*8,NN //14
573 #define writeVOLTrimRHedN(NN)    0xcb00+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_RHED*8,NN //15
574 //
575 #define writeVOLTrimCHedN(NN)    0xcb00+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_CHED*8,NN //16
576 #define writeVOLTrimTOverHdN(NN) 0xcb00+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_OVER_HD*8,NN //17
577 #define writeVOLTrimLHSiN(NN)    0xcb00+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_LHSI*8,NN //18
578 #define writeVOLTrimRHSiN(NN)    0xcb00+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_RHSI*8,NN //19
579 #define writeVOLTrimLHBkN(NN)    0xcb00+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_LHBK*8,NN //20
580 #define writeVOLTrimRHBkN(NN)    0xcb00+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_RHBK*8,NN //21
581 #define writeVOLTrimCHBkN(NN)    0xcb00+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_CHBK*8,NN //22
582 //..
583 // Three channels -unassigned viz 23,24,25
584 //..
585 #define writeVOLTrimLCtrHdN(NN) 0xcb00+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_LCTR_HD*8,NN  //26
586 #define writeVOLTrimRCtrHdN(NN) 0xcb00+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_RCTR_HD*8,NN //27
587 //..
588 // Four channels 28,29,30,31 -unassigned ie till PAF_VOL_TRIM_BASE+PAF_MAXNUMCHAN_AF*8
589 //
591 //=============================================================================================
593 //
594 //PAF_VOL_TRIM_BASE => PAF_VolumeQuad :: control
595 //
596 #define readVOLTrimLeft  0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_LEFT*8  //0
597 //
598 #define readVOLTrimRght  0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_RGHT*8  //1
599 //
600 #define readVOLTrimCntr          0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_CNTR*8  //2
601 //
602 #define readVOLTrimLCtr          0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_LCTR*8  //2
603 #define readVOLTrimRCtr          0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_RCTR*8  //3
604 //
605 #define readVOLTrimWide          0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_WIDE*8  //4
606 #define readVOLTrimLWid          0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_LWID*8  //4
607 //
608 #define readVOLTrimRWid          0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_RWID*8  //5
609 //
610 //PAF_OVER      6 : Undefined
611 //PAF_LOVR      6
612 //#define readVOLTrimOver        0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_OVER*8  //6
613 //#define readVOLTrimLOvr        0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_LOVR*8  //6
614 //
615 #define readVOLTrimROvr          0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_ROVR*8  //7
616 //
617 #define readVOLTrimLtmd          0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_LTMD*8  //6
618 #define readVOLTrimRtmd          0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_RTMD*8  //7
620 #define readVOLTrimSurr          0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_SURR*8  //8
621 #define readVOLTrimLSur          0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_LSUR*8  //8
622 //
623 #define readVOLTrimRSur          0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_RSUR*8  //9
624 #define readVOLTrimBack          0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_BACK*8  //10
625 #define readVOLTrimLBak          0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_LBAK*8  //10
626 //
627 #define readVOLTrimRBak          0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_RBAK*8  //11
628 #define readVOLTrimSubw          0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_SUBW*8  //12
629 #define readVOLTrimLSub          0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_LSUB*8  //12
630 //
631 #define readVOLTrimRSub          0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_RSUB*8  //13
632 #define readVOLTrimLHed          0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_LHED*8  //14
633 #define readVOLTrimRHed          0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_RHED*8  //15
634 //
635 #define readVOLTrimCHed          0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_CHED*8  //16
636 #define readVOLTrimTOverHd  0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_OVER_HD*8  //17
637 #define readVOLTrimLHSi          0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_LHSI*8  //18
638 #define readVOLTrimRHSi          0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_RHSI*8  //19
639 #define readVOLTrimLHBk          0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_LHBK*8  //20
640 #define readVOLTrimRHBk          0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_RHBK*8  //21
641 #define readVOLTrimCHBk          0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_CHBK*8  //22
642 //..
643 // Three channels -unassigned viz 23,24,25
644 //..
645 #define readVOLTrimLCtrHd       0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_LCTR_HD*8   //26
646 #define readVOLTrimRCtrHd       0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_RCTR_HD*8  //27
647 //..
648 // Four channels 28,29,30,31 -unassigned ie till PAF_VOL_TRIM_BASE+PAF_MAXNUMCHAN_AF*8
649 //
651 //==========================================================================================
653 //
654 //PAF_VOL_TRIM_BASE+2 => PAF_VolumeQuad :: offset
655 //
656 #define writeVOLOffsetLeftN(NN) 0xcb00+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_LEFT*8+2,NN //0
657 //
658 #define writeVOLOffsetRghtN(NN) 0xcb00+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_RGHT*8+2,NN //1
659 //
660 #define writeVOLOffsetCntrN(NN)  0xcb00+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_CNTR*8+2,NN //2
661 //
662 #define writeVOLOffsetLCtrN(NN)  0xcb00+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_LCTR*8+2,NN //2
663 #define writeVOLOffsetRCtrN(NN)  0xcb00+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_RCTR*8+2,NN //3
664 //
665 #define writeVOLOffsetWideN(NN)  0xcb00+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_WIDE*8+2,NN //4
666 #define writeVOLOffsetLWidN(NN)  0xcb00+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_LWID*8+2,NN //4
667 //
668 #define writeVOLOffsetRWidN(NN)  0xcb00+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_RWID*8+2,NN //5
669 //
670 //PAF_OVER      6 : Undefined
671 //PAF_LOVR      6
672 //#define writeVOLOffsetOverN(NN)        0xcb00+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_OVER*8+2,NN //6
673 //#define writeVOLOffsetLOvrN(NN)        0xcb00+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_LOVR*8+2,NN //6
674 //
675 #define writeVOLOffsetROvrN(NN)  0xcb00+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_ROVR*8+2,NN //7
676 //
677 #define writeVOLOffsetLtmdN(NN)  0xcb00+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_LTMD*8+2,NN //6
678 #define writeVOLOffsetRtmdN(NN)  0xcb00+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_RTMD*8+2,NN //7
680 #define writeVOLOffsetSurrN(NN)  0xcb00+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_SURR*8+2,NN //8
681 #define writeVOLOffsetLSurN(NN)  0xcb00+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_LSUR*8+2,NN //8
682 //
683 #define writeVOLOffsetRSurN(NN)  0xcb00+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_RSUR*8+2,NN //9
684 #define writeVOLOffsetBackN(NN)  0xcb00+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_BACK*8+2,NN //10
685 #define writeVOLOffsetLBakN(NN)  0xcb00+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_LBAK*8+2,NN //10
686 //
687 #define writeVOLOffsetRBakN(NN)  0xcb00+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_RBAK*8+2,NN //11
688 #define writeVOLOffsetSubwN(NN)  0xcb00+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_SUBW*8+2,NN //12
689 #define writeVOLOffsetLSubN(NN)  0xcb00+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_LSUB*8+2,NN //12
690 //
691 #define writeVOLOffsetRSubN(NN)  0xcb00+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_RSUB*8+2,NN //13
692 #define writeVOLOffsetLHedN(NN)  0xcb00+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_LHED*8+2,NN //14
693 #define writeVOLOffsetRHedN(NN)  0xcb00+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_RHED*8+2,NN //15
694 //
695 #define writeVOLOffsetCHedN(NN)          0xcb00+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_CHED*8+2,NN //16
696 #define writeVOLOffsetTOverHdN(NN) 0xcb00+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_OVER_HD*8+2,NN //17
697 #define writeVOLOffsetLHSiN(NN)  0xcb00+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_LHSI*8+2,NN //18
698 #define writeVOLOffsetRHSiN(NN)  0xcb00+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_RHSI*8+2,NN //19
699 #define writeVOLOffsetLHBkN(NN)  0xcb00+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_LHBK*8+2,NN //20
700 #define writeVOLOffsetRHBkN(NN)  0xcb00+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_RHBK*8+2,NN //21
701 #define writeVOLOffsetCHBkN(NN)  0xcb00+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_CHBK*8+2,NN //22
702 //..
703 // Three channels -unassigned viz 23,24,25
704 //..
705 #define writeVOLOffsetLCtrHdN(NN) 0xcb00+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_LCTR_HD*8+2,NN  //26
706 #define writeVOLOffsetRCtrHdN(NN)       0xcb00+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_RCTR_HD*8+2,NN //27
707 //..
708 // Four channels 28,29,30,31 -unassigned ie till PAF_VOL_TRIM_BASE+PAF_MAXNUMCHAN_AF*8
711 //==========================================================================================
715 //
716 //PAF_VOL_TRIM_BASE+2 => PAF_VolumeQuad :: offset
717 //
718 #define readVOLOffsetLeft  0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_LEFT*8+2  //0
719 //
720 #define readVOLOffsetRght  0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_RGHT*8+2  //1
721 //
722 #define readVOLOffsetCntr        0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_CNTR*8+2  //2
723 //
724 #define readVOLOffsetLCtr        0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_LCTR*8+2  //2
725 #define readVOLOffsetRCtr        0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_RCTR*8+2  //3
726 //
727 #define readVOLOffsetWide        0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_WIDE*8+2  //4
728 #define readVOLOffsetLWid        0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_LWID*8+2  //4
729 //
730 #define readVOLOffsetRWid        0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_RWID*8+2  //5
731 //
732 //PAF_OVER      6 : Undefined
733 //PAF_LOVR      6
734 //#define readVOLOffsetOver      0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_OVER*8+2  //6
735 //#define readVOLOffsetLOvr      0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_LOVR*8+2  //6
736 //
737 #define readVOLOffsetROvr        0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_ROVR*8+2  //7
738 //
739 #define readVOLOffsetLtmd        0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_LTMD*8+2  //6
740 #define readVOLOffsetRtmd        0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_RTMD*8+2  //7
742 #define readVOLOffsetSurr        0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_SURR*8+2  //8
743 #define readVOLOffsetLSur        0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_LSUR*8+2  //8
744 //
745 #define readVOLOffsetRSur        0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_RSUR*8+2  //9
746 #define readVOLOffsetBack        0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_BACK*8+2  //10
747 #define readVOLOffsetLBak        0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_LBAK*8+2  //10
748 //
749 #define readVOLOffsetRBak        0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_RBAK*8+2  //11
750 #define readVOLOffsetSubw        0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_SUBW*8+2  //12
751 #define readVOLOffsetLSub        0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_LSUB*8+2  //12
752 //
753 #define readVOLOffsetRSub        0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_RSUB*8+2  //13
754 #define readVOLOffsetLHed        0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_LHED*8+2  //14
755 #define readVOLOffsetRHed        0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_RHED*8+2  //15
756 //
757 #define readVOLOffsetCHed        0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_CHED*8+2  //16
758 #define readVOLOffsetTOverHd  0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_OVER_HD*8+2  //17
759 #define readVOLOffsetLHSi        0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_LHSI*8+2  //18
760 #define readVOLOffsetRHSi        0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_RHSI*8+2  //19
761 #define readVOLOffsetLHBk        0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_LHBK*8+2  //20
762 #define readVOLOffsetRHBk        0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_RHBK*8+2  //21
763 #define readVOLOffsetCHBk        0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_CHBK*8+2  //22
764 //..
765 // Three channels -unassigned viz 23,24,25
766 //..
767 #define readVOLOffsetLCtrHd  0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_LCTR_HD*8+2   //26
768 #define readVOLOffsetRCtrHd     0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_RCTR_HD*8+2  //27
769 //..
770 // Four channels 28,29,30,31 -unassigned ie till PAF_VOL_TRIM_BASE+PAF_MAXNUMCHAN_AF*8
772 //==========================================================================================
776 //
777 //PAF_VOL_TRIM_BASE+6 => PAF_VolumeQuad :: internal status
778 //
779 #define readVOLInternalStatusLeft        0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_LEFT*8+4 //0
780 //
781 #define readVOLInternalStatusRght        0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_RGHT*8+4 //1
782 //
783 #define readVOLInternalStatusCntr        0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_CNTR*8+4 //2
784 //
785 #define readVOLInternalStatusLCtr        0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_LCTR*8+4 //2
786 #define readVOLInternalStatusRCtr        0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_RCTR*8+4 //3
787 //
788 #define readVOLInternalStatusWide        0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_WIDE*8+4 //4
789 #define readVOLInternalStatusLWid        0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_LWID*8+4 //4
790 //
791 #define readVOLInternalStatusRWid        0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_RWID*8+4 //5
792 //
793 //PAF_OVER      6 : Undefined
794 //PAF_LOVR      6
795 //#define readVOLInternalStatusOver      0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_OVER*8+4 //6
796 //#define readVOLInternalStatusLOvr      0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_LOVR*8+4 //6
797 //
798 #define readVOLInternalStatusROvr        0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_ROVR*8+4 //7
799 //
800 #define readVOLInternalStatusLtmd        0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_LTMD*8+4 //6
801 #define readVOLInternalStatusRtmd        0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_RTMD*8+4 //7
803 #define readVOLInternalStatusSurr        0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_SURR*8+4 //8
804 #define readVOLInternalStatusLSur        0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_LSUR*8+4 //8
805 //
806 #define readVOLInternalStatusRSur        0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_RSUR*8+4 //9
807 #define readVOLInternalStatusBack        0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_BACK*8+4 //10
808 #define readVOLInternalStatusLBak        0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_LBAK*8+4 //10
809 //
810 #define readVOLInternalStatusRBak        0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_RBAK*8+4 //11
811 #define readVOLInternalStatusSubw        0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_SUBW*8+4 //12
812 #define readVOLInternalStatusLSub        0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_LSUB*8+4 //12
813 //
814 #define readVOLInternalStatusRSub        0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_RSUB*8+4 //13
815 #define readVOLInternalStatusLHed        0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_LHED*8+4 //14
816 #define readVOLInternalStatusRHed        0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_RHED*8+4 //15
817 //
818 #define readVOLInternalStatusCHed        0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_CHED*8+4 //16
819 #define readVOLInternalStatusTOverHd    0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_OVER_HD*8+4 //17
820 #define readVOLInternalStatusLHSi        0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_LHSI*8+4 //18
821 #define readVOLInternalStatusRHSi        0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_RHSI*8+4 //19
822 #define readVOLInternalStatusLHBk        0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_LHBK*8+4 //20
823 #define readVOLInternalStatusRHBk        0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_RHBK*8+4 //21
824 #define readVOLInternalStatusCHBk        0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_CHBK*8+4 //22
825 //..
826 // Three channels -unassigned viz 23,24,25
827 //..
828 #define readVOLInternalStatusLCtrHd     0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_LCTR_HD*8+4  //26
829 #define readVOLInternalStatusRCtrHd     0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_RCTR_HD*8+4 //27
830 //..
831 // Four channels 28,29,30,31 -unassigned ie till PAF_VOL_TRIM_BASE+PAF_MAXNUMCHAN_AF*8
832 //
833 //==========================================================================================
834 //
835 //
837 //
838 //PAF_VOL_TRIM_BASE+6 => PAF_VolumeQuad :: external status
839 //
840 #define readVOLExternalStatusLeft        0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_LEFT*8+6 //0
841 //
842 #define readVOLExternalStatusRght        0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_RGHT*8+6 //1
843 //
844 #define readVOLExternalStatusCntr        0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_CNTR*8+6 //2
845 //
846 #define readVOLExternalStatusLCtr        0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_LCTR*8+6 //2
847 #define readVOLExternalStatusRCtr        0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_RCTR*8+6 //3
848 //
849 #define readVOLExternalStatusWide        0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_WIDE*8+6 //4
850 #define readVOLExternalStatusLWid        0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_LWID*8+6 //4
851 //
852 #define readVOLExternalStatusRWid        0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_RWID*8+6 //5
853 //
854 //PAF_OVER      6 : Undefined
855 //PAF_LOVR      6
856 //#define readVOLExternalStatusOver      0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_OVER*8+6 //6
857 //#define readVOLExternalStatusLOvr      0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_LOVR*8+6 //6
858 //
859 #define readVOLExternalStatusROvr        0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_ROVR*8+6 //7
860 //
861 #define readVOLExternalStatusLtmd        0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_LTMD*8+6 //6
862 #define readVOLExternalStatusRtmd        0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_RTMD*8+6 //7
864 #define readVOLExternalStatusSurr        0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_SURR*8+6 //8
865 #define readVOLExternalStatusLSur        0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_LSUR*8+6 //8
866 //
867 #define readVOLExternalStatusRSur        0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_RSUR*8+6 //9
868 #define readVOLExternalStatusBack        0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_BACK*8+6 //10
869 #define readVOLExternalStatusLBak        0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_LBAK*8+6 //10
870 //
871 #define readVOLExternalStatusRBak        0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_RBAK*8+6 //11
872 #define readVOLExternalStatusSubw        0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_SUBW*8+6 //12
873 #define readVOLExternalStatusLSub        0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_LSUB*8+6 //12
874 //
875 #define readVOLExternalStatusRSub        0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_RSUB*8+6 //13
876 #define readVOLExternalStatusLHed        0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_LHED*8+6 //14
877 #define readVOLExternalStatusRHed        0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_RHED*8+6 //15
878 //
879 #define readVOLExternalStatusCHed        0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_CHED*8+6 //16
880 #define readVOLExternalStatusTOverHd    0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_OVER_HD*8+6 //17
881 #define readVOLExternalStatusLHSi        0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_LHSI*8+6 //18
882 #define readVOLExternalStatusRHSi        0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_RHSI*8+6 //19
883 #define readVOLExternalStatusLHBk        0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_LHBK*8+6 //20
884 #define readVOLExternalStatusRHBk        0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_RHBK*8+6 //21
885 #define readVOLExternalStatusCHBk        0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_CHBK*8+6 //22
886 //..
887 // Three channels -unassigned viz 23,24,25
888 //..
889 #define readVOLExternalStatusLCtrHd     0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_LCTR_HD*8+6  //26
890 #define readVOLExternalStatusRCtrHd     0xc300+STD_BETA_VOLUME,PAF_VOL_TRIM_BASE+PAF_RCTR_HD*8+6 //27
891 //..
892 // Four channels 28,29,30,31 -unassigned ie till PAF_VOL_TRIM_BASE+PAF_MAXNUMCHAN_AF*8
893 //
894 //==========================================================================================
895 //
896 //
899 #define wroteVOLTrimLeft 0x800+readVOLTrimLeft  
900 #define wroteVOLTrimRght 0x800+readVOLTrimRght  
901 #define wroteVOLTrimCntr 0x800+readVOLTrimCntr  
902 #define wroteVOLTrimWide 0x800+readVOLTrimWide  
903 #define wroteVOLTrimLWid 0x800+readVOLTrimLWid  
904 #define wroteVOLTrimRWid 0x800+readVOLTrimRWid  
905 #define wroteVOLTrimROvr 0x800+readVOLTrimROvr  //7
906 #define wroteVOLTrimLtmd 0x800+readVOLTrimLtmd  //6
907 #define wroteVOLTrimRtmd 0x800+readVOLTrimRtmd  //7
908 #define wroteVOLTrimSurr 0x800+readVOLTrimSurr  //8
909 #define wroteVOLTrimLSur 0x800+readVOLTrimLSur  //8
910 #define wroteVOLTrimRSur 0x800+readVOLTrimRSur  //9
911 #define wroteVOLTrimBack 0x800+readVOLTrimBack  //10
912 #define wroteVOLTrimLBak 0x800+readVOLTrimLBak  //10
913 #define wroteVOLTrimRBak 0x800+readVOLTrimRBak  //11
914 #define wroteVOLTrimSubw 0x800+readVOLTrimSubw  //12
915 #define wroteVOLTrimLSub 0x800+readVOLTrimLSub  //12
916 #define wroteVOLTrimRSub 0x800+readVOLTrimRSub  //13
917 #define wroteVOLTrimLHed 0x800+readVOLTrimLHed  //14
918 #define wroteVOLTrimRHed 0x800+readVOLTrimRHed  //15
919 #define wroteVOLTrimCHed 0x800+readVOLTrimCHed  //16
920 #define wroteVOLTrimTOverHd 0x800+readVOLTrimTOverHd    
921 #define wroteVOLTrimLHSi 0x800+readVOLTrimLHSi  //18
922 #define wroteVOLTrimRHSi 0x800+readVOLTrimRHSi  //19
923 #define wroteVOLTrimLHBk 0x800+readVOLTrimLHBk  //20
924 #define wroteVOLTrimRHBk 0x800+readVOLTrimRHBk  //21
925 #define wroteVOLTrimCHBk 0x800+readVOLTrimCHBk  //22
926 #define wroteVOLTrimRCtrHd 0x800+readVOLTrimRCtrHd      //27
928 #define wroteVOLOffsetLeft 0x800+readVOLOffsetLeft      
929 #define wroteVOLOffsetRght 0x800+readVOLOffsetRght      
930 #define wroteVOLOffsetCntr 0x800+readVOLOffsetCntr      
931 #define wroteVOLOffsetWide 0x800+readVOLOffsetWide      
932 #define wroteVOLOffsetLWid 0x800+readVOLOffsetLWid      
933 #define wroteVOLOffsetRWid 0x800+readVOLOffsetRWid      
934 #define wroteVOLOffsetROvr 0x800+readVOLOffsetROvr      //7
935 #define wroteVOLOffsetLtmd 0x800+readVOLOffsetLtmd      //6
936 #define wroteVOLOffsetRtmd 0x800+readVOLOffsetRtmd      //7
937 #define wroteVOLOffsetSurr 0x800+readVOLOffsetSurr      //8
938 #define wroteVOLOffsetLSur 0x800+readVOLOffsetLSur      //8
939 #define wroteVOLOffsetRSur 0x800+readVOLOffsetRSur      //9
940 #define wroteVOLOffsetBack 0x800+readVOLOffsetBack      //10
941 #define wroteVOLOffsetLBak 0x800+readVOLOffsetLBak      //10
942 #define wroteVOLOffsetRBak 0x800+readVOLOffsetRBak      //11
943 #define wroteVOLOffsetSubw 0x800+readVOLOffsetSubw      //12
944 #define wroteVOLOffsetLSub 0x800+readVOLOffsetLSub      //12
945 #define wroteVOLOffsetRSub 0x800+readVOLOffsetRSub      //13
946 #define wroteVOLOffsetLHed 0x800+readVOLOffsetLHed      //14
947 #define wroteVOLOffsetRHed 0x800+readVOLOffsetRHed      //15
948 #define wroteVOLOffsetCHed 0x800+readVOLOffsetCHed      //16
949 #define wroteVOLOffsetTOverHd 0x800+readVOLOffsetTOverHd        
950 #define wroteVOLOffsetLHSi 0x800+readVOLOffsetLHSi      //18
951 #define wroteVOLOffsetRHSi 0x800+readVOLOffsetRHSi      //19
952 #define wroteVOLOffsetLHBk 0x800+readVOLOffsetLHBk      //20
953 #define wroteVOLOffsetRHBk 0x800+readVOLOffsetRHBk      //21
954 #define wroteVOLOffsetCHBk 0x800+readVOLOffsetCHBk      //22
955 #define wroteVOLOffsetRCtrHd 0x800+readVOLOffsetRCtrHd  //27
957 #define wroteVOLExternalStatusLeft 0x800+readVOLExternalStatusLeft      
958 #define wroteVOLExternalStatusRght 0x800+readVOLExternalStatusRght      
959 #define wroteVOLExternalStatusCntr 0x800+readVOLExternalStatusCntr      
960 #define wroteVOLExternalStatusWide 0x800+readVOLExternalStatusWide      
961 #define wroteVOLExternalStatusLWid 0x800+readVOLExternalStatusLWid      
962 #define wroteVOLExternalStatusRWid 0x800+readVOLExternalStatusRWid      
963 #define wroteVOLExternalStatusROvr 0x800+readVOLExternalStatusROvr      //7
964 #define wroteVOLExternalStatusLtmd 0x800+readVOLExternalStatusLtmd      //6
965 #define wroteVOLExternalStatusRtmd 0x800+readVOLExternalStatusRtmd      //7
966 #define wroteVOLExternalStatusSurr 0x800+readVOLExternalStatusSurr      //8
967 #define wroteVOLExternalStatusLSur 0x800+readVOLExternalStatusLSur      //8
968 #define wroteVOLExternalStatusRSur 0x800+readVOLExternalStatusRSur      //9
969 #define wroteVOLExternalStatusBack 0x800+readVOLExternalStatusBack      //10
970 #define wroteVOLExternalStatusLBak 0x800+readVOLExternalStatusLBak      //10
971 #define wroteVOLExternalStatusRBak 0x800+readVOLExternalStatusRBak      //11
972 #define wroteVOLExternalStatusSubw 0x800+readVOLExternalStatusSubw      //12
973 #define wroteVOLExternalStatusLSub 0x800+readVOLExternalStatusLSub      //12
974 #define wroteVOLExternalStatusRSub 0x800+readVOLExternalStatusRSub      //13
975 #define wroteVOLExternalStatusLHed 0x800+readVOLExternalStatusLHed      //14
976 #define wroteVOLExternalStatusRHed 0x800+readVOLExternalStatusRHed      //15
977 #define wroteVOLExternalStatusCHed 0x800+readVOLExternalStatusCHed      //16
978 #define wroteVOLExternalStatusTOverHd 0x800+readVOLExternalStatusTOverHd        
979 #define wroteVOLExternalStatusLHSi 0x800+readVOLExternalStatusLHSi      //18
980 #define wroteVOLExternalStatusRHSi 0x800+readVOLExternalStatusRHSi      //19
981 #define wroteVOLExternalStatusLHBk 0x800+readVOLExternalStatusLHBk      //20
982 #define wroteVOLExternalStatusRHBk 0x800+readVOLExternalStatusRHBk      //21
983 #define wroteVOLExternalStatusCHBk 0x800+readVOLExternalStatusCHBk      //22
984 #define wroteVOLExternalStatusRCtrHd 0x800+readVOLExternalStatusRCtrHd  //27
986 #define wroteVOLInternalStatusLeft 0x800+readVOLInternalStatusLeft      
987 #define wroteVOLInternalStatusRght 0x800+readVOLInternalStatusRght      
988 #define wroteVOLInternalStatusCntr 0x800+readVOLInternalStatusCntr      
989 #define wroteVOLInternalStatusWide 0x800+readVOLInternalStatusWide      
990 #define wroteVOLInternalStatusLWid 0x800+readVOLInternalStatusLWid      
991 #define wroteVOLInternalStatusRWid 0x800+readVOLInternalStatusRWid      
992 #define wroteVOLInternalStatusROvr 0x800+readVOLInternalStatusROvr      //7
993 #define wroteVOLInternalStatusLtmd 0x800+readVOLInternalStatusLtmd      //6
994 #define wroteVOLInternalStatusRtmd 0x800+readVOLInternalStatusRtmd      //7
995 #define wroteVOLInternalStatusSurr 0x800+readVOLInternalStatusSurr      //8
996 #define wroteVOLInternalStatusLSur 0x800+readVOLInternalStatusLSur      //8
997 #define wroteVOLInternalStatusRSur 0x800+readVOLInternalStatusRSur      //9
998 #define wroteVOLInternalStatusBack 0x800+readVOLInternalStatusBack      //10
999 #define wroteVOLInternalStatusLBak 0x800+readVOLInternalStatusLBak      //10
1000 #define wroteVOLInternalStatusRBak 0x800+readVOLInternalStatusRBak      //11
1001 #define wroteVOLInternalStatusSubw 0x800+readVOLInternalStatusSubw      //12
1002 #define wroteVOLInternalStatusLSub 0x800+readVOLInternalStatusLSub      //12
1003 #define wroteVOLInternalStatusRSub 0x800+readVOLInternalStatusRSub      //13
1004 #define wroteVOLInternalStatusLHed 0x800+readVOLInternalStatusLHed      //14
1005 #define wroteVOLInternalStatusRHed 0x800+readVOLInternalStatusRHed      //15
1006 #define wroteVOLInternalStatusCHed 0x800+readVOLInternalStatusCHed      //16
1007 #define wroteVOLInternalStatusTOverHd 0x800+readVOLInternalStatusTOverHd        
1008 #define wroteVOLInternalStatusLHSi 0x800+readVOLInternalStatusLHSi      //18
1009 #define wroteVOLInternalStatusRHSi 0x800+readVOLInternalStatusRHSi      //19
1010 #define wroteVOLInternalStatusLHBk 0x800+readVOLInternalStatusLHBk      //20
1011 #define wroteVOLInternalStatusRHBk 0x800+readVOLInternalStatusRHBk      //21
1012 #define wroteVOLInternalStatusCHBk 0x800+readVOLInternalStatusCHBk      //22
1013 #define wroteVOLInternalStatusRCtrHd 0x800+readVOLInternalStatusRCtrHd  //27
1015 #else
1017 #error unsupported option
1019 #endif /* PAF_MAXNUMCHAN */
1021 #define  readVOLStatus 0xc508,STD_BETA_VOLUME
1023 #if  PAF_MAXNUMCHAN_AF==32
1024 #define  readVOLControl \
1025          readVOLMode, \
1026          readVOLChannelCount, \
1027          readVOLImplementation, \
1028          readVOLRampTime, \
1029          readVOLControlMaster, \
1030          readVOLOffsetMaster, \
1031          readVOLTrimLeft, \
1032          readVOLOffsetLeft, \
1033          readVOLTrimRght, \
1034          readVOLOffsetRght, \
1035          readVOLTrimCntr, \
1036          readVOLOffsetCntr, \
1037          readVOLTrimWide, \
1038          readVOLOffsetWide, \
1039          readVOLTrimRWid, \
1040          readVOLOffsetRWid, \
1041          readVOLTrimROvr, \
1042          readVOLOffsetROvr, \
1043          readVOLTrimSurr, \
1044          readVOLOffsetSurr, \
1045          readVOLTrimRSur, \
1046          readVOLOffsetRSur, \
1047          readVOLTrimBack, \
1048          readVOLOffsetBack, \
1049          readVOLTrimRBak, \
1050          readVOLOffsetRBak, \
1051          readVOLTrimSubw, \
1052          readVOLOffsetSubw, \
1053          readVOLTrimRSub, \
1054          readVOLOffsetRSub, \
1055          readVOLTrimRHed, \
1056          readVOLOffsetRHed
1057          
1058 /*         readVOLTrimHead, \
1059          readVOLOffsetHead, \
1060  */
1062 #else
1064 #define  readVOLControl \
1065          readVOLMode, \
1066          readVOLChannelCount, \
1067          readVOLImplementation, \
1068          readVOLRampTime, \
1069          readVOLControlMaster, \
1070          readVOLOffsetMaster, \
1071          readVOLTrimLeft, \
1072          readVOLOffsetLeft, \
1073          readVOLTrimRght, \
1074          readVOLOffsetRght, \
1075          readVOLTrimCntr, \
1076          readVOLOffsetCntr, \
1077          readVOLTrimLCtr,\
1078          readVOLOffsetLCtr,\
1079          readVOLTrimWide, \
1080          readVOLOffsetWide, \
1081          readVOLTrimRWid, \
1082          readVOLOffsetRWid, \
1083          readVOLTrimOver, \
1084          readVOLOffsetOver, \
1085          readVOLTrimROvr, \
1086          readVOLOffsetROvr, \
1087          readVOLTrimSurr, \
1088          readVOLOffsetSurr, \
1089          readVOLTrimRSur, \
1090          readVOLOffsetRSur, \
1091          readVOLTrimBack, \
1092          readVOLOffsetBack, \
1093          readVOLTrimRBak, \
1094          readVOLOffsetRBak, \
1095          readVOLTrimSubw, \
1096          readVOLOffsetSubw, \
1097          readVOLTrimRSub, \
1098          readVOLOffsetRSub, \
1099          readVOLTrimHead, \
1100          readVOLOffsetHead, \
1101          readVOLTrimRHed, \
1102          readVOLOffsetRHed
1104 #endif
1106 /* in support of inverse compilation only */
1107 #define writeVOLChannelCountN__16__ writeVOLChannelCountN(16)
1109 /* removed duplicates (for PAF_MAXNUMCHAN==8/16)
1110    in order to reduce size of "readVOLControl" */
1112 #if 0
1113          readVOLTrimLCtr, \
1114          readVOLOffsetLCtr, \
1115          readVOLTrimLWid, \
1116          readVOLOffsetLWid, \
1117          readVOLTrimLOvr, \
1118          readVOLOffsetLOvr, \
1119          readVOLTrimLSur, \
1120          readVOLOffsetLSur, \
1121          readVOLTrimLBak, \
1122          readVOLOffsetLBak, \
1123          readVOLTrimLSub, \
1124          readVOLOffsetLSub, \
1125          readVOLTrimLHed, \
1126          readVOLOffsetLHed, \
1128 #endif
1130 #endif /* _PAFVOL_A */