max78000_pac/
lpcmp.rs

1#[repr(C)]
2#[doc = "Register block"]
3pub struct RegisterBlock {
4    ctrl: [Ctrl; 3],
5}
6impl RegisterBlock {
7    #[doc = "0x00..0x0c - Comparator Control Register."]
8    #[inline(always)]
9    pub const fn ctrl(&self, n: usize) -> &Ctrl {
10        &self.ctrl[n]
11    }
12    #[doc = "Iterator for array of:"]
13    #[doc = "0x00..0x0c - Comparator Control Register."]
14    #[inline(always)]
15    pub fn ctrl_iter(&self) -> impl Iterator<Item = &Ctrl> {
16        self.ctrl.iter()
17    }
18}
19#[doc = "CTRL (rw) register accessor: Comparator Control Register.\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`]
20module"]
21#[doc(alias = "CTRL")]
22pub type Ctrl = crate::Reg<ctrl::CtrlSpec>;
23#[doc = "Comparator Control Register."]
24pub mod ctrl;