-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstm32_svd-pwr.ads
1240 lines (1100 loc) · 36.1 KB
/
stm32_svd-pwr.ads
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
pragma Style_Checks (Off);
-- This spec has been automatically generated from STM32L4R9.svd
pragma Restrictions (No_Elaboration_Code);
with HAL;
with System;
package STM32_SVD.PWR is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype CR1_LPMS_Field is HAL.UInt3;
subtype CR1_VOS_Field is HAL.UInt2;
-- Power control register 1
type CR1_Register is record
LPMS : CR1_LPMS_Field := 16#0#;
-- Low-power mode selection
Reserved_3_3 : HAL.Bit := 16#0#;
-- unspecified
RRSTP : Boolean := False;
-- SRAM3 retention in Stop 2 mode
Reserved_5_7 : HAL.UInt3 := 16#0#;
-- unspecified
DBP : Boolean := False;
-- Disable backup domain write protection
VOS : CR1_VOS_Field := 16#1#;
-- Voltage scaling range selection
Reserved_11_13 : HAL.UInt3 := 16#0#;
-- unspecified
LPR : Boolean := False;
-- Low-power run
Reserved_15_31 : HAL.UInt17 := 16#0#;
-- unspecified
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for CR1_Register use record
LPMS at 0 range 0 .. 2;
Reserved_3_3 at 0 range 3 .. 3;
RRSTP at 0 range 4 .. 4;
Reserved_5_7 at 0 range 5 .. 7;
DBP at 0 range 8 .. 8;
VOS at 0 range 9 .. 10;
Reserved_11_13 at 0 range 11 .. 13;
LPR at 0 range 14 .. 14;
Reserved_15_31 at 0 range 15 .. 31;
end record;
subtype CR2_PLS_Field is HAL.UInt3;
-- CR2_PVME array
type CR2_PVME_Field_Array is array (1 .. 4) of Boolean
with Component_Size => 1, Size => 4;
-- Type definition for CR2_PVME
type CR2_PVME_Field
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
Val : HAL.UInt4;
-- PVME as a value
when True =>
Arr : CR2_PVME_Field_Array;
-- PVME as an array
end case;
end record
with Unchecked_Union, Size => 4;
for CR2_PVME_Field use record
Val at 0 range 0 .. 3;
Arr at 0 range 0 .. 3;
end record;
-- Power control register 2
type CR2_Register is record
PVDE : Boolean := False;
-- Power voltage detector enable
PLS : CR2_PLS_Field := 16#0#;
-- Power voltage detector level selection
PVME : CR2_PVME_Field := (As_Array => False, Val => 16#0#);
-- Peripheral voltage monitoring 1 enable: VDDUSB vs. 1.2V
Reserved_8_8 : HAL.Bit := 16#0#;
-- unspecified
IOSV : Boolean := False;
-- VDDIO2 Independent I/Os supply valid
USV : Boolean := False;
-- VDDUSB USB supply valid
Reserved_11_31 : HAL.UInt21 := 16#0#;
-- unspecified
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for CR2_Register use record
PVDE at 0 range 0 .. 0;
PLS at 0 range 1 .. 3;
PVME at 0 range 4 .. 7;
Reserved_8_8 at 0 range 8 .. 8;
IOSV at 0 range 9 .. 9;
USV at 0 range 10 .. 10;
Reserved_11_31 at 0 range 11 .. 31;
end record;
-- CR3_EWUP array
type CR3_EWUP_Field_Array is array (1 .. 5) of Boolean
with Component_Size => 1, Size => 5;
-- Type definition for CR3_EWUP
type CR3_EWUP_Field
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
Val : HAL.UInt5;
-- EWUP as a value
when True =>
Arr : CR3_EWUP_Field_Array;
-- EWUP as an array
end case;
end record
with Unchecked_Union, Size => 5;
for CR3_EWUP_Field use record
Val at 0 range 0 .. 4;
Arr at 0 range 0 .. 4;
end record;
subtype CR3_RRS_Field is HAL.UInt2;
-- Power control register 3
type CR3_Register is record
EWUP : CR3_EWUP_Field := (As_Array => False, Val => 16#0#);
-- Enable Wakeup pin WKUP1
Reserved_5_7 : HAL.UInt3 := 16#0#;
-- unspecified
RRS : CR3_RRS_Field := 16#0#;
-- SRAM2 retention in Standby mode
APC : Boolean := False;
-- Apply pull-up and pull-down configuration
ENULP : Boolean := False;
-- Enable Ultra Low Power sampling
DSIPDEN : Boolean := False;
-- Enable Pull-down activation on DSI pins
Reserved_13_14 : HAL.UInt2 := 16#0#;
-- unspecified
EIWUL : Boolean := True;
-- Enable internal wakeup line
Reserved_16_31 : HAL.UInt16 := 16#0#;
-- unspecified
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for CR3_Register use record
EWUP at 0 range 0 .. 4;
Reserved_5_7 at 0 range 5 .. 7;
RRS at 0 range 8 .. 9;
APC at 0 range 10 .. 10;
ENULP at 0 range 11 .. 11;
DSIPDEN at 0 range 12 .. 12;
Reserved_13_14 at 0 range 13 .. 14;
EIWUL at 0 range 15 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
-- CR4_WP array
type CR4_WP_Field_Array is array (1 .. 5) of Boolean
with Component_Size => 1, Size => 5;
-- Type definition for CR4_WP
type CR4_WP_Field
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
Val : HAL.UInt5;
-- WP as a value
when True =>
Arr : CR4_WP_Field_Array;
-- WP as an array
end case;
end record
with Unchecked_Union, Size => 5;
for CR4_WP_Field use record
Val at 0 range 0 .. 4;
Arr at 0 range 0 .. 4;
end record;
-- Power control register 4
type CR4_Register is record
WP : CR4_WP_Field := (As_Array => False, Val => 16#0#);
-- Wakeup pin WKUP1 polarity
Reserved_5_7 : HAL.UInt3 := 16#0#;
-- unspecified
VBE : Boolean := False;
-- VBAT battery charging enable
VBRS : Boolean := False;
-- VBAT battery charging resistor selection
Reserved_10_12 : HAL.UInt3 := 16#0#;
-- unspecified
EXT_SMPS_ON : Boolean := False;
-- External SMPS on
Reserved_14_31 : HAL.UInt18 := 16#0#;
-- unspecified
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for CR4_Register use record
WP at 0 range 0 .. 4;
Reserved_5_7 at 0 range 5 .. 7;
VBE at 0 range 8 .. 8;
VBRS at 0 range 9 .. 9;
Reserved_10_12 at 0 range 10 .. 12;
EXT_SMPS_ON at 0 range 13 .. 13;
Reserved_14_31 at 0 range 14 .. 31;
end record;
-- SR1_WUF array
type SR1_WUF_Field_Array is array (1 .. 5) of Boolean
with Component_Size => 1, Size => 5;
-- Type definition for SR1_WUF
type SR1_WUF_Field
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
Val : HAL.UInt5;
-- WUF as a value
when True =>
Arr : SR1_WUF_Field_Array;
-- WUF as an array
end case;
end record
with Unchecked_Union, Size => 5;
for SR1_WUF_Field use record
Val at 0 range 0 .. 4;
Arr at 0 range 0 .. 4;
end record;
-- Power status register 1
type SR1_Register is record
WUF : SR1_WUF_Field;
-- Read-only. Wakeup flag 1
Reserved_5_7 : HAL.UInt3;
-- unspecified
SBF : Boolean;
-- Read-only. Standby flag
Reserved_9_12 : HAL.UInt4;
-- unspecified
EXT_SMPS_RDY : Boolean;
-- Read-only. External SMPS ready
Reserved_14_14 : HAL.Bit;
-- unspecified
WUFI : Boolean;
-- Read-only. Wakeup flag internal
Reserved_16_31 : HAL.UInt16;
-- unspecified
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for SR1_Register use record
WUF at 0 range 0 .. 4;
Reserved_5_7 at 0 range 5 .. 7;
SBF at 0 range 8 .. 8;
Reserved_9_12 at 0 range 9 .. 12;
EXT_SMPS_RDY at 0 range 13 .. 13;
Reserved_14_14 at 0 range 14 .. 14;
WUFI at 0 range 15 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
-- SR2_PVMO array
type SR2_PVMO_Field_Array is array (1 .. 4) of Boolean
with Component_Size => 1, Size => 4;
-- Type definition for SR2_PVMO
type SR2_PVMO_Field
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
Val : HAL.UInt4;
-- PVMO as a value
when True =>
Arr : SR2_PVMO_Field_Array;
-- PVMO as an array
end case;
end record
with Unchecked_Union, Size => 4;
for SR2_PVMO_Field use record
Val at 0 range 0 .. 3;
Arr at 0 range 0 .. 3;
end record;
-- Power status register 2
type SR2_Register is record
Reserved_0_7 : HAL.UInt8;
-- unspecified
REGLPS : Boolean;
-- Read-only. Low-power regulator started
REGLPF : Boolean;
-- Read-only. Low-power regulator flag
VOSF : Boolean;
-- Read-only. Voltage scaling flag
PVDO : Boolean;
-- Read-only. Power voltage detector output
PVMO : SR2_PVMO_Field;
-- Read-only. Peripheral voltage monitoring output: VDDUSB vs. 1.2 V
Reserved_16_31 : HAL.UInt16;
-- unspecified
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for SR2_Register use record
Reserved_0_7 at 0 range 0 .. 7;
REGLPS at 0 range 8 .. 8;
REGLPF at 0 range 9 .. 9;
VOSF at 0 range 10 .. 10;
PVDO at 0 range 11 .. 11;
PVMO at 0 range 12 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
-- SCR_CWUF array
type SCR_CWUF_Field_Array is array (1 .. 5) of Boolean
with Component_Size => 1, Size => 5;
-- Type definition for SCR_CWUF
type SCR_CWUF_Field
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
Val : HAL.UInt5;
-- CWUF as a value
when True =>
Arr : SCR_CWUF_Field_Array;
-- CWUF as an array
end case;
end record
with Unchecked_Union, Size => 5;
for SCR_CWUF_Field use record
Val at 0 range 0 .. 4;
Arr at 0 range 0 .. 4;
end record;
-- Power status clear register
type SCR_Register is record
CWUF : SCR_CWUF_Field := (As_Array => False, Val => 16#0#);
-- Write-only. Clear wakeup flag 1
Reserved_5_7 : HAL.UInt3 := 16#0#;
-- unspecified
CSBF : Boolean := False;
-- Write-only. Clear standby flag
Reserved_9_31 : HAL.UInt23 := 16#0#;
-- unspecified
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for SCR_Register use record
CWUF at 0 range 0 .. 4;
Reserved_5_7 at 0 range 5 .. 7;
CSBF at 0 range 8 .. 8;
Reserved_9_31 at 0 range 9 .. 31;
end record;
-- PUCRA_PU array
type PUCRA_PU_Field_Array is array (0 .. 13) of Boolean
with Component_Size => 1, Size => 14;
-- Type definition for PUCRA_PU
type PUCRA_PU_Field
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
Val : HAL.UInt14;
-- PU as a value
when True =>
Arr : PUCRA_PU_Field_Array;
-- PU as an array
end case;
end record
with Unchecked_Union, Size => 14;
for PUCRA_PU_Field use record
Val at 0 range 0 .. 13;
Arr at 0 range 0 .. 13;
end record;
-- Power Port A pull-up control register
type PUCRA_Register is record
PU : PUCRA_PU_Field := (As_Array => False, Val => 16#0#);
-- Port A pull-up bit y (y=0..13)
Reserved_14_14 : HAL.Bit := 16#0#;
-- unspecified
PU15 : Boolean := False;
-- Port A pull-up bit 15
Reserved_16_31 : HAL.UInt16 := 16#0#;
-- unspecified
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for PUCRA_Register use record
PU at 0 range 0 .. 13;
Reserved_14_14 at 0 range 14 .. 14;
PU15 at 0 range 15 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
-- PDCRA_PD array
type PDCRA_PD_Field_Array is array (0 .. 12) of Boolean
with Component_Size => 1, Size => 13;
-- Type definition for PDCRA_PD
type PDCRA_PD_Field
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
Val : HAL.UInt13;
-- PD as a value
when True =>
Arr : PDCRA_PD_Field_Array;
-- PD as an array
end case;
end record
with Unchecked_Union, Size => 13;
for PDCRA_PD_Field use record
Val at 0 range 0 .. 12;
Arr at 0 range 0 .. 12;
end record;
-- Power Port A pull-down control register
type PDCRA_Register is record
PD : PDCRA_PD_Field := (As_Array => False, Val => 16#0#);
-- Port A pull-down bit y (y=0..12)
Reserved_13_13 : HAL.Bit := 16#0#;
-- unspecified
PD14 : Boolean := False;
-- Port A pull-down bit 14
Reserved_15_31 : HAL.UInt17 := 16#0#;
-- unspecified
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for PDCRA_Register use record
PD at 0 range 0 .. 12;
Reserved_13_13 at 0 range 13 .. 13;
PD14 at 0 range 14 .. 14;
Reserved_15_31 at 0 range 15 .. 31;
end record;
-- PUCRB_PU array
type PUCRB_PU_Field_Array is array (0 .. 15) of Boolean
with Component_Size => 1, Size => 16;
-- Type definition for PUCRB_PU
type PUCRB_PU_Field
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
Val : HAL.UInt16;
-- PU as a value
when True =>
Arr : PUCRB_PU_Field_Array;
-- PU as an array
end case;
end record
with Unchecked_Union, Size => 16;
for PUCRB_PU_Field use record
Val at 0 range 0 .. 15;
Arr at 0 range 0 .. 15;
end record;
-- Power Port B pull-up control register
type PUCRB_Register is record
PU : PUCRB_PU_Field := (As_Array => False, Val => 16#0#);
-- Port B pull-up bit y (y=0..15)
Reserved_16_31 : HAL.UInt16 := 16#0#;
-- unspecified
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for PUCRB_Register use record
PU at 0 range 0 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
-- PDCRB_PD array
type PDCRB_PD_Field_Array is array (0 .. 3) of Boolean
with Component_Size => 1, Size => 4;
-- Type definition for PDCRB_PD
type PDCRB_PD_Field
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
Val : HAL.UInt4;
-- PD as a value
when True =>
Arr : PDCRB_PD_Field_Array;
-- PD as an array
end case;
end record
with Unchecked_Union, Size => 4;
for PDCRB_PD_Field use record
Val at 0 range 0 .. 3;
Arr at 0 range 0 .. 3;
end record;
-- PDCRB_PD array
type PDCRB_PD_Field_Array_1 is array (5 .. 15) of Boolean
with Component_Size => 1, Size => 11;
-- Type definition for PDCRB_PD
type PDCRB_PD_Field_1
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
Val : HAL.UInt11;
-- PD as a value
when True =>
Arr : PDCRB_PD_Field_Array_1;
-- PD as an array
end case;
end record
with Unchecked_Union, Size => 11;
for PDCRB_PD_Field_1 use record
Val at 0 range 0 .. 10;
Arr at 0 range 0 .. 10;
end record;
-- Power Port B pull-down control register
type PDCRB_Register is record
PD : PDCRB_PD_Field := (As_Array => False, Val => 16#0#);
-- Port B pull-down bit y (y=0..15)
Reserved_4_4 : HAL.Bit := 16#0#;
-- unspecified
PD_1 : PDCRB_PD_Field_1 := (As_Array => False, Val => 16#0#);
-- Port B pull-down bit y (y=0..15)
Reserved_16_31 : HAL.UInt16 := 16#0#;
-- unspecified
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for PDCRB_Register use record
PD at 0 range 0 .. 3;
Reserved_4_4 at 0 range 4 .. 4;
PD_1 at 0 range 5 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
-- PUCRC_PU array
type PUCRC_PU_Field_Array is array (0 .. 15) of Boolean
with Component_Size => 1, Size => 16;
-- Type definition for PUCRC_PU
type PUCRC_PU_Field
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
Val : HAL.UInt16;
-- PU as a value
when True =>
Arr : PUCRC_PU_Field_Array;
-- PU as an array
end case;
end record
with Unchecked_Union, Size => 16;
for PUCRC_PU_Field use record
Val at 0 range 0 .. 15;
Arr at 0 range 0 .. 15;
end record;
-- Power Port C pull-up control register
type PUCRC_Register is record
PU : PUCRC_PU_Field := (As_Array => False, Val => 16#0#);
-- Port C pull-up bit y (y=0..15)
Reserved_16_31 : HAL.UInt16 := 16#0#;
-- unspecified
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for PUCRC_Register use record
PU at 0 range 0 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
-- PDCRC_PD array
type PDCRC_PD_Field_Array is array (0 .. 15) of Boolean
with Component_Size => 1, Size => 16;
-- Type definition for PDCRC_PD
type PDCRC_PD_Field
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
Val : HAL.UInt16;
-- PD as a value
when True =>
Arr : PDCRC_PD_Field_Array;
-- PD as an array
end case;
end record
with Unchecked_Union, Size => 16;
for PDCRC_PD_Field use record
Val at 0 range 0 .. 15;
Arr at 0 range 0 .. 15;
end record;
-- Power Port C pull-down control register
type PDCRC_Register is record
PD : PDCRC_PD_Field := (As_Array => False, Val => 16#0#);
-- Port C pull-down bit y (y=0..15)
Reserved_16_31 : HAL.UInt16 := 16#0#;
-- unspecified
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for PDCRC_Register use record
PD at 0 range 0 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
-- PUCRD_PU array
type PUCRD_PU_Field_Array is array (0 .. 15) of Boolean
with Component_Size => 1, Size => 16;
-- Type definition for PUCRD_PU
type PUCRD_PU_Field
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
Val : HAL.UInt16;
-- PU as a value
when True =>
Arr : PUCRD_PU_Field_Array;
-- PU as an array
end case;
end record
with Unchecked_Union, Size => 16;
for PUCRD_PU_Field use record
Val at 0 range 0 .. 15;
Arr at 0 range 0 .. 15;
end record;
-- Power Port D pull-up control register
type PUCRD_Register is record
PU : PUCRD_PU_Field := (As_Array => False, Val => 16#0#);
-- Port D pull-up bit y (y=0..15)
Reserved_16_31 : HAL.UInt16 := 16#0#;
-- unspecified
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for PUCRD_Register use record
PU at 0 range 0 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
-- PDCRD_PD array
type PDCRD_PD_Field_Array is array (0 .. 15) of Boolean
with Component_Size => 1, Size => 16;
-- Type definition for PDCRD_PD
type PDCRD_PD_Field
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
Val : HAL.UInt16;
-- PD as a value
when True =>
Arr : PDCRD_PD_Field_Array;
-- PD as an array
end case;
end record
with Unchecked_Union, Size => 16;
for PDCRD_PD_Field use record
Val at 0 range 0 .. 15;
Arr at 0 range 0 .. 15;
end record;
-- Power Port D pull-down control register
type PDCRD_Register is record
PD : PDCRD_PD_Field := (As_Array => False, Val => 16#0#);
-- Port D pull-down bit y (y=0..15)
Reserved_16_31 : HAL.UInt16 := 16#0#;
-- unspecified
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for PDCRD_Register use record
PD at 0 range 0 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
-- PUCRE_PU array
type PUCRE_PU_Field_Array is array (0 .. 15) of Boolean
with Component_Size => 1, Size => 16;
-- Type definition for PUCRE_PU
type PUCRE_PU_Field
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
Val : HAL.UInt16;
-- PU as a value
when True =>
Arr : PUCRE_PU_Field_Array;
-- PU as an array
end case;
end record
with Unchecked_Union, Size => 16;
for PUCRE_PU_Field use record
Val at 0 range 0 .. 15;
Arr at 0 range 0 .. 15;
end record;
-- Power Port E pull-up control register
type PUCRE_Register is record
PU : PUCRE_PU_Field := (As_Array => False, Val => 16#0#);
-- Port E pull-up bit y (y=0..15)
Reserved_16_31 : HAL.UInt16 := 16#0#;
-- unspecified
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for PUCRE_Register use record
PU at 0 range 0 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
-- PDCRE_PD array
type PDCRE_PD_Field_Array is array (0 .. 15) of Boolean
with Component_Size => 1, Size => 16;
-- Type definition for PDCRE_PD
type PDCRE_PD_Field
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
Val : HAL.UInt16;
-- PD as a value
when True =>
Arr : PDCRE_PD_Field_Array;
-- PD as an array
end case;
end record
with Unchecked_Union, Size => 16;
for PDCRE_PD_Field use record
Val at 0 range 0 .. 15;
Arr at 0 range 0 .. 15;
end record;
-- Power Port E pull-down control register
type PDCRE_Register is record
PD : PDCRE_PD_Field := (As_Array => False, Val => 16#0#);
-- Port E pull-down bit y (y=0..15)
Reserved_16_31 : HAL.UInt16 := 16#0#;
-- unspecified
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for PDCRE_Register use record
PD at 0 range 0 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
-- PUCRF_PU array
type PUCRF_PU_Field_Array is array (0 .. 15) of Boolean
with Component_Size => 1, Size => 16;
-- Type definition for PUCRF_PU
type PUCRF_PU_Field
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
Val : HAL.UInt16;
-- PU as a value
when True =>
Arr : PUCRF_PU_Field_Array;
-- PU as an array
end case;
end record
with Unchecked_Union, Size => 16;
for PUCRF_PU_Field use record
Val at 0 range 0 .. 15;
Arr at 0 range 0 .. 15;
end record;
-- Power Port F pull-up control register
type PUCRF_Register is record
PU : PUCRF_PU_Field := (As_Array => False, Val => 16#0#);
-- Port F pull-up bit y (y=0..15)
Reserved_16_31 : HAL.UInt16 := 16#0#;
-- unspecified
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for PUCRF_Register use record
PU at 0 range 0 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
-- PDCRF_PD array
type PDCRF_PD_Field_Array is array (0 .. 15) of Boolean
with Component_Size => 1, Size => 16;
-- Type definition for PDCRF_PD
type PDCRF_PD_Field
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
Val : HAL.UInt16;
-- PD as a value
when True =>
Arr : PDCRF_PD_Field_Array;
-- PD as an array
end case;
end record
with Unchecked_Union, Size => 16;
for PDCRF_PD_Field use record
Val at 0 range 0 .. 15;
Arr at 0 range 0 .. 15;
end record;
-- Power Port F pull-down control register
type PDCRF_Register is record
PD : PDCRF_PD_Field := (As_Array => False, Val => 16#0#);
-- Port F pull-down bit y (y=0..15)
Reserved_16_31 : HAL.UInt16 := 16#0#;
-- unspecified
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for PDCRF_Register use record
PD at 0 range 0 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
-- PUCRG_PU array
type PUCRG_PU_Field_Array is array (0 .. 15) of Boolean
with Component_Size => 1, Size => 16;
-- Type definition for PUCRG_PU
type PUCRG_PU_Field
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
Val : HAL.UInt16;
-- PU as a value
when True =>
Arr : PUCRG_PU_Field_Array;
-- PU as an array
end case;
end record
with Unchecked_Union, Size => 16;
for PUCRG_PU_Field use record
Val at 0 range 0 .. 15;
Arr at 0 range 0 .. 15;
end record;
-- Power Port G pull-up control register
type PUCRG_Register is record
PU : PUCRG_PU_Field := (As_Array => False, Val => 16#0#);
-- Port G pull-up bit y (y=0..15)
Reserved_16_31 : HAL.UInt16 := 16#0#;
-- unspecified
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for PUCRG_Register use record
PU at 0 range 0 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
-- PDCRG_PD array
type PDCRG_PD_Field_Array is array (0 .. 15) of Boolean
with Component_Size => 1, Size => 16;
-- Type definition for PDCRG_PD
type PDCRG_PD_Field
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
Val : HAL.UInt16;
-- PD as a value
when True =>
Arr : PDCRG_PD_Field_Array;
-- PD as an array
end case;
end record
with Unchecked_Union, Size => 16;
for PDCRG_PD_Field use record
Val at 0 range 0 .. 15;
Arr at 0 range 0 .. 15;
end record;
-- Power Port G pull-down control register
type PDCRG_Register is record
PD : PDCRG_PD_Field := (As_Array => False, Val => 16#0#);
-- Port G pull-down bit y (y=0..15)
Reserved_16_31 : HAL.UInt16 := 16#0#;
-- unspecified
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
for PDCRG_Register use record
PD at 0 range 0 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
-- PUCRH_PU array
type PUCRH_PU_Field_Array is array (0 .. 15) of Boolean
with Component_Size => 1, Size => 16;
-- Type definition for PUCRH_PU
type PUCRH_PU_Field
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
Val : HAL.UInt16;
-- PU as a value
when True =>
Arr : PUCRH_PU_Field_Array;
-- PU as an array
end case;
end record
with Unchecked_Union, Size => 16;
for PUCRH_PU_Field use record
Val at 0 range 0 .. 15;
Arr at 0 range 0 .. 15;
end record;
-- Power Port H pull-up control register
type PUCRH_Register is record
PU : PUCRH_PU_Field := (As_Array => False, Val => 16#0#);
-- Port H pull-up bit y (y=0..15)
Reserved_16_31 : HAL.UInt16 := 16#0#;