atsamd51j/dac/
databuf.rs

1#[doc = "Register `DATABUF[%s]` writer"]
2pub type W = crate::W<DatabufSpec>;
3#[doc = "Field `DATABUF` writer - DAC0 Data Buffer"]
4pub type DatabufW<'a, REG> = crate::FieldWriter<'a, REG, 16, u16>;
5impl W {
6    #[doc = "Bits 0:15 - DAC0 Data Buffer"]
7    #[inline(always)]
8    #[must_use]
9    pub fn databuf(&mut self) -> DatabufW<DatabufSpec> {
10        DatabufW::new(self, 0)
11    }
12}
13#[doc = "DAC n Data Buffer\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`databuf::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
14pub struct DatabufSpec;
15impl crate::RegisterSpec for DatabufSpec {
16    type Ux = u16;
17}
18#[doc = "`write(|w| ..)` method takes [`databuf::W`](W) writer structure"]
19impl crate::Writable for DatabufSpec {
20    type Safety = crate::Unsafe;
21    const ZERO_TO_MODIFY_FIELDS_BITMAP: u16 = 0;
22    const ONE_TO_MODIFY_FIELDS_BITMAP: u16 = 0;
23}
24#[doc = "`reset()` method sets DATABUF[%s]
25to value 0"]
26impl crate::Resettable for DatabufSpec {
27    const RESET_VALUE: u16 = 0;
28}