atsamd21j/eic/
status.rs

1#[doc = "Register `STATUS` reader"]
2pub type R = crate::R<StatusSpec>;
3#[doc = "Field `SYNCBUSY` reader - Synchronization Busy"]
4pub type SyncbusyR = crate::BitReader;
5impl R {
6    #[doc = "Bit 7 - Synchronization Busy"]
7    #[inline(always)]
8    pub fn syncbusy(&self) -> SyncbusyR {
9        SyncbusyR::new(((self.bits >> 7) & 1) != 0)
10    }
11}
12#[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)."]
13pub struct StatusSpec;
14impl crate::RegisterSpec for StatusSpec {
15    type Ux = u8;
16}
17#[doc = "`read()` method returns [`status::R`](R) reader structure"]
18impl crate::Readable for StatusSpec {}
19#[doc = "`reset()` method sets STATUS to value 0"]
20impl crate::Resettable for StatusSpec {
21    const RESET_VALUE: u8 = 0;
22}