atsamd51p/pcc/
ier.rs
1#[doc = "Register `IER` writer"]
2pub type W = crate::W<IerSpec>;
3#[doc = "Field `DRDY` writer - Data Ready Interrupt Enable"]
4pub type DrdyW<'a, REG> = crate::BitWriter<'a, REG>;
5#[doc = "Field `OVRE` writer - Overrun Error Interrupt Enable"]
6pub type OvreW<'a, REG> = crate::BitWriter<'a, REG>;
7impl W {
8 #[doc = "Bit 0 - Data Ready Interrupt Enable"]
9 #[inline(always)]
10 #[must_use]
11 pub fn drdy(&mut self) -> DrdyW<IerSpec> {
12 DrdyW::new(self, 0)
13 }
14 #[doc = "Bit 1 - Overrun Error Interrupt Enable"]
15 #[inline(always)]
16 #[must_use]
17 pub fn ovre(&mut self) -> OvreW<IerSpec> {
18 OvreW::new(self, 1)
19 }
20}
21#[doc = "Interrupt Enable Register\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ier::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
22pub struct IerSpec;
23impl crate::RegisterSpec for IerSpec {
24 type Ux = u32;
25}
26#[doc = "`write(|w| ..)` method takes [`ier::W`](W) writer structure"]
27impl crate::Writable for IerSpec {
28 type Safety = crate::Unsafe;
29 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
30 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
31}
32#[doc = "`reset()` method sets IER to value 0"]
33impl crate::Resettable for IerSpec {
34 const RESET_VALUE: u32 = 0;
35}