atsamd51g/
ramecc.rs

1#[repr(C)]
2#[doc = "Register block"]
3pub struct RegisterBlock {
4    intenclr: Intenclr,
5    intenset: Intenset,
6    intflag: Intflag,
7    status: Status,
8    erraddr: Erraddr,
9    _reserved5: [u8; 0x07],
10    dbgctrl: Dbgctrl,
11}
12impl RegisterBlock {
13    #[doc = "0x00 - Interrupt Enable Clear"]
14    #[inline(always)]
15    pub const fn intenclr(&self) -> &Intenclr {
16        &self.intenclr
17    }
18    #[doc = "0x01 - Interrupt Enable Set"]
19    #[inline(always)]
20    pub const fn intenset(&self) -> &Intenset {
21        &self.intenset
22    }
23    #[doc = "0x02 - Interrupt Flag"]
24    #[inline(always)]
25    pub const fn intflag(&self) -> &Intflag {
26        &self.intflag
27    }
28    #[doc = "0x03 - Status"]
29    #[inline(always)]
30    pub const fn status(&self) -> &Status {
31        &self.status
32    }
33    #[doc = "0x04 - Error Address"]
34    #[inline(always)]
35    pub const fn erraddr(&self) -> &Erraddr {
36        &self.erraddr
37    }
38    #[doc = "0x0f - Debug Control"]
39    #[inline(always)]
40    pub const fn dbgctrl(&self) -> &Dbgctrl {
41        &self.dbgctrl
42    }
43}
44#[doc = "INTENCLR (rw) register accessor: Interrupt Enable Clear\n\nYou can [`read`](crate::Reg::read) this register and get [`intenclr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`intenclr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@intenclr`]
45module"]
46#[doc(alias = "INTENCLR")]
47pub type Intenclr = crate::Reg<intenclr::IntenclrSpec>;
48#[doc = "Interrupt Enable Clear"]
49pub mod intenclr;
50#[doc = "INTENSET (rw) register accessor: Interrupt Enable Set\n\nYou can [`read`](crate::Reg::read) this register and get [`intenset::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`intenset::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@intenset`]
51module"]
52#[doc(alias = "INTENSET")]
53pub type Intenset = crate::Reg<intenset::IntensetSpec>;
54#[doc = "Interrupt Enable Set"]
55pub mod intenset;
56#[doc = "INTFLAG (rw) register accessor: Interrupt Flag\n\nYou can [`read`](crate::Reg::read) this register and get [`intflag::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`intflag::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@intflag`]
57module"]
58#[doc(alias = "INTFLAG")]
59pub type Intflag = crate::Reg<intflag::IntflagSpec>;
60#[doc = "Interrupt Flag"]
61pub mod intflag;
62#[doc = "STATUS (r) register accessor: Status\n\nYou can [`read`](crate::Reg::read) this register and get [`status::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@status`]
63module"]
64#[doc(alias = "STATUS")]
65pub type Status = crate::Reg<status::StatusSpec>;
66#[doc = "Status"]
67pub mod status;
68#[doc = "ERRADDR (r) register accessor: Error Address\n\nYou can [`read`](crate::Reg::read) this register and get [`erraddr::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@erraddr`]
69module"]
70#[doc(alias = "ERRADDR")]
71pub type Erraddr = crate::Reg<erraddr::ErraddrSpec>;
72#[doc = "Error Address"]
73pub mod erraddr;
74#[doc = "DBGCTRL (rw) register accessor: Debug Control\n\nYou can [`read`](crate::Reg::read) this register and get [`dbgctrl::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dbgctrl::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dbgctrl`]
75module"]
76#[doc(alias = "DBGCTRL")]
77pub type Dbgctrl = crate::Reg<dbgctrl::DbgctrlSpec>;
78#[doc = "Debug Control"]
79pub mod dbgctrl;