From 0666a6ba1dbd66cf8b93c113e362ccbcd99152a0 Mon Sep 17 00:00:00 2001 From: Arne Dußin Date: Sat, 6 Nov 2021 11:50:33 +0100 Subject: Initial commit --- src/oscctrl.rs | 117 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 117 insertions(+) create mode 100644 src/oscctrl.rs (limited to 'src/oscctrl.rs') diff --git a/src/oscctrl.rs b/src/oscctrl.rs new file mode 100644 index 0000000..e6dd092 --- /dev/null +++ b/src/oscctrl.rs @@ -0,0 +1,117 @@ +#[doc = r"Register block"] +#[repr(C)] +pub struct RegisterBlock { + #[doc = "0x00 - Interrupt Enable Clear"] + pub intenclr: crate::Reg, + #[doc = "0x04 - Interrupt Enable Set"] + pub intenset: crate::Reg, + #[doc = "0x08 - Interrupt Flag Status and Clear"] + pub intflag: crate::Reg, + #[doc = "0x0c - Power and Clocks Status"] + pub status: crate::Reg, + #[doc = "0x10 - External Multipurpose Crystal Oscillator (XOSC) Control"] + pub xoscctrl: crate::Reg, + #[doc = "0x12 - Clock Failure Detector Prescaler"] + pub cfdpresc: crate::Reg, + #[doc = "0x13 - Event Control"] + pub evctrl: crate::Reg, + #[doc = "0x14 - 48MHz Internal Oscillator (OSC48M) Control"] + pub osc48mctrl: crate::Reg, + #[doc = "0x15 - OSC48M Divider"] + pub osc48mdiv: crate::Reg, + #[doc = "0x16 - OSC48M Startup Time"] + pub osc48mstup: crate::Reg, + _reserved10: [u8; 0x01], + #[doc = "0x18 - OSC48M Synchronization Busy"] + pub osc48msyncbusy: crate::Reg, + #[doc = "0x1c - DPLL Control"] + pub dpllctrla: crate::Reg, + _reserved12: [u8; 0x03], + #[doc = "0x20 - DPLL Ratio Control"] + pub dpllratio: crate::Reg, + #[doc = "0x24 - Digital Core Configuration"] + pub dpllctrlb: crate::Reg, + #[doc = "0x28 - DPLL Prescaler"] + pub dpllpresc: crate::Reg, + _reserved15: [u8; 0x03], + #[doc = "0x2c - DPLL Synchronization Busy"] + pub dpllsyncbusy: crate::Reg, + _reserved16: [u8; 0x03], + #[doc = "0x30 - DPLL Status"] + pub dpllstatus: crate::Reg, + _reserved17: [u8; 0x07], + #[doc = "0x38 - 48MHz Oscillator Calibration"] + pub cal48m: crate::Reg, +} +#[doc = "INTENCLR register accessor: an alias for `Reg`"] +pub type INTENCLR = crate::Reg; +#[doc = "Interrupt Enable Clear"] +pub mod intenclr; +#[doc = "INTENSET register accessor: an alias for `Reg`"] +pub type INTENSET = crate::Reg; +#[doc = "Interrupt Enable Set"] +pub mod intenset; +#[doc = "INTFLAG register accessor: an alias for `Reg`"] +pub type INTFLAG = crate::Reg; +#[doc = "Interrupt Flag Status and Clear"] +pub mod intflag; +#[doc = "STATUS register accessor: an alias for `Reg`"] +pub type STATUS = crate::Reg; +#[doc = "Power and Clocks Status"] +pub mod status; +#[doc = "XOSCCTRL register accessor: an alias for `Reg`"] +pub type XOSCCTRL = crate::Reg; +#[doc = "External Multipurpose Crystal Oscillator (XOSC) Control"] +pub mod xoscctrl; +#[doc = "CFDPRESC register accessor: an alias for `Reg`"] +pub type CFDPRESC = crate::Reg; +#[doc = "Clock Failure Detector Prescaler"] +pub mod cfdpresc; +#[doc = "EVCTRL register accessor: an alias for `Reg`"] +pub type EVCTRL = crate::Reg; +#[doc = "Event Control"] +pub mod evctrl; +#[doc = "OSC48MCTRL register accessor: an alias for `Reg`"] +pub type OSC48MCTRL = crate::Reg; +#[doc = "48MHz Internal Oscillator (OSC48M) Control"] +pub mod osc48mctrl; +#[doc = "OSC48MDIV register accessor: an alias for `Reg`"] +pub type OSC48MDIV = crate::Reg; +#[doc = "OSC48M Divider"] +pub mod osc48mdiv; +#[doc = "OSC48MSTUP register accessor: an alias for `Reg`"] +pub type OSC48MSTUP = crate::Reg; +#[doc = "OSC48M Startup Time"] +pub mod osc48mstup; +#[doc = "OSC48MSYNCBUSY register accessor: an alias for `Reg`"] +pub type OSC48MSYNCBUSY = crate::Reg; +#[doc = "OSC48M Synchronization Busy"] +pub mod osc48msyncbusy; +#[doc = "DPLLCTRLA register accessor: an alias for `Reg`"] +pub type DPLLCTRLA = crate::Reg; +#[doc = "DPLL Control"] +pub mod dpllctrla; +#[doc = "DPLLRATIO register accessor: an alias for `Reg`"] +pub type DPLLRATIO = crate::Reg; +#[doc = "DPLL Ratio Control"] +pub mod dpllratio; +#[doc = "DPLLCTRLB register accessor: an alias for `Reg`"] +pub type DPLLCTRLB = crate::Reg; +#[doc = "Digital Core Configuration"] +pub mod dpllctrlb; +#[doc = "DPLLPRESC register accessor: an alias for `Reg`"] +pub type DPLLPRESC = crate::Reg; +#[doc = "DPLL Prescaler"] +pub mod dpllpresc; +#[doc = "DPLLSYNCBUSY register accessor: an alias for `Reg`"] +pub type DPLLSYNCBUSY = crate::Reg; +#[doc = "DPLL Synchronization Busy"] +pub mod dpllsyncbusy; +#[doc = "DPLLSTATUS register accessor: an alias for `Reg`"] +pub type DPLLSTATUS = crate::Reg; +#[doc = "DPLL Status"] +pub mod dpllstatus; +#[doc = "CAL48M register accessor: an alias for `Reg`"] +pub type CAL48M = crate::Reg; +#[doc = "48MHz Oscillator Calibration"] +pub mod cal48m; -- cgit v1.2.3-70-g09d2