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
#[doc = r"Register block"]
#[repr(C)]
pub struct RegisterBlock {
    _reserved0: [u8; 0x08],
    #[doc = "0x08 - Synchronization Size Configuration Register"]
    pub sscr: crate::Reg<sscr::SSCR_SPEC>,
    #[doc = "0x0c - Back Porch Configuration Register"]
    pub bpcr: crate::Reg<bpcr::BPCR_SPEC>,
    #[doc = "0x10 - Active Width Configuration Register"]
    pub awcr: crate::Reg<awcr::AWCR_SPEC>,
    #[doc = "0x14 - Total Width Configuration Register"]
    pub twcr: crate::Reg<twcr::TWCR_SPEC>,
    #[doc = "0x18 - Global Control Register"]
    pub gcr: crate::Reg<gcr::GCR_SPEC>,
    _reserved5: [u8; 0x08],
    #[doc = "0x24 - Shadow Reload Configuration Register"]
    pub srcr: crate::Reg<srcr::SRCR_SPEC>,
    _reserved6: [u8; 0x04],
    #[doc = "0x2c - Background Color Configuration Register"]
    pub bccr: crate::Reg<bccr::BCCR_SPEC>,
    _reserved7: [u8; 0x04],
    #[doc = "0x34 - Interrupt Enable Register"]
    pub ier: crate::Reg<ier::IER_SPEC>,
    #[doc = "0x38 - Interrupt Status Register"]
    pub isr: crate::Reg<isr::ISR_SPEC>,
    #[doc = "0x3c - Interrupt Clear Register"]
    pub icr: crate::Reg<icr::ICR_SPEC>,
    #[doc = "0x40 - Line Interrupt Position Configuration Register"]
    pub lipcr: crate::Reg<lipcr::LIPCR_SPEC>,
    #[doc = "0x44 - Current Position Status Register"]
    pub cpsr: crate::Reg<cpsr::CPSR_SPEC>,
    #[doc = "0x48 - Current Display Status Register"]
    pub cdsr: crate::Reg<cdsr::CDSR_SPEC>,
    _reserved13: [u8; 0x38],
    #[doc = "0x84..0xc8 - Cluster LAYER%s, containing L?CR, L?WHPCR, L?WVPCR, L?CKCR, L?PFCR, L?CACR, L?DCCR, L?BFCR, L?CFBAR, L?CFBLR, L?CFBLNR, L?CLUTWR"]
    pub layer1: LAYER,
    _reserved14: [u8; 0x3c],
    #[doc = "0x104..0x148 - Cluster LAYER%s, containing L?CR, L?WHPCR, L?WVPCR, L?CKCR, L?PFCR, L?CACR, L?DCCR, L?BFCR, L?CFBAR, L?CFBLR, L?CFBLNR, L?CLUTWR"]
    pub layer2: LAYER,
}
#[doc = r"Register block"]
#[repr(C)]
pub struct LAYER {
    #[doc = "0x00 - Layerx Control Register"]
    pub cr: crate::Reg<self::layer::cr::CR_SPEC>,
    #[doc = "0x04 - Layerx Window Horizontal Position Configuration Register"]
    pub whpcr: crate::Reg<self::layer::whpcr::WHPCR_SPEC>,
    #[doc = "0x08 - Layerx Window Vertical Position Configuration Register"]
    pub wvpcr: crate::Reg<self::layer::wvpcr::WVPCR_SPEC>,
    #[doc = "0x0c - Layerx Color Keying Configuration Register"]
    pub ckcr: crate::Reg<self::layer::ckcr::CKCR_SPEC>,
    #[doc = "0x10 - Layerx Pixel Format Configuration Register"]
    pub pfcr: crate::Reg<self::layer::pfcr::PFCR_SPEC>,
    #[doc = "0x14 - Layerx Constant Alpha Configuration Register"]
    pub cacr: crate::Reg<self::layer::cacr::CACR_SPEC>,
    #[doc = "0x18 - Layerx Default Color Configuration Register"]
    pub dccr: crate::Reg<self::layer::dccr::DCCR_SPEC>,
    #[doc = "0x1c - Layerx Blending Factors Configuration Register"]
    pub bfcr: crate::Reg<self::layer::bfcr::BFCR_SPEC>,
    _reserved8: [u8; 0x08],
    #[doc = "0x28 - Layerx Color Frame Buffer Address Register"]
    pub cfbar: crate::Reg<self::layer::cfbar::CFBAR_SPEC>,
    #[doc = "0x2c - Layerx Color Frame Buffer Length Register"]
    pub cfblr: crate::Reg<self::layer::cfblr::CFBLR_SPEC>,
    #[doc = "0x30 - Layerx ColorFrame Buffer Line Number Register"]
    pub cfblnr: crate::Reg<self::layer::cfblnr::CFBLNR_SPEC>,
    _reserved11: [u8; 0x0c],
    #[doc = "0x40 - Layerx CLUT Write Register"]
    pub clutwr: crate::Reg<self::layer::clutwr::CLUTWR_SPEC>,
}
#[doc = r"Register block"]
#[doc = "Cluster LAYER%s, containing L?CR, L?WHPCR, L?WVPCR, L?CKCR, L?PFCR, L?CACR, L?DCCR, L?BFCR, L?CFBAR, L?CFBLR, L?CFBLNR, L?CLUTWR"]
pub mod layer;
#[doc = "SSCR register accessor: an alias for `Reg<SSCR_SPEC>`"]
pub type SSCR = crate::Reg<sscr::SSCR_SPEC>;
#[doc = "Synchronization Size Configuration Register"]
pub mod sscr;
#[doc = "BPCR register accessor: an alias for `Reg<BPCR_SPEC>`"]
pub type BPCR = crate::Reg<bpcr::BPCR_SPEC>;
#[doc = "Back Porch Configuration Register"]
pub mod bpcr;
#[doc = "AWCR register accessor: an alias for `Reg<AWCR_SPEC>`"]
pub type AWCR = crate::Reg<awcr::AWCR_SPEC>;
#[doc = "Active Width Configuration Register"]
pub mod awcr;
#[doc = "TWCR register accessor: an alias for `Reg<TWCR_SPEC>`"]
pub type TWCR = crate::Reg<twcr::TWCR_SPEC>;
#[doc = "Total Width Configuration Register"]
pub mod twcr;
#[doc = "GCR register accessor: an alias for `Reg<GCR_SPEC>`"]
pub type GCR = crate::Reg<gcr::GCR_SPEC>;
#[doc = "Global Control Register"]
pub mod gcr;
#[doc = "SRCR register accessor: an alias for `Reg<SRCR_SPEC>`"]
pub type SRCR = crate::Reg<srcr::SRCR_SPEC>;
#[doc = "Shadow Reload Configuration Register"]
pub mod srcr;
#[doc = "BCCR register accessor: an alias for `Reg<BCCR_SPEC>`"]
pub type BCCR = crate::Reg<bccr::BCCR_SPEC>;
#[doc = "Background Color Configuration Register"]
pub mod bccr;
#[doc = "IER register accessor: an alias for `Reg<IER_SPEC>`"]
pub type IER = crate::Reg<ier::IER_SPEC>;
#[doc = "Interrupt Enable Register"]
pub mod ier;
#[doc = "ISR register accessor: an alias for `Reg<ISR_SPEC>`"]
pub type ISR = crate::Reg<isr::ISR_SPEC>;
#[doc = "Interrupt Status Register"]
pub mod isr;
#[doc = "ICR register accessor: an alias for `Reg<ICR_SPEC>`"]
pub type ICR = crate::Reg<icr::ICR_SPEC>;
#[doc = "Interrupt Clear Register"]
pub mod icr;
#[doc = "LIPCR register accessor: an alias for `Reg<LIPCR_SPEC>`"]
pub type LIPCR = crate::Reg<lipcr::LIPCR_SPEC>;
#[doc = "Line Interrupt Position Configuration Register"]
pub mod lipcr;
#[doc = "CPSR register accessor: an alias for `Reg<CPSR_SPEC>`"]
pub type CPSR = crate::Reg<cpsr::CPSR_SPEC>;
#[doc = "Current Position Status Register"]
pub mod cpsr;
#[doc = "CDSR register accessor: an alias for `Reg<CDSR_SPEC>`"]
pub type CDSR = crate::Reg<cdsr::CDSR_SPEC>;
#[doc = "Current Display Status Register"]
pub mod cdsr;