Skip to main content

mcxa_pac/
glikey0.rs

1#[repr(C)]
2#[cfg_attr(feature = "debug", derive(Debug))]
3#[doc = "Register block"]
4pub struct RegisterBlock {
5    ctrl_0: Ctrl0,
6    ctrl_1: Ctrl1,
7    intr_ctrl: IntrCtrl,
8    status: Status,
9    _reserved4: [u8; 0xec],
10    version: Version,
11}
12impl RegisterBlock {
13    #[doc = "0x00 - Control Register 0 SFR"]
14    #[inline(always)]
15    pub const fn ctrl_0(&self) -> &Ctrl0 {
16        &self.ctrl_0
17    }
18    #[doc = "0x04 - Control Register 1 SFR"]
19    #[inline(always)]
20    pub const fn ctrl_1(&self) -> &Ctrl1 {
21        &self.ctrl_1
22    }
23    #[doc = "0x08 - Interrupt Control"]
24    #[inline(always)]
25    pub const fn intr_ctrl(&self) -> &IntrCtrl {
26        &self.intr_ctrl
27    }
28    #[doc = "0x0c - Status"]
29    #[inline(always)]
30    pub const fn status(&self) -> &Status {
31        &self.status
32    }
33    #[doc = "0xfc - IP Version"]
34    #[inline(always)]
35    pub const fn version(&self) -> &Version {
36        &self.version
37    }
38}
39#[doc = "CTRL_0 (rw) register accessor: Control Register 0 SFR\n\nYou can [`read`](crate::Reg::read) this register and get [`ctrl_0::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ctrl_0::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_0`] module"]
40#[doc(alias = "CTRL_0")]
41pub type Ctrl0 = crate::Reg<ctrl_0::Ctrl0Spec>;
42#[doc = "Control Register 0 SFR"]
43pub mod ctrl_0;
44#[doc = "CTRL_1 (rw) register accessor: Control Register 1 SFR\n\nYou can [`read`](crate::Reg::read) this register and get [`ctrl_1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ctrl_1::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_1`] module"]
45#[doc(alias = "CTRL_1")]
46pub type Ctrl1 = crate::Reg<ctrl_1::Ctrl1Spec>;
47#[doc = "Control Register 1 SFR"]
48pub mod ctrl_1;
49#[doc = "INTR_CTRL (rw) register accessor: Interrupt Control\n\nYou can [`read`](crate::Reg::read) this register and get [`intr_ctrl::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`intr_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@intr_ctrl`] module"]
50#[doc(alias = "INTR_CTRL")]
51pub type IntrCtrl = crate::Reg<intr_ctrl::IntrCtrlSpec>;
52#[doc = "Interrupt Control"]
53pub mod intr_ctrl;
54#[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`] module"]
55#[doc(alias = "STATUS")]
56pub type Status = crate::Reg<status::StatusSpec>;
57#[doc = "Status"]
58pub mod status;
59#[doc = "VERSION (r) register accessor: IP Version\n\nYou can [`read`](crate::Reg::read) this register and get [`version::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@version`] module"]
60#[doc(alias = "VERSION")]
61pub type Version = crate::Reg<version::VersionSpec>;
62#[doc = "IP Version"]
63pub mod version;