atsam4sd32c_pac/
twi1.rs

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