atsamd11c/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;
7#[doc = "Field `SYNCBUSY` reader - Synchronization Busy"]
8pub type SyncbusyR = crate::BitReader;
9impl R {
10 #[doc = "Bit 0 - Comparator 0 Ready"]
11 #[inline(always)]
12 pub fn ready0(&self) -> Ready0R {
13 Ready0R::new((self.bits & 1) != 0)
14 }
15 #[doc = "Bit 1 - Comparator 1 Ready"]
16 #[inline(always)]
17 pub fn ready1(&self) -> Ready1R {
18 Ready1R::new(((self.bits >> 1) & 1) != 0)
19 }
20 #[doc = "Bit 7 - Synchronization Busy"]
21 #[inline(always)]
22 pub fn syncbusy(&self) -> SyncbusyR {
23 SyncbusyR::new(((self.bits >> 7) & 1) != 0)
24 }
25}
26#[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)."]
27pub struct StatusbSpec;
28impl crate::RegisterSpec for StatusbSpec {
29 type Ux = u8;
30}
31#[doc = "`read()` method returns [`statusb::R`](R) reader structure"]
32impl crate::Readable for StatusbSpec {}
33#[doc = "`reset()` method sets STATUSB to value 0"]
34impl crate::Resettable for StatusbSpec {
35 const RESET_VALUE: u8 = 0;
36}