WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
hal_pwm_v151_regs_def.h
浏览该文件的文档.
1
10#ifndef HAL_PWM_V151_REGS_DEF_H
11#define HAL_PWM_V151_REGS_DEF_H
12
13#include <stdint.h>
14#include "pwm_porting.h"
15
16#ifdef __cplusplus
17#if __cplusplus
18extern "C" {
19#endif /* __cplusplus */
20#endif /* __cplusplus */
21
28#define BIT16 16
29
35typedef union pwm_sel_data {
36 uint32_t d32;
37 struct {
38 uint32_t pwm_sel_i : 16;
41 uint32_t reserved16_31 : 16;
42 } b;
44
45
52 uint32_t d32;
53 struct {
54 uint32_t pwm_startclrcnt_en_i : 1;
56 uint32_t reserved1_31 : 31;
57 } b;
59
65typedef union pwm_start_data {
66 uint32_t d32;
67 struct {
68 uint32_t pwm_start_i : 1;
71 uint32_t reserved1_31 : 31;
72 } b;
74
80typedef union pwm_en_data {
81 uint32_t d32;
82 struct {
83 uint32_t pwm_en_j : 1;
87 uint32_t reserved1_31 : 31;
88 } b;
90
96typedef union pwm_portity_data {
97 uint32_t d32;
98 struct {
99 uint32_t pwm_portity_j : 1;
102 uint32_t reserved1_31 : 31;
103 } b;
105
111typedef union pwm_oen_cfg_data {
112 uint32_t d32;
113 struct {
114 uint32_t pwm_oen_cfg_j : 1;
117 uint32_t reserved1_31 : 31;
118 } b;
120
126typedef union pwm_offset_l_data {
127 uint32_t d32;
128 struct {
129 uint32_t pwm_offset_l_j : 16;
133 uint32_t reserved1_31 : 16;
134 } b;
136
142typedef union pwm_offset_h_data {
143 uint32_t d32;
144 struct {
145 uint32_t pwm_offset_h_j : 16;
150 uint32_t reserved1_31 : 16;
151 } b;
153
159typedef union pwm_freq_l_data {
160 uint32_t d32;
161 struct {
162 uint32_t pwm_freq_l_j : 16;
166 uint32_t reserved1_31 : 16;
167 } b;
169
175typedef union pwm_freq_h_data {
176 uint32_t d32;
177 struct {
178 uint32_t pwm_freq_h_j : 16;
183 uint32_t reserved1_31 : 16;
184 } b;
186
192typedef union pwm_duty_l_data {
193 uint32_t d32;
194 struct {
195 uint32_t pwm_duty_l_j : 16;
199 uint32_t reserved1_31 : 16;
200 } b;
202
208typedef union pwm_duty_h_data {
209 uint32_t d32;
210 struct {
211 uint32_t pwm_duty_h_j : 16;
215 uint32_t reserved1_31 : 16;
216 } b;
218
225 uint32_t d32;
226 struct {
231 uint32_t reserved1_31 : 31;
232 } b;
234
240typedef union pwm_period_val_data {
241 uint32_t d32;
242 struct {
243 uint32_t pwm_period_val_j : 16;
246 uint32_t reserved1_31 : 16;
247 } b;
249
255typedef union pwm_periodcnt_data {
256 uint32_t d32;
257 struct {
258 uint32_t pwm_periodcnt_j : 16;
259 uint32_t reserved16_31 : 16;
260 } b;
262
269 uint32_t d32;
270 struct {
271 uint32_t pwm_abnor_state0 : 16;
273 uint32_t reserved16_31 : 16;
274 } b;
276
283 uint32_t d32;
284 struct {
285 uint32_t pwm_abnor_state1 : 16;
287 uint32_t reserved16_31 : 16;
288 } b;
290
297 uint32_t d32;
298 struct {
299 uint32_t pwm_abnor_state_clr0 : 16;
301 uint32_t reserved16_31 : 16;
302 } b;
304
311 uint32_t d32;
312 struct {
313 uint32_t pwm_abnor_state_clr1 : 16;
315 uint32_t reserved16_31 : 16;
316 } b;
318
324typedef union pwm_int_mask_data {
325 uint32_t d32;
326 struct {
327 uint32_t pwm_int_mask : 2;
332 uint32_t reserved2_31 : 30;
333 } b;
335
341typedef union pwm_dma_en_data {
342 uint32_t d32;
343 struct {
344 uint32_t pwm_dma_en : 1;
347 uint32_t reserved1_31 : 31;
348 } b;
350
357 uint32_t d32;
358 struct {
359 uint32_t pwm_cfg_int_clr0 : 16;
362 uint32_t reserved16_31 : 16;
363 } b;
365
369typedef struct pwm_v151_sel {
370 volatile uint32_t pwm_sel;
371 volatile uint32_t pwm_startclrcnt_en;
372 volatile uint32_t pwm_start;
373 volatile uint32_t reserved;
375
379typedef struct pwm_ip {
380 volatile uint32_t pwm_en;
381 volatile uint32_t pwm_portity;
382 volatile uint32_t pwm_oen_cfg;
383 volatile uint32_t pwm_offset_l;
384 volatile uint32_t pwm_offset_h;
385 volatile uint32_t pwm_freq_l;
386 volatile uint32_t pwm_freq_h;
387 volatile uint32_t pwm_duty_l;
388 volatile uint32_t pwm_duty_h;
389 volatile uint32_t pwm_periodload_flag;
390 volatile uint32_t pwm_period_val;
391 volatile uint32_t pwm_periodcnt;
392 volatile uint32_t reserved1;
393 volatile uint32_t reserved2;
394 volatile uint32_t reserved3;
395 volatile uint32_t reserved4;
397
398typedef struct pwm_v151_regs {
399 volatile pwm_v151_sel_t pwm_v151_sel[CONFIG_PWM_GROUP_NUM];
400 volatile pwm_v151_sel_t pwm_v151_sel_reserv[BIT16 - CONFIG_PWM_GROUP_NUM];
401 volatile pwm_ip_t pwm_ip[CONFIG_PWM_CHANNEL_NUM];
402 volatile pwm_ip_t pwm_ip_reserv1[BIT16 - CONFIG_PWM_CHANNEL_NUM];
403 volatile uint32_t pwm_abnor_state0;
404 volatile uint32_t pwm_abnor_state1;
405 volatile uint32_t pwm_abnor_state_clr0;
406 volatile uint32_t pwm_abnor_state_clr1;
407 volatile uint32_t pwm_int_mask;
408 volatile uint32_t pwm_dma_en;
409 volatile uint32_t pwm_cfg_int_clr0;
411
416#ifdef __cplusplus
417#if __cplusplus
418}
419#endif /* __cplusplus */
420#endif /* __cplusplus */
421
422#endif
union pwm_sel_data pwm_sel_data_t
This union represents the bit fields in the pwm_sel register. Read the register into the d32 member t...
union pwm_freq_l_data pwm_freq_l_data_t
This union represents the bit fields in the pwm_freq_low register. Read the register into the d32 mem...
union pwm_abnor_state_clr0_data pwm_abnor_state_clr0_data_t
This union represents the bit fields in the pwm_abnor_state_clr0 register. Read the register into the...
union pwm_duty_l_data pwm_duty_l_data_t
This union represents the bit fields in the pwm_duty_low register. Read the register into the d32 mem...
union pwm_freq_h_data pwm_freq_h_data_t
This union represents the bit fields in the pwm_freq_high register. Read the register into the d32 me...
union pwm_startclrcnt_en_data pwm_startclrcnt_en_data_t
This union represents the bit fields in the pwm_startclrcnt_en register. Read the register into the d...
union pwm_abnor_state_clr1_data pwm_abnor_state_clr1_data_t
This union represents the bit fields in the pwm_abnor_state_clr1 register. Read the register into the...
union pwm_period_val_data pwm_period_val_data_t
This union represents the bit fields in the pwm_period_value register. Read the register into the d32...
struct pwm_v151_regs pwm_v151_regs_t
union pwm_start_data pwm_start_data_t
This union represents the bit fields in the pwm_start register. Read the register into the d32 member...
union pwm_portity_data pwm_portity_data_t
This union represents the bit fields in the pwm_portity register. Read the register into the d32 memb...
union pwm_duty_h_data pwm_duty_h_data_t
This union represents the bit fields in the pwm_duty_high register. Read the register into the d32 me...
union pwm_offset_h_data pwm_offset_h_data_t
This union represents the bit fields in the pwm_offset_high register. Read the register into the d32 ...
struct pwm_v151_sel pwm_v151_sel_t
Registers associated with the group of PWM.
union pwm_periodcnt_data pwm_periodcnt_data_t
This union represents the bit fields in the pwm_periodcnt register. Read the register into the d32 me...
#define BIT16
Definition hal_pwm_v151_regs_def.h:28
union pwm_offset_l_data pwm_offset_l_data_t
This union represents the bit fields in the pwm_offset_low register. Read the register into the d32 m...
struct pwm_ip pwm_ip_t
Registers associated with the channel of PWM.
union pwm_dma_en_data pwm_dma_en_data_t
This union represents the bit fields in the pwm_dma_en register. Read the register into the d32 membe...
union pwm_int_mask_data pwm_int_mask_data_t
This union represents the bit fields in the pwm_int_mask register. Read the register into the d32 mem...
union pwm_oen_cfg_data pwm_oen_cfg_data_t
This union represents the bit fields in the pwm_oen_cfg register. Read the register into the d32 memb...
union pwm_periodload_flag_data pwm_periodload_flag_data_t
This union represents the bit fields in the pwm_periodload_flag register. Read the register into the ...
union pwm_abnor_state0_data pwm_abnor_state0_data_t
This union represents the bit fields in the pwm_abnor_state0 register. Read the register into the d32...
union pwm_abnor_state1_data pwm_abnor_state1_data_t
This union represents the bit fields in the pwm_abnor_state1 register. Read the register into the d32...
union pwm_en_data pwm_en_data_t
This union represents the bit fields in the pwm_en register. Read the register into the d32 member th...
union pwm_cfg_int_clr0_data pwm_cfg_int_clr0_data_t
This union represents the bit fields in the pwm_cfg_int_clr0 register. Read the register into the d32...
Registers associated with the channel of PWM.
Definition hal_pwm_v151_regs_def.h:379
volatile uint32_t reserved4
Definition hal_pwm_v151_regs_def.h:395
volatile uint32_t pwm_offset_l
Definition hal_pwm_v151_regs_def.h:383
volatile uint32_t reserved3
Definition hal_pwm_v151_regs_def.h:394
volatile uint32_t pwm_freq_l
Definition hal_pwm_v151_regs_def.h:385
volatile uint32_t pwm_duty_l
Definition hal_pwm_v151_regs_def.h:387
volatile uint32_t pwm_portity
Definition hal_pwm_v151_regs_def.h:381
volatile uint32_t pwm_periodcnt
Definition hal_pwm_v151_regs_def.h:391
volatile uint32_t pwm_duty_h
Definition hal_pwm_v151_regs_def.h:388
volatile uint32_t pwm_offset_h
Definition hal_pwm_v151_regs_def.h:384
volatile uint32_t pwm_freq_h
Definition hal_pwm_v151_regs_def.h:386
volatile uint32_t reserved1
Definition hal_pwm_v151_regs_def.h:392
volatile uint32_t pwm_period_val
Definition hal_pwm_v151_regs_def.h:390
volatile uint32_t reserved2
Definition hal_pwm_v151_regs_def.h:393
volatile uint32_t pwm_oen_cfg
Definition hal_pwm_v151_regs_def.h:382
volatile uint32_t pwm_en
Definition hal_pwm_v151_regs_def.h:380
volatile uint32_t pwm_periodload_flag
Definition hal_pwm_v151_regs_def.h:389
Definition hal_pwm_v151_regs_def.h:398
volatile pwm_v151_sel_t pwm_v151_sel_reserv[16 - 6]
Definition hal_pwm_v151_regs_def.h:400
volatile pwm_ip_t pwm_ip_reserv1[16 - 6]
Definition hal_pwm_v151_regs_def.h:402
volatile uint32_t pwm_dma_en
Definition hal_pwm_v151_regs_def.h:408
volatile uint32_t pwm_abnor_state_clr0
Definition hal_pwm_v151_regs_def.h:405
volatile uint32_t pwm_abnor_state0
Definition hal_pwm_v151_regs_def.h:403
volatile uint32_t pwm_cfg_int_clr0
Definition hal_pwm_v151_regs_def.h:409
volatile uint32_t pwm_abnor_state_clr1
Definition hal_pwm_v151_regs_def.h:406
volatile uint32_t pwm_abnor_state1
Definition hal_pwm_v151_regs_def.h:404
volatile uint32_t pwm_int_mask
Definition hal_pwm_v151_regs_def.h:407
Registers associated with the group of PWM.
Definition hal_pwm_v151_regs_def.h:369
volatile uint32_t pwm_sel
Definition hal_pwm_v151_regs_def.h:370
volatile uint32_t reserved
Definition hal_pwm_v151_regs_def.h:373
volatile uint32_t pwm_start
Definition hal_pwm_v151_regs_def.h:372
volatile uint32_t pwm_startclrcnt_en
Definition hal_pwm_v151_regs_def.h:371
This union represents the bit fields in the pwm_abnor_state0 register. Read the register into the d32...
Definition hal_pwm_v151_regs_def.h:268
uint32_t reserved16_31
Definition hal_pwm_v151_regs_def.h:273
struct pwm_abnor_state0_data::@120 b
uint32_t d32
Definition hal_pwm_v151_regs_def.h:269
uint32_t pwm_abnor_state0
Definition hal_pwm_v151_regs_def.h:271
This union represents the bit fields in the pwm_abnor_state1 register. Read the register into the d32...
Definition hal_pwm_v151_regs_def.h:282
uint32_t pwm_abnor_state1
Definition hal_pwm_v151_regs_def.h:285
uint32_t reserved16_31
Definition hal_pwm_v151_regs_def.h:287
uint32_t d32
Definition hal_pwm_v151_regs_def.h:283
struct pwm_abnor_state1_data::@121 b
This union represents the bit fields in the pwm_abnor_state_clr0 register. Read the register into the...
Definition hal_pwm_v151_regs_def.h:296
uint32_t d32
Definition hal_pwm_v151_regs_def.h:297
struct pwm_abnor_state_clr0_data::@123 b
uint32_t pwm_abnor_state_clr0
Definition hal_pwm_v151_regs_def.h:299
uint32_t reserved16_31
Definition hal_pwm_v151_regs_def.h:301
This union represents the bit fields in the pwm_abnor_state_clr1 register. Read the register into the...
Definition hal_pwm_v151_regs_def.h:310
uint32_t pwm_abnor_state_clr1
Definition hal_pwm_v151_regs_def.h:313
uint32_t d32
Definition hal_pwm_v151_regs_def.h:311
struct pwm_abnor_state_clr1_data::@124 b
uint32_t reserved16_31
Definition hal_pwm_v151_regs_def.h:315
This union represents the bit fields in the pwm_cfg_int_clr0 register. Read the register into the d32...
Definition hal_pwm_v151_regs_def.h:356
struct pwm_cfg_int_clr0_data::@128 b
uint32_t d32
Definition hal_pwm_v151_regs_def.h:357
uint32_t reserved16_31
Definition hal_pwm_v151_regs_def.h:362
uint32_t pwm_cfg_int_clr0
Definition hal_pwm_v151_regs_def.h:359
This union represents the bit fields in the pwm_dma_en register. Read the register into the d32 membe...
Definition hal_pwm_v151_regs_def.h:341
uint32_t d32
Definition hal_pwm_v151_regs_def.h:342
struct pwm_dma_en_data::@127 b
uint32_t pwm_dma_en
Definition hal_pwm_v151_regs_def.h:344
uint32_t reserved1_31
Definition hal_pwm_v151_regs_def.h:347
This union represents the bit fields in the pwm_duty_high register. Read the register into the d32 me...
Definition hal_pwm_v151_regs_def.h:208
uint32_t pwm_duty_h_j
Definition hal_pwm_v151_regs_def.h:211
struct pwm_duty_h_data::@114 b
uint32_t d32
Definition hal_pwm_v151_regs_def.h:209
uint32_t reserved1_31
Definition hal_pwm_v151_regs_def.h:215
This union represents the bit fields in the pwm_duty_low register. Read the register into the d32 mem...
Definition hal_pwm_v151_regs_def.h:192
uint32_t pwm_duty_l_j
Definition hal_pwm_v151_regs_def.h:195
uint32_t d32
Definition hal_pwm_v151_regs_def.h:193
struct pwm_duty_l_data::@113 b
uint32_t reserved1_31
Definition hal_pwm_v151_regs_def.h:199
This union represents the bit fields in the pwm_en register. Read the register into the d32 member th...
Definition hal_pwm_v151_regs_def.h:80
uint32_t reserved1_31
Definition hal_pwm_v151_regs_def.h:87
uint32_t d32
Definition hal_pwm_v151_regs_def.h:81
uint32_t pwm_en_j
Definition hal_pwm_v151_regs_def.h:83
struct pwm_en_data::@105 b
This union represents the bit fields in the pwm_freq_high register. Read the register into the d32 me...
Definition hal_pwm_v151_regs_def.h:175
uint32_t reserved1_31
Definition hal_pwm_v151_regs_def.h:183
uint32_t d32
Definition hal_pwm_v151_regs_def.h:176
uint32_t pwm_freq_h_j
Definition hal_pwm_v151_regs_def.h:178
struct pwm_freq_h_data::@112 b
This union represents the bit fields in the pwm_freq_low register. Read the register into the d32 mem...
Definition hal_pwm_v151_regs_def.h:159
uint32_t reserved1_31
Definition hal_pwm_v151_regs_def.h:166
uint32_t d32
Definition hal_pwm_v151_regs_def.h:160
struct pwm_freq_l_data::@111 b
uint32_t pwm_freq_l_j
Definition hal_pwm_v151_regs_def.h:162
This union represents the bit fields in the pwm_int_mask register. Read the register into the d32 mem...
Definition hal_pwm_v151_regs_def.h:324
struct pwm_int_mask_data::@125 b
uint32_t reserved2_31
Definition hal_pwm_v151_regs_def.h:332
uint32_t pwm_int_mask
Definition hal_pwm_v151_regs_def.h:327
uint32_t d32
Definition hal_pwm_v151_regs_def.h:325
This union represents the bit fields in the pwm_oen_cfg register. Read the register into the d32 memb...
Definition hal_pwm_v151_regs_def.h:111
uint32_t pwm_oen_cfg_j
Definition hal_pwm_v151_regs_def.h:114
struct pwm_oen_cfg_data::@107 b
uint32_t reserved1_31
Definition hal_pwm_v151_regs_def.h:117
uint32_t d32
Definition hal_pwm_v151_regs_def.h:112
This union represents the bit fields in the pwm_offset_high register. Read the register into the d32 ...
Definition hal_pwm_v151_regs_def.h:142
uint32_t reserved1_31
Definition hal_pwm_v151_regs_def.h:150
uint32_t pwm_offset_h_j
Definition hal_pwm_v151_regs_def.h:145
struct pwm_offset_h_data::@110 b
uint32_t d32
Definition hal_pwm_v151_regs_def.h:143
This union represents the bit fields in the pwm_offset_low register. Read the register into the d32 m...
Definition hal_pwm_v151_regs_def.h:126
uint32_t pwm_offset_l_j
Definition hal_pwm_v151_regs_def.h:129
uint32_t d32
Definition hal_pwm_v151_regs_def.h:127
uint32_t reserved1_31
Definition hal_pwm_v151_regs_def.h:133
struct pwm_offset_l_data::@109 b
This union represents the bit fields in the pwm_period_value register. Read the register into the d32...
Definition hal_pwm_v151_regs_def.h:240
struct pwm_period_val_data::@118 b
uint32_t reserved1_31
Definition hal_pwm_v151_regs_def.h:246
uint32_t d32
Definition hal_pwm_v151_regs_def.h:241
uint32_t pwm_period_val_j
Definition hal_pwm_v151_regs_def.h:243
This union represents the bit fields in the pwm_periodcnt register. Read the register into the d32 me...
Definition hal_pwm_v151_regs_def.h:255
uint32_t pwm_periodcnt_j
Definition hal_pwm_v151_regs_def.h:258
struct pwm_periodcnt_data::@119 b
uint32_t d32
Definition hal_pwm_v151_regs_def.h:256
uint32_t reserved16_31
Definition hal_pwm_v151_regs_def.h:259
This union represents the bit fields in the pwm_periodload_flag register. Read the register into the ...
Definition hal_pwm_v151_regs_def.h:224
uint32_t reserved1_31
Definition hal_pwm_v151_regs_def.h:231
uint32_t d32
Definition hal_pwm_v151_regs_def.h:225
uint32_t pwm_periodload_flag_j
Definition hal_pwm_v151_regs_def.h:227
struct pwm_periodload_flag_data::@116 b
This union represents the bit fields in the pwm_portity register. Read the register into the d32 memb...
Definition hal_pwm_v151_regs_def.h:96
struct pwm_portity_data::@106 b
uint32_t pwm_portity_j
Definition hal_pwm_v151_regs_def.h:99
uint32_t d32
Definition hal_pwm_v151_regs_def.h:97
uint32_t reserved1_31
Definition hal_pwm_v151_regs_def.h:102
This union represents the bit fields in the pwm_sel register. Read the register into the d32 member t...
Definition hal_pwm_v151_regs_def.h:35
struct pwm_sel_data::@102 b
uint32_t pwm_sel_i
Definition hal_pwm_v151_regs_def.h:38
uint32_t d32
Definition hal_pwm_v151_regs_def.h:36
uint32_t reserved16_31
Definition hal_pwm_v151_regs_def.h:41
This union represents the bit fields in the pwm_start register. Read the register into the d32 member...
Definition hal_pwm_v151_regs_def.h:65
uint32_t reserved1_31
Definition hal_pwm_v151_regs_def.h:71
uint32_t pwm_start_i
Definition hal_pwm_v151_regs_def.h:68
uint32_t d32
Definition hal_pwm_v151_regs_def.h:66
struct pwm_start_data::@104 b
This union represents the bit fields in the pwm_startclrcnt_en register. Read the register into the d...
Definition hal_pwm_v151_regs_def.h:51
uint32_t pwm_startclrcnt_en_i
Definition hal_pwm_v151_regs_def.h:54
uint32_t reserved1_31
Definition hal_pwm_v151_regs_def.h:56
struct pwm_startclrcnt_en_data::@103 b
uint32_t d32
Definition hal_pwm_v151_regs_def.h:52