-
Notifications
You must be signed in to change notification settings - Fork 15
/
propertydefs.h
302 lines (256 loc) · 9.22 KB
/
propertydefs.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
// This file contains the property definitions for the Si47xx Parts.
#ifndef _PROPERTY_DEFS_H_
#define _PROPERTY_DEFS_H_
//==================================================================
// General Properties
//==================================================================
// GPO_IEN
#define GPO_IEN 0x0001
#define GPO_IEN_STCIEN_MASK 0x0001
#define GPO_IEN_ASQIEN_MASK 0x0002
#define GPO_IEN_RDSIEN_MASK 0x0004
#define GPO_IEN_RSQIEN_MASK 0x0008
#define GPO_IEN_ERRIEN_MASK 0x0040
#define GPO_IEN_CTSIEN_MASK 0x0080
#define GPO_IEN_STCREP_MASK 0x0100
#define GPO_IEN_ASQREP_MASK 0x0200
#define GPO_IEN_RDSREP_MASK 0x0400
#define GPO_IEN_RSQREP_MASK 0x0800
#define GPO_IEN_STCIEN_SHFT 0
#define GPO_IEN_ASQIEN_SHFT 1
#define GPO_IEN_RDSIEN_SHFT 2
#define GPO_IEN_RSQIEN_SHFT 3
#define GPO_IEN_ERRIEN_SHFT 6
#define GPO_IEN_CTSIEN_SHFT 7
#define GPO_IEN_STCREP_SHFT 8
#define GPO_IEN_ASQREP_SHFT 9
#define GPO_IEN_RDSREP_SHFT 10
#define GPO_IEN_RSQREP_SHFT 11
// DIGITAL_INPUT_FORMAT
#define DIGITAL_INPUT_FORMAT 0x0101
#define DIGITAL_INPUT_FORMAT_ISIZE_MASK 0x0003
#define DIGITAL_INPUT_FORMAT_IMONO_MASK 0x0004
#define DIGITAL_INPUT_FORMAT_IMODE_MASK 0x0078
#define DIGITAL_INPUT_FORMAT_IFALL_MASK 0x0080
#define DIGITAL_INPUT_FORMAT_ISIZE_SHFT 0
#define DIGITAL_INPUT_FORMAT_IMONO_SHFT 2
#define DIGITAL_INPUT_FORMAT_IMODE_SHFT 3
#define DIGITAL_INPUT_FORMAT_IFALL_SHFT 7
// DIGITAL_INPUT_SAMPLE_RATE
#define DIGITAL_INPUT_SAMPLE_RATE 0x0103
// REFCLK_FREQ
#define REFCLK_FREQ 0x0201
// REFCLK_PRESCALE
#define REFCLK_PRESCALE 0x0202
#define REFCLK_PRESCALE_MASK 0x0FFF
#define REFCLK_PRESCALE_SHFT 0
//==================================================================
// FM Transmit Properties
//==================================================================
// TX_COMPONENT_ENABLE
#define TX_COMPONENT_ENABLE 0x2100
#define TX_COMPONENT_ENABLE_PILOT_MASK 0x0001
#define TX_COMPONENT_ENABLE_LMR_MASK 0x0002
#define TX_COMPONENT_ENABLE_RDS_MASK 0x0004
#define TX_COMPONENT_ENABLE_PILOT_SHFT 0
#define TX_COMPONENT_ENABLE_LMR_SHFT 1
#define TX_COMPONENT_ENABLE_RDS_SHFT 2
// TX_AUDIO_DEVIATION
#define TX_AUDIO_DEVIATION 0x2101
// TX_PILOT_DEVIATION
#define TX_PILOT_DEVIATION 0x2102
// TX_RDS_DEVIATION
#define TX_RDS_DEVIATION 0x2103
// TX_LINE_INPUT_LEVEL
#define TX_LINE_INPUT_LEVEL 0x2104
#define TX_LINE_INPUT_LEVEL_LILEVEL_MASK 0x03FF
#define TX_LINE_INPUT_LEVEL_LIATTEN_MASK 0x3000
#define TX_LINE_INPUT_LEVEL_LILEVEL_SHFT 0
#define TX_LINE_INPUT_LEVEL_LIATTEN_SHFT 12
// TX_LINE_INPUT_MUTE
#define TX_LINE_INPUT_MUTE 0x2105
#define TX_LINE_INPUT_MUTE_RIMUTE_MASK 0x0001
#define TX_LINE_INPUT_MUTE_LIMUTE_MASK 0x0002
#define TX_LINE_INPUT_MUTE_RIMUTE_SHFT 0
#define TX_LINE_INPUT_MUTE_LIMUTE_SHFT 1
// TX_PREEMPHASIS
#define TX_PREEMPHASIS 0x2106
#define TX_PREMPHASIS_MASK 0x0003
#define TX_PREMPHASIS_SHFT 0
// TX_PILOT_FREQUENCY
#define TX_PILOT_FREQUENCY 0x2107
// TX_ACOMP_ENABLE
#define TX_ACOMP_ENABLE 0x2200
#define TX_ACOMP_ENABLE_ACEN_MASK 0x0001
#define TX_ACOMP_ENABLE_LIMITEN_MASK 0x0002
#define TX_ACOMP_ENABLE_ACEN_SHFT 0
#define TX_ACOMP_ENABLE_LIMITEN_SHFT 1
// TX_ACOMP_THRESHOLD
#define TX_ACOMP_THRESHOLD 0x2201
// TX_ACOMP_ATTACK_TIME
#define TX_ACOMP_ATTACK_TIME 0x2202
#define TX_ACOMP_ATTACK_TIME_MASK 0x000F
#define TX_ACOMP_ATTACK_TIME_SHFT 0
// TX_ACOMP_RELEASE_TIME
#define TX_ACOMP_RELEASE_TIME 0x2203
#define TX_ACOMP_RELEASE_TIME_MASK 0x0007
#define TX_ACOMP_RELEASE_TIME_SHFT 0
// TX_ACOMP_GAIN
#define TX_ACOMP_GAIN 0x2204
#define TX_ACOMP_GAIN_MASK 0x003F
#define TX_ACOMP_GAIN_SHFT 0
// TX_LIMITER_RELEASE_TIME
#define TX_LIMITER_RELEASE_TIME 0x2205
// TX_ASQ_INT_SELECT
#define TX_ASQ_INT_SELECT 0x2300
#define TX_ASQ_INT_SELECT_IALLIEN_MASK 0x0001
#define TX_ASQ_INT_SELECT_IALHIEN_MASK 0x0002
#define TX_ASQ_INT_SELECT_OVERMODIEN_MASK 0x0004
#define TX_ASQ_INT_SELECT_IALLIEN_SHFT 0
#define TX_ASQ_INT_SELECT_IALHIEN_SHFT 1
#define TX_ASQ_INT_SELECT_OVERMODIEN_SHFT 2
// TX_ASQ_LEVEL_LOW
#define TX_ASQ_LEVEL_LOW 0x2301
#define TX_ASQ_LEVEL_LOW_MASK 0x00FF
#define TX_ASQ_LEVEL_LOW_SHFT 0
// TX_ASQ_DURATION_LOW
#define TX_ASQ_DURATION_LOW 0x2302
// TX_ASQ_LEVEL_HIGH
#define TX_ASQ_LEVEL_HIGH 0x2303
#define TX_ASQ_LEVEL_HIGH_MASK 0x00FF
#define TX_ASQ_LEVEL_HIGH_SHFT 0
// TX_ASQ_DURATION_LOW
#define TX_ASQ_DURATION_HIGH 0x2304
// TX_RDS_INT_SOURCE
#define TX_RDS_INT_SOURCE 0x2C00
#define TX_RDS_INT_SOURCE_FIFOMT_MASK 0x0001
#define TX_RDS_INT_SOURCE_CBUFWRAP_MASK 0x0002
#define TX_RDS_INT_SOURCE_FIFOXMIT_MASK 0x0004
#define TX_RDS_INT_SOURCE_CBUFXMIT_MASK 0x0008
#define TX_RDS_INT_SOURCE_PSXMIT_MASK 0x0010
#define TX_RDS_INT_SOURCE_FIFOMT_SHFT 0
#define TX_RDS_INT_SOURCE_CBUFWRAP_SHFT 1
#define TX_RDS_INT_SOURCE_FIFOXMIT_SHFT 2
#define TX_RDS_INT_SOURCE_CBUFXMIT_SHFT 3
#define TX_RDS_INT_SOURCE_PSXMIT_SHFT 4
// TX_RDS_PI
#define TX_RDS_PI 0x2C01
// TX_RDS_PS_MIX
#define TX_RDS_PS_MIX 0x2C02
#define TX_RDS_PS_MIX_MASK 0x0007
#define TX_RDS_PS_MIX_SHFT 0
// TX_RDS_PS_MISC
#define TX_RDS_PS_MISC 0x2C03
#define TX_RDS_PS_MISC_RDSMS_MASK 0x0008
#define TX_RDS_PS_MISC_RDSTA_MASK 0x0010
#define TX_RDS_PS_MISC_RDSPTY_MASK 0x03E0
#define TX_RDS_PS_MISC_RDSTP_MASK 0x0400
#define TX_RDS_PS_MISC_FORCEB_MASK 0x0800
#define TX_RDS_PS_MISC_RDSD0_MASK 0x1000
#define TX_RDS_PS_MISC_RDSD1_MASK 0x2000
#define TX_RDS_PS_MISC_RDSD2_MASK 0x4000
#define TX_RDS_PS_MISC_RDSD3_MASK 0x8000
#define TX_RDS_PS_MISC_RDSMS_SHFT 3
#define TX_RDS_PS_MISC_RDSTA_SHFT 4
#define TX_RDS_PS_MISC_RDSPTY_SHFT 5
#define TX_RDS_PS_MISC_RDSTP_SHFT 10
#define TX_RDS_PS_MISC_FORCEB_SHFT 11
#define TX_RDS_PS_MISC_RDSD0_SHFT 12
#define TX_RDS_PS_MISC_RDSD1_SHFT 13
#define TX_RDS_PS_MISC_RDSD2_SHFT 14
#define TX_RDS_PS_MISC_RDSD3_SHFT 15
// TX_RDS_PS_REPEAT_COUNT
#define TX_RDS_PS_REPEAT_COUNT 0x2C04
#define TX_RDS_PS_REPEAT_COUNT_MASK 0x00FF
#define TX_RDS_PS_REPEAT_COUNT_SHFT 0
// TX_RDS_PS_MESSAGE_COUNT
#define TX_RDS_PS_MESSAGE_COUNT 0x2C05
#define TX_RDS_PS_MESSAGE_COUNT_MASK 0x000F
#define TX_RDS_PS_MESSAGE_COUNT_SHFT 0
// TX_RDS_PS_AF
#define TX_RDS_PS_AF 0x2C06
// TX_RDS_FIFO_SIZE
#define TX_RDS_FIFO_SIZE 0x2C07
#define TX_RDS_FIFO_SIZE_MASK 0x00FF
#define TX_RDS_FIFO_SIZE_SHFT 0
//==================================================================
// Bit Definitions for Properties
//==================================================================
// DIGITAL_MODE - used for input or output
#define DIGITAL_MODE_I2S 0x0
#define DIGITAL_MODE_LEFT 0x6
#define DIGITAL_MODE_MSB1ST 0xC
#define DIGITAL_MODE_MSB2ND 0x8
// DIGITAL_SIZE - used for input or output
#define DIGITAL_SIZE_16 0x0
#define DIGITAL_SIZE_20 0x1
#define DIGITAL_SIZE_24 0x2
#define DIGITAL_SIZE_8 0x3
// TX_LINE_INPUT_LEVEL_LIATTEN
#define TX_LINE_INPUT_LEVEL_LIATTEN_396kOhm 0x0000
#define TX_LINE_INPUT_LEVEL_LIATTEN_100kOhm 0x1000
#define TX_LINE_INPUT_LEVEL_LIATTEN_74kOhm 0x2000
#define TX_LINE_INPUT_LEVEL_LIATTEN_60kOhm 0x3000
// TX_DEEMPHASIS
#define TX_PREEMPHASIS_75US 0x0
#define TX_PREEMPHASIS_50US 0x1
#define TX_PREEMPHASIS_DISABLED 0x2
// TX_ACOMP_ATTACK_TIME
#define TX_ACOMP_ATTACK_TIME_0_5MS 0x0
#define TX_ACOMP_ATTACK_TIME_1_0MS 0x1
#define TX_ACOMP_ATTACK_TIME_1_5MS 0x2
#define TX_ACOMP_ATTACK_TIME_2_0MS 0x3
#define TX_ACOMP_ATTACK_TIME_2_5MS 0x4
#define TX_ACOMP_ATTACK_TIME_3_0MS 0x5
#define TX_ACOMP_ATTACK_TIME_3_5MS 0x6
#define TX_ACOMP_ATTACK_TIME_4_0MS 0x7
#define TX_ACOMP_ATTACK_TIME_4_5MS 0x8
#define TX_ACOMP_ATTACK_TIME_5_0MS 0x9
// TX_ACOMP_RELEASE_TIME
#define TX_ACOMP_RELEASE_TIME_100MS 0x0
#define TX_ACOMP_RELEASE_TIME_200MS 0x1
#define TX_ACOMP_RELEASE_TIME_350MS 0x2
#define TX_ACOMP_RELEASE_TIME_525MS 0x3
#define TX_ACOMP_RELEASE_TIME_1000MS 0x4
// TX_RDS_PS_MIX
#define TX_RDS_PS_MIX_FIFO_EMPTY 0x0
#define TX_RDS_PS_MIX_12_5_PCT 0x1
#define TX_RDS_PS_MIX_25_PCT 0x2
#define TX_RDS_PS_MIX_50_PCT 0x3
#define TX_RDS_PS_MIX_75_PCT 0x4
#define TX_RDS_PS_MIX_87_5_PCT 0x5
#define TX_RDS_PS_MIX_100_PCT 0x6
// TX_RDS_PS_MISC_PTY
#define TX_RDS_PS_MISC_PTY_NONE 0
#define TX_RDS_PS_MISC_PTY_NEWS 1
#define TX_RDS_PS_MISC_PTY_INFO 2
#define TX_RDS_PS_MISC_PTY_SPORTS 3
#define TX_RDS_PS_MISC_PTY_TALK 4
#define TX_RDS_PS_MISC_PTY_ROCK 5
#define TX_RDS_PS_MISC_PTY_CLROCK 6
#define TX_RDS_PS_MISC_PTY_ADHITS 7
#define TX_RDS_PS_MISC_PTY_SOFTROCK 8
#define TX_RDS_PS_MISC_PTY_TOP40 9
#define TX_RDS_PS_MISC_PTY_COUNTRY 10
#define TX_RDS_PS_MISC_PTY_OLDIES 11
#define TX_RDS_PS_MISC_PTY_SOFT 12
#define TX_RDS_PS_MISC_PTY_NOST 13
#define TX_RDS_PS_MISC_PTY_JAZZ 14
#define TX_RDS_PS_MISC_PTY_CLASS 15
#define TX_RDS_PS_MISC_PTY_RHYBLUES 16
#define TX_RDS_PS_MISC_PTY_SOFTRB 17
#define TX_RDS_PS_MISC_PTY_FGNLANG 18
#define TX_RDS_PS_MISC_PTY_RMUSIC 19
#define TX_RDS_PS_MISC_PTY_RTALK 20
#define TX_RDS_PS_MISC_PTY_PERS 21
#define TX_RDS_PS_MISC_PTY_PUBLIC 22
#define TX_RDS_PS_MISC_PTY_COLLEGE 23
#define TX_RDS_PS_MISC_PTY_UN24 24
#define TX_RDS_PS_MISC_PTY_UN25 25
#define TX_RDS_PS_MISC_PTY_UN26 26
#define TX_RDS_PS_MISC_PTY_UN27 27
#define TX_RDS_PS_MISC_PTY_UN28 28
#define TX_RDS_PS_MISC_PTY_WTHR 29
#define TX_RDS_PS_MISC_PTY_EMERTEST 30
#define TX_RDS_PS_MISC_PTY_ALERT 31
#endif