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