atsamd11d/
gclk.rs

1#[repr(C)]
2#[doc = "Register block"]
3pub struct RegisterBlock {
4    ctrl: Ctrl,
5    status: Status,
6    clkctrl: Clkctrl,
7    genctrl: Genctrl,
8    gendiv: Gendiv,
9}
10impl RegisterBlock {
11    #[doc = "0x00 - Control"]
12    #[inline(always)]
13    pub const fn ctrl(&self) -> &Ctrl {
14        &self.ctrl
15    }
16    #[doc = "0x01 - Status"]
17    #[inline(always)]
18    pub const fn status(&self) -> &Status {
19        &self.status
20    }
21    #[doc = "0x02 - Generic Clock Control"]
22    #[inline(always)]
23    pub const fn clkctrl(&self) -> &Clkctrl {
24        &self.clkctrl
25    }
26    #[doc = "0x04 - Generic Clock Generator Control"]
27    #[inline(always)]
28    pub const fn genctrl(&self) -> &Genctrl {
29        &self.genctrl
30    }
31    #[doc = "0x08 - Generic Clock Generator Division"]
32    #[inline(always)]
33    pub const fn gendiv(&self) -> &Gendiv {
34        &self.gendiv
35    }
36}
37#[doc = "CTRL (rw) register accessor: Control\n\nYou can [`read`](crate::Reg::read) this register and get [`ctrl::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ctrl::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@ctrl`]
38module"]
39#[doc(alias = "CTRL")]
40pub type Ctrl = crate::Reg<ctrl::CtrlSpec>;
41#[doc = "Control"]
42pub mod ctrl;
43#[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`]
44module"]
45#[doc(alias = "STATUS")]
46pub type Status = crate::Reg<status::StatusSpec>;
47#[doc = "Status"]
48pub mod status;
49#[doc = "CLKCTRL (rw) register accessor: Generic Clock Control\n\nYou can [`read`](crate::Reg::read) this register and get [`clkctrl::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`clkctrl::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@clkctrl`]
50module"]
51#[doc(alias = "CLKCTRL")]
52pub type Clkctrl = crate::Reg<clkctrl::ClkctrlSpec>;
53#[doc = "Generic Clock Control"]
54pub mod clkctrl;
55#[doc = "GENCTRL (rw) register accessor: Generic Clock Generator Control\n\nYou can [`read`](crate::Reg::read) this register and get [`genctrl::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`genctrl::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@genctrl`]
56module"]
57#[doc(alias = "GENCTRL")]
58pub type Genctrl = crate::Reg<genctrl::GenctrlSpec>;
59#[doc = "Generic Clock Generator Control"]
60pub mod genctrl;
61#[doc = "GENDIV (rw) register accessor: Generic Clock Generator Division\n\nYou can [`read`](crate::Reg::read) this register and get [`gendiv::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`gendiv::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@gendiv`]
62module"]
63#[doc(alias = "GENDIV")]
64pub type Gendiv = crate::Reg<gendiv::GendivSpec>;
65#[doc = "Generic Clock Generator Division"]
66pub mod gendiv;