-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathresult.rs
More file actions
24 lines (23 loc) · 818 Bytes
/
result.rs
File metadata and controls
24 lines (23 loc) · 818 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#[doc = "Register `RESULT` reader"]
pub type R = crate::R<RESULT_SPEC>;
#[doc = "Field `RESULT` reader - "]
pub type RESULT_R = crate::FieldReader<u16>;
impl R {
#[doc = "Bits 0:11"]
#[inline(always)]
pub fn result(&self) -> RESULT_R {
RESULT_R::new((self.bits & 0x0fff) as u16)
}
}
#[doc = "Result of most recent ADC conversion
You can [`read`](crate::Reg::read) this register and get [`result::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct RESULT_SPEC;
impl crate::RegisterSpec for RESULT_SPEC {
type Ux = u32;
}
#[doc = "`read()` method returns [`result::R`](R) reader structure"]
impl crate::Readable for RESULT_SPEC {}
#[doc = "`reset()` method sets RESULT to value 0"]
impl crate::Resettable for RESULT_SPEC {
const RESET_VALUE: u32 = 0;
}