atsamd51p/sdhc0/
sisr.rs

1#[doc = "Register `SISR` reader"]
2pub type R = crate::R<SisrSpec>;
3#[doc = "Field `INTSSL` reader - Interrupt Signal for Each SDHC Slot"]
4pub type IntsslR = crate::FieldReader;
5impl R {
6    #[doc = "Bits 0:1 - Interrupt Signal for Each SDHC Slot"]
7    #[inline(always)]
8    pub fn intssl(&self) -> IntsslR {
9        IntsslR::new((self.bits & 3) as u8)
10    }
11}
12#[doc = "Slot Interrupt Status\n\nYou can [`read`](crate::Reg::read) this register and get [`sisr::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
13pub struct SisrSpec;
14impl crate::RegisterSpec for SisrSpec {
15    type Ux = u16;
16}
17#[doc = "`read()` method returns [`sisr::R`](R) reader structure"]
18impl crate::Readable for SisrSpec {}
19#[doc = "`reset()` method sets SISR to value 0"]
20impl crate::Resettable for SisrSpec {
21    const RESET_VALUE: u16 = 0;
22}