atsamd51p/evsys/
channels.rs

1#[repr(C)]
2#[doc = "CHANNELS\\[%s\\]"]
3#[doc(alias = "CHANNELS")]
4pub struct Channels {
5    channel: Channel,
6    chintenclr: Chintenclr,
7    chintenset: Chintenset,
8    chintflag: Chintflag,
9    chstatus: Chstatus,
10}
11impl Channels {
12    #[doc = "0x00 - Channel n Control"]
13    #[inline(always)]
14    pub const fn channel(&self) -> &Channel {
15        &self.channel
16    }
17    #[doc = "0x04 - Channel n Interrupt Enable Clear"]
18    #[inline(always)]
19    pub const fn chintenclr(&self) -> &Chintenclr {
20        &self.chintenclr
21    }
22    #[doc = "0x05 - Channel n Interrupt Enable Set"]
23    #[inline(always)]
24    pub const fn chintenset(&self) -> &Chintenset {
25        &self.chintenset
26    }
27    #[doc = "0x06 - Channel n Interrupt Flag Status and Clear"]
28    #[inline(always)]
29    pub const fn chintflag(&self) -> &Chintflag {
30        &self.chintflag
31    }
32    #[doc = "0x07 - Channel n Status"]
33    #[inline(always)]
34    pub const fn chstatus(&self) -> &Chstatus {
35        &self.chstatus
36    }
37}
38#[doc = "CHANNEL (rw) register accessor: Channel n Control\n\nYou can [`read`](crate::Reg::read) this register and get [`channel::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`channel::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@channel`]
39module"]
40#[doc(alias = "CHANNEL")]
41pub type Channel = crate::Reg<channel::ChannelSpec>;
42#[doc = "Channel n Control"]
43pub mod channel;
44#[doc = "CHINTENCLR (rw) register accessor: Channel n Interrupt Enable Clear\n\nYou can [`read`](crate::Reg::read) this register and get [`chintenclr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`chintenclr::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@chintenclr`]
45module"]
46#[doc(alias = "CHINTENCLR")]
47pub type Chintenclr = crate::Reg<chintenclr::ChintenclrSpec>;
48#[doc = "Channel n Interrupt Enable Clear"]
49pub mod chintenclr;
50#[doc = "CHINTENSET (rw) register accessor: Channel n Interrupt Enable Set\n\nYou can [`read`](crate::Reg::read) this register and get [`chintenset::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`chintenset::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@chintenset`]
51module"]
52#[doc(alias = "CHINTENSET")]
53pub type Chintenset = crate::Reg<chintenset::ChintensetSpec>;
54#[doc = "Channel n Interrupt Enable Set"]
55pub mod chintenset;
56#[doc = "CHINTFLAG (rw) register accessor: Channel n Interrupt Flag Status and Clear\n\nYou can [`read`](crate::Reg::read) this register and get [`chintflag::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`chintflag::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@chintflag`]
57module"]
58#[doc(alias = "CHINTFLAG")]
59pub type Chintflag = crate::Reg<chintflag::ChintflagSpec>;
60#[doc = "Channel n Interrupt Flag Status and Clear"]
61pub mod chintflag;
62#[doc = "CHSTATUS (r) register accessor: Channel n Status\n\nYou can [`read`](crate::Reg::read) this register and get [`chstatus::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@chstatus`]
63module"]
64#[doc(alias = "CHSTATUS")]
65pub type Chstatus = crate::Reg<chstatus::ChstatusSpec>;
66#[doc = "Channel n Status"]
67pub mod chstatus;