atsam4e16e_pac/
uart1.rs

1#[doc = r"Register block"]
2#[repr(C)]
3pub struct RegisterBlock {
4    #[doc = "0x00 - Control Register"]
5    pub cr: CR,
6    #[doc = "0x04 - Mode Register"]
7    pub mr: MR,
8    #[doc = "0x08 - Interrupt Enable Register"]
9    pub ier: IER,
10    #[doc = "0x0c - Interrupt Disable Register"]
11    pub idr: IDR,
12    #[doc = "0x10 - Interrupt Mask Register"]
13    pub imr: IMR,
14    #[doc = "0x14 - Status Register"]
15    pub sr: SR,
16    #[doc = "0x18 - Receive Holding Register"]
17    pub rhr: RHR,
18    #[doc = "0x1c - Transmit Holding Register"]
19    pub thr: THR,
20    #[doc = "0x20 - Baud Rate Generator Register"]
21    pub brgr: BRGR,
22    _reserved9: [u8; 0xc0],
23    #[doc = "0xe4 - Write Protection Mode Register"]
24    pub wpmr: WPMR,
25    _reserved10: [u8; 0x18],
26    #[doc = "0x100 - Receive Pointer Register"]
27    pub rpr: RPR,
28    #[doc = "0x104 - Receive Counter Register"]
29    pub rcr: RCR,
30    #[doc = "0x108 - Transmit Pointer Register"]
31    pub tpr: TPR,
32    #[doc = "0x10c - Transmit Counter Register"]
33    pub tcr: TCR,
34    #[doc = "0x110 - Receive Next Pointer Register"]
35    pub rnpr: RNPR,
36    #[doc = "0x114 - Receive Next Counter Register"]
37    pub rncr: RNCR,
38    #[doc = "0x118 - Transmit Next Pointer Register"]
39    pub tnpr: TNPR,
40    #[doc = "0x11c - Transmit Next Counter Register"]
41    pub tncr: TNCR,
42    #[doc = "0x120 - Transfer Control Register"]
43    pub ptcr: PTCR,
44    #[doc = "0x124 - Transfer Status Register"]
45    pub ptsr: PTSR,
46}
47#[doc = "CR (w) register accessor: an alias for `Reg<CR_SPEC>`"]
48pub type CR = crate::Reg<cr::CR_SPEC>;
49#[doc = "Control Register"]
50pub mod cr;
51#[doc = "MR (rw) register accessor: an alias for `Reg<MR_SPEC>`"]
52pub type MR = crate::Reg<mr::MR_SPEC>;
53#[doc = "Mode Register"]
54pub mod mr;
55#[doc = "IER (w) register accessor: an alias for `Reg<IER_SPEC>`"]
56pub type IER = crate::Reg<ier::IER_SPEC>;
57#[doc = "Interrupt Enable Register"]
58pub mod ier;
59#[doc = "IDR (w) register accessor: an alias for `Reg<IDR_SPEC>`"]
60pub type IDR = crate::Reg<idr::IDR_SPEC>;
61#[doc = "Interrupt Disable Register"]
62pub mod idr;
63#[doc = "IMR (r) register accessor: an alias for `Reg<IMR_SPEC>`"]
64pub type IMR = crate::Reg<imr::IMR_SPEC>;
65#[doc = "Interrupt Mask Register"]
66pub mod imr;
67#[doc = "SR (r) register accessor: an alias for `Reg<SR_SPEC>`"]
68pub type SR = crate::Reg<sr::SR_SPEC>;
69#[doc = "Status Register"]
70pub mod sr;
71#[doc = "RHR (r) register accessor: an alias for `Reg<RHR_SPEC>`"]
72pub type RHR = crate::Reg<rhr::RHR_SPEC>;
73#[doc = "Receive Holding Register"]
74pub mod rhr;
75#[doc = "THR (w) register accessor: an alias for `Reg<THR_SPEC>`"]
76pub type THR = crate::Reg<thr::THR_SPEC>;
77#[doc = "Transmit Holding Register"]
78pub mod thr;
79#[doc = "BRGR (rw) register accessor: an alias for `Reg<BRGR_SPEC>`"]
80pub type BRGR = crate::Reg<brgr::BRGR_SPEC>;
81#[doc = "Baud Rate Generator Register"]
82pub mod brgr;
83#[doc = "WPMR (rw) register accessor: an alias for `Reg<WPMR_SPEC>`"]
84pub type WPMR = crate::Reg<wpmr::WPMR_SPEC>;
85#[doc = "Write Protection Mode Register"]
86pub mod wpmr;
87#[doc = "RPR (rw) register accessor: an alias for `Reg<RPR_SPEC>`"]
88pub type RPR = crate::Reg<rpr::RPR_SPEC>;
89#[doc = "Receive Pointer Register"]
90pub mod rpr;
91#[doc = "RCR (rw) register accessor: an alias for `Reg<RCR_SPEC>`"]
92pub type RCR = crate::Reg<rcr::RCR_SPEC>;
93#[doc = "Receive Counter Register"]
94pub mod rcr;
95#[doc = "TPR (rw) register accessor: an alias for `Reg<TPR_SPEC>`"]
96pub type TPR = crate::Reg<tpr::TPR_SPEC>;
97#[doc = "Transmit Pointer Register"]
98pub mod tpr;
99#[doc = "TCR (rw) register accessor: an alias for `Reg<TCR_SPEC>`"]
100pub type TCR = crate::Reg<tcr::TCR_SPEC>;
101#[doc = "Transmit Counter Register"]
102pub mod tcr;
103#[doc = "RNPR (rw) register accessor: an alias for `Reg<RNPR_SPEC>`"]
104pub type RNPR = crate::Reg<rnpr::RNPR_SPEC>;
105#[doc = "Receive Next Pointer Register"]
106pub mod rnpr;
107#[doc = "RNCR (rw) register accessor: an alias for `Reg<RNCR_SPEC>`"]
108pub type RNCR = crate::Reg<rncr::RNCR_SPEC>;
109#[doc = "Receive Next Counter Register"]
110pub mod rncr;
111#[doc = "TNPR (rw) register accessor: an alias for `Reg<TNPR_SPEC>`"]
112pub type TNPR = crate::Reg<tnpr::TNPR_SPEC>;
113#[doc = "Transmit Next Pointer Register"]
114pub mod tnpr;
115#[doc = "TNCR (rw) register accessor: an alias for `Reg<TNCR_SPEC>`"]
116pub type TNCR = crate::Reg<tncr::TNCR_SPEC>;
117#[doc = "Transmit Next Counter Register"]
118pub mod tncr;
119#[doc = "PTCR (w) register accessor: an alias for `Reg<PTCR_SPEC>`"]
120pub type PTCR = crate::Reg<ptcr::PTCR_SPEC>;
121#[doc = "Transfer Control Register"]
122pub mod ptcr;
123#[doc = "PTSR (r) register accessor: an alias for `Reg<PTSR_SPEC>`"]
124pub type PTSR = crate::Reg<ptsr::PTSR_SPEC>;
125#[doc = "Transfer Status Register"]
126pub mod ptsr;