xmc4200/
scu_osc.rs

1#[repr(C)]
2#[doc = "Register block"]
3pub struct RegisterBlock {
4    oschpstat: OSCHPSTAT,
5    oschpctrl: OSCHPCTRL,
6    _reserved2: [u8; 0x04],
7    clkcalconst: CLKCALCONST,
8}
9impl RegisterBlock {
10    #[doc = "0x00 - OSC_HP Status Register"]
11    #[inline(always)]
12    pub const fn oschpstat(&self) -> &OSCHPSTAT {
13        &self.oschpstat
14    }
15    #[doc = "0x04 - OSC_HP Control Register"]
16    #[inline(always)]
17    pub const fn oschpctrl(&self) -> &OSCHPCTRL {
18        &self.oschpctrl
19    }
20    #[doc = "0x0c - Clock Calibration Constant Register"]
21    #[inline(always)]
22    pub const fn clkcalconst(&self) -> &CLKCALCONST {
23        &self.clkcalconst
24    }
25}
26#[doc = "OSCHPSTAT (r) register accessor: OSC_HP Status Register\n\nYou can [`read`](crate::Reg::read) this register and get [`oschpstat::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@oschpstat`]
27module"]
28pub type OSCHPSTAT = crate::Reg<oschpstat::OSCHPSTAT_SPEC>;
29#[doc = "OSC_HP Status Register"]
30pub mod oschpstat;
31#[doc = "OSCHPCTRL (rw) register accessor: OSC_HP Control Register\n\nYou can [`read`](crate::Reg::read) this register and get [`oschpctrl::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`oschpctrl::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@oschpctrl`]
32module"]
33pub type OSCHPCTRL = crate::Reg<oschpctrl::OSCHPCTRL_SPEC>;
34#[doc = "OSC_HP Control Register"]
35pub mod oschpctrl;
36#[doc = "CLKCALCONST (rw) register accessor: Clock Calibration Constant Register\n\nYou can [`read`](crate::Reg::read) this register and get [`clkcalconst::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`clkcalconst::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@clkcalconst`]
37module"]
38pub type CLKCALCONST = crate::Reg<clkcalconst::CLKCALCONST_SPEC>;
39#[doc = "Clock Calibration Constant Register"]
40pub mod clkcalconst;