atsam4n16b_pac/
uart2.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; 0xdc],
23    #[doc = "0x100 - Receive Pointer Register"]
24    pub rpr: RPR,
25    #[doc = "0x104 - Receive Counter Register"]
26    pub rcr: RCR,
27    #[doc = "0x108 - Transmit Pointer Register"]
28    pub tpr: TPR,
29    #[doc = "0x10c - Transmit Counter Register"]
30    pub tcr: TCR,
31    #[doc = "0x110 - Receive Next Pointer Register"]
32    pub rnpr: RNPR,
33    #[doc = "0x114 - Receive Next Counter Register"]
34    pub rncr: RNCR,
35    #[doc = "0x118 - Transmit Next Pointer Register"]
36    pub tnpr: TNPR,
37    #[doc = "0x11c - Transmit Next Counter Register"]
38    pub tncr: TNCR,
39    #[doc = "0x120 - Transfer Control Register"]
40    pub ptcr: PTCR,
41    #[doc = "0x124 - Transfer Status Register"]
42    pub ptsr: PTSR,
43}
44#[doc = "CR (w) register accessor: an alias for `Reg<CR_SPEC>`"]
45pub type CR = crate::Reg<cr::CR_SPEC>;
46#[doc = "Control Register"]
47pub mod cr;
48#[doc = "MR (rw) register accessor: an alias for `Reg<MR_SPEC>`"]
49pub type MR = crate::Reg<mr::MR_SPEC>;
50#[doc = "Mode Register"]
51pub mod mr;
52#[doc = "IER (w) register accessor: an alias for `Reg<IER_SPEC>`"]
53pub type IER = crate::Reg<ier::IER_SPEC>;
54#[doc = "Interrupt Enable Register"]
55pub mod ier;
56#[doc = "IDR (w) register accessor: an alias for `Reg<IDR_SPEC>`"]
57pub type IDR = crate::Reg<idr::IDR_SPEC>;
58#[doc = "Interrupt Disable Register"]
59pub mod idr;
60#[doc = "IMR (r) register accessor: an alias for `Reg<IMR_SPEC>`"]
61pub type IMR = crate::Reg<imr::IMR_SPEC>;
62#[doc = "Interrupt Mask Register"]
63pub mod imr;
64#[doc = "SR (r) register accessor: an alias for `Reg<SR_SPEC>`"]
65pub type SR = crate::Reg<sr::SR_SPEC>;
66#[doc = "Status Register"]
67pub mod sr;
68#[doc = "RHR (r) register accessor: an alias for `Reg<RHR_SPEC>`"]
69pub type RHR = crate::Reg<rhr::RHR_SPEC>;
70#[doc = "Receive Holding Register"]
71pub mod rhr;
72#[doc = "THR (w) register accessor: an alias for `Reg<THR_SPEC>`"]
73pub type THR = crate::Reg<thr::THR_SPEC>;
74#[doc = "Transmit Holding Register"]
75pub mod thr;
76#[doc = "BRGR (rw) register accessor: an alias for `Reg<BRGR_SPEC>`"]
77pub type BRGR = crate::Reg<brgr::BRGR_SPEC>;
78#[doc = "Baud Rate Generator Register"]
79pub mod brgr;
80#[doc = "RPR (rw) register accessor: an alias for `Reg<RPR_SPEC>`"]
81pub type RPR = crate::Reg<rpr::RPR_SPEC>;
82#[doc = "Receive Pointer Register"]
83pub mod rpr;
84#[doc = "RCR (rw) register accessor: an alias for `Reg<RCR_SPEC>`"]
85pub type RCR = crate::Reg<rcr::RCR_SPEC>;
86#[doc = "Receive Counter Register"]
87pub mod rcr;
88#[doc = "TPR (rw) register accessor: an alias for `Reg<TPR_SPEC>`"]
89pub type TPR = crate::Reg<tpr::TPR_SPEC>;
90#[doc = "Transmit Pointer Register"]
91pub mod tpr;
92#[doc = "TCR (rw) register accessor: an alias for `Reg<TCR_SPEC>`"]
93pub type TCR = crate::Reg<tcr::TCR_SPEC>;
94#[doc = "Transmit Counter Register"]
95pub mod tcr;
96#[doc = "RNPR (rw) register accessor: an alias for `Reg<RNPR_SPEC>`"]
97pub type RNPR = crate::Reg<rnpr::RNPR_SPEC>;
98#[doc = "Receive Next Pointer Register"]
99pub mod rnpr;
100#[doc = "RNCR (rw) register accessor: an alias for `Reg<RNCR_SPEC>`"]
101pub type RNCR = crate::Reg<rncr::RNCR_SPEC>;
102#[doc = "Receive Next Counter Register"]
103pub mod rncr;
104#[doc = "TNPR (rw) register accessor: an alias for `Reg<TNPR_SPEC>`"]
105pub type TNPR = crate::Reg<tnpr::TNPR_SPEC>;
106#[doc = "Transmit Next Pointer Register"]
107pub mod tnpr;
108#[doc = "TNCR (rw) register accessor: an alias for `Reg<TNCR_SPEC>`"]
109pub type TNCR = crate::Reg<tncr::TNCR_SPEC>;
110#[doc = "Transmit Next Counter Register"]
111pub mod tncr;
112#[doc = "PTCR (w) register accessor: an alias for `Reg<PTCR_SPEC>`"]
113pub type PTCR = crate::Reg<ptcr::PTCR_SPEC>;
114#[doc = "Transfer Control Register"]
115pub mod ptcr;
116#[doc = "PTSR (r) register accessor: an alias for `Reg<PTSR_SPEC>`"]
117pub type PTSR = crate::Reg<ptsr::PTSR_SPEC>;
118#[doc = "Transfer Status Register"]
119pub mod ptsr;