atsamd21j/tc3/count8/
status.rs
1#[doc = "Register `STATUS` reader"]
2pub type R = crate::R<StatusSpec>;
3#[doc = "Field `STOP` reader - Stop"]
4pub type StopR = crate::BitReader;
5#[doc = "Field `SLAVE` reader - Slave"]
6pub type SlaveR = crate::BitReader;
7#[doc = "Field `SYNCBUSY` reader - Synchronization Busy"]
8pub type SyncbusyR = crate::BitReader;
9impl R {
10 #[doc = "Bit 3 - Stop"]
11 #[inline(always)]
12 pub fn stop(&self) -> StopR {
13 StopR::new(((self.bits >> 3) & 1) != 0)
14 }
15 #[doc = "Bit 4 - Slave"]
16 #[inline(always)]
17 pub fn slave(&self) -> SlaveR {
18 SlaveR::new(((self.bits >> 4) & 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\n\nYou can [`read`](crate::Reg::read) this register and get [`status::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
27pub struct StatusSpec;
28impl crate::RegisterSpec for StatusSpec {
29 type Ux = u8;
30}
31#[doc = "`read()` method returns [`status::R`](R) reader structure"]
32impl crate::Readable for StatusSpec {}
33#[doc = "`reset()` method sets STATUS to value 0x08"]
34impl crate::Resettable for StatusSpec {
35 const RESET_VALUE: u8 = 0x08;
36}