WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
hal_spi_v151_regs_def.h
浏览该文件的文档.
1
9#ifndef HAL_SPI_V151_REGS_DEF_H
10#define HAL_SPI_V151_REGS_DEF_H
11
12#include <stdint.h>
13
14#ifdef __cplusplus
15#if __cplusplus
16extern "C" {
17#endif /* __cplusplus */
18#endif /* __cplusplus */
19
26#define HAL_SPI_DRNM_REG_SIZE 36
27
33typedef union spi_ctra_data {
34 uint32_t d32;
35 struct {
36 uint32_t soe : 1;
55 uint32_t srlt : 1;
67 uint32_t ssn_te : 1;
80 uint32_t scph : 1;
91 uint32_t scpol : 1;
99 uint32_t cfs16 : 4;
118 uint32_t dfs16 : 4;
150 uint32_t dfs32 : 5;
199 uint32_t trsm : 2;
234 uint32_t enhff : 2;
248 uint32_t prs : 2;
255 uint32_t reserved24_31 : 6;
256 } b;
258
264typedef union spi_ctrb_data {
265 uint32_t d32;
266 struct {
267 uint32_t nrdf : 16;
278 } b;
280
286typedef union spi_er_data {
287 uint32_t d32;
288 struct {
289 uint32_t start_en : 1;
301 } b;
303
309typedef union spi_mcr_data {
310 uint32_t d32;
311 struct {
312 uint32_t mh : 1;
324 uint32_t mss : 1;
333 uint32_t mtrc : 1;
343 } b;
345
351typedef union spi_slenr_data {
352 uint32_t d32;
353 struct {
354 uint32_t ssef : 16;
369 } b;
371
377typedef union spi_brs_data {
378 uint32_t d32;
379 struct {
380 uint32_t frdv : 16;
389 } b;
391
397typedef union spi_twlr_data {
398 uint32_t d32;
399 struct {
400 uint32_t twl;
414 } b;
416
422typedef union spi_rwlr_data {
423 uint32_t d32;
424 struct {
425 uint32_t rwl;
439 } b;
441
447typedef union spi_tlr_data {
448 uint32_t d32;
449 struct {
450 uint32_t tfl;
452 } b;
454
460typedef union spi_rlr_data {
461 uint32_t d32;
462 struct {
463 uint32_t rfl;
465 } b;
467
473typedef union spi_wsr_data {
474 uint32_t d32;
475 struct {
476 uint32_t dcfe_tfee : 1;
486 uint32_t reserved1_3 : 3;
487 uint32_t rfne : 1;
494 uint32_t rffe : 1;
501 uint32_t reserved6_10 : 5;
502 uint32_t tfnf : 1;
508 uint32_t tfe : 1;
515 uint32_t reserved13_14 : 2;
516 uint32_t sbf : 1;
523 } b;
525
532 uint32_t d32;
533 struct {
534 uint32_t rffis : 1;
538 uint32_t rfofis : 1;
542 uint32_t rfufis : 1;
546 uint32_t reserved3_6 : 4;
547 uint32_t tfeis : 1;
551 uint32_t tfofis : 1;
555 uint32_t reserved9_14 : 6;
556 uint32_t mmcris : 1;
562 } b;
563};
564
571
578
585
591typedef union spi_icr_data {
592 uint32_t d32;
593 struct {
594 uint32_t cis : 1;
599 uint32_t reserved1_31 : 31;
600 } b;
602
609
616
623
630
636typedef union spi_dcr_data {
637 uint32_t d32;
638 struct {
639 uint32_t tden : 1;
644 uint32_t rden : 1;
649 uint32_t reserved2_31 : 30;
650 } b;
652
659 uint32_t d32;
660 struct {
661 uint32_t dl;
664 } b;
665};
666
673
680
686typedef union spi_id_data {
687 uint32_t d32;
688 struct {
689 uint32_t id;
693 } b;
695
701typedef union spi_drnm_data {
702 uint32_t d32;
703 struct {
704 uint32_t datar;
710 } b;
712
718typedef union spi_rsdr_data {
719 uint32_t d32;
720 struct {
721 uint32_t rxdsd : 8;
724 uint32_t reserved8_31 : 24;
725 } b;
727
733typedef union spi_enhctl_data {
734 uint32_t d32;
735 struct {
736 uint32_t waitnum : 5;
742 uint32_t aaitf : 2;
752 uint32_t rdsen : 1;
755 uint32_t addrlen : 4;
778 uint32_t ilen : 2;
785 uint32_t iddren : 1;
787 uint32_t ddren : 1;
791 uint32_t reserved16_31 : 18;
792 } b;
794
800typedef union spi_tder_data {
801 uint32_t d32;
802 struct {
803 uint32_t txdde : 8;
805 uint32_t reserved8_31 : 24;
806 } b;
808
812typedef struct spi_v151_regs {
813 volatile uint32_t spi_er;
815 volatile uint32_t spi_ctra;
817 volatile uint32_t spi_ctrb;
819 volatile uint32_t spi_enhctl;
821 volatile uint32_t spi_mcr;
823 volatile uint32_t spi_brs;
826 volatile uint32_t spi_dcr;
828 volatile uint32_t spi_drdl;
830 volatile uint32_t spi_dtdl;
832 volatile uint32_t spi_rsdr;
834 volatile uint32_t spi_tder;
836 volatile uint32_t spi_drnm[HAL_SPI_DRNM_REG_SIZE];
839 volatile uint32_t spi_rainsr;
841 volatile uint32_t spi_insr;
843 volatile uint32_t spi_inmar;
845 volatile uint32_t spi_slenr;
848 volatile uint32_t spi_twlr;
850 volatile uint32_t spi_tlr;
852 volatile uint32_t spi_tfoficr;
854 volatile uint32_t spi_rwlr;
856 volatile uint32_t spi_rlr;
858 volatile uint32_t spi_rfficr;
860 volatile uint32_t spi_wsr;
862 volatile uint32_t spi_msticr;
864 volatile uint32_t spi_id;
866 volatile uint32_t spi_rsvd;
867 volatile uint32_t spi_rxoicr;
869 volatile uint32_t spi_icr;
871
876#ifdef __cplusplus
877#if __cplusplus
878}
879#endif /* __cplusplus */
880#endif /* __cplusplus */
881
882#endif
union spi_rwlr_data spi_rwlr_data_t
This union represents the bit fields in the Receive FIFO Threshold Level. Read the register into th...
union spi_mcr_data spi_mcr_data_t
This union represents the bit fields in the Microwire Control Register. Read the register into the ...
union spi_tlr_data spi_tlr_data_t
This union represents the bit fields in the Transmit FIFO Level Register. Read the register into th...
union spi_tder_data spi_tder_data_t
This union represents the bit fields in the Transmit Drive Edge Register. Read the register into th...
union spi_slenr_data spi_slenr_data_t
This union represents the bit fields in the Slave Enable Register. Read the register into the d32 m...
#define HAL_SPI_DRNM_REG_SIZE
Definition hal_spi_v151_regs_def.h:26
union spi_wsr_data spi_wsr_data_t
This union represents the bit fields in the Receive FIFO Level Register. Read the register into the...
union spi_ctrb_data spi_ctrb_data_t
This union represents the bit fields in the Control Register 1. Read the register into the d32 memb...
union spi_brs_data spi_brs_data_t
This union represents the bit fields in the Slave Enable Register. Read the register into the d32 m...
union spi_rlr_data spi_rlr_data_t
This union represents the bit fields in the Receive FIFO Level Register. Read the register into the...
union spi_twlr_data spi_twlr_data_t
This union represents the bit fields in the Transmit FIFO Threshold Level. Read the register into t...
struct spi_v151_regs spi_v151_regs_t
Registers associated with spi.
union spi_id_data spi_id_data_t
This union represents the bit fields in the coreKit version ID Register. Read the register into the...
union spi_icr_data spi_icr_data_t
This union represents the bit fields in the Interrupt Clear Register Register. Read the register in...
union spi_drnm_data spi_drnm_data_t
This union represents the bit fields in the Data Register. Read the register into the d32 member th...
union spi_er_data spi_er_data_t
This union represents the bit fields in the SPI Enable Register. Read the register into the d32 mem...
union spi_ctra_data spi_ctra_data_t
This union represents the bit fields in the Control Register 0. Read the register into the d32 memb...
union spi_rsdr_data spi_rsdr_data_t
This union represents the bit fields in the RX Sample Delay Register. Read the register into the d3...
union spi_enhctl_data spi_enhctl_data_t
This union represents the bit fields in the SPI Control 0 Register. Read the register into the d32 ...
union spi_dcr_data spi_dcr_data_t
This union represents the bit fields in the DMA Control Register. Read the register into the d32 me...
Registers associated with spi.
Definition hal_spi_v151_regs_def.h:812
volatile uint32_t spi_msticr
Definition hal_spi_v151_regs_def.h:862
volatile uint32_t spi_slenr
Definition hal_spi_v151_regs_def.h:845
volatile uint32_t spi_er
Definition hal_spi_v151_regs_def.h:813
volatile uint32_t spi_rxoicr
Definition hal_spi_v151_regs_def.h:867
volatile uint32_t spi_insr
Definition hal_spi_v151_regs_def.h:841
volatile uint32_t spi_dcr
Definition hal_spi_v151_regs_def.h:826
volatile uint32_t spi_rsvd
Definition hal_spi_v151_regs_def.h:866
volatile uint32_t spi_rlr
Definition hal_spi_v151_regs_def.h:856
volatile uint32_t spi_id
Definition hal_spi_v151_regs_def.h:864
volatile uint32_t spi_tfoficr
Definition hal_spi_v151_regs_def.h:852
volatile uint32_t spi_ctra
Definition hal_spi_v151_regs_def.h:815
volatile uint32_t spi_rsdr
Definition hal_spi_v151_regs_def.h:832
volatile uint32_t spi_twlr
Definition hal_spi_v151_regs_def.h:848
volatile uint32_t spi_icr
Definition hal_spi_v151_regs_def.h:869
volatile uint32_t spi_rfficr
Definition hal_spi_v151_regs_def.h:858
volatile uint32_t spi_wsr
Definition hal_spi_v151_regs_def.h:860
volatile uint32_t spi_inmar
Definition hal_spi_v151_regs_def.h:843
volatile uint32_t spi_tlr
Definition hal_spi_v151_regs_def.h:850
volatile uint32_t spi_brs
Definition hal_spi_v151_regs_def.h:823
volatile uint32_t spi_drnm[36]
Definition hal_spi_v151_regs_def.h:836
volatile uint32_t spi_ctrb
Definition hal_spi_v151_regs_def.h:817
volatile uint32_t spi_dtdl
Definition hal_spi_v151_regs_def.h:830
volatile uint32_t spi_drdl
Definition hal_spi_v151_regs_def.h:828
volatile uint32_t spi_enhctl
Definition hal_spi_v151_regs_def.h:819
volatile uint32_t spi_rwlr
Definition hal_spi_v151_regs_def.h:854
volatile uint32_t spi_rainsr
Definition hal_spi_v151_regs_def.h:839
volatile uint32_t spi_tder
Definition hal_spi_v151_regs_def.h:834
volatile uint32_t spi_mcr
Definition hal_spi_v151_regs_def.h:821
This union represents the bit fields in the Slave Enable Register. Read the register into the d32 m...
Definition hal_spi_v151_regs_def.h:377
struct spi_brs_data::@320 b
uint32_t d32
Definition hal_spi_v151_regs_def.h:378
uint32_t frdv
Definition hal_spi_v151_regs_def.h:380
This union represents the bit fields in the Control Register 0. Read the register into the d32 memb...
Definition hal_spi_v151_regs_def.h:33
uint32_t trsm
Definition hal_spi_v151_regs_def.h:199
uint32_t cfs16
Definition hal_spi_v151_regs_def.h:99
uint32_t ssn_te
Definition hal_spi_v151_regs_def.h:67
struct spi_ctra_data::@312 b
uint32_t reserved24_31
Definition hal_spi_v151_regs_def.h:255
uint32_t srlt
Definition hal_spi_v151_regs_def.h:55
uint32_t enhff
Definition hal_spi_v151_regs_def.h:234
uint32_t prs
Definition hal_spi_v151_regs_def.h:248
uint32_t scph
Definition hal_spi_v151_regs_def.h:80
uint32_t d32
Definition hal_spi_v151_regs_def.h:34
uint32_t dfs32
Definition hal_spi_v151_regs_def.h:150
uint32_t dfs16
Definition hal_spi_v151_regs_def.h:118
uint32_t soe
Definition hal_spi_v151_regs_def.h:36
uint32_t scpol
Definition hal_spi_v151_regs_def.h:91
This union represents the bit fields in the Control Register 1. Read the register into the d32 memb...
Definition hal_spi_v151_regs_def.h:264
struct spi_ctrb_data::@316 b
uint32_t nrdf
Definition hal_spi_v151_regs_def.h:267
uint32_t d32
Definition hal_spi_v151_regs_def.h:265
This union represents the bit fields in the DMA Control Register. Read the register into the d32 me...
Definition hal_spi_v151_regs_def.h:636
uint32_t rden
Definition hal_spi_v151_regs_def.h:644
uint32_t d32
Definition hal_spi_v151_regs_def.h:637
struct spi_dcr_data::@342 b
uint32_t reserved2_31
Definition hal_spi_v151_regs_def.h:649
uint32_t tden
Definition hal_spi_v151_regs_def.h:639
This union represents the bit fields in the Data Register. Read the register into the d32 member th...
Definition hal_spi_v151_regs_def.h:701
uint32_t d32
Definition hal_spi_v151_regs_def.h:702
struct spi_drnm_data::@345 b
uint32_t datar
Definition hal_spi_v151_regs_def.h:704
This union represents the bit fields in the SPI Control 0 Register. Read the register into the d32 ...
Definition hal_spi_v151_regs_def.h:733
uint32_t waitnum
Definition hal_spi_v151_regs_def.h:736
uint32_t ddren
Definition hal_spi_v151_regs_def.h:787
uint32_t d32
Definition hal_spi_v151_regs_def.h:734
struct spi_enhctl_data::@347 b
uint32_t iddren
Definition hal_spi_v151_regs_def.h:785
uint32_t rdsen
Definition hal_spi_v151_regs_def.h:752
uint32_t aaitf
Definition hal_spi_v151_regs_def.h:742
uint32_t ilen
Definition hal_spi_v151_regs_def.h:778
uint32_t addrlen
Definition hal_spi_v151_regs_def.h:755
uint32_t reserved16_31
Definition hal_spi_v151_regs_def.h:791
This union represents the bit fields in the SPI Enable Register. Read the register into the d32 mem...
Definition hal_spi_v151_regs_def.h:286
uint32_t start_en
Definition hal_spi_v151_regs_def.h:289
uint32_t d32
Definition hal_spi_v151_regs_def.h:287
struct spi_er_data::@317 b
This union represents the bit fields in the Interrupt Clear Register Register. Read the register in...
Definition hal_spi_v151_regs_def.h:591
struct spi_icr_data::@341 b
uint32_t reserved1_31
Definition hal_spi_v151_regs_def.h:599
uint32_t d32
Definition hal_spi_v151_regs_def.h:592
uint32_t cis
Definition hal_spi_v151_regs_def.h:594
This union represents the bit fields in the coreKit version ID Register. Read the register into the...
Definition hal_spi_v151_regs_def.h:686
struct spi_id_data::@344 b
uint32_t id
Definition hal_spi_v151_regs_def.h:689
uint32_t d32
Definition hal_spi_v151_regs_def.h:687
This union represents the bit fields in the Microwire Control Register. Read the register into the ...
Definition hal_spi_v151_regs_def.h:309
uint32_t mss
Definition hal_spi_v151_regs_def.h:324
uint32_t d32
Definition hal_spi_v151_regs_def.h:310
uint32_t mh
Definition hal_spi_v151_regs_def.h:312
struct spi_mcr_data::@318 b
uint32_t mtrc
Definition hal_spi_v151_regs_def.h:333
This union represents the bit fields in the Receive FIFO Level Register. Read the register into the...
Definition hal_spi_v151_regs_def.h:460
struct spi_rlr_data::@329 b
uint32_t rfl
Definition hal_spi_v151_regs_def.h:463
uint32_t d32
Definition hal_spi_v151_regs_def.h:461
This union represents the bit fields in the RX Sample Delay Register. Read the register into the d3...
Definition hal_spi_v151_regs_def.h:718
uint32_t rxdsd
Definition hal_spi_v151_regs_def.h:721
uint32_t d32
Definition hal_spi_v151_regs_def.h:719
struct spi_rsdr_data::@346 b
uint32_t reserved8_31
Definition hal_spi_v151_regs_def.h:724
This union represents the bit fields in the Receive FIFO Threshold Level. Read the register into th...
Definition hal_spi_v151_regs_def.h:422
uint32_t rwl
Definition hal_spi_v151_regs_def.h:425
uint32_t d32
Definition hal_spi_v151_regs_def.h:423
struct spi_rwlr_data::@324 b
This union represents the bit fields in the Slave Enable Register. Read the register into the d32 m...
Definition hal_spi_v151_regs_def.h:351
struct spi_slenr_data::@319 b
uint32_t d32
Definition hal_spi_v151_regs_def.h:352
uint32_t ssef
Definition hal_spi_v151_regs_def.h:354
This union represents the bit fields in the Transmit Drive Edge Register. Read the register into th...
Definition hal_spi_v151_regs_def.h:800
uint32_t txdde
Definition hal_spi_v151_regs_def.h:803
struct spi_tder_data::@348 b
uint32_t d32
Definition hal_spi_v151_regs_def.h:801
uint32_t reserved8_31
Definition hal_spi_v151_regs_def.h:805
This union represents the bit fields in the Transmit FIFO Level Register. Read the register into th...
Definition hal_spi_v151_regs_def.h:447
struct spi_tlr_data::@327 b
uint32_t tfl
Definition hal_spi_v151_regs_def.h:450
uint32_t d32
Definition hal_spi_v151_regs_def.h:448
This union represents the bit fields in the Transmit FIFO Threshold Level. Read the register into t...
Definition hal_spi_v151_regs_def.h:397
uint32_t d32
Definition hal_spi_v151_regs_def.h:398
struct spi_twlr_data::@321 b
uint32_t twl
Definition hal_spi_v151_regs_def.h:400
This union represents the bit fields in the DMA Data Level Register. Read the register into the d32...
Definition hal_spi_v151_regs_def.h:658
struct spi_v151_dmadlr_data::@343 b
uint32_t d32
Definition hal_spi_v151_regs_def.h:659
uint32_t dl
Definition hal_spi_v151_regs_def.h:661
This union represents the bit fields in the Interrupt Registers. Read the register into the d32 mem...
Definition hal_spi_v151_regs_def.h:531
struct spi_v151_interrupt_data::@336 b
uint32_t tfofis
Definition hal_spi_v151_regs_def.h:551
uint32_t rfufis
Definition hal_spi_v151_regs_def.h:542
uint32_t tfeis
Definition hal_spi_v151_regs_def.h:547
uint32_t d32
Definition hal_spi_v151_regs_def.h:532
uint32_t rffis
Definition hal_spi_v151_regs_def.h:534
uint32_t reserved3_6
Definition hal_spi_v151_regs_def.h:546
uint32_t rfofis
Definition hal_spi_v151_regs_def.h:538
uint32_t reserved9_14
Definition hal_spi_v151_regs_def.h:555
uint32_t mmcris
Definition hal_spi_v151_regs_def.h:556
This union represents the bit fields in the Receive FIFO Level Register. Read the register into the...
Definition hal_spi_v151_regs_def.h:473
uint32_t reserved1_3
Definition hal_spi_v151_regs_def.h:486
uint32_t reserved16_31
Definition hal_spi_v151_regs_def.h:522
struct spi_wsr_data::@330 b
uint32_t reserved13_14
Definition hal_spi_v151_regs_def.h:515
uint32_t rfne
Definition hal_spi_v151_regs_def.h:487
uint32_t reserved6_10
Definition hal_spi_v151_regs_def.h:501
uint32_t tfe
Definition hal_spi_v151_regs_def.h:508
uint32_t rffe
Definition hal_spi_v151_regs_def.h:494
uint32_t dcfe_tfee
Definition hal_spi_v151_regs_def.h:476
uint32_t d32
Definition hal_spi_v151_regs_def.h:474
uint32_t sbf
Definition hal_spi_v151_regs_def.h:516
uint32_t tfnf
Definition hal_spi_v151_regs_def.h:502