#[doc = "Register `TRISE` reader"]
pub type R = crate::R<TriseSpec>;
#[doc = "Register `TRISE` writer"]
pub type W = crate::W<TriseSpec>;
#[doc = "Field `TRISE` reader - Maximum rise time in Fast/Standard mode (Master mode)"]
pub type TriseR = crate::FieldReader;
#[doc = "Field `TRISE` writer - Maximum rise time in Fast/Standard mode (Master mode)"]
pub type TriseW<'a, REG> = crate::FieldWriter<'a, REG, 6>;
impl R {
    #[doc = "Bits 0:5 - Maximum rise time in Fast/Standard mode (Master mode)"]
    #[inline(always)]
    pub fn trise(&self) -> TriseR {
        TriseR::new((self.bits & 0x3f) as u8)
    }
}
impl W {
    #[doc = "Bits 0:5 - Maximum rise time in Fast/Standard mode (Master mode)"]
    #[inline(always)]
    pub fn trise(&mut self) -> TriseW<'_, TriseSpec> {
        TriseW::new(self, 0)
    }
}
#[doc = "TRISE register\n\nYou can [`read`](crate::Reg::read) this register and get [`trise::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`trise::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct TriseSpec;
impl crate::RegisterSpec for TriseSpec {
    type Ux = u32;
}
#[doc = "`read()` method returns [`trise::R`](R) reader structure"]
impl crate::Readable for TriseSpec {}
#[doc = "`write(|w| ..)` method takes [`trise::W`](W) writer structure"]
impl crate::Writable for TriseSpec {
    type Safety = crate::Unsafe;
}
#[doc = "`reset()` method sets TRISE to value 0x02"]
impl crate::Resettable for TriseSpec {
    const RESET_VALUE: u32 = 0x02;
}
