atsamd51n/ac/
statusb.rs

1#[doc = "Register `STATUSB` reader"]
2pub type R = crate::R<StatusbSpec>;
3#[doc = "Field `READY0` reader - Comparator 0 Ready"]
4pub type Ready0R = crate::BitReader;
5#[doc = "Field `READY1` reader - Comparator 1 Ready"]
6pub type Ready1R = crate::BitReader;
7impl R {
8    #[doc = "Bit 0 - Comparator 0 Ready"]
9    #[inline(always)]
10    pub fn ready0(&self) -> Ready0R {
11        Ready0R::new((self.bits & 1) != 0)
12    }
13    #[doc = "Bit 1 - Comparator 1 Ready"]
14    #[inline(always)]
15    pub fn ready1(&self) -> Ready1R {
16        Ready1R::new(((self.bits >> 1) & 1) != 0)
17    }
18}
19#[doc = "Status B\n\nYou can [`read`](crate::Reg::read) this register and get [`statusb::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
20pub struct StatusbSpec;
21impl crate::RegisterSpec for StatusbSpec {
22    type Ux = u8;
23}
24#[doc = "`read()` method returns [`statusb::R`](R) reader structure"]
25impl crate::Readable for StatusbSpec {}
26#[doc = "`reset()` method sets STATUSB to value 0"]
27impl crate::Resettable for StatusbSpec {
28    const RESET_VALUE: u8 = 0;
29}