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