Skip to main content

mcxa_pac/
ostimer0.rs

1#[repr(C)]
2#[cfg_attr(feature = "debug", derive(Debug))]
3#[doc = "Register block"]
4pub struct RegisterBlock {
5    evtimerl: Evtimerl,
6    evtimerh: Evtimerh,
7    capture_l: CaptureL,
8    capture_h: CaptureH,
9    match_l: MatchL,
10    match_h: MatchH,
11    _reserved6: [u8; 0x04],
12    osevent_ctrl: OseventCtrl,
13}
14impl RegisterBlock {
15    #[doc = "0x00 - EVTIMER Low"]
16    #[inline(always)]
17    pub const fn evtimerl(&self) -> &Evtimerl {
18        &self.evtimerl
19    }
20    #[doc = "0x04 - EVTIMER High"]
21    #[inline(always)]
22    pub const fn evtimerh(&self) -> &Evtimerh {
23        &self.evtimerh
24    }
25    #[doc = "0x08 - Local Capture Low for CPU"]
26    #[inline(always)]
27    pub const fn capture_l(&self) -> &CaptureL {
28        &self.capture_l
29    }
30    #[doc = "0x0c - Local Capture High for CPU"]
31    #[inline(always)]
32    pub const fn capture_h(&self) -> &CaptureH {
33        &self.capture_h
34    }
35    #[doc = "0x10 - Local Match Low for CPU"]
36    #[inline(always)]
37    pub const fn match_l(&self) -> &MatchL {
38        &self.match_l
39    }
40    #[doc = "0x14 - Local Match High for CPU"]
41    #[inline(always)]
42    pub const fn match_h(&self) -> &MatchH {
43        &self.match_h
44    }
45    #[doc = "0x1c - OSTIMER Control for CPU"]
46    #[inline(always)]
47    pub const fn osevent_ctrl(&self) -> &OseventCtrl {
48        &self.osevent_ctrl
49    }
50}
51#[doc = "EVTIMERL (r) register accessor: EVTIMER Low\n\nYou can [`read`](crate::Reg::read) this register and get [`evtimerl::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@evtimerl`] module"]
52#[doc(alias = "EVTIMERL")]
53pub type Evtimerl = crate::Reg<evtimerl::EvtimerlSpec>;
54#[doc = "EVTIMER Low"]
55pub mod evtimerl;
56#[doc = "EVTIMERH (r) register accessor: EVTIMER High\n\nYou can [`read`](crate::Reg::read) this register and get [`evtimerh::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@evtimerh`] module"]
57#[doc(alias = "EVTIMERH")]
58pub type Evtimerh = crate::Reg<evtimerh::EvtimerhSpec>;
59#[doc = "EVTIMER High"]
60pub mod evtimerh;
61#[doc = "CAPTURE_L (r) register accessor: Local Capture Low for CPU\n\nYou can [`read`](crate::Reg::read) this register and get [`capture_l::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@capture_l`] module"]
62#[doc(alias = "CAPTURE_L")]
63pub type CaptureL = crate::Reg<capture_l::CaptureLSpec>;
64#[doc = "Local Capture Low for CPU"]
65pub mod capture_l;
66#[doc = "CAPTURE_H (r) register accessor: Local Capture High for CPU\n\nYou can [`read`](crate::Reg::read) this register and get [`capture_h::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@capture_h`] module"]
67#[doc(alias = "CAPTURE_H")]
68pub type CaptureH = crate::Reg<capture_h::CaptureHSpec>;
69#[doc = "Local Capture High for CPU"]
70pub mod capture_h;
71#[doc = "MATCH_L (rw) register accessor: Local Match Low for CPU\n\nYou can [`read`](crate::Reg::read) this register and get [`match_l::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`match_l::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@match_l`] module"]
72#[doc(alias = "MATCH_L")]
73pub type MatchL = crate::Reg<match_l::MatchLSpec>;
74#[doc = "Local Match Low for CPU"]
75pub mod match_l;
76#[doc = "MATCH_H (rw) register accessor: Local Match High for CPU\n\nYou can [`read`](crate::Reg::read) this register and get [`match_h::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`match_h::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@match_h`] module"]
77#[doc(alias = "MATCH_H")]
78pub type MatchH = crate::Reg<match_h::MatchHSpec>;
79#[doc = "Local Match High for CPU"]
80pub mod match_h;
81#[doc = "OSEVENT_CTRL (rw) register accessor: OSTIMER Control for CPU\n\nYou can [`read`](crate::Reg::read) this register and get [`osevent_ctrl::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`osevent_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@osevent_ctrl`] module"]
82#[doc(alias = "OSEVENT_CTRL")]
83pub type OseventCtrl = crate::Reg<osevent_ctrl::OseventCtrlSpec>;
84#[doc = "OSTIMER Control for CPU"]
85pub mod osevent_ctrl;