stm32mp1 0.15.1

Device support crates for STM32MP1 devices
Documentation
#[doc = "Register `FDCAN_TTTS` reader"]
pub struct R(crate::R<FDCAN_TTTS_SPEC>);
impl core::ops::Deref for R {
    type Target = crate::R<FDCAN_TTTS_SPEC>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
impl From<crate::R<FDCAN_TTTS_SPEC>> for R {
    #[inline(always)]
    fn from(reader: crate::R<FDCAN_TTTS_SPEC>) -> Self {
        R(reader)
    }
}
#[doc = "Register `FDCAN_TTTS` writer"]
pub struct W(crate::W<FDCAN_TTTS_SPEC>);
impl core::ops::Deref for W {
    type Target = crate::W<FDCAN_TTTS_SPEC>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
impl core::ops::DerefMut for W {
    #[inline(always)]
    fn deref_mut(&mut self) -> &mut Self::Target {
        &mut self.0
    }
}
impl From<crate::W<FDCAN_TTTS_SPEC>> for W {
    #[inline(always)]
    fn from(writer: crate::W<FDCAN_TTTS_SPEC>) -> Self {
        W(writer)
    }
}
#[doc = "Field `SWTDEL` reader - SWTDEL"]
pub type SWTDEL_R = crate::FieldReader<u8, u8>;
#[doc = "Field `SWTDEL` writer - SWTDEL"]
pub type SWTDEL_W<'a, const O: u8> = crate::FieldWriter<'a, u32, FDCAN_TTTS_SPEC, u8, u8, 2, O>;
#[doc = "Field `EVTSEL` reader - EVTSEL"]
pub type EVTSEL_R = crate::FieldReader<u8, u8>;
#[doc = "Field `EVTSEL` writer - EVTSEL"]
pub type EVTSEL_W<'a, const O: u8> = crate::FieldWriter<'a, u32, FDCAN_TTTS_SPEC, u8, u8, 2, O>;
impl R {
    #[doc = "Bits 0:1 - SWTDEL"]
    #[inline(always)]
    pub fn swtdel(&self) -> SWTDEL_R {
        SWTDEL_R::new((self.bits & 3) as u8)
    }
    #[doc = "Bits 4:5 - EVTSEL"]
    #[inline(always)]
    pub fn evtsel(&self) -> EVTSEL_R {
        EVTSEL_R::new(((self.bits >> 4) & 3) as u8)
    }
}
impl W {
    #[doc = "Bits 0:1 - SWTDEL"]
    #[inline(always)]
    pub fn swtdel(&mut self) -> SWTDEL_W<0> {
        SWTDEL_W::new(self)
    }
    #[doc = "Bits 4:5 - EVTSEL"]
    #[inline(always)]
    pub fn evtsel(&mut self) -> EVTSEL_W<4> {
        EVTSEL_W::new(self)
    }
    #[doc = "Writes raw bits to the register."]
    #[inline(always)]
    pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
        self.0.bits(bits);
        self
    }
}
#[doc = "The settings in the FDCAN_TTTS register select the input to be used as event trigger and stop watch trigger.\n\nThis register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [fdcan_ttts](index.html) module"]
pub struct FDCAN_TTTS_SPEC;
impl crate::RegisterSpec for FDCAN_TTTS_SPEC {
    type Ux = u32;
}
#[doc = "`read()` method returns [fdcan_ttts::R](R) reader structure"]
impl crate::Readable for FDCAN_TTTS_SPEC {
    type Reader = R;
}
#[doc = "`write(|w| ..)` method takes [fdcan_ttts::W](W) writer structure"]
impl crate::Writable for FDCAN_TTTS_SPEC {
    type Writer = W;
}
#[doc = "`reset()` method sets FDCAN_TTTS to value 0"]
impl crate::Resettable for FDCAN_TTTS_SPEC {
    #[inline(always)]
    fn reset_value() -> Self::Ux {
        0
    }
}