atsamd11d/adc/
result.rs

1#[doc = "Register `RESULT` reader"]
2pub type R = crate::R<ResultSpec>;
3#[doc = "Field `RESULT` reader - Result Conversion Value"]
4pub type ResultR = crate::FieldReader<u16>;
5impl R {
6    #[doc = "Bits 0:15 - Result Conversion Value"]
7    #[inline(always)]
8    pub fn result(&self) -> ResultR {
9        ResultR::new(self.bits)
10    }
11}
12#[doc = "Result\n\nYou can [`read`](crate::Reg::read) this register and get [`result::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
13pub struct ResultSpec;
14impl crate::RegisterSpec for ResultSpec {
15    type Ux = u16;
16}
17#[doc = "`read()` method returns [`result::R`](R) reader structure"]
18impl crate::Readable for ResultSpec {}
19#[doc = "`reset()` method sets RESULT to value 0"]
20impl crate::Resettable for ResultSpec {
21    const RESET_VALUE: u16 = 0;
22}