WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
hal_sio_v150_regs_def.h
浏览该文件的文档.
1
9#ifndef HAL_SIO_V150_REGS_DEF_H
10#define HAL_SIO_V150_REGS_DEF_H
11
12#include <stdint.h>
13
14#ifdef __cplusplus
15#if __cplusplus
16extern "C" {
17#endif /* __cplusplus */
18#endif /* __cplusplus */
19
31typedef union sio_v150_version_data {
32 uint32_t d32;
33 struct {
34 uint32_t vesion : 8;
35 uint32_t loop : 1;
38 uint32_t reserved9_31 : 23;
39 } b;
41
47typedef union sio_v150_mode_data {
48 uint32_t d32;
49 struct {
50 uint32_t mode : 1;
53 uint32_t pcm_mode : 1;
56 uint32_t reserved2 : 1;
57 uint32_t ext_rec_en : 1;
60 uint32_t chn_num : 2;
65 uint32_t clk_edge : 1;
68 uint32_t reserved7_31 : 25;
69 } b;
71
78 uint32_t d32;
79 struct {
80 uint32_t rx_intr : 1;
81 uint32_t tx_intr : 1;
82 uint32_t rx_right_fifo_over : 1;
83 uint32_t rx_left_fifo_over : 1;
84 uint32_t tx_right_fifo_under : 1;
85 uint32_t tx_left_fifo_under : 1;
86 uint32_t reserved6_31 : 26;
87 } b;
89
95typedef union sio_v150_intclr_data {
96 uint32_t d32;
97 struct {
98 uint32_t rx_intr : 1;
99 uint32_t tx_intr : 1;
100 uint32_t rx_right_fifo_over : 1;
101 uint32_t rx_left_fifo_over : 1;
102 uint32_t tx_right_fifo_under : 1;
103 uint32_t tx_left_fifo_under : 1;
104 uint32_t reserved6_31 : 26;
105 } b;
107
114 uint32_t d32;
115 struct {
116 uint32_t data : 32;
117 } b;
119
126 uint32_t d32;
127 struct {
128 uint32_t data : 32;
129 } b;
131
138 uint32_t d32;
139 struct {
140 uint32_t data : 32;
141 } b;
143
150 uint32_t d32;
151 struct {
152 uint32_t data : 32;
153 } b;
155
161typedef union sio_v150_ct_set_data {
162 uint32_t d32;
163 struct {
164 uint32_t tx_fifo_threshold : 4;
165 uint32_t rx_fifo_threshold : 4;
166 uint32_t tx_data_merge_en : 1;
169 uint32_t rx_data_merge_en : 1;
172 uint32_t tx_fifo_disable : 1;
175 uint32_t rx_fifo_disable : 1;
178 uint32_t tx_enable : 1;
181 uint32_t rx_enable : 1;
184 uint32_t intr_en : 1;
187 uint32_t rst_n : 1;
188 uint32_t reserved16_31 : 16;
189 } b;
191
197typedef union sio_v150_ct_clr_data {
198 uint32_t d32;
199 struct {
200 uint32_t tx_fifo_threshold : 4;
201 uint32_t rx_fifo_threshold : 4;
202 uint32_t tx_data_merge_en : 1;
205 uint32_t rx_data_merge_en : 1;
208 uint32_t tx_fifo_disable : 1;
211 uint32_t rx_fifo_disable : 1;
214 uint32_t tx_enable : 1;
217 uint32_t rx_enable : 1;
220 uint32_t intr_en : 1;
223 uint32_t rst_n : 1;
224 uint32_t reserved16_31 : 16;
225 } b;
227
233typedef union sio_v150_rx_sta_data {
234 uint32_t d32;
235 struct {
236 uint32_t rx_right_depth : 5;
237 uint32_t rx_left_depth : 5;
238 uint32_t reserved10_31 : 22;
239 } b;
241
247typedef union sio_v150_tx_sta_data {
248 uint32_t d32;
249 struct {
250 uint32_t tx_right_depth : 5;
251 uint32_t tx_left_depth : 5;
252 uint32_t reserved10_31 : 22;
253 } b;
255
262 uint32_t d32;
263 struct {
264 uint32_t tx : 3;
265 uint32_t rx : 3;
266 uint32_t reserved16_31 : 26;
267 } b;
269
276 uint32_t d32;
277 struct {
278 uint32_t start_pos_read : 1;
281 uint32_t start_pos_write : 1;
284 uint32_t reserved16_31 : 30;
285 } b;
287
294 uint32_t d32;
295 struct {
296 uint32_t start_pos_read : 1;
299 uint32_t start_pos_write : 1;
302 uint32_t reserved16_31 : 30;
303 } b;
305
312 uint32_t d32;
313 struct {
314 uint32_t signed_ext_en : 1;
315 uint32_t reserved16_31 : 31;
316 } b;
318
325 uint32_t d32;
326 struct {
327 uint32_t merge_en : 1;
328 uint32_t reserved16_31 : 31;
329 } b;
331
338 uint32_t d32;
339 struct {
340 uint32_t rx_intr : 1;
341 uint32_t tx_intr : 1;
342 uint32_t rx_right_fifo_over : 1;
343 uint32_t rx_left_fifo_over : 1;
344 uint32_t tx_right_fifo_under : 1;
345 uint32_t tx_left_fifo_under : 1;
346 uint32_t reserved6_31 : 26;
347 } b;
349
356 uint32_t d32;
357 struct {
358 uint32_t rx_data : 32;
359 } b;
361
368 uint32_t d32;
369 struct {
370 uint32_t tx_data : 32;
371 } b;
373
377typedef struct sio_v150_regs {
378 volatile uint32_t version;
379 volatile uint32_t mode;
380 volatile uint32_t intstatus;
381 volatile uint32_t intclr;
382 volatile uint32_t left_tx;
383 volatile uint32_t right_tx;
384 volatile uint32_t left_rx;
385 volatile uint32_t right_rx;
386 volatile uint32_t ct_set;
387 volatile uint32_t ct_clr;
388 volatile uint32_t reserved_reg;
389 volatile uint32_t rx_sta;
390 volatile uint32_t tx_sta;
391 volatile uint32_t reserved_reg1[2];
392 volatile uint32_t data_width_set;
393 volatile uint32_t i2s_start_pos;
394 volatile uint32_t i2s_pos_flag;
395 volatile uint32_t signed_ext;
396 volatile uint32_t i2s_pos_merge_en;
397 volatile uint32_t intmask;
398 volatile uint32_t reserved_reg2[4];
399 volatile uint32_t i2s_dual_rx_chn;
400 volatile uint32_t reserved_reg3[7];
401 volatile uint32_t i2s_dual_tx_chn;
403
408#ifdef __cplusplus
409#if __cplusplus
410}
411#endif /* __cplusplus */
412#endif /* __cplusplus */
413
414#endif
union sio_v150_intclr_data sio_v150_intclr_data_t
This union represents the bit fields in the sio_intclr register. Read the register into the d32 membe...
union sio_v150_intstatus_data sio_v150_intstatus_data_t
This union represents the bit fields in the sio_intstatus register. Read the register into the d32 me...
union sio_v150_data_width_set_data sio_v150_data_width_set_data_t
This union represents the bit fields in the sio_data_width_set register. Read the register into the d...
union sio_v150_ct_set_data sio_v150_ct_set_data_t
This union represents the bit fields in the sio_ct_set register. Read the register into the d32 membe...
union sio_v150_left_tx_data sio_v150_left_tx_data_t
This union represents the bit fields in the left_tx_data register. Read the register into the d32 mem...
union sio_v150_tx_sta_data sio_v150_tx_sta_data_t
This union represents the bit fields in the sio_tx_sta register. Read the register into the d32 membe...
struct sio_v150_regs sio_v150_regs_t
Registers associated with Sio.
union sio_v150_left_rx_data sio_v150_left_rx_data_t
This union represents the bit fields in the left_rx_data register. Read the register into the d32 mem...
union sio_v150_i2s_dual_tx_chn_data sio_v150_i2s_dual_tx_chn_data_t
This union represents the bit fields in the sio_i2s_dual_tx_chn register. Read the register into the ...
union sio_v150_i2s_dual_rx_chn_data sio_v150_i2s_dual_rx_chn_data_t
This union represents the bit fields in the sio_i2s_dual_rx_chn register. Read the register into the ...
union sio_v150_i2s_pos_flag_data sio_v150_i2s_pos_flag_data_t
This union represents the bit fields in the sio_pos_flag register. Read the register into the d32 mem...
union sio_v150_ct_clr_data sio_v150_ct_clr_data_t
This union represents the bit fields in the sio_ct_clr register. Read the register into the d32 membe...
union sio_v150_version_data sio_v150_version_data_t
This union represents the bit fields in the sio_version register. Read the register into the d32 memb...
union sio_v150_signed_ext_data sio_v150_signed_ext_data_t
This union represents the bit fields in the sio_signed_ext register. Read the register into the d32 m...
union sio_v150_intmask_data sio_v150_intmask_data_t
This union represents the bit fields in the sio_intmask register. Read the register into the d32 memb...
union sio_v150_rx_sta_data sio_v150_rx_sta_data_t
This union represents the bit fields in the sio_rx_sta register. Read the register into the d32 membe...
union sio_v150_right_tx_data sio_v150_right_tx_data_t
This union represents the bit fields in the right_tx_data register. Read the register into the d32 me...
union sio_v150_i2s_pos_merge_en_data sio_v150_i2s_pos_merge_en_data_t
This union represents the bit fields in the sio_i2s_pos_merge_en register. Read the register into the...
union sio_v150_i2s_start_pos_data sio_v150_i2s_start_pos_data_t
This union represents the bit fields in the sio_i2s_start_pos register. Read the register into the d3...
union sio_v150_mode_data sio_v150_mode_data_t
This union represents the bit fields in the sio_mode register. Read the register into the d32 member ...
union sio_v150_right_rx_data sio_v150_right_rx_data_t
This union represents the bit fields in the right_rx_data register. Read the register into the d32 me...
Registers associated with Sio.
Definition hal_sio_v150_regs_def.h:377
volatile uint32_t intmask
Definition hal_sio_v150_regs_def.h:397
volatile uint32_t reserved_reg1[2]
Definition hal_sio_v150_regs_def.h:391
volatile uint32_t i2s_dual_tx_chn
Definition hal_sio_v150_regs_def.h:401
volatile uint32_t left_rx
Definition hal_sio_v150_regs_def.h:384
volatile uint32_t i2s_pos_flag
Definition hal_sio_v150_regs_def.h:394
volatile uint32_t data_width_set
Definition hal_sio_v150_regs_def.h:392
volatile uint32_t intclr
Definition hal_sio_v150_regs_def.h:381
volatile uint32_t i2s_pos_merge_en
Definition hal_sio_v150_regs_def.h:396
volatile uint32_t intstatus
Definition hal_sio_v150_regs_def.h:380
volatile uint32_t ct_clr
Definition hal_sio_v150_regs_def.h:387
volatile uint32_t rx_sta
Definition hal_sio_v150_regs_def.h:389
volatile uint32_t tx_sta
Definition hal_sio_v150_regs_def.h:390
volatile uint32_t ct_set
Definition hal_sio_v150_regs_def.h:386
volatile uint32_t right_rx
Definition hal_sio_v150_regs_def.h:385
volatile uint32_t i2s_dual_rx_chn
Definition hal_sio_v150_regs_def.h:399
volatile uint32_t reserved_reg2[4]
Definition hal_sio_v150_regs_def.h:398
volatile uint32_t signed_ext
Definition hal_sio_v150_regs_def.h:395
volatile uint32_t reserved_reg
Definition hal_sio_v150_regs_def.h:388
volatile uint32_t i2s_start_pos
Definition hal_sio_v150_regs_def.h:393
volatile uint32_t mode
Definition hal_sio_v150_regs_def.h:379
volatile uint32_t version
Definition hal_sio_v150_regs_def.h:378
volatile uint32_t reserved_reg3[7]
Definition hal_sio_v150_regs_def.h:400
volatile uint32_t left_tx
Definition hal_sio_v150_regs_def.h:382
volatile uint32_t right_tx
Definition hal_sio_v150_regs_def.h:383
This union represents the bit fields in the sio_ct_clr register. Read the register into the d32 membe...
Definition hal_sio_v150_regs_def.h:197
uint32_t rx_fifo_threshold
Definition hal_sio_v150_regs_def.h:201
uint32_t tx_enable
Definition hal_sio_v150_regs_def.h:214
uint32_t rx_data_merge_en
Definition hal_sio_v150_regs_def.h:205
uint32_t tx_data_merge_en
Definition hal_sio_v150_regs_def.h:202
uint32_t rx_enable
Definition hal_sio_v150_regs_def.h:217
uint32_t rst_n
Definition hal_sio_v150_regs_def.h:223
struct sio_v150_ct_clr_data::@274 b
uint32_t reserved16_31
Definition hal_sio_v150_regs_def.h:224
uint32_t tx_fifo_disable
Definition hal_sio_v150_regs_def.h:208
uint32_t rx_fifo_disable
Definition hal_sio_v150_regs_def.h:211
uint32_t d32
Definition hal_sio_v150_regs_def.h:198
uint32_t tx_fifo_threshold
Definition hal_sio_v150_regs_def.h:200
uint32_t intr_en
Definition hal_sio_v150_regs_def.h:220
This union represents the bit fields in the sio_ct_set register. Read the register into the d32 membe...
Definition hal_sio_v150_regs_def.h:161
uint32_t reserved16_31
Definition hal_sio_v150_regs_def.h:188
uint32_t tx_fifo_threshold
Definition hal_sio_v150_regs_def.h:164
uint32_t tx_enable
Definition hal_sio_v150_regs_def.h:178
uint32_t tx_data_merge_en
Definition hal_sio_v150_regs_def.h:166
uint32_t d32
Definition hal_sio_v150_regs_def.h:162
uint32_t rx_fifo_threshold
Definition hal_sio_v150_regs_def.h:165
uint32_t rx_fifo_disable
Definition hal_sio_v150_regs_def.h:175
uint32_t tx_fifo_disable
Definition hal_sio_v150_regs_def.h:172
uint32_t rst_n
Definition hal_sio_v150_regs_def.h:187
struct sio_v150_ct_set_data::@273 b
uint32_t intr_en
Definition hal_sio_v150_regs_def.h:184
uint32_t rx_data_merge_en
Definition hal_sio_v150_regs_def.h:169
uint32_t rx_enable
Definition hal_sio_v150_regs_def.h:181
This union represents the bit fields in the sio_data_width_set register. Read the register into the d...
Definition hal_sio_v150_regs_def.h:261
uint32_t d32
Definition hal_sio_v150_regs_def.h:262
uint32_t tx
Definition hal_sio_v150_regs_def.h:264
struct sio_v150_data_width_set_data::@277 b
uint32_t reserved16_31
Definition hal_sio_v150_regs_def.h:266
uint32_t rx
Definition hal_sio_v150_regs_def.h:265
This union represents the bit fields in the sio_i2s_dual_rx_chn register. Read the register into the ...
Definition hal_sio_v150_regs_def.h:355
uint32_t d32
Definition hal_sio_v150_regs_def.h:356
uint32_t rx_data
Definition hal_sio_v150_regs_def.h:358
struct sio_v150_i2s_dual_rx_chn_data::@283 b
This union represents the bit fields in the sio_i2s_dual_tx_chn register. Read the register into the ...
Definition hal_sio_v150_regs_def.h:367
uint32_t tx_data
Definition hal_sio_v150_regs_def.h:370
uint32_t d32
Definition hal_sio_v150_regs_def.h:368
struct sio_v150_i2s_dual_tx_chn_data::@284 b
This union represents the bit fields in the sio_pos_flag register. Read the register into the d32 mem...
Definition hal_sio_v150_regs_def.h:293
struct sio_v150_i2s_pos_flag_data::@279 b
uint32_t start_pos_read
Definition hal_sio_v150_regs_def.h:296
uint32_t reserved16_31
Definition hal_sio_v150_regs_def.h:302
uint32_t d32
Definition hal_sio_v150_regs_def.h:294
uint32_t start_pos_write
Definition hal_sio_v150_regs_def.h:299
This union represents the bit fields in the sio_i2s_pos_merge_en register. Read the register into the...
Definition hal_sio_v150_regs_def.h:324
struct sio_v150_i2s_pos_merge_en_data::@281 b
uint32_t reserved16_31
Definition hal_sio_v150_regs_def.h:328
uint32_t merge_en
Definition hal_sio_v150_regs_def.h:327
uint32_t d32
Definition hal_sio_v150_regs_def.h:325
This union represents the bit fields in the sio_i2s_start_pos register. Read the register into the d3...
Definition hal_sio_v150_regs_def.h:275
uint32_t start_pos_write
Definition hal_sio_v150_regs_def.h:281
uint32_t d32
Definition hal_sio_v150_regs_def.h:276
uint32_t start_pos_read
Definition hal_sio_v150_regs_def.h:278
uint32_t reserved16_31
Definition hal_sio_v150_regs_def.h:284
struct sio_v150_i2s_start_pos_data::@278 b
This union represents the bit fields in the sio_intclr register. Read the register into the d32 membe...
Definition hal_sio_v150_regs_def.h:95
uint32_t rx_right_fifo_over
Definition hal_sio_v150_regs_def.h:100
struct sio_v150_intclr_data::@268 b
uint32_t reserved6_31
Definition hal_sio_v150_regs_def.h:104
uint32_t d32
Definition hal_sio_v150_regs_def.h:96
uint32_t rx_left_fifo_over
Definition hal_sio_v150_regs_def.h:101
uint32_t tx_right_fifo_under
Definition hal_sio_v150_regs_def.h:102
uint32_t tx_left_fifo_under
Definition hal_sio_v150_regs_def.h:103
uint32_t rx_intr
Definition hal_sio_v150_regs_def.h:98
uint32_t tx_intr
Definition hal_sio_v150_regs_def.h:99
This union represents the bit fields in the sio_intmask register. Read the register into the d32 memb...
Definition hal_sio_v150_regs_def.h:337
uint32_t d32
Definition hal_sio_v150_regs_def.h:338
uint32_t rx_intr
Definition hal_sio_v150_regs_def.h:340
uint32_t tx_intr
Definition hal_sio_v150_regs_def.h:341
struct sio_v150_intmask_data::@282 b
uint32_t tx_right_fifo_under
Definition hal_sio_v150_regs_def.h:344
uint32_t rx_left_fifo_over
Definition hal_sio_v150_regs_def.h:343
uint32_t rx_right_fifo_over
Definition hal_sio_v150_regs_def.h:342
uint32_t reserved6_31
Definition hal_sio_v150_regs_def.h:346
uint32_t tx_left_fifo_under
Definition hal_sio_v150_regs_def.h:345
This union represents the bit fields in the sio_intstatus register. Read the register into the d32 me...
Definition hal_sio_v150_regs_def.h:77
uint32_t tx_right_fifo_under
Definition hal_sio_v150_regs_def.h:84
uint32_t tx_intr
Definition hal_sio_v150_regs_def.h:81
uint32_t reserved6_31
Definition hal_sio_v150_regs_def.h:86
uint32_t tx_left_fifo_under
Definition hal_sio_v150_regs_def.h:85
uint32_t rx_intr
Definition hal_sio_v150_regs_def.h:80
uint32_t rx_left_fifo_over
Definition hal_sio_v150_regs_def.h:83
uint32_t rx_right_fifo_over
Definition hal_sio_v150_regs_def.h:82
struct sio_v150_intstatus_data::@267 b
uint32_t d32
Definition hal_sio_v150_regs_def.h:78
This union represents the bit fields in the left_rx_data register. Read the register into the d32 mem...
Definition hal_sio_v150_regs_def.h:137
struct sio_v150_left_rx_data::@271 b
uint32_t d32
Definition hal_sio_v150_regs_def.h:138
uint32_t data
Definition hal_sio_v150_regs_def.h:140
This union represents the bit fields in the left_tx_data register. Read the register into the d32 mem...
Definition hal_sio_v150_regs_def.h:113
uint32_t data
Definition hal_sio_v150_regs_def.h:116
struct sio_v150_left_tx_data::@269 b
uint32_t d32
Definition hal_sio_v150_regs_def.h:114
This union represents the bit fields in the sio_mode register. Read the register into the d32 member ...
Definition hal_sio_v150_regs_def.h:47
uint32_t d32
Definition hal_sio_v150_regs_def.h:48
uint32_t clk_edge
Definition hal_sio_v150_regs_def.h:65
uint32_t chn_num
Definition hal_sio_v150_regs_def.h:60
uint32_t mode
Definition hal_sio_v150_regs_def.h:50
uint32_t ext_rec_en
Definition hal_sio_v150_regs_def.h:57
uint32_t pcm_mode
Definition hal_sio_v150_regs_def.h:53
uint32_t reserved7_31
Definition hal_sio_v150_regs_def.h:68
struct sio_v150_mode_data::@266 b
uint32_t reserved2
Definition hal_sio_v150_regs_def.h:56
This union represents the bit fields in the right_rx_data register. Read the register into the d32 me...
Definition hal_sio_v150_regs_def.h:149
uint32_t data
Definition hal_sio_v150_regs_def.h:152
struct sio_v150_right_rx_data::@272 b
uint32_t d32
Definition hal_sio_v150_regs_def.h:150
This union represents the bit fields in the right_tx_data register. Read the register into the d32 me...
Definition hal_sio_v150_regs_def.h:125
uint32_t d32
Definition hal_sio_v150_regs_def.h:126
struct sio_v150_right_tx_data::@270 b
uint32_t data
Definition hal_sio_v150_regs_def.h:128
This union represents the bit fields in the sio_rx_sta register. Read the register into the d32 membe...
Definition hal_sio_v150_regs_def.h:233
uint32_t rx_right_depth
Definition hal_sio_v150_regs_def.h:236
struct sio_v150_rx_sta_data::@275 b
uint32_t d32
Definition hal_sio_v150_regs_def.h:234
uint32_t reserved10_31
Definition hal_sio_v150_regs_def.h:238
uint32_t rx_left_depth
Definition hal_sio_v150_regs_def.h:237
This union represents the bit fields in the sio_signed_ext register. Read the register into the d32 m...
Definition hal_sio_v150_regs_def.h:311
uint32_t d32
Definition hal_sio_v150_regs_def.h:312
uint32_t signed_ext_en
Definition hal_sio_v150_regs_def.h:314
uint32_t reserved16_31
Definition hal_sio_v150_regs_def.h:315
struct sio_v150_signed_ext_data::@280 b
This union represents the bit fields in the sio_tx_sta register. Read the register into the d32 membe...
Definition hal_sio_v150_regs_def.h:247
uint32_t tx_left_depth
Definition hal_sio_v150_regs_def.h:251
struct sio_v150_tx_sta_data::@276 b
uint32_t reserved10_31
Definition hal_sio_v150_regs_def.h:252
uint32_t tx_right_depth
Definition hal_sio_v150_regs_def.h:250
uint32_t d32
Definition hal_sio_v150_regs_def.h:248
This union represents the bit fields in the sio_version register. Read the register into the d32 memb...
Definition hal_sio_v150_regs_def.h:31
uint32_t reserved9_31
Definition hal_sio_v150_regs_def.h:38
uint32_t vesion
Definition hal_sio_v150_regs_def.h:34
uint32_t d32
Definition hal_sio_v150_regs_def.h:32
struct sio_v150_version_data::@265 b
uint32_t loop
Definition hal_sio_v150_regs_def.h:35