-
-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathglcdc.hpp
1526 lines (1341 loc) · 55.2 KB
/
glcdc.hpp
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 once
//=============================================================================//
/*! @file
@brief Graphic LCD Controller / グラフィック LCD コントローラ
@author 平松邦仁 (hira@rvf-rc45.net)
@copyright Copyright (C) 2018, 2024 Kunihito Hiramatsu @n
Released under the MIT license @n
https://github.com/hirakuni45/RX/blob/master/LICENSE
*/
//=============================================================================//
#include "common/device.hpp"
namespace device {
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
/*!
@brief GLCDC class
@param[in] base ベース・アドレス
@param[in] per ペリフェラル型
*/
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
template <uint32_t base, peripheral per>
struct glcdc_t {
static constexpr auto PERIPHERAL = per; ///< ペリフェラル型
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
/*!
@brief CLUT カラー構造体
*/
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
struct clut_t {
uint8_t B; ///< B0-B7
uint8_t G; ///< B8-B15
uint8_t R; ///< B16-B23
uint8_t A; ///< B24-B31
clut_t(uint8_t r = 0, uint8_t g = 0, uint8_t b = 0, uint8_t a = 255) :
B(b), G(g), R(r), A(a) { }
};
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
/*!
@brief カラールックアップテーブル (GRnCLUTm[k]) (n = 1, 2、m = 0, 1、k = 0 ~ 255)
@param[in] ofs オフセット
*/
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
template <uint32_t ofs>
struct grclut_t : public rw32_index_t<ofs> {
typedef rw32_index_t<ofs> io_;
using io_::operator =;
using io_::operator ();
using io_::operator |=;
using io_::operator &=;
void set_index(uint32_t j) {
if(j < 256) {
io_::index = j * 4;
}
}
bits_rw_t<io_, bitpos::B0, 8> B;
bits_rw_t<io_, bitpos::B8, 8> G;
bits_rw_t<io_, bitpos::B16, 8> R;
bits_rw_t<io_, bitpos::B24, 8> A;
grclut_t& operator[] (uint32_t idx) {
set_index(idx);
return *this;
}
};
typedef grclut_t<base + 0x0000> GR1CLUT0_;
static GR1CLUT0_ GR1CLUT0;
typedef grclut_t<base + 0x0400> GR1CLUT1_;
static GR1CLUT1_ GR1CLUT1;
typedef grclut_t<base + 0x0800> GR2CLUT0_;
static GR2CLUT0_ GR2CLUT0;
typedef grclut_t<base + 0x0C00> GR2CLUT1_;
static GR2CLUT1_ GR2CLUT1;
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
/*!
@brief バックグラウンド画面生成部動作制御レジスタ (BGEN)
@param[in] ofs オフセット
*/
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
template <uint32_t ofs>
struct bgen_t : public rw32_t<ofs> {
typedef rw32_t<ofs> io_;
using io_::operator =;
using io_::operator ();
using io_::operator |=;
using io_::operator &=;
bit_rw_t<io_, bitpos::B16> SWRST;
bit_rw_t<io_, bitpos::B8> VEN;
bit_rw_t<io_, bitpos::B0> EN;
};
typedef bgen_t<base + 0x1000> BGEN_;
static BGEN_ BGEN;
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
/*!
@brief 自走周期レジスタ (BGPERI)
@param[in] ofs オフセット
*/
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
template <uint32_t ofs>
struct bgperi_t : public rw32_t<ofs> {
typedef rw32_t<ofs> io_;
using io_::operator =;
using io_::operator ();
using io_::operator |=;
using io_::operator &=;
bits_rw_t<io_, bitpos::B16, 11> FV;
bits_rw_t<io_, bitpos::B0, 11> FH;
};
typedef bgperi_t<base + 0x1004> BGPERI_;
static BGPERI_ BGPERI;
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
/*!
@brief 同期位置レジスタ (BGSYNC)
@param[in] ofs オフセット
*/
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
template <uint32_t ofs>
struct bgsync_t : public rw32_t<ofs> {
typedef rw32_t<ofs> io_;
using io_::operator =;
using io_::operator ();
using io_::operator |=;
using io_::operator &=;
bits_rw_t<io_, bitpos::B16, 4> VP;
bits_rw_t<io_, bitpos::B0, 4> HP;
};
typedef bgsync_t<base + 0x1008> BGSYNC_;
static BGSYNC_ BGSYNC;
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
/*!
@brief 垂直サイズレジスタ (BGVSIZE)
@param[in] ofs オフセット
*/
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
template <uint32_t ofs>
struct bgvsize_t : public rw32_t<ofs> {
typedef rw32_t<ofs> io_;
using io_::operator =;
using io_::operator ();
using io_::operator |=;
using io_::operator &=;
bits_rw_t<io_, bitpos::B16, 11> VP;
bits_rw_t<io_, bitpos::B0, 11> VW;
};
typedef bgvsize_t<base + 0x100C> BGVSIZE_;
static BGVSIZE_ BGVSIZE;
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
/*!
@brief 水平サイズレジスタ (BGHSIZE)
@param[in] ofs オフセット
*/
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
template <uint32_t ofs>
struct bghsize_t : public rw32_t<ofs> {
typedef rw32_t<ofs> io_;
using io_::operator =;
using io_::operator ();
using io_::operator |=;
using io_::operator &=;
bits_rw_t<io_, bitpos::B16, 11> HP;
bits_rw_t<io_, bitpos::B0, 11> HW;
};
typedef bghsize_t<base + 0x1010> BGHSIZE_;
static BGHSIZE_ BGHSIZE;
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
/*!
@brief 背景色レジスタ (BGCOLOR)
@param[in] ofs オフセット
*/
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
template <uint32_t ofs>
struct bgcolor_t : public rw32_t<ofs> {
typedef rw32_t<ofs> io_;
using io_::operator =;
using io_::operator ();
using io_::operator |=;
using io_::operator &=;
bits_rw_t<io_, bitpos::B16, 8> R;
bits_rw_t<io_, bitpos::B8, 8> G;
bits_rw_t<io_, bitpos::B0, 8> B;
};
typedef bgcolor_t<base + 0x1014> BGCOLOR_;
static BGCOLOR_ BGCOLOR;
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
/*!
@brief バックグラウンド画面生成部ステータスモニタレジスタ (BGMON)
@param[in] ofs オフセット
*/
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
template <uint32_t ofs>
struct bgmon_t : public rw32_t<ofs> {
typedef rw32_t<ofs> io_;
using io_::operator =;
using io_::operator ();
using io_::operator |=;
using io_::operator &=;
bit_rw_t<io_, bitpos::B16> SWRST;
bit_rw_t<io_, bitpos::B8> VEN;
bit_rw_t<io_, bitpos::B0> EN;
};
typedef bgmon_t<base + 0x1018> BGMON_;
static BGMON_ BGMON;
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
/*!
@brief グラフィック n レジスタ更新制御レジスタ (GRnVEN) (n=1, 2)
@param[in] ofs オフセット
*/
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
template <uint32_t ofs>
struct grnven_t : public rw32_t<ofs> {
typedef rw32_t<ofs> io_;
using io_::operator =;
using io_::operator ();
using io_::operator |=;
using io_::operator &=;
bit_rw_t<io_, bitpos::B0> VEN;
};
typedef grnven_t<base + 0x1100> GR1VEN_;
static GR1VEN_ GR1VEN;
typedef grnven_t<base + 0x1200> GR2VEN_;
static GR2VEN_ GR2VEN;
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
/*!
@brief グラフィック n フレームバッファ読み出し制御レジスタ (GRnFLMRD) (n=1, 2)
@param[in] ofs オフセット
*/
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
template <uint32_t ofs>
struct grnflmrd_t : public rw32_t<ofs> {
typedef rw32_t<ofs> io_;
using io_::operator =;
using io_::operator ();
using io_::operator |=;
using io_::operator &=;
bit_rw_t<io_, bitpos::B0> RENB;
};
typedef grnflmrd_t<base + 0x1104> GR1FLMRD_;
static GR1FLMRD_ GR1FLMRD;
typedef grnflmrd_t<base + 0x1204> GR2FLMRD_;
static GR2FLMRD_ GR2FLMRD;
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
/*!
@brief グラフィック n フレームバッファ制御レジスタ 2 (GRnFLM2) (n=1, 2) @n
※下位6ビットは「0」にする事
*/
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
typedef rw32_t<base + 0x110C> GR1FLM2_;
static GR1FLM2_ GR1FLM2;
typedef rw32_t<base + 0x120C> GR2FLM2_;
static GR2FLM2_ GR2FLM2;
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
/*!
@brief グラフィック n フレームバッファ制御レジスタ 3 (GRnFLM3) (n=1, 2)
@param[in] ofs オフセット
*/
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
template <uint32_t ofs>
struct grnflm3_t : public rw32_t<ofs> {
typedef rw32_t<ofs> io_;
using io_::operator =;
using io_::operator ();
using io_::operator |=;
using io_::operator &=;
bits_rw_t<io_, bitpos::B16, 16> LNOFF;
};
typedef grnflm3_t<base + 0x1110> GR1FLM3_;
static GR1FLM3_ GR1FLM3;
typedef grnflm3_t<base + 0x1210> GR2FLM3_;
static GR2FLM3_ GR2FLM3;
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
/*!
@brief グラフィック n フレームバッファ制御レジスタ 5 (GRnFLM5) (n=1, 2)
@param[in] ofs オフセット
*/
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
template <uint32_t ofs>
struct grnflm5_t : public rw32_t<ofs> {
typedef rw32_t<ofs> io_;
using io_::operator =;
using io_::operator ();
using io_::operator |=;
using io_::operator &=;
bits_rw_t<io_, bitpos::B16, 11> LNNUM;
bits_rw_t<io_, bitpos::B0, 16> DATANUM;
};
typedef grnflm5_t<base + 0x1118> GR1FLM5_;
static GR1FLM5_ GR1FLM5;
typedef grnflm5_t<base + 0x1218> GR2FLM5_;
static GR2FLM5_ GR2FLM5;
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
/*!
@brief グラフィック n フレームバッファ制御レジスタ 6 (GRnFLM6) (n=1, 2)
@param[in] ofs オフセット
*/
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
template <uint32_t ofs>
struct grnflm6_t : public rw32_t<ofs> {
typedef rw32_t<ofs> io_;
using io_::operator =;
using io_::operator ();
using io_::operator |=;
using io_::operator &=;
bits_rw_t<io_, bitpos::B28, 3> FORMAT;
};
typedef grnflm6_t<base + 0x111C> GR1FLM6_;
static GR1FLM6_ GR1FLM6;
typedef grnflm6_t<base + 0x121C> GR2FLM6_;
static GR2FLM6_ GR2FLM6;
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
/*!
@brief グラフィック n アルファブレンド制御レジスタ 1 (GRnAB1) (n=1, 2)
@param[in] ofs オフセット
*/
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
template <uint32_t ofs>
struct grnab1_t : public rw32_t<ofs> {
typedef rw32_t<ofs> io_;
using io_::operator =;
using io_::operator ();
using io_::operator |=;
using io_::operator &=;
bit_rw_t<io_, bitpos::B12> ARCON;
bit_rw_t<io_, bitpos::B8> ARCDISPON;
bit_rw_t<io_, bitpos::B4> GRCDISPON;
bits_rw_t<io_, bitpos::B0, 2> DISPSEL;
};
typedef grnab1_t<base + 0x1120> GR1AB1_;
static GR1AB1_ GR1AB1;
typedef grnab1_t<base + 0x1220> GR2AB1_;
static GR2AB1_ GR2AB1;
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
/*!
@brief グラフィック n アルファブレンド制御レジスタ 2 (GRnAB2) (n=1, 2)
@param[in] ofs オフセット
*/
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
template <uint32_t ofs>
struct grnab2_t : public rw32_t<ofs> {
typedef rw32_t<ofs> io_;
using io_::operator =;
using io_::operator ();
using io_::operator |=;
using io_::operator &=;
bits_rw_t<io_, bitpos::B16, 11> GRCVS;
bits_rw_t<io_, bitpos::B0, 11> GRCVW;
};
typedef grnab2_t<base + 0x1124> GR1AB2_;
static GR1AB2_ GR1AB2;
typedef grnab2_t<base + 0x1224> GR2AB2_;
static GR2AB2_ GR2AB2;
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
/*!
@brief グラフィック n アルファブレンド制御レジスタ 3 (GRnAB3) (n=1, 2)
@param[in] ofs オフセット
*/
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
template <uint32_t ofs>
struct grnab3_t : public rw32_t<ofs> {
typedef rw32_t<ofs> io_;
using io_::operator =;
using io_::operator ();
using io_::operator |=;
using io_::operator &=;
bits_rw_t<io_, bitpos::B16, 11> GRCHS;
bits_rw_t<io_, bitpos::B0, 11> GRCHW;
};
typedef grnab3_t<base + 0x1128> GR1AB3_;
static GR1AB3_ GR1AB3;
typedef grnab3_t<base + 0x1228> GR2AB3_;
static GR2AB3_ GR2AB3;
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
/*!
@brief グラフィック n アルファブレンド制御レジスタ 4 (GRnAB4) (n=1, 2)
@param[in] ofs オフセット
*/
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
template <uint32_t ofs>
struct grnab4_t : public rw32_t<ofs> {
typedef rw32_t<ofs> io_;
using io_::operator =;
using io_::operator ();
using io_::operator |=;
using io_::operator &=;
bits_rw_t<io_, bitpos::B16, 11> ARCVS;
bits_rw_t<io_, bitpos::B0, 11> ARCVW;
};
typedef grnab4_t<base + 0x112C> GR1AB4_;
static GR1AB4_ GR1AB4;
typedef grnab4_t<base + 0x122C> GR2AB4_;
static GR2AB4_ GR2AB4;
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
/*!
@brief グラフィック n アルファブレンド制御レジスタ 5 (GRnAB5) (n=1, 2)
@param[in] ofs オフセット
*/
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
template <uint32_t ofs>
struct grnab5_t : public rw32_t<ofs> {
typedef rw32_t<ofs> io_;
using io_::operator =;
using io_::operator ();
using io_::operator |=;
using io_::operator &=;
bits_rw_t<io_, bitpos::B16, 11> ARCHS;
bits_rw_t<io_, bitpos::B0, 11> ARCHW;
};
typedef grnab5_t<base + 0x1130> GR1AB5_;
static GR1AB5_ GR1AB5;
typedef grnab5_t<base + 0x1230> GR2AB5_;
static GR2AB5_ GR2AB5;
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
/*!
@brief グラフィック n アルファブレンド制御レジスタ 6 (GRnAB6) (n=1, 2)
@param[in] ofs オフセット
*/
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
template <uint32_t ofs>
struct grnab6_t : public rw32_t<ofs> {
typedef rw32_t<ofs> io_;
using io_::operator =;
using io_::operator ();
using io_::operator |=;
using io_::operator &=;
bits_rw_t<io_, bitpos::B16, 9> ARCCOEF;
bits_rw_t<io_, bitpos::B0, 8> ARCRATE;
};
typedef grnab6_t<base + 0x1134> GR1AB6_;
static GR1AB6_ GR1AB6;
typedef grnab6_t<base + 0x1234> GR2AB6_;
static GR2AB6_ GR2AB6;
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
/*!
@brief グラフィック n アルファブレンド制御レジスタ 7 (GRnAB7) (n=1, 2)
@param[in] ofs オフセット
*/
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
template <uint32_t ofs>
struct grnab7_t : public rw32_t<ofs> {
typedef rw32_t<ofs> io_;
using io_::operator =;
using io_::operator ();
using io_::operator |=;
using io_::operator &=;
bits_rw_t<io_, bitpos::B16, 8> ARCDEF;
bit_rw_t <io_, bitpos::B0> CKON;
};
typedef grnab7_t<base + 0x1138> GR1AB7_;
static GR1AB7_ GR1AB7;
typedef grnab7_t<base + 0x1238> GR2AB7_;
static GR2AB7_ GR2AB7;
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
/*!
@brief グラフィック n アルファブレンド制御レジスタ 8 (GRnAB8) (n=1, 2)
@param[in] ofs オフセット
*/
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
template <uint32_t ofs>
struct grnab8_t : public rw32_t<ofs> {
typedef rw32_t<ofs> io_;
using io_::operator =;
using io_::operator ();
using io_::operator |=;
using io_::operator &=;
bits_rw_t<io_, bitpos::B16, 8> CKKG;
bits_rw_t<io_, bitpos::B8, 8> CKKB;
bits_rw_t<io_, bitpos::B0, 8> CKKR;
};
typedef grnab8_t<base + 0x113C> GR1AB8_;
static GR1AB8_ GR1AB8;
typedef grnab8_t<base + 0x123C> GR2AB8_;
static GR2AB8_ GR2AB8;
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
/*!
@brief グラフィック n アルファブレンド制御レジスタ 9 (GRnAB9) (n=1, 2)
@param[in] ofs オフセット
*/
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
template <uint32_t ofs>
struct grnab9_t : public rw32_t<ofs> {
typedef rw32_t<ofs> io_;
using io_::operator =;
using io_::operator ();
using io_::operator |=;
using io_::operator &=;
bits_rw_t<io_, bitpos::B24, 8> CKA;
bits_rw_t<io_, bitpos::B16, 8> CKG;
bits_rw_t<io_, bitpos::B8, 8> CKB;
bits_rw_t<io_, bitpos::B0, 8> CKR;
};
typedef grnab9_t<base + 0x1140> GR1AB9_;
static GR1AB9_ GR1AB9;
typedef grnab9_t<base + 0x1240> GR2AB9_;
static GR2AB9_ GR2AB9;
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
/*!
@brief グラフィック n 背景色制御レジスタ (GRnBASE) (n=1, 2)
@param[in] ofs オフセット
*/
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
template <uint32_t ofs>
struct grnbase_t : public rw32_t<ofs> {
typedef rw32_t<ofs> io_;
using io_::operator =;
using io_::operator ();
using io_::operator |=;
using io_::operator &=;
bits_rw_t<io_, bitpos::B16, 8> G;
bits_rw_t<io_, bitpos::B8, 8> B;
bits_rw_t<io_, bitpos::B0, 8> R;
};
typedef grnbase_t<base + 0x114C> GR1BASE_;
static GR1BASE_ GR1BASE;
typedef grnbase_t<base + 0x124C> GR2BASE_;
static GR2BASE_ GR2BASE;
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
/*!
@brief グラフィック n CLUT/ 割り込み制御レジスタ (GRnCLUTINT) (n=1, 2)
@param[in] ofs オフセット
*/
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
template <uint32_t ofs>
struct grnclutint_t : public rw32_t<ofs> {
typedef rw32_t<ofs> io_;
using io_::operator =;
using io_::operator ();
using io_::operator |=;
using io_::operator &=;
bit_rw_t <io_, bitpos::B16> SEL;
bits_rw_t<io_, bitpos::B0, 11> LINE;
};
typedef grnclutint_t<base + 0x1150> GR1CLUTINT_;
static GR1CLUTINT_ GR1CLUTINT;
typedef grnclutint_t<base + 0x1250> GR2CLUTINT_;
static GR2CLUTINT_ GR2CLUTINT;
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
/*!
@brief グラフィック n ステータスモニタレジスタ (GRnMON) (n=1, 2)
@param[in] ofs オフセット
*/
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
template <uint32_t ofs>
struct grnmon_t : public rw32_t<ofs> {
typedef rw32_t<ofs> io_;
using io_::operator =;
using io_::operator ();
using io_::operator |=;
using io_::operator &=;
bit_rw_t<io_, bitpos::B16> UFST;
bit_rw_t<io_, bitpos::B0> ARCST;
};
typedef grnmon_t<base + 0x1154> GR1MON_;
static GR1MON_ GR1MON;
typedef grnmon_t<base + 0x1254> GR2MON_;
static GR2MON_ GR2MON;
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
/*!
@brief ガンマ補正 x 部レジスタ更新制御レジスタ (GAMxVEN) (x = G, B, R)
@param[in] ofs オフセット
*/
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
template <uint32_t ofs>
struct gamxven_t : public rw32_t<ofs> {
typedef rw32_t<ofs> io_;
using io_::operator =;
using io_::operator ();
using io_::operator |=;
using io_::operator &=;
bit_rw_t<io_, bitpos::B0> VEN;
};
typedef gamxven_t<base + 0x1300> GAMGVEN_;
static GAMGVEN_ GAMGVEN;
typedef gamxven_t<base + 0x1340> GAMBVEN_;
static GAMBVEN_ GAMBVEN;
typedef gamxven_t<base + 0x1380> GAMRVEN_;
static GAMRVEN_ GAMRVEN;
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
/*!
@brief ガンマ補正部機能切り替えレジスタ (GAMSW)
@param[in] ofs オフセット
*/
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
template <uint32_t ofs>
struct gamsw_t : public rw32_t<ofs> {
typedef rw32_t<ofs> io_;
using io_::operator =;
using io_::operator ();
using io_::operator |=;
using io_::operator &=;
bit_rw_t<io_, bitpos::B0> GAMON;
};
typedef gamsw_t<base + 0x1304> GAMSW_;
static GAMSW_ GAMSW;
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
/*!
@brief ガンマ補正 x テーブル設定レジスタ 1 (GAMxLUT1) (x = G, B, R)
@param[in] ofs オフセット
*/
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
template <uint32_t ofs>
struct gamxlut1_t : public rw32_t<ofs> {
typedef rw32_t<ofs> io_;
using io_::operator =;
using io_::operator ();
using io_::operator |=;
using io_::operator &=;
bits_rw_t<io_, bitpos::B16, 11> GGAIN00;
bits_rw_t<io_, bitpos::B0, 11> GGAIN01;
};
typedef gamxlut1_t<base + 0x1308> GAMGLUT1_;
static GAMGLUT1_ GAMGLUT1;
typedef gamxlut1_t<base + 0x1348> GAMBLUT1_;
static GAMBLUT1_ GAMBLUT1;
typedef gamxlut1_t<base + 0x1388> GAMRLUT1_;
static GAMRLUT1_ GAMRLUT1;
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
/*!
@brief ガンマ補正 x テーブル設定レジスタ 2 (GAMxLUT2) (x = G, B, R)
@param[in] ofs オフセット
*/
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
template <uint32_t ofs>
struct gamxlut2_t : public rw32_t<ofs> {
typedef rw32_t<ofs> io_;
using io_::operator =;
using io_::operator ();
using io_::operator |=;
using io_::operator &=;
bits_rw_t<io_, bitpos::B16, 11> GGAIN02;
bits_rw_t<io_, bitpos::B0, 11> GGAIN03;
};
typedef gamxlut2_t<base + 0x130C> GAMGLUT2_;
static GAMGLUT2_ GAMGLUT2;
typedef gamxlut2_t<base + 0x134C> GAMBLUT2_;
static GAMBLUT2_ GAMBLUT2;
typedef gamxlut2_t<base + 0x138C> GAMRLUT2_;
static GAMRLUT2_ GAMRLUT2;
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
/*!
@brief ガンマ補正 x テーブル設定レジスタ 3 (GAMxLUT3) (x = G, B, R)
@param[in] ofs オフセット
*/
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
template <uint32_t ofs>
struct gamxlut3_t : public rw32_t<ofs> {
typedef rw32_t<ofs> io_;
using io_::operator =;
using io_::operator ();
using io_::operator |=;
using io_::operator &=;
bits_rw_t<io_, bitpos::B16, 11> GGAIN04;
bits_rw_t<io_, bitpos::B0, 11> GGAIN05;
};
typedef gamxlut3_t<base + 0x1310> GAMGLUT3_;
static GAMGLUT3_ GAMGLUT3;
typedef gamxlut3_t<base + 0x1350> GAMBLUT3_;
static GAMBLUT3_ GAMBLUT3;
typedef gamxlut3_t<base + 0x1390> GAMRLUT3_;
static GAMRLUT3_ GAMRLUT3;
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
/*!
@brief ガンマ補正 x テーブル設定レジスタ 4 (GAMxLUT4) (x = G, B, R)
@param[in] ofs オフセット
*/
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
template <uint32_t ofs>
struct gamxlut4_t : public rw32_t<ofs> {
typedef rw32_t<ofs> io_;
using io_::operator =;
using io_::operator ();
using io_::operator |=;
using io_::operator &=;
bits_rw_t<io_, bitpos::B16, 11> GGAIN06;
bits_rw_t<io_, bitpos::B0, 11> GGAIN07;
};
typedef gamxlut4_t<base + 0x1314> GAMGLUT4_;
static GAMGLUT4_ GAMGLUT4;
typedef gamxlut4_t<base + 0x1354> GAMBLUT4_;
static GAMBLUT4_ GAMBLUT4;
typedef gamxlut4_t<base + 0x1394> GAMRLUT4_;
static GAMRLUT4_ GAMRLUT4;
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
/*!
@brief ガンマ補正 x テーブル設定レジスタ 5 (GAMxLUT5) (x = G, B, R)
@param[in] ofs オフセット
*/
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
template <uint32_t ofs>
struct gamxlut5_t : public rw32_t<ofs> {
typedef rw32_t<ofs> io_;
using io_::operator =;
using io_::operator ();
using io_::operator |=;
using io_::operator &=;
bits_rw_t<io_, bitpos::B16, 11> GGAIN08;
bits_rw_t<io_, bitpos::B0, 11> GGAIN09;
};
typedef gamxlut5_t<base + 0x1318> GAMGLUT5_;
static GAMGLUT5_ GAMGLUT5;
typedef gamxlut5_t<base + 0x1358> GAMBLUT5_;
static GAMBLUT5_ GAMBLUT5;
typedef gamxlut5_t<base + 0x1398> GAMRLUT5_;
static GAMRLUT5_ GAMRLUT5;
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
/*!
@brief ガンマ補正 x テーブル設定レジスタ 6 (GAMxLUT6) (x = G, B, R)
@param[in] ofs オフセット
*/
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
template <uint32_t ofs>
struct gamxlut6_t : public rw32_t<ofs> {
typedef rw32_t<ofs> io_;
using io_::operator =;
using io_::operator ();
using io_::operator |=;
using io_::operator &=;
bits_rw_t<io_, bitpos::B16, 11> GGAIN10;
bits_rw_t<io_, bitpos::B0, 11> GGAIN11;
};
typedef gamxlut6_t<base + 0x131C> GAMGLUT6_;
static GAMGLUT6_ GAMGLUT6;
typedef gamxlut6_t<base + 0x135C> GAMBLUT6_;
static GAMBLUT6_ GAMBLUT6;
typedef gamxlut6_t<base + 0x139C> GAMRLUT6_;
static GAMRLUT6_ GAMRLUT6;
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
/*!
@brief ガンマ補正 x テーブル設定レジスタ 7 (GAMxLUT7) (x = G, B, R)
@param[in] ofs オフセット
*/
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
template <uint32_t ofs>
struct gamxlut7_t : public rw32_t<ofs> {
typedef rw32_t<ofs> io_;
using io_::operator =;
using io_::operator ();
using io_::operator |=;
using io_::operator &=;
bits_rw_t<io_, bitpos::B16, 11> GGAIN12;
bits_rw_t<io_, bitpos::B0, 11> GGAIN13;
};
typedef gamxlut7_t<base + 0x1320> GAMGLUT7_;
static GAMGLUT7_ GAMGLUT7;
typedef gamxlut7_t<base + 0x1360> GAMBLUT7_;
static GAMBLUT7_ GAMBLUT7;
typedef gamxlut7_t<base + 0x13A0> GAMRLUT7_;
static GAMRLUT7_ GAMRLUT7;
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
/*!
@brief ガンマ補正 x テーブル設定レジスタ 8 (GAMxLUT8) (x = G, B, R)
@param[in] ofs オフセット
*/
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
template <uint32_t ofs>
struct gamxlut8_t : public rw32_t<ofs> {
typedef rw32_t<ofs> io_;
using io_::operator =;
using io_::operator ();
using io_::operator |=;
using io_::operator &=;
bits_rw_t<io_, bitpos::B16, 11> GGAIN14;
bits_rw_t<io_, bitpos::B0, 11> GGAIN15;
};
typedef gamxlut8_t<base + 0x1320> GAMGLUT8_;
static GAMGLUT8_ GAMGLUT8;
typedef gamxlut8_t<base + 0x1360> GAMBLUT8_;
static GAMBLUT8_ GAMBLUT8;
typedef gamxlut8_t<base + 0x13A0> GAMRLUT8_;
static GAMRLUT8_ GAMRLUT8;
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
/*!
@brief ガンマ補正 x 領域設定レジスタ 1 (GAMxAREA1) (x = G, B, R)
@param[in] ofs オフセット
*/
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
template <uint32_t ofs>
struct gamxarea1_t : public rw32_t<ofs> {
typedef rw32_t<ofs> io_;
using io_::operator =;
using io_::operator ();
using io_::operator |=;
using io_::operator &=;
bits_rw_t<io_, bitpos::B20, 10> TH01;
bits_rw_t<io_, bitpos::B10, 10> TH02;
bits_rw_t<io_, bitpos::B0, 10> TH03;
};
typedef gamxarea1_t<base + 0x1328> GAMGAREA1_;
static GAMGAREA1_ GAMGAREA1;
typedef gamxarea1_t<base + 0x1368> GAMBAREA1_;
static GAMBAREA1_ GAMBAREA1;
typedef gamxarea1_t<base + 0x13A8> GAMRAREA1_;
static GAMRAREA1_ GAMRAREA1;
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
/*!
@brief ガンマ補正 x 領域設定レジスタ 2 (GAMxAREA2) (x = G, B, R)
@param[in] ofs オフセット
*/
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
template <uint32_t ofs>
struct gamxarea2_t : public rw32_t<ofs> {
typedef rw32_t<ofs> io_;
using io_::operator =;
using io_::operator ();
using io_::operator |=;
using io_::operator &=;
bits_rw_t<io_, bitpos::B20, 10> TH04;
bits_rw_t<io_, bitpos::B10, 10> TH05;
bits_rw_t<io_, bitpos::B0, 10> TH06;
};
typedef gamxarea2_t<base + 0x132C> GAMGAREA2_;
static GAMGAREA2_ GAMGAREA2;
typedef gamxarea2_t<base + 0x136C> GAMBAREA2_;
static GAMBAREA2_ GAMBAREA2;
typedef gamxarea2_t<base + 0x13AC> GAMRAREA2_;
static GAMRAREA2_ GAMRAREA2;
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
/*!
@brief ガンマ補正 x 領域設定レジスタ 3 (GAMxAREA3) (x = G, B, R)
@param[in] ofs オフセット
*/
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
template <uint32_t ofs>
struct gamxarea3_t : public rw32_t<ofs> {
typedef rw32_t<ofs> io_;
using io_::operator =;
using io_::operator ();
using io_::operator |=;
using io_::operator &=;
bits_rw_t<io_, bitpos::B20, 10> TH07;
bits_rw_t<io_, bitpos::B10, 10> TH08;
bits_rw_t<io_, bitpos::B0, 10> TH09;
};
typedef gamxarea3_t<base + 0x1330> GAMGAREA3_;
static GAMGAREA3_ GAMGAREA3;
typedef gamxarea3_t<base + 0x1370> GAMBAREA3_;
static GAMBAREA3_ GAMBAREA3;
typedef gamxarea3_t<base + 0x13B0> GAMRAREA3_;
static GAMRAREA3_ GAMRAREA3;
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
/*!
@brief ガンマ補正 x 領域設定レジスタ 4 (GAMxAREA4) (x = G, B, R)
@param[in] ofs オフセット
*/
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
template <uint32_t ofs>
struct gamxarea4_t : public rw32_t<ofs> {
typedef rw32_t<ofs> io_;
using io_::operator =;
using io_::operator ();
using io_::operator |=;
using io_::operator &=;
bits_rw_t<io_, bitpos::B20, 10> TH10;
bits_rw_t<io_, bitpos::B10, 10> TH11;
bits_rw_t<io_, bitpos::B0, 10> TH12;
};
typedef gamxarea4_t<base + 0x1334> GAMGAREA4_;
static GAMGAREA4_ GAMGAREA4;
typedef gamxarea4_t<base + 0x1374> GAMBAREA4_;
static GAMBAREA4_ GAMBAREA4;
typedef gamxarea4_t<base + 0x13B4> GAMRAREA4_;
static GAMRAREA4_ GAMRAREA4;
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
/*!
@brief ガンマ補正 x 領域設定レジスタ 5 (GAMxAREA5) (x = G, B, R)
@param[in] ofs オフセット
*/
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
template <uint32_t ofs>
struct gamxarea5_t : public rw32_t<ofs> {
typedef rw32_t<ofs> io_;
using io_::operator =;
using io_::operator ();
using io_::operator |=;
using io_::operator &=;