atsamd51p/evsys/channels/
chstatus.rs1#[doc = "Register `CHSTATUS` reader"]
2pub type R = crate::R<ChstatusSpec>;
3#[doc = "Field `RDYUSR` reader - Ready User"]
4pub type RdyusrR = crate::BitReader;
5#[doc = "Field `BUSYCH` reader - Busy Channel"]
6pub type BusychR = crate::BitReader;
7impl R {
8 #[doc = "Bit 0 - Ready User"]
9 #[inline(always)]
10 pub fn rdyusr(&self) -> RdyusrR {
11 RdyusrR::new((self.bits & 1) != 0)
12 }
13 #[doc = "Bit 1 - Busy Channel"]
14 #[inline(always)]
15 pub fn busych(&self) -> BusychR {
16 BusychR::new(((self.bits >> 1) & 1) != 0)
17 }
18}
19#[doc = "Channel n Status\n\nYou can [`read`](crate::Reg::read) this register and get [`chstatus::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
20pub struct ChstatusSpec;
21impl crate::RegisterSpec for ChstatusSpec {
22 type Ux = u8;
23}
24#[doc = "`read()` method returns [`chstatus::R`](R) reader structure"]
25impl crate::Readable for ChstatusSpec {}
26#[doc = "`reset()` method sets CHSTATUS to value 0x01"]
27impl crate::Resettable for ChstatusSpec {
28 const RESET_VALUE: u8 = 0x01;
29}