atsaml21e15b/adc/
seqstatus.rs1#[doc = "Register `SEQSTATUS` reader"]
2pub struct R(crate::R<SEQSTATUS_SPEC>);
3impl core::ops::Deref for R {
4 type Target = crate::R<SEQSTATUS_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl From<crate::R<SEQSTATUS_SPEC>> for R {
11 #[inline(always)]
12 fn from(reader: crate::R<SEQSTATUS_SPEC>) -> Self {
13 R(reader)
14 }
15}
16#[doc = "Field `SEQSTATE` reader - Sequence State"]
17pub type SEQSTATE_R = crate::FieldReader<u8, u8>;
18#[doc = "Field `SEQBUSY` reader - Sequence Busy"]
19pub type SEQBUSY_R = crate::BitReader<bool>;
20impl R {
21 #[doc = "Bits 0:4 - Sequence State"]
22 #[inline(always)]
23 pub fn seqstate(&self) -> SEQSTATE_R {
24 SEQSTATE_R::new(self.bits & 0x1f)
25 }
26 #[doc = "Bit 7 - Sequence Busy"]
27 #[inline(always)]
28 pub fn seqbusy(&self) -> SEQBUSY_R {
29 SEQBUSY_R::new(((self.bits >> 7) & 1) != 0)
30 }
31}
32#[doc = "Sequence Status\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [seqstatus](index.html) module"]
33pub struct SEQSTATUS_SPEC;
34impl crate::RegisterSpec for SEQSTATUS_SPEC {
35 type Ux = u8;
36}
37#[doc = "`read()` method returns [seqstatus::R](R) reader structure"]
38impl crate::Readable for SEQSTATUS_SPEC {
39 type Reader = R;
40}
41#[doc = "`reset()` method sets SEQSTATUS to value 0"]
42impl crate::Resettable for SEQSTATUS_SPEC {
43 const RESET_VALUE: Self::Ux = 0;
44}