#[doc = "Register `SM1VAL3` reader"]
pub type R = crate::R<Sm1val3Spec>;
#[doc = "Register `SM1VAL3` writer"]
pub type W = crate::W<Sm1val3Spec>;
#[doc = "Field `VAL3` reader - Value 3"]
pub type Val3R = crate::FieldReader<u16>;
#[doc = "Field `VAL3` writer - Value 3"]
pub type Val3W<'a, REG> = crate::FieldWriter<'a, REG, 16, u16>;
impl R {
    #[doc = "Bits 0:15 - Value 3"]
    #[inline(always)]
    pub fn val3(&self) -> Val3R {
        Val3R::new(self.bits)
    }
}
#[cfg(feature = "debug")]
impl core::fmt::Debug for R {
    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
        f.debug_struct("SM1VAL3").field("val3", &self.val3()).finish()
    }
}
impl W {
    #[doc = "Bits 0:15 - Value 3"]
    #[inline(always)]
    pub fn val3(&mut self) -> Val3W<'_, Sm1val3Spec> {
        Val3W::new(self, 0)
    }
}
#[doc = "Value Register 3\n\nYou can [`read`](crate::Reg::read) this register and get [`sm1val3::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`sm1val3::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct Sm1val3Spec;
impl crate::RegisterSpec for Sm1val3Spec {
    type Ux = u16;
}
#[doc = "`read()` method returns [`sm1val3::R`](R) reader structure"]
impl crate::Readable for Sm1val3Spec {}
#[doc = "`write(|w| ..)` method takes [`sm1val3::W`](W) writer structure"]
impl crate::Writable for Sm1val3Spec {
    type Safety = crate::Unsafe;
}
#[doc = "`reset()` method sets SM1VAL3 to value 0"]
impl crate::Resettable for Sm1val3Spec {}
