-
Notifications
You must be signed in to change notification settings - Fork 7.1k
/
spi_reg.h
1435 lines (1391 loc) · 66.7 KB
/
spi_reg.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
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
* SPDX-FileCopyrightText: 2020-2023 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef _SOC_SPI_REG_H_
#define _SOC_SPI_REG_H_
#include "soc.h"
#ifdef __cplusplus
extern "C" {
#endif
#define SPI_CMD_REG(i) (REG_SPI_BASE(i) + 0x0)
/* SPI_USR : R/W/SC ;bitpos:[24] ;default: 1'b0 ; */
/*description: User define command enable. An operation will be triggered when the bit is set.
The bit will be cleared once the operation done.1: enable 0: disable. Can not b
e changed by CONF_buf..*/
#define SPI_USR (BIT(24))
#define SPI_USR_M (BIT(24))
#define SPI_USR_V 0x1
#define SPI_USR_S 24
/* SPI_UPDATE : WT ;bitpos:[23] ;default: 1'b0 ; */
/*description: Set this bit to synchronize SPI registers from APB clock domain into SPI module
clock domain, which is only used in SPI master mode..*/
#define SPI_UPDATE (BIT(23))
#define SPI_UPDATE_M (BIT(23))
#define SPI_UPDATE_V 0x1
#define SPI_UPDATE_S 23
/* SPI_CONF_BITLEN : R/W ;bitpos:[17:0] ;default: 18'd0 ; */
/*description: Define the APB cycles of SPI_CONF state. Can be configured in CONF state..*/
#define SPI_CONF_BITLEN 0x0003FFFF
#define SPI_CONF_BITLEN_M ((SPI_CONF_BITLEN_V)<<(SPI_CONF_BITLEN_S))
#define SPI_CONF_BITLEN_V 0x3FFFF
#define SPI_CONF_BITLEN_S 0
#define SPI_ADDR_REG(i) (REG_SPI_BASE(i) + 0x4)
/* SPI_USR_ADDR_VALUE : R/W ;bitpos:[31:0] ;default: 32'b0 ; */
/*description: Address to slave. Can be configured in CONF state..*/
#define SPI_USR_ADDR_VALUE 0xFFFFFFFF
#define SPI_USR_ADDR_VALUE_M ((SPI_USR_ADDR_VALUE_V)<<(SPI_USR_ADDR_VALUE_S))
#define SPI_USR_ADDR_VALUE_V 0xFFFFFFFF
#define SPI_USR_ADDR_VALUE_S 0
#define SPI_CTRL_REG(i) (REG_SPI_BASE(i) + 0x8)
/* SPI_WR_BIT_ORDER : R/W ;bitpos:[26] ;default: 1'b0 ; */
/*description: In command address write-data (MOSI) phases 1: LSB firs 0: MSB first. Can be con
figured in CONF state..*/
#define SPI_WR_BIT_ORDER (BIT(26))
#define SPI_WR_BIT_ORDER_M (BIT(26))
#define SPI_WR_BIT_ORDER_V 0x1
#define SPI_WR_BIT_ORDER_S 26
/* SPI_RD_BIT_ORDER : R/W ;bitpos:[25] ;default: 1'b0 ; */
/*description: In read-data (MISO) phase 1: LSB first 0: MSB first. Can be configured in CONF s
tate..*/
#define SPI_RD_BIT_ORDER (BIT(25))
#define SPI_RD_BIT_ORDER_M (BIT(25))
#define SPI_RD_BIT_ORDER_V 0x1
#define SPI_RD_BIT_ORDER_S 25
/* SPI_WP_POL : R/W ;bitpos:[21] ;default: 1'b1 ; */
/*description: Write protect signal output when SPI is idle. 1: output high, 0: output low. C
an be configured in CONF state..*/
#define SPI_WP_POL (BIT(21))
#define SPI_WP_POL_M (BIT(21))
#define SPI_WP_POL_V 0x1
#define SPI_WP_POL_S 21
/* SPI_HOLD_POL : R/W ;bitpos:[20] ;default: 1'b1 ; */
/*description: SPI_HOLD output value when SPI is idle. 1: output high, 0: output low. Can be co
nfigured in CONF state..*/
#define SPI_HOLD_POL (BIT(20))
#define SPI_HOLD_POL_M (BIT(20))
#define SPI_HOLD_POL_V 0x1
#define SPI_HOLD_POL_S 20
/* SPI_D_POL : R/W ;bitpos:[19] ;default: 1'b1 ; */
/*description: The bit is used to set MOSI line polarity, 1: high 0, low. Can be configured in
CONF state..*/
#define SPI_D_POL (BIT(19))
#define SPI_D_POL_M (BIT(19))
#define SPI_D_POL_V 0x1
#define SPI_D_POL_S 19
/* SPI_Q_POL : R/W ;bitpos:[18] ;default: 1'b1 ; */
/*description: The bit is used to set MISO line polarity, 1: high 0, low. Can be configured in
CONF state..*/
#define SPI_Q_POL (BIT(18))
#define SPI_Q_POL_M (BIT(18))
#define SPI_Q_POL_V 0x1
#define SPI_Q_POL_S 18
/* SPI_FREAD_QUAD : R/W ;bitpos:[15] ;default: 1'b0 ; */
/*description: In the read operations read-data phase apply 4 signals. 1: enable 0: disable. C
an be configured in CONF state..*/
#define SPI_FREAD_QUAD (BIT(15))
#define SPI_FREAD_QUAD_M (BIT(15))
#define SPI_FREAD_QUAD_V 0x1
#define SPI_FREAD_QUAD_S 15
/* SPI_FREAD_DUAL : R/W ;bitpos:[14] ;default: 1'b0 ; */
/*description: In the read operations, read-data phase apply 2 signals. 1: enable 0: disable. C
an be configured in CONF state..*/
#define SPI_FREAD_DUAL (BIT(14))
#define SPI_FREAD_DUAL_M (BIT(14))
#define SPI_FREAD_DUAL_V 0x1
#define SPI_FREAD_DUAL_S 14
/* SPI_FCMD_QUAD : R/W ;bitpos:[9] ;default: 1'b0 ; */
/*description: Apply 4 signals during command phase 1:enable 0: disable. Can be configured in C
ONF state..*/
#define SPI_FCMD_QUAD (BIT(9))
#define SPI_FCMD_QUAD_M (BIT(9))
#define SPI_FCMD_QUAD_V 0x1
#define SPI_FCMD_QUAD_S 9
/* SPI_FCMD_DUAL : R/W ;bitpos:[8] ;default: 1'b0 ; */
/*description: Apply 2 signals during command phase 1:enable 0: disable. Can be configured in C
ONF state..*/
#define SPI_FCMD_DUAL (BIT(8))
#define SPI_FCMD_DUAL_M (BIT(8))
#define SPI_FCMD_DUAL_V 0x1
#define SPI_FCMD_DUAL_S 8
/* SPI_FADDR_QUAD : R/W ;bitpos:[6] ;default: 1'b0 ; */
/*description: Apply 4 signals during addr phase 1:enable 0: disable. Can be configured in CONF
state..*/
#define SPI_FADDR_QUAD (BIT(6))
#define SPI_FADDR_QUAD_M (BIT(6))
#define SPI_FADDR_QUAD_V 0x1
#define SPI_FADDR_QUAD_S 6
/* SPI_FADDR_DUAL : R/W ;bitpos:[5] ;default: 1'b0 ; */
/*description: Apply 2 signals during addr phase 1:enable 0: disable. Can be configured in CONF
state..*/
#define SPI_FADDR_DUAL (BIT(5))
#define SPI_FADDR_DUAL_M (BIT(5))
#define SPI_FADDR_DUAL_V 0x1
#define SPI_FADDR_DUAL_S 5
/* SPI_DUMMY_OUT : R/W ;bitpos:[3] ;default: 1'b0 ; */
/*description: In the dummy phase the signal level of spi is output by the spi controller. Can
be configured in CONF state..*/
#define SPI_DUMMY_OUT (BIT(3))
#define SPI_DUMMY_OUT_M (BIT(3))
#define SPI_DUMMY_OUT_V 0x1
#define SPI_DUMMY_OUT_S 3
#define SPI_CLOCK_REG(i) (REG_SPI_BASE(i) + 0xC)
/* SPI_CLK_EQU_SYSCLK : R/W ;bitpos:[31] ;default: 1'b1 ; */
/*description: In the master mode 1: spi_clk is eqaul to system 0: spi_clk is divided from syst
em clock. Can be configured in CONF state..*/
#define SPI_CLK_EQU_SYSCLK (BIT(31))
#define SPI_CLK_EQU_SYSCLK_M (BIT(31))
#define SPI_CLK_EQU_SYSCLK_V 0x1
#define SPI_CLK_EQU_SYSCLK_S 31
/* SPI_CLKDIV_PRE : R/W ;bitpos:[21:18] ;default: 4'b0 ; */
/*description: In the master mode it is pre-divider of spi_clk. Can be configured in CONF stat
e..*/
#define SPI_CLKDIV_PRE 0x0000000F
#define SPI_CLKDIV_PRE_M ((SPI_CLKDIV_PRE_V)<<(SPI_CLKDIV_PRE_S))
#define SPI_CLKDIV_PRE_V 0xF
#define SPI_CLKDIV_PRE_S 18
/* SPI_CLKCNT_N : R/W ;bitpos:[17:12] ;default: 6'h3 ; */
/*description: In the master mode it is the divider of spi_clk. So spi_clk frequency is system/
(spi_clkdiv_pre+1)/(spi_clkcnt_N+1). Can be configured in CONF state..*/
#define SPI_CLKCNT_N 0x0000003F
#define SPI_CLKCNT_N_M ((SPI_CLKCNT_N_V)<<(SPI_CLKCNT_N_S))
#define SPI_CLKCNT_N_V 0x3F
#define SPI_CLKCNT_N_S 12
/* SPI_CLKCNT_H : R/W ;bitpos:[11:6] ;default: 6'h1 ; */
/*description: In the master mode it must be floor((spi_clkcnt_N+1)/2-1). In the slave mode it
must be 0. Can be configured in CONF state..*/
#define SPI_CLKCNT_H 0x0000003F
#define SPI_CLKCNT_H_M ((SPI_CLKCNT_H_V)<<(SPI_CLKCNT_H_S))
#define SPI_CLKCNT_H_V 0x3F
#define SPI_CLKCNT_H_S 6
/* SPI_CLKCNT_L : R/W ;bitpos:[5:0] ;default: 6'h3 ; */
/*description: In the master mode it must be equal to spi_clkcnt_N. In the slave mode it must b
e 0. Can be configured in CONF state..*/
#define SPI_CLKCNT_L 0x0000003F
#define SPI_CLKCNT_L_M ((SPI_CLKCNT_L_V)<<(SPI_CLKCNT_L_S))
#define SPI_CLKCNT_L_V 0x3F
#define SPI_CLKCNT_L_S 0
#define SPI_USER_REG(i) (REG_SPI_BASE(i) + 0x10)
/* SPI_USR_COMMAND : R/W ;bitpos:[31] ;default: 1'b1 ; */
/*description: This bit enable the command phase of an operation. Can be configured in CONF sta
te..*/
#define SPI_USR_COMMAND (BIT(31))
#define SPI_USR_COMMAND_M (BIT(31))
#define SPI_USR_COMMAND_V 0x1
#define SPI_USR_COMMAND_S 31
/* SPI_USR_ADDR : R/W ;bitpos:[30] ;default: 1'b0 ; */
/*description: This bit enable the address phase of an operation. Can be configured in CONF sta
te..*/
#define SPI_USR_ADDR (BIT(30))
#define SPI_USR_ADDR_M (BIT(30))
#define SPI_USR_ADDR_V 0x1
#define SPI_USR_ADDR_S 30
/* SPI_USR_DUMMY : R/W ;bitpos:[29] ;default: 1'b0 ; */
/*description: This bit enable the dummy phase of an operation. Can be configured in CONF state
..*/
#define SPI_USR_DUMMY (BIT(29))
#define SPI_USR_DUMMY_M (BIT(29))
#define SPI_USR_DUMMY_V 0x1
#define SPI_USR_DUMMY_S 29
/* SPI_USR_MISO : R/W ;bitpos:[28] ;default: 1'b0 ; */
/*description: This bit enable the read-data phase of an operation. Can be configured in CONF s
tate..*/
#define SPI_USR_MISO (BIT(28))
#define SPI_USR_MISO_M (BIT(28))
#define SPI_USR_MISO_V 0x1
#define SPI_USR_MISO_S 28
/* SPI_USR_MOSI : R/W ;bitpos:[27] ;default: 1'b0 ; */
/*description: This bit enable the write-data phase of an operation. Can be configured in CONF
state..*/
#define SPI_USR_MOSI (BIT(27))
#define SPI_USR_MOSI_M (BIT(27))
#define SPI_USR_MOSI_V 0x1
#define SPI_USR_MOSI_S 27
/* SPI_USR_DUMMY_IDLE : R/W ;bitpos:[26] ;default: 1'b0 ; */
/*description: spi clock is disable in dummy phase when the bit is enable. Can be configured in
CONF state..*/
#define SPI_USR_DUMMY_IDLE (BIT(26))
#define SPI_USR_DUMMY_IDLE_M (BIT(26))
#define SPI_USR_DUMMY_IDLE_V 0x1
#define SPI_USR_DUMMY_IDLE_S 26
/* SPI_USR_MOSI_HIGHPART : R/W ;bitpos:[25] ;default: 1'b0 ; */
/*description: write-data phase only access to high-part of the buffer spi_w8~spi_w15. 1: enabl
e 0: disable. Can be configured in CONF state..*/
#define SPI_USR_MOSI_HIGHPART (BIT(25))
#define SPI_USR_MOSI_HIGHPART_M (BIT(25))
#define SPI_USR_MOSI_HIGHPART_V 0x1
#define SPI_USR_MOSI_HIGHPART_S 25
/* SPI_USR_MISO_HIGHPART : R/W ;bitpos:[24] ;default: 1'b0 ; */
/*description: read-data phase only access to high-part of the buffer spi_w8~spi_w15. 1: enable
0: disable. Can be configured in CONF state..*/
#define SPI_USR_MISO_HIGHPART (BIT(24))
#define SPI_USR_MISO_HIGHPART_M (BIT(24))
#define SPI_USR_MISO_HIGHPART_V 0x1
#define SPI_USR_MISO_HIGHPART_S 24
/* SPI_SIO : R/W ;bitpos:[17] ;default: 1'b0 ; */
/*description: Set the bit to enable 3-line half duplex communication mosi and miso signals sha
re the same pin. 1: enable 0: disable. Can be configured in CONF state..*/
#define SPI_SIO (BIT(17))
#define SPI_SIO_M (BIT(17))
#define SPI_SIO_V 0x1
#define SPI_SIO_S 17
/* SPI_USR_CONF_NXT : R/W ;bitpos:[15] ;default: 1'b0 ; */
/*description: 1: Enable the DMA CONF phase of next seg-trans operation, which means seg-trans
will continue. 0: The seg-trans will end after the current SPI seg-trans or this
is not seg-trans mode. Can be configured in CONF state..*/
#define SPI_USR_CONF_NXT (BIT(15))
#define SPI_USR_CONF_NXT_M (BIT(15))
#define SPI_USR_CONF_NXT_V 0x1
#define SPI_USR_CONF_NXT_S 15
/* SPI_FWRITE_QUAD : R/W ;bitpos:[13] ;default: 1'b0 ; */
/*description: In the write operations read-data phase apply 4 signals. Can be configured in CO
NF state..*/
#define SPI_FWRITE_QUAD (BIT(13))
#define SPI_FWRITE_QUAD_M (BIT(13))
#define SPI_FWRITE_QUAD_V 0x1
#define SPI_FWRITE_QUAD_S 13
/* SPI_FWRITE_DUAL : R/W ;bitpos:[12] ;default: 1'b0 ; */
/*description: In the write operations read-data phase apply 2 signals. Can be configured in CO
NF state..*/
#define SPI_FWRITE_DUAL (BIT(12))
#define SPI_FWRITE_DUAL_M (BIT(12))
#define SPI_FWRITE_DUAL_V 0x1
#define SPI_FWRITE_DUAL_S 12
/* SPI_CK_OUT_EDGE : R/W ;bitpos:[9] ;default: 1'b0 ; */
/*description: the bit combined with spi_mosi_delay_mode bits to set mosi signal delay mode. Ca
n be configured in CONF state..*/
#define SPI_CK_OUT_EDGE (BIT(9))
#define SPI_CK_OUT_EDGE_M (BIT(9))
#define SPI_CK_OUT_EDGE_V 0x1
#define SPI_CK_OUT_EDGE_S 9
/* SPI_RSCK_I_EDGE : R/W ;bitpos:[8] ;default: 1'b0 ; */
/*description: In the slave mode, this bit can be used to change the polarity of rsck. 0: rsck
= !spi_ck_i. 1:rsck = spi_ck_i..*/
#define SPI_RSCK_I_EDGE (BIT(8))
#define SPI_RSCK_I_EDGE_M (BIT(8))
#define SPI_RSCK_I_EDGE_V 0x1
#define SPI_RSCK_I_EDGE_S 8
/* SPI_CS_SETUP : R/W ;bitpos:[7] ;default: 1'b1 ; */
/*description: spi cs is enable when spi is in prepare phase. 1: enable 0: disable. Can be co
nfigured in CONF state..*/
#define SPI_CS_SETUP (BIT(7))
#define SPI_CS_SETUP_M (BIT(7))
#define SPI_CS_SETUP_V 0x1
#define SPI_CS_SETUP_S 7
/* SPI_CS_HOLD : R/W ;bitpos:[6] ;default: 1'b1 ; */
/*description: spi cs keep low when spi is in done phase. 1: enable 0: disable. Can be config
ured in CONF state..*/
#define SPI_CS_HOLD (BIT(6))
#define SPI_CS_HOLD_M (BIT(6))
#define SPI_CS_HOLD_V 0x1
#define SPI_CS_HOLD_S 6
/* SPI_TSCK_I_EDGE : R/W ;bitpos:[5] ;default: 1'b0 ; */
/*description: In the slave mode, this bit can be used to change the polarity of tsck. 0: tsck
= spi_ck_i. 1:tsck = !spi_ck_i..*/
#define SPI_TSCK_I_EDGE (BIT(5))
#define SPI_TSCK_I_EDGE_M (BIT(5))
#define SPI_TSCK_I_EDGE_V 0x1
#define SPI_TSCK_I_EDGE_S 5
/* SPI_QPI_MODE : R/W/SS/SC ;bitpos:[3] ;default: 1'b0 ; */
/*description: Both for master mode and slave mode. 1: spi controller is in QPI mode. 0: others
. Can be configured in CONF state..*/
#define SPI_QPI_MODE (BIT(3))
#define SPI_QPI_MODE_M (BIT(3))
#define SPI_QPI_MODE_V 0x1
#define SPI_QPI_MODE_S 3
/* SPI_DOUTDIN : R/W ;bitpos:[0] ;default: 1'b0 ; */
/*description: Set the bit to enable full duplex communication. 1: enable 0: disable. Can be co
nfigured in CONF state..*/
#define SPI_DOUTDIN (BIT(0))
#define SPI_DOUTDIN_M (BIT(0))
#define SPI_DOUTDIN_V 0x1
#define SPI_DOUTDIN_S 0
#define SPI_USER1_REG(i) (REG_SPI_BASE(i) + 0x14)
/* SPI_USR_ADDR_BITLEN : R/W ;bitpos:[31:27] ;default: 5'd23 ; */
/*description: The length in bits of address phase. The register value shall be (bit_num-1). Ca
n be configured in CONF state..*/
#define SPI_USR_ADDR_BITLEN 0x0000001F
#define SPI_USR_ADDR_BITLEN_M ((SPI_USR_ADDR_BITLEN_V)<<(SPI_USR_ADDR_BITLEN_S))
#define SPI_USR_ADDR_BITLEN_V 0x1F
#define SPI_USR_ADDR_BITLEN_S 27
/* SPI_CS_HOLD_TIME : R/W ;bitpos:[26:22] ;default: 5'h1 ; */
/*description: delay cycles of cs pin by spi clock this bits are combined with spi_cs_hold bit.
Can be configured in CONF state..*/
#define SPI_CS_HOLD_TIME 0x0000001F
#define SPI_CS_HOLD_TIME_M ((SPI_CS_HOLD_TIME_V)<<(SPI_CS_HOLD_TIME_S))
#define SPI_CS_HOLD_TIME_V 0x1F
#define SPI_CS_HOLD_TIME_S 22
/* SPI_CS_SETUP_TIME : R/W ;bitpos:[21:17] ;default: 5'b0 ; */
/*description: (cycles+1) of prepare phase by spi clock this bits are combined with spi_cs_setu
p bit. Can be configured in CONF state..*/
#define SPI_CS_SETUP_TIME 0x0000001F
#define SPI_CS_SETUP_TIME_M ((SPI_CS_SETUP_TIME_V)<<(SPI_CS_SETUP_TIME_S))
#define SPI_CS_SETUP_TIME_V 0x1F
#define SPI_CS_SETUP_TIME_S 17
/* SPI_MST_WFULL_ERR_END_EN : R/W ;bitpos:[16] ;default: 1'b1 ; */
/*description: 1: SPI transfer is ended when SPI RX AFIFO wfull error is valid in GP-SPI master
FD/HD-mode. 0: SPI transfer is not ended when SPI RX AFIFO wfull error is valid
in GP-SPI master FD/HD-mode..*/
#define SPI_MST_WFULL_ERR_END_EN (BIT(16))
#define SPI_MST_WFULL_ERR_END_EN_M (BIT(16))
#define SPI_MST_WFULL_ERR_END_EN_V 0x1
#define SPI_MST_WFULL_ERR_END_EN_S 16
/* SPI_USR_DUMMY_CYCLELEN : R/W ;bitpos:[7:0] ;default: 8'd7 ; */
/*description: The length in spi_clk cycles of dummy phase. The register value shall be (cycle_
num-1). Can be configured in CONF state..*/
#define SPI_USR_DUMMY_CYCLELEN 0x000000FF
#define SPI_USR_DUMMY_CYCLELEN_M ((SPI_USR_DUMMY_CYCLELEN_V)<<(SPI_USR_DUMMY_CYCLELEN_S))
#define SPI_USR_DUMMY_CYCLELEN_V 0xFF
#define SPI_USR_DUMMY_CYCLELEN_S 0
#define SPI_USER2_REG(i) (REG_SPI_BASE(i) + 0x18)
/* SPI_USR_COMMAND_BITLEN : R/W ;bitpos:[31:28] ;default: 4'd7 ; */
/*description: The length in bits of command phase. The register value shall be (bit_num-1). Ca
n be configured in CONF state..*/
#define SPI_USR_COMMAND_BITLEN 0x0000000F
#define SPI_USR_COMMAND_BITLEN_M ((SPI_USR_COMMAND_BITLEN_V)<<(SPI_USR_COMMAND_BITLEN_S))
#define SPI_USR_COMMAND_BITLEN_V 0xF
#define SPI_USR_COMMAND_BITLEN_S 28
/* SPI_MST_REMPTY_ERR_END_EN : R/W ;bitpos:[27] ;default: 1'b1 ; */
/*description: 1: SPI transfer is ended when SPI TX AFIFO read empty error is valid in GP-SPI m
aster FD/HD-mode. 0: SPI transfer is not ended when SPI TX AFIFO read empty erro
r is valid in GP-SPI master FD/HD-mode..*/
#define SPI_MST_REMPTY_ERR_END_EN (BIT(27))
#define SPI_MST_REMPTY_ERR_END_EN_M (BIT(27))
#define SPI_MST_REMPTY_ERR_END_EN_V 0x1
#define SPI_MST_REMPTY_ERR_END_EN_S 27
/* SPI_USR_COMMAND_VALUE : R/W ;bitpos:[15:0] ;default: 16'b0 ; */
/*description: The value of command. Can be configured in CONF state..*/
#define SPI_USR_COMMAND_VALUE 0x0000FFFF
#define SPI_USR_COMMAND_VALUE_M ((SPI_USR_COMMAND_VALUE_V)<<(SPI_USR_COMMAND_VALUE_S))
#define SPI_USR_COMMAND_VALUE_V 0xFFFF
#define SPI_USR_COMMAND_VALUE_S 0
#define SPI_MS_DLEN_REG(i) (REG_SPI_BASE(i) + 0x1C)
/* SPI_MS_DATA_BITLEN : R/W ;bitpos:[17:0] ;default: 18'b0 ; */
/*description: The value of these bits is the configured SPI transmission data bit length in ma
ster mode DMA controlled transfer or CPU controlled transfer. The value is also
the configured bit length in slave mode DMA RX controlled transfer. The register
value shall be (bit_num-1). Can be configured in CONF state..*/
#define SPI_MS_DATA_BITLEN 0x0003FFFF
#define SPI_MS_DATA_BITLEN_M ((SPI_MS_DATA_BITLEN_V)<<(SPI_MS_DATA_BITLEN_S))
#define SPI_MS_DATA_BITLEN_V 0x3FFFF
#define SPI_MS_DATA_BITLEN_S 0
#define SPI_MISC_REG(i) (REG_SPI_BASE(i) + 0x20)
/* SPI_QUAD_DIN_PIN_SWAP : R/W ;bitpos:[31] ;default: 1'b0 ; */
/*description: 1: spi quad input swap enable 0: spi quad input swap disable. Can be configur
ed in CONF state..*/
#define SPI_QUAD_DIN_PIN_SWAP (BIT(31))
#define SPI_QUAD_DIN_PIN_SWAP_M (BIT(31))
#define SPI_QUAD_DIN_PIN_SWAP_V 0x1
#define SPI_QUAD_DIN_PIN_SWAP_S 31
/* SPI_CS_KEEP_ACTIVE : R/W ;bitpos:[30] ;default: 1'b0 ; */
/*description: spi cs line keep low when the bit is set. Can be configured in CONF state..*/
#define SPI_CS_KEEP_ACTIVE (BIT(30))
#define SPI_CS_KEEP_ACTIVE_M (BIT(30))
#define SPI_CS_KEEP_ACTIVE_V 0x1
#define SPI_CS_KEEP_ACTIVE_S 30
/* SPI_CK_IDLE_EDGE : R/W ;bitpos:[29] ;default: 1'b0 ; */
/*description: 1: spi clk line is high when idle 0: spi clk line is low when idle. Can be c
onfigured in CONF state..*/
#define SPI_CK_IDLE_EDGE (BIT(29))
#define SPI_CK_IDLE_EDGE_M (BIT(29))
#define SPI_CK_IDLE_EDGE_V 0x1
#define SPI_CK_IDLE_EDGE_S 29
/* SPI_SLAVE_CS_POL : R/W ;bitpos:[23] ;default: 1'b0 ; */
/*description: spi slave input cs polarity select. 1: inv 0: not change. Can be configured in
CONF state..*/
#define SPI_SLAVE_CS_POL (BIT(23))
#define SPI_SLAVE_CS_POL_M (BIT(23))
#define SPI_SLAVE_CS_POL_V 0x1
#define SPI_SLAVE_CS_POL_S 23
/* SPI_MASTER_CS_POL : R/W ;bitpos:[12:7] ;default: 6'b0 ; */
/*description: In the master mode the bits are the polarity of spi cs line, the value is equiva
lent to spi_cs ^ spi_master_cs_pol. Can be configured in CONF state..*/
#define SPI_MASTER_CS_POL 0x0000003F
#define SPI_MASTER_CS_POL_M ((SPI_MASTER_CS_POL_V)<<(SPI_MASTER_CS_POL_S))
#define SPI_MASTER_CS_POL_V 0x3F
#define SPI_MASTER_CS_POL_S 7
/* SPI_CK_DIS : R/W ;bitpos:[6] ;default: 1'b0 ; */
/*description: 1: spi clk out disable, 0: spi clk out enable. Can be configured in CONF state..*/
#define SPI_CK_DIS (BIT(6))
#define SPI_CK_DIS_M (BIT(6))
#define SPI_CK_DIS_V 0x1
#define SPI_CK_DIS_S 6
/* SPI_CS5_DIS : R/W ;bitpos:[5] ;default: 1'b1 ; */
/*description: SPI CS$n pin enable, 1: disable CS$n, 0: spi_cs$n signal is from/to CS$n pin. Ca
n be configured in CONF state..*/
#define SPI_CS5_DIS (BIT(5))
#define SPI_CS5_DIS_M (BIT(5))
#define SPI_CS5_DIS_V 0x1
#define SPI_CS5_DIS_S 5
/* SPI_CS4_DIS : R/W ;bitpos:[4] ;default: 1'b1 ; */
/*description: SPI CS$n pin enable, 1: disable CS$n, 0: spi_cs$n signal is from/to CS$n pin. Ca
n be configured in CONF state..*/
#define SPI_CS4_DIS (BIT(4))
#define SPI_CS4_DIS_M (BIT(4))
#define SPI_CS4_DIS_V 0x1
#define SPI_CS4_DIS_S 4
/* SPI_CS3_DIS : R/W ;bitpos:[3] ;default: 1'b1 ; */
/*description: SPI CS$n pin enable, 1: disable CS$n, 0: spi_cs$n signal is from/to CS$n pin. Ca
n be configured in CONF state..*/
#define SPI_CS3_DIS (BIT(3))
#define SPI_CS3_DIS_M (BIT(3))
#define SPI_CS3_DIS_V 0x1
#define SPI_CS3_DIS_S 3
/* SPI_CS2_DIS : R/W ;bitpos:[2] ;default: 1'b1 ; */
/*description: SPI CS$n pin enable, 1: disable CS$n, 0: spi_cs$n signal is from/to CS$n pin. Ca
n be configured in CONF state..*/
#define SPI_CS2_DIS (BIT(2))
#define SPI_CS2_DIS_M (BIT(2))
#define SPI_CS2_DIS_V 0x1
#define SPI_CS2_DIS_S 2
/* SPI_CS1_DIS : R/W ;bitpos:[1] ;default: 1'b1 ; */
/*description: SPI CS$n pin enable, 1: disable CS$n, 0: spi_cs$n signal is from/to CS$n pin. Ca
n be configured in CONF state..*/
#define SPI_CS1_DIS (BIT(1))
#define SPI_CS1_DIS_M (BIT(1))
#define SPI_CS1_DIS_V 0x1
#define SPI_CS1_DIS_S 1
/* SPI_CS0_DIS : R/W ;bitpos:[0] ;default: 1'b0 ; */
/*description: SPI CS$n pin enable, 1: disable CS$n, 0: spi_cs$n signal is from/to CS$n pin. Ca
n be configured in CONF state..*/
#define SPI_CS0_DIS (BIT(0))
#define SPI_CS0_DIS_M (BIT(0))
#define SPI_CS0_DIS_V 0x1
#define SPI_CS0_DIS_S 0
#define SPI_DIN_MODE_REG(i) (REG_SPI_BASE(i) + 0x24)
/* SPI_TIMING_HCLK_ACTIVE : R/W ;bitpos:[16] ;default: 1'b0 ; */
/*description: 1:enable hclk in SPI input timing module. 0: disable it. Can be configured in C
ONF state..*/
#define SPI_TIMING_HCLK_ACTIVE (BIT(16))
#define SPI_TIMING_HCLK_ACTIVE_M (BIT(16))
#define SPI_TIMING_HCLK_ACTIVE_V 0x1
#define SPI_TIMING_HCLK_ACTIVE_S 16
/* SPI_DIN3_MODE : R/W ;bitpos:[7:6] ;default: 2'b0 ; */
/*description: the input signals are delayed by SPI module clock cycles, 0: input without delay
ed, 1: input with the posedge of clk_apb,2 input with the negedge of clk_apb, 3:
input with the spi_clk. Can be configured in CONF state..*/
#define SPI_DIN3_MODE 0x00000003
#define SPI_DIN3_MODE_M ((SPI_DIN3_MODE_V)<<(SPI_DIN3_MODE_S))
#define SPI_DIN3_MODE_V 0x3
#define SPI_DIN3_MODE_S 6
/* SPI_DIN2_MODE : R/W ;bitpos:[5:4] ;default: 2'b0 ; */
/*description: the input signals are delayed by SPI module clock cycles, 0: input without delay
ed, 1: input with the posedge of clk_apb,2 input with the negedge of clk_apb, 3:
input with the spi_clk. Can be configured in CONF state..*/
#define SPI_DIN2_MODE 0x00000003
#define SPI_DIN2_MODE_M ((SPI_DIN2_MODE_V)<<(SPI_DIN2_MODE_S))
#define SPI_DIN2_MODE_V 0x3
#define SPI_DIN2_MODE_S 4
/* SPI_DIN1_MODE : R/W ;bitpos:[3:2] ;default: 2'b0 ; */
/*description: the input signals are delayed by SPI module clock cycles, 0: input without delay
ed, 1: input with the posedge of clk_apb,2 input with the negedge of clk_apb, 3:
input with the spi_clk. Can be configured in CONF state..*/
#define SPI_DIN1_MODE 0x00000003
#define SPI_DIN1_MODE_M ((SPI_DIN1_MODE_V)<<(SPI_DIN1_MODE_S))
#define SPI_DIN1_MODE_V 0x3
#define SPI_DIN1_MODE_S 2
/* SPI_DIN0_MODE : R/W ;bitpos:[1:0] ;default: 2'b0 ; */
/*description: the input signals are delayed by SPI module clock cycles, 0: input without delay
ed, 1: input with the posedge of clk_apb,2 input with the negedge of clk_apb, 3:
input with the spi_clk. Can be configured in CONF state..*/
#define SPI_DIN0_MODE 0x00000003
#define SPI_DIN0_MODE_M ((SPI_DIN0_MODE_V)<<(SPI_DIN0_MODE_S))
#define SPI_DIN0_MODE_V 0x3
#define SPI_DIN0_MODE_S 0
#define SPI_DIN_NUM_REG(i) (REG_SPI_BASE(i) + 0x28)
/* SPI_DIN3_NUM : R/W ;bitpos:[7:6] ;default: 2'b0 ; */
/*description: the input signals are delayed by SPI module clock cycles, 0: delayed by 1 cycle,
1: delayed by 2 cycles,... Can be configured in CONF state..*/
#define SPI_DIN3_NUM 0x00000003
#define SPI_DIN3_NUM_M ((SPI_DIN3_NUM_V)<<(SPI_DIN3_NUM_S))
#define SPI_DIN3_NUM_V 0x3
#define SPI_DIN3_NUM_S 6
/* SPI_DIN2_NUM : R/W ;bitpos:[5:4] ;default: 2'b0 ; */
/*description: the input signals are delayed by SPI module clock cycles, 0: delayed by 1 cycle,
1: delayed by 2 cycles,... Can be configured in CONF state..*/
#define SPI_DIN2_NUM 0x00000003
#define SPI_DIN2_NUM_M ((SPI_DIN2_NUM_V)<<(SPI_DIN2_NUM_S))
#define SPI_DIN2_NUM_V 0x3
#define SPI_DIN2_NUM_S 4
/* SPI_DIN1_NUM : R/W ;bitpos:[3:2] ;default: 2'b0 ; */
/*description: the input signals are delayed by SPI module clock cycles, 0: delayed by 1 cycle,
1: delayed by 2 cycles,... Can be configured in CONF state..*/
#define SPI_DIN1_NUM 0x00000003
#define SPI_DIN1_NUM_M ((SPI_DIN1_NUM_V)<<(SPI_DIN1_NUM_S))
#define SPI_DIN1_NUM_V 0x3
#define SPI_DIN1_NUM_S 2
/* SPI_DIN0_NUM : R/W ;bitpos:[1:0] ;default: 2'b0 ; */
/*description: the input signals are delayed by SPI module clock cycles, 0: delayed by 1 cycle,
1: delayed by 2 cycles,... Can be configured in CONF state..*/
#define SPI_DIN0_NUM 0x00000003
#define SPI_DIN0_NUM_M ((SPI_DIN0_NUM_V)<<(SPI_DIN0_NUM_S))
#define SPI_DIN0_NUM_V 0x3
#define SPI_DIN0_NUM_S 0
#define SPI_DOUT_MODE_REG(i) (REG_SPI_BASE(i) + 0x2C)
/* SPI_DOUT3_MODE : R/W ;bitpos:[3] ;default: 1'b0 ; */
/*description: The output signal $n is delayed by the SPI module clock, 0: output without delay
ed, 1: output delay for a SPI module clock cycle at its negative edge. Can be co
nfigured in CONF state..*/
#define SPI_DOUT3_MODE (BIT(3))
#define SPI_DOUT3_MODE_M (BIT(3))
#define SPI_DOUT3_MODE_V 0x1
#define SPI_DOUT3_MODE_S 3
/* SPI_DOUT2_MODE : R/W ;bitpos:[2] ;default: 1'b0 ; */
/*description: The output signal $n is delayed by the SPI module clock, 0: output without delay
ed, 1: output delay for a SPI module clock cycle at its negative edge. Can be co
nfigured in CONF state..*/
#define SPI_DOUT2_MODE (BIT(2))
#define SPI_DOUT2_MODE_M (BIT(2))
#define SPI_DOUT2_MODE_V 0x1
#define SPI_DOUT2_MODE_S 2
/* SPI_DOUT1_MODE : R/W ;bitpos:[1] ;default: 1'b0 ; */
/*description: The output signal $n is delayed by the SPI module clock, 0: output without delay
ed, 1: output delay for a SPI module clock cycle at its negative edge. Can be co
nfigured in CONF state..*/
#define SPI_DOUT1_MODE (BIT(1))
#define SPI_DOUT1_MODE_M (BIT(1))
#define SPI_DOUT1_MODE_V 0x1
#define SPI_DOUT1_MODE_S 1
/* SPI_DOUT0_MODE : R/W ;bitpos:[0] ;default: 1'b0 ; */
/*description: The output signal $n is delayed by the SPI module clock, 0: output without delay
ed, 1: output delay for a SPI module clock cycle at its negative edge. Can be co
nfigured in CONF state..*/
#define SPI_DOUT0_MODE (BIT(0))
#define SPI_DOUT0_MODE_M (BIT(0))
#define SPI_DOUT0_MODE_V 0x1
#define SPI_DOUT0_MODE_S 0
#define SPI_DMA_CONF_REG(i) (REG_SPI_BASE(i) + 0x30)
/* SPI_DMA_AFIFO_RST : WT ;bitpos:[31] ;default: 1'b0 ; */
/*description: Set this bit to reset DMA TX AFIFO, which is used to send data out in SPI slave
DMA controlled mode transfer..*/
#define SPI_DMA_AFIFO_RST (BIT(31))
#define SPI_DMA_AFIFO_RST_M (BIT(31))
#define SPI_DMA_AFIFO_RST_V 0x1
#define SPI_DMA_AFIFO_RST_S 31
/* SPI_BUF_AFIFO_RST : WT ;bitpos:[30] ;default: 1'b0 ; */
/*description: Set this bit to reset BUF TX AFIFO, which is used send data out in SPI slave CPU
controlled mode transfer and master mode transfer..*/
#define SPI_BUF_AFIFO_RST (BIT(30))
#define SPI_BUF_AFIFO_RST_M (BIT(30))
#define SPI_BUF_AFIFO_RST_V 0x1
#define SPI_BUF_AFIFO_RST_S 30
/* SPI_RX_AFIFO_RST : WT ;bitpos:[29] ;default: 1'b0 ; */
/*description: Set this bit to reset RX AFIFO, which is used to receive data in SPI master and
slave mode transfer..*/
#define SPI_RX_AFIFO_RST (BIT(29))
#define SPI_RX_AFIFO_RST_M (BIT(29))
#define SPI_RX_AFIFO_RST_V 0x1
#define SPI_RX_AFIFO_RST_S 29
/* SPI_DMA_TX_ENA : R/W ;bitpos:[28] ;default: 1'b0 ; */
/*description: Set this bit to enable SPI DMA controlled send data mode..*/
#define SPI_DMA_TX_ENA (BIT(28))
#define SPI_DMA_TX_ENA_M (BIT(28))
#define SPI_DMA_TX_ENA_V 0x1
#define SPI_DMA_TX_ENA_S 28
/* SPI_DMA_RX_ENA : R/W ;bitpos:[27] ;default: 1'd0 ; */
/*description: Set this bit to enable SPI DMA controlled receive data mode..*/
#define SPI_DMA_RX_ENA (BIT(27))
#define SPI_DMA_RX_ENA_M (BIT(27))
#define SPI_DMA_RX_ENA_V 0x1
#define SPI_DMA_RX_ENA_S 27
/* SPI_RX_EOF_EN : R/W ;bitpos:[21] ;default: 1'b0 ; */
/*description: 1: spi_dma_inlink_eof is set when the number of dma pushed data bytes is equal t
o the value of spi_slv/mst_dma_rd_bytelen[19:0] in spi dma transition. 0: spi_d
ma_inlink_eof is set by spi_trans_done in non-seg-trans or spi_dma_seg_trans_don
e in seg-trans..*/
#define SPI_RX_EOF_EN (BIT(21))
#define SPI_RX_EOF_EN_M (BIT(21))
#define SPI_RX_EOF_EN_V 0x1
#define SPI_RX_EOF_EN_S 21
/* SPI_SLV_TX_SEG_TRANS_CLR_EN : R/W ;bitpos:[20] ;default: 1'b0 ; */
/*description: 1: spi_dma_outfifo_empty_vld is cleared by spi slave cmd 6. 0: spi_dma_outfifo_e
mpty_vld is cleared by spi_trans_done..*/
#define SPI_SLV_TX_SEG_TRANS_CLR_EN (BIT(20))
#define SPI_SLV_TX_SEG_TRANS_CLR_EN_M (BIT(20))
#define SPI_SLV_TX_SEG_TRANS_CLR_EN_V 0x1
#define SPI_SLV_TX_SEG_TRANS_CLR_EN_S 20
/* SPI_SLV_RX_SEG_TRANS_CLR_EN : R/W ;bitpos:[19] ;default: 1'b0 ; */
/*description: 1: spi_dma_infifo_full_vld is cleared by spi slave cmd 5. 0: spi_dma_infifo_full
_vld is cleared by spi_trans_done..*/
#define SPI_SLV_RX_SEG_TRANS_CLR_EN (BIT(19))
#define SPI_SLV_RX_SEG_TRANS_CLR_EN_M (BIT(19))
#define SPI_SLV_RX_SEG_TRANS_CLR_EN_V 0x1
#define SPI_SLV_RX_SEG_TRANS_CLR_EN_S 19
/* SPI_DMA_SLV_SEG_TRANS_EN : R/W ;bitpos:[18] ;default: 1'b0 ; */
/*description: Enable dma segment transfer in spi dma half slave mode. 1: enable. 0: disable..*/
#define SPI_DMA_SLV_SEG_TRANS_EN (BIT(18))
#define SPI_DMA_SLV_SEG_TRANS_EN_M (BIT(18))
#define SPI_DMA_SLV_SEG_TRANS_EN_V 0x1
#define SPI_DMA_SLV_SEG_TRANS_EN_S 18
#define SPI_DMA_INT_ENA_REG(i) (REG_SPI_BASE(i) + 0x34)
/* SPI_APP1_INT_ENA : R/W ;bitpos:[20] ;default: 1'b0 ; */
/*description: The enable bit for SPI_APP1_INT interrupt..*/
#define SPI_APP1_INT_ENA (BIT(20))
#define SPI_APP1_INT_ENA_M (BIT(20))
#define SPI_APP1_INT_ENA_V 0x1
#define SPI_APP1_INT_ENA_S 20
/* SPI_APP2_INT_ENA : R/W ;bitpos:[19] ;default: 1'b0 ; */
/*description: The enable bit for SPI_APP2_INT interrupt..*/
#define SPI_APP2_INT_ENA (BIT(19))
#define SPI_APP2_INT_ENA_M (BIT(19))
#define SPI_APP2_INT_ENA_V 0x1
#define SPI_APP2_INT_ENA_S 19
/* SPI_MST_TX_AFIFO_REMPTY_ERR_INT_ENA : R/W ;bitpos:[18] ;default: 1'b0 ; */
/*description: The enable bit for SPI_MST_TX_AFIFO_REMPTY_ERR_INT interrupt..*/
#define SPI_MST_TX_AFIFO_REMPTY_ERR_INT_ENA (BIT(18))
#define SPI_MST_TX_AFIFO_REMPTY_ERR_INT_ENA_M (BIT(18))
#define SPI_MST_TX_AFIFO_REMPTY_ERR_INT_ENA_V 0x1
#define SPI_MST_TX_AFIFO_REMPTY_ERR_INT_ENA_S 18
/* SPI_MST_RX_AFIFO_WFULL_ERR_INT_ENA : R/W ;bitpos:[17] ;default: 1'b0 ; */
/*description: The enable bit for SPI_MST_RX_AFIFO_WFULL_ERR_INT interrupt..*/
#define SPI_MST_RX_AFIFO_WFULL_ERR_INT_ENA (BIT(17))
#define SPI_MST_RX_AFIFO_WFULL_ERR_INT_ENA_M (BIT(17))
#define SPI_MST_RX_AFIFO_WFULL_ERR_INT_ENA_V 0x1
#define SPI_MST_RX_AFIFO_WFULL_ERR_INT_ENA_S 17
/* SPI_SLV_CMD_ERR_INT_ENA : R/W ;bitpos:[16] ;default: 1'b0 ; */
/*description: The enable bit for SPI_SLV_CMD_ERR_INT interrupt..*/
#define SPI_SLV_CMD_ERR_INT_ENA (BIT(16))
#define SPI_SLV_CMD_ERR_INT_ENA_M (BIT(16))
#define SPI_SLV_CMD_ERR_INT_ENA_V 0x1
#define SPI_SLV_CMD_ERR_INT_ENA_S 16
/* SPI_SLV_BUF_ADDR_ERR_INT_ENA : R/W ;bitpos:[15] ;default: 1'b0 ; */
/*description: The enable bit for SPI_SLV_BUF_ADDR_ERR_INT interrupt..*/
#define SPI_SLV_BUF_ADDR_ERR_INT_ENA (BIT(15))
#define SPI_SLV_BUF_ADDR_ERR_INT_ENA_M (BIT(15))
#define SPI_SLV_BUF_ADDR_ERR_INT_ENA_V 0x1
#define SPI_SLV_BUF_ADDR_ERR_INT_ENA_S 15
/* SPI_SEG_MAGIC_ERR_INT_ENA : R/W ;bitpos:[14] ;default: 1'b0 ; */
/*description: The enable bit for SPI_SEG_MAGIC_ERR_INT interrupt..*/
#define SPI_SEG_MAGIC_ERR_INT_ENA (BIT(14))
#define SPI_SEG_MAGIC_ERR_INT_ENA_M (BIT(14))
#define SPI_SEG_MAGIC_ERR_INT_ENA_V 0x1
#define SPI_SEG_MAGIC_ERR_INT_ENA_S 14
/* SPI_DMA_SEG_TRANS_DONE_INT_ENA : R/W ;bitpos:[13] ;default: 1'b0 ; */
/*description: The enable bit for SPI_DMA_SEG_TRANS_DONE_INT interrupt..*/
#define SPI_DMA_SEG_TRANS_DONE_INT_ENA (BIT(13))
#define SPI_DMA_SEG_TRANS_DONE_INT_ENA_M (BIT(13))
#define SPI_DMA_SEG_TRANS_DONE_INT_ENA_V 0x1
#define SPI_DMA_SEG_TRANS_DONE_INT_ENA_S 13
/* SPI_TRANS_DONE_INT_ENA : R/W ;bitpos:[12] ;default: 1'b0 ; */
/*description: The enable bit for SPI_TRANS_DONE_INT interrupt..*/
#define SPI_TRANS_DONE_INT_ENA (BIT(12))
#define SPI_TRANS_DONE_INT_ENA_M (BIT(12))
#define SPI_TRANS_DONE_INT_ENA_V 0x1
#define SPI_TRANS_DONE_INT_ENA_S 12
/* SPI_SLV_WR_BUF_DONE_INT_ENA : R/W ;bitpos:[11] ;default: 1'b0 ; */
/*description: The enable bit for SPI_SLV_WR_BUF_DONE_INT interrupt..*/
#define SPI_SLV_WR_BUF_DONE_INT_ENA (BIT(11))
#define SPI_SLV_WR_BUF_DONE_INT_ENA_M (BIT(11))
#define SPI_SLV_WR_BUF_DONE_INT_ENA_V 0x1
#define SPI_SLV_WR_BUF_DONE_INT_ENA_S 11
/* SPI_SLV_RD_BUF_DONE_INT_ENA : R/W ;bitpos:[10] ;default: 1'b0 ; */
/*description: The enable bit for SPI_SLV_RD_BUF_DONE_INT interrupt..*/
#define SPI_SLV_RD_BUF_DONE_INT_ENA (BIT(10))
#define SPI_SLV_RD_BUF_DONE_INT_ENA_M (BIT(10))
#define SPI_SLV_RD_BUF_DONE_INT_ENA_V 0x1
#define SPI_SLV_RD_BUF_DONE_INT_ENA_S 10
/* SPI_SLV_WR_DMA_DONE_INT_ENA : R/W ;bitpos:[9] ;default: 1'b0 ; */
/*description: The enable bit for SPI_SLV_WR_DMA_DONE_INT interrupt..*/
#define SPI_SLV_WR_DMA_DONE_INT_ENA (BIT(9))
#define SPI_SLV_WR_DMA_DONE_INT_ENA_M (BIT(9))
#define SPI_SLV_WR_DMA_DONE_INT_ENA_V 0x1
#define SPI_SLV_WR_DMA_DONE_INT_ENA_S 9
/* SPI_SLV_RD_DMA_DONE_INT_ENA : R/W ;bitpos:[8] ;default: 1'b0 ; */
/*description: The enable bit for SPI_SLV_RD_DMA_DONE_INT interrupt..*/
#define SPI_SLV_RD_DMA_DONE_INT_ENA (BIT(8))
#define SPI_SLV_RD_DMA_DONE_INT_ENA_M (BIT(8))
#define SPI_SLV_RD_DMA_DONE_INT_ENA_V 0x1
#define SPI_SLV_RD_DMA_DONE_INT_ENA_S 8
/* SPI_SLV_CMDA_INT_ENA : R/W ;bitpos:[7] ;default: 1'b0 ; */
/*description: The enable bit for SPI slave CMDA interrupt..*/
#define SPI_SLV_CMDA_INT_ENA (BIT(7))
#define SPI_SLV_CMDA_INT_ENA_M (BIT(7))
#define SPI_SLV_CMDA_INT_ENA_V 0x1
#define SPI_SLV_CMDA_INT_ENA_S 7
/* SPI_SLV_CMD9_INT_ENA : R/W ;bitpos:[6] ;default: 1'b0 ; */
/*description: The enable bit for SPI slave CMD9 interrupt..*/
#define SPI_SLV_CMD9_INT_ENA (BIT(6))
#define SPI_SLV_CMD9_INT_ENA_M (BIT(6))
#define SPI_SLV_CMD9_INT_ENA_V 0x1
#define SPI_SLV_CMD9_INT_ENA_S 6
/* SPI_SLV_CMD8_INT_ENA : R/W ;bitpos:[5] ;default: 1'b0 ; */
/*description: The enable bit for SPI slave CMD8 interrupt..*/
#define SPI_SLV_CMD8_INT_ENA (BIT(5))
#define SPI_SLV_CMD8_INT_ENA_M (BIT(5))
#define SPI_SLV_CMD8_INT_ENA_V 0x1
#define SPI_SLV_CMD8_INT_ENA_S 5
/* SPI_SLV_CMD7_INT_ENA : R/W ;bitpos:[4] ;default: 1'b0 ; */
/*description: The enable bit for SPI slave CMD7 interrupt..*/
#define SPI_SLV_CMD7_INT_ENA (BIT(4))
#define SPI_SLV_CMD7_INT_ENA_M (BIT(4))
#define SPI_SLV_CMD7_INT_ENA_V 0x1
#define SPI_SLV_CMD7_INT_ENA_S 4
/* SPI_SLV_EN_QPI_INT_ENA : R/W ;bitpos:[3] ;default: 1'b0 ; */
/*description: The enable bit for SPI slave En_QPI interrupt..*/
#define SPI_SLV_EN_QPI_INT_ENA (BIT(3))
#define SPI_SLV_EN_QPI_INT_ENA_M (BIT(3))
#define SPI_SLV_EN_QPI_INT_ENA_V 0x1
#define SPI_SLV_EN_QPI_INT_ENA_S 3
/* SPI_SLV_EX_QPI_INT_ENA : R/W ;bitpos:[2] ;default: 1'b0 ; */
/*description: The enable bit for SPI slave Ex_QPI interrupt..*/
#define SPI_SLV_EX_QPI_INT_ENA (BIT(2))
#define SPI_SLV_EX_QPI_INT_ENA_M (BIT(2))
#define SPI_SLV_EX_QPI_INT_ENA_V 0x1
#define SPI_SLV_EX_QPI_INT_ENA_S 2
/* SPI_DMA_OUTFIFO_EMPTY_ERR_INT_ENA : R/W ;bitpos:[1] ;default: 1'b0 ; */
/*description: The enable bit for SPI_DMA_OUTFIFO_EMPTY_ERR_INT interrupt..*/
#define SPI_DMA_OUTFIFO_EMPTY_ERR_INT_ENA (BIT(1))
#define SPI_DMA_OUTFIFO_EMPTY_ERR_INT_ENA_M (BIT(1))
#define SPI_DMA_OUTFIFO_EMPTY_ERR_INT_ENA_V 0x1
#define SPI_DMA_OUTFIFO_EMPTY_ERR_INT_ENA_S 1
/* SPI_DMA_INFIFO_FULL_ERR_INT_ENA : R/W ;bitpos:[0] ;default: 1'b0 ; */
/*description: The enable bit for SPI_DMA_INFIFO_FULL_ERR_INT interrupt..*/
#define SPI_DMA_INFIFO_FULL_ERR_INT_ENA (BIT(0))
#define SPI_DMA_INFIFO_FULL_ERR_INT_ENA_M (BIT(0))
#define SPI_DMA_INFIFO_FULL_ERR_INT_ENA_V 0x1
#define SPI_DMA_INFIFO_FULL_ERR_INT_ENA_S 0
#define SPI_DMA_INT_CLR_REG(i) (REG_SPI_BASE(i) + 0x38)
/* SPI_APP1_INT_CLR : WT ;bitpos:[20] ;default: 1'b0 ; */
/*description: The clear bit for SPI_APP1_INT interrupt..*/
#define SPI_APP1_INT_CLR (BIT(20))
#define SPI_APP1_INT_CLR_M (BIT(20))
#define SPI_APP1_INT_CLR_V 0x1
#define SPI_APP1_INT_CLR_S 20
/* SPI_APP2_INT_CLR : WT ;bitpos:[19] ;default: 1'b0 ; */
/*description: The clear bit for SPI_APP2_INT interrupt..*/
#define SPI_APP2_INT_CLR (BIT(19))
#define SPI_APP2_INT_CLR_M (BIT(19))
#define SPI_APP2_INT_CLR_V 0x1
#define SPI_APP2_INT_CLR_S 19
/* SPI_MST_TX_AFIFO_REMPTY_ERR_INT_CLR : WT ;bitpos:[18] ;default: 1'b0 ; */
/*description: The clear bit for SPI_MST_TX_AFIFO_REMPTY_ERR_INT interrupt..*/
#define SPI_MST_TX_AFIFO_REMPTY_ERR_INT_CLR (BIT(18))
#define SPI_MST_TX_AFIFO_REMPTY_ERR_INT_CLR_M (BIT(18))
#define SPI_MST_TX_AFIFO_REMPTY_ERR_INT_CLR_V 0x1
#define SPI_MST_TX_AFIFO_REMPTY_ERR_INT_CLR_S 18
/* SPI_MST_RX_AFIFO_WFULL_ERR_INT_CLR : WT ;bitpos:[17] ;default: 1'b0 ; */
/*description: The clear bit for SPI_MST_RX_AFIFO_WFULL_ERR_INT interrupt..*/
#define SPI_MST_RX_AFIFO_WFULL_ERR_INT_CLR (BIT(17))
#define SPI_MST_RX_AFIFO_WFULL_ERR_INT_CLR_M (BIT(17))
#define SPI_MST_RX_AFIFO_WFULL_ERR_INT_CLR_V 0x1
#define SPI_MST_RX_AFIFO_WFULL_ERR_INT_CLR_S 17
/* SPI_SLV_CMD_ERR_INT_CLR : WT ;bitpos:[16] ;default: 1'b0 ; */
/*description: The clear bit for SPI_SLV_CMD_ERR_INT interrupt..*/
#define SPI_SLV_CMD_ERR_INT_CLR (BIT(16))
#define SPI_SLV_CMD_ERR_INT_CLR_M (BIT(16))
#define SPI_SLV_CMD_ERR_INT_CLR_V 0x1
#define SPI_SLV_CMD_ERR_INT_CLR_S 16
/* SPI_SLV_BUF_ADDR_ERR_INT_CLR : WT ;bitpos:[15] ;default: 1'b0 ; */
/*description: The clear bit for SPI_SLV_BUF_ADDR_ERR_INT interrupt..*/
#define SPI_SLV_BUF_ADDR_ERR_INT_CLR (BIT(15))
#define SPI_SLV_BUF_ADDR_ERR_INT_CLR_M (BIT(15))
#define SPI_SLV_BUF_ADDR_ERR_INT_CLR_V 0x1
#define SPI_SLV_BUF_ADDR_ERR_INT_CLR_S 15
/* SPI_SEG_MAGIC_ERR_INT_CLR : WT ;bitpos:[14] ;default: 1'b0 ; */
/*description: The clear bit for SPI_SEG_MAGIC_ERR_INT interrupt..*/
#define SPI_SEG_MAGIC_ERR_INT_CLR (BIT(14))
#define SPI_SEG_MAGIC_ERR_INT_CLR_M (BIT(14))
#define SPI_SEG_MAGIC_ERR_INT_CLR_V 0x1
#define SPI_SEG_MAGIC_ERR_INT_CLR_S 14
/* SPI_DMA_SEG_TRANS_DONE_INT_CLR : WT ;bitpos:[13] ;default: 1'b0 ; */
/*description: The clear bit for SPI_DMA_SEG_TRANS_DONE_INT interrupt..*/
#define SPI_DMA_SEG_TRANS_DONE_INT_CLR (BIT(13))
#define SPI_DMA_SEG_TRANS_DONE_INT_CLR_M (BIT(13))
#define SPI_DMA_SEG_TRANS_DONE_INT_CLR_V 0x1
#define SPI_DMA_SEG_TRANS_DONE_INT_CLR_S 13
/* SPI_TRANS_DONE_INT_CLR : WT ;bitpos:[12] ;default: 1'b0 ; */
/*description: The clear bit for SPI_TRANS_DONE_INT interrupt..*/
#define SPI_TRANS_DONE_INT_CLR (BIT(12))
#define SPI_TRANS_DONE_INT_CLR_M (BIT(12))
#define SPI_TRANS_DONE_INT_CLR_V 0x1
#define SPI_TRANS_DONE_INT_CLR_S 12
/* SPI_SLV_WR_BUF_DONE_INT_CLR : WT ;bitpos:[11] ;default: 1'b0 ; */
/*description: The clear bit for SPI_SLV_WR_BUF_DONE_INT interrupt..*/
#define SPI_SLV_WR_BUF_DONE_INT_CLR (BIT(11))
#define SPI_SLV_WR_BUF_DONE_INT_CLR_M (BIT(11))
#define SPI_SLV_WR_BUF_DONE_INT_CLR_V 0x1
#define SPI_SLV_WR_BUF_DONE_INT_CLR_S 11
/* SPI_SLV_RD_BUF_DONE_INT_CLR : WT ;bitpos:[10] ;default: 1'b0 ; */
/*description: The clear bit for SPI_SLV_RD_BUF_DONE_INT interrupt..*/
#define SPI_SLV_RD_BUF_DONE_INT_CLR (BIT(10))
#define SPI_SLV_RD_BUF_DONE_INT_CLR_M (BIT(10))
#define SPI_SLV_RD_BUF_DONE_INT_CLR_V 0x1
#define SPI_SLV_RD_BUF_DONE_INT_CLR_S 10
/* SPI_SLV_WR_DMA_DONE_INT_CLR : WT ;bitpos:[9] ;default: 1'b0 ; */
/*description: The clear bit for SPI_SLV_WR_DMA_DONE_INT interrupt..*/
#define SPI_SLV_WR_DMA_DONE_INT_CLR (BIT(9))
#define SPI_SLV_WR_DMA_DONE_INT_CLR_M (BIT(9))
#define SPI_SLV_WR_DMA_DONE_INT_CLR_V 0x1
#define SPI_SLV_WR_DMA_DONE_INT_CLR_S 9
/* SPI_SLV_RD_DMA_DONE_INT_CLR : WT ;bitpos:[8] ;default: 1'b0 ; */
/*description: The clear bit for SPI_SLV_RD_DMA_DONE_INT interrupt..*/
#define SPI_SLV_RD_DMA_DONE_INT_CLR (BIT(8))
#define SPI_SLV_RD_DMA_DONE_INT_CLR_M (BIT(8))
#define SPI_SLV_RD_DMA_DONE_INT_CLR_V 0x1
#define SPI_SLV_RD_DMA_DONE_INT_CLR_S 8
/* SPI_SLV_CMDA_INT_CLR : WT ;bitpos:[7] ;default: 1'b0 ; */
/*description: The clear bit for SPI slave CMDA interrupt..*/
#define SPI_SLV_CMDA_INT_CLR (BIT(7))
#define SPI_SLV_CMDA_INT_CLR_M (BIT(7))
#define SPI_SLV_CMDA_INT_CLR_V 0x1
#define SPI_SLV_CMDA_INT_CLR_S 7
/* SPI_SLV_CMD9_INT_CLR : WT ;bitpos:[6] ;default: 1'b0 ; */
/*description: The clear bit for SPI slave CMD9 interrupt..*/
#define SPI_SLV_CMD9_INT_CLR (BIT(6))
#define SPI_SLV_CMD9_INT_CLR_M (BIT(6))
#define SPI_SLV_CMD9_INT_CLR_V 0x1
#define SPI_SLV_CMD9_INT_CLR_S 6
/* SPI_SLV_CMD8_INT_CLR : WT ;bitpos:[5] ;default: 1'b0 ; */
/*description: The clear bit for SPI slave CMD8 interrupt..*/
#define SPI_SLV_CMD8_INT_CLR (BIT(5))
#define SPI_SLV_CMD8_INT_CLR_M (BIT(5))
#define SPI_SLV_CMD8_INT_CLR_V 0x1
#define SPI_SLV_CMD8_INT_CLR_S 5
/* SPI_SLV_CMD7_INT_CLR : WT ;bitpos:[4] ;default: 1'b0 ; */
/*description: The clear bit for SPI slave CMD7 interrupt..*/
#define SPI_SLV_CMD7_INT_CLR (BIT(4))
#define SPI_SLV_CMD7_INT_CLR_M (BIT(4))
#define SPI_SLV_CMD7_INT_CLR_V 0x1
#define SPI_SLV_CMD7_INT_CLR_S 4
/* SPI_SLV_EN_QPI_INT_CLR : WT ;bitpos:[3] ;default: 1'b0 ; */
/*description: The clear bit for SPI slave En_QPI interrupt..*/
#define SPI_SLV_EN_QPI_INT_CLR (BIT(3))
#define SPI_SLV_EN_QPI_INT_CLR_M (BIT(3))
#define SPI_SLV_EN_QPI_INT_CLR_V 0x1
#define SPI_SLV_EN_QPI_INT_CLR_S 3
/* SPI_SLV_EX_QPI_INT_CLR : WT ;bitpos:[2] ;default: 1'b0 ; */
/*description: The clear bit for SPI slave Ex_QPI interrupt..*/
#define SPI_SLV_EX_QPI_INT_CLR (BIT(2))
#define SPI_SLV_EX_QPI_INT_CLR_M (BIT(2))
#define SPI_SLV_EX_QPI_INT_CLR_V 0x1
#define SPI_SLV_EX_QPI_INT_CLR_S 2
/* SPI_DMA_OUTFIFO_EMPTY_ERR_INT_CLR : WT ;bitpos:[1] ;default: 1'b0 ; */
/*description: The clear bit for SPI_DMA_OUTFIFO_EMPTY_ERR_INT interrupt..*/
#define SPI_DMA_OUTFIFO_EMPTY_ERR_INT_CLR (BIT(1))
#define SPI_DMA_OUTFIFO_EMPTY_ERR_INT_CLR_M (BIT(1))
#define SPI_DMA_OUTFIFO_EMPTY_ERR_INT_CLR_V 0x1
#define SPI_DMA_OUTFIFO_EMPTY_ERR_INT_CLR_S 1
/* SPI_DMA_INFIFO_FULL_ERR_INT_CLR : WT ;bitpos:[0] ;default: 1'b0 ; */
/*description: The clear bit for SPI_DMA_INFIFO_FULL_ERR_INT interrupt..*/
#define SPI_DMA_INFIFO_FULL_ERR_INT_CLR (BIT(0))
#define SPI_DMA_INFIFO_FULL_ERR_INT_CLR_M (BIT(0))
#define SPI_DMA_INFIFO_FULL_ERR_INT_CLR_V 0x1
#define SPI_DMA_INFIFO_FULL_ERR_INT_CLR_S 0
#define SPI_DMA_INT_RAW_REG(i) (REG_SPI_BASE(i) + 0x3C)
/* SPI_APP1_INT_RAW : R/W/WTC ;bitpos:[20] ;default: 1'b0 ; */
/*description: The raw bit for SPI_APP1_INT interrupt. The value is only controlled by applicat
ion..*/
#define SPI_APP1_INT_RAW (BIT(20))
#define SPI_APP1_INT_RAW_M (BIT(20))
#define SPI_APP1_INT_RAW_V 0x1
#define SPI_APP1_INT_RAW_S 20
/* SPI_APP2_INT_RAW : R/W/WTC ;bitpos:[19] ;default: 1'b0 ; */
/*description: The raw bit for SPI_APP2_INT interrupt. The value is only controlled by applicat
ion..*/
#define SPI_APP2_INT_RAW (BIT(19))
#define SPI_APP2_INT_RAW_M (BIT(19))
#define SPI_APP2_INT_RAW_V 0x1
#define SPI_APP2_INT_RAW_S 19
/* SPI_MST_TX_AFIFO_REMPTY_ERR_INT_RAW : R/W/WTC/SS ;bitpos:[18] ;default: 1'b0 ; */
/*description: The raw bit for SPI_MST_TX_AFIFO_REMPTY_ERR_INT interrupt. 1: There is a TX BUF
AFIFO read-empty error when SPI outputs data in master mode. 0: Others..*/
#define SPI_MST_TX_AFIFO_REMPTY_ERR_INT_RAW (BIT(18))
#define SPI_MST_TX_AFIFO_REMPTY_ERR_INT_RAW_M (BIT(18))
#define SPI_MST_TX_AFIFO_REMPTY_ERR_INT_RAW_V 0x1
#define SPI_MST_TX_AFIFO_REMPTY_ERR_INT_RAW_S 18
/* SPI_MST_RX_AFIFO_WFULL_ERR_INT_RAW : R/W/WTC/SS ;bitpos:[17] ;default: 1'b0 ; */
/*description: The raw bit for SPI_MST_RX_AFIFO_WFULL_ERR_INT interrupt. 1: There is a RX AFIFO
write-full error when SPI inputs data in master mode. 0: Others..*/
#define SPI_MST_RX_AFIFO_WFULL_ERR_INT_RAW (BIT(17))
#define SPI_MST_RX_AFIFO_WFULL_ERR_INT_RAW_M (BIT(17))
#define SPI_MST_RX_AFIFO_WFULL_ERR_INT_RAW_V 0x1
#define SPI_MST_RX_AFIFO_WFULL_ERR_INT_RAW_S 17
/* SPI_SLV_CMD_ERR_INT_RAW : R/W/WTC/SS ;bitpos:[16] ;default: 1'b0 ; */
/*description: The raw bit for SPI_SLV_CMD_ERR_INT interrupt. 1: The slave command value in the
current SPI slave HD mode transmission is not supported. 0: Others..*/
#define SPI_SLV_CMD_ERR_INT_RAW (BIT(16))
#define SPI_SLV_CMD_ERR_INT_RAW_M (BIT(16))
#define SPI_SLV_CMD_ERR_INT_RAW_V 0x1
#define SPI_SLV_CMD_ERR_INT_RAW_S 16
/* SPI_SLV_BUF_ADDR_ERR_INT_RAW : R/W/WTC/SS ;bitpos:[15] ;default: 1'b0 ; */
/*description: The raw bit for SPI_SLV_BUF_ADDR_ERR_INT interrupt. 1: The accessing data addres
s of the current SPI slave mode CPU controlled FD, Wr_BUF or Rd_BUF transmission
is bigger than 63. 0: Others..*/
#define SPI_SLV_BUF_ADDR_ERR_INT_RAW (BIT(15))
#define SPI_SLV_BUF_ADDR_ERR_INT_RAW_M (BIT(15))
#define SPI_SLV_BUF_ADDR_ERR_INT_RAW_V 0x1
#define SPI_SLV_BUF_ADDR_ERR_INT_RAW_S 15
/* SPI_SEG_MAGIC_ERR_INT_RAW : R/W/WTC/SS ;bitpos:[14] ;default: 1'b0 ; */
/*description: The raw bit for SPI_SEG_MAGIC_ERR_INT interrupt. 1: The magic value in CONF buff
er is error in the DMA seg-conf-trans. 0: others..*/
#define SPI_SEG_MAGIC_ERR_INT_RAW (BIT(14))
#define SPI_SEG_MAGIC_ERR_INT_RAW_M (BIT(14))
#define SPI_SEG_MAGIC_ERR_INT_RAW_V 0x1
#define SPI_SEG_MAGIC_ERR_INT_RAW_S 14
/* SPI_DMA_SEG_TRANS_DONE_INT_RAW : R/W/WTC/SS ;bitpos:[13] ;default: 1'b0 ; */
/*description: The raw bit for SPI_DMA_SEG_TRANS_DONE_INT interrupt. 1: spi master DMA full-du
plex/half-duplex seg-conf-trans ends or slave half-duplex seg-trans ends. And da
ta has been pushed to corresponding memory. 0: seg-conf-trans or seg-trans is
not ended or not occurred. .*/
#define SPI_DMA_SEG_TRANS_DONE_INT_RAW (BIT(13))
#define SPI_DMA_SEG_TRANS_DONE_INT_RAW_M (BIT(13))
#define SPI_DMA_SEG_TRANS_DONE_INT_RAW_V 0x1
#define SPI_DMA_SEG_TRANS_DONE_INT_RAW_S 13
/* SPI_TRANS_DONE_INT_RAW : R/W/WTC/SS ;bitpos:[12] ;default: 1'b0 ; */
/*description: The raw bit for SPI_TRANS_DONE_INT interrupt. 1: SPI master mode transmission is
ended. 0: others..*/
#define SPI_TRANS_DONE_INT_RAW (BIT(12))
#define SPI_TRANS_DONE_INT_RAW_M (BIT(12))
#define SPI_TRANS_DONE_INT_RAW_V 0x1
#define SPI_TRANS_DONE_INT_RAW_S 12
/* SPI_SLV_WR_BUF_DONE_INT_RAW : R/W/WTC/SS ;bitpos:[11] ;default: 1'b0 ; */
/*description: The raw bit for SPI_SLV_WR_BUF_DONE_INT interrupt. 1: SPI slave mode Wr_BUF tran
smission is ended. 0: Others..*/
#define SPI_SLV_WR_BUF_DONE_INT_RAW (BIT(11))
#define SPI_SLV_WR_BUF_DONE_INT_RAW_M (BIT(11))
#define SPI_SLV_WR_BUF_DONE_INT_RAW_V 0x1
#define SPI_SLV_WR_BUF_DONE_INT_RAW_S 11
/* SPI_SLV_RD_BUF_DONE_INT_RAW : R/W/WTC/SS ;bitpos:[10] ;default: 1'b0 ; */
/*description: The raw bit for SPI_SLV_RD_BUF_DONE_INT interrupt. 1: SPI slave mode Rd_BUF tran
smission is ended. 0: Others..*/
#define SPI_SLV_RD_BUF_DONE_INT_RAW (BIT(10))
#define SPI_SLV_RD_BUF_DONE_INT_RAW_M (BIT(10))
#define SPI_SLV_RD_BUF_DONE_INT_RAW_V 0x1
#define SPI_SLV_RD_BUF_DONE_INT_RAW_S 10
/* SPI_SLV_WR_DMA_DONE_INT_RAW : R/W/WTC/SS ;bitpos:[9] ;default: 1'b0 ; */
/*description: The raw bit for SPI_SLV_WR_DMA_DONE_INT interrupt. 1: SPI slave mode Wr_DMA tran
smission is ended. 0: Others..*/
#define SPI_SLV_WR_DMA_DONE_INT_RAW (BIT(9))
#define SPI_SLV_WR_DMA_DONE_INT_RAW_M (BIT(9))
#define SPI_SLV_WR_DMA_DONE_INT_RAW_V 0x1
#define SPI_SLV_WR_DMA_DONE_INT_RAW_S 9
/* SPI_SLV_RD_DMA_DONE_INT_RAW : R/W/WTC/SS ;bitpos:[8] ;default: 1'b0 ; */
/*description: The raw bit for SPI_SLV_RD_DMA_DONE_INT interrupt. 1: SPI slave mode Rd_DMA tran
smission is ended. 0: Others..*/
#define SPI_SLV_RD_DMA_DONE_INT_RAW (BIT(8))
#define SPI_SLV_RD_DMA_DONE_INT_RAW_M (BIT(8))
#define SPI_SLV_RD_DMA_DONE_INT_RAW_V 0x1
#define SPI_SLV_RD_DMA_DONE_INT_RAW_S 8
/* SPI_SLV_CMDA_INT_RAW : R/W/WTC/SS ;bitpos:[7] ;default: 1'b0 ; */
/*description: The raw bit for SPI slave CMDA interrupt. 1: SPI slave mode CMDA transmission is
ended. 0: Others..*/
#define SPI_SLV_CMDA_INT_RAW (BIT(7))
#define SPI_SLV_CMDA_INT_RAW_M (BIT(7))
#define SPI_SLV_CMDA_INT_RAW_V 0x1
#define SPI_SLV_CMDA_INT_RAW_S 7
/* SPI_SLV_CMD9_INT_RAW : R/W/WTC/SS ;bitpos:[6] ;default: 1'b0 ; */
/*description: The raw bit for SPI slave CMD9 interrupt. 1: SPI slave mode CMD9 transmission is
ended. 0: Others..*/
#define SPI_SLV_CMD9_INT_RAW (BIT(6))
#define SPI_SLV_CMD9_INT_RAW_M (BIT(6))
#define SPI_SLV_CMD9_INT_RAW_V 0x1