#[doc = "Register `PTPSSIR` reader"]
pub type R = crate::R<PtpssirSpec>;
#[doc = "Register `PTPSSIR` writer"]
pub type W = crate::W<PtpssirSpec>;
#[doc = "Field `STSSI` reader - System time subsecond increment"]
pub type StssiR = crate::FieldReader;
#[doc = "Field `STSSI` writer - System time subsecond increment"]
pub type StssiW<'a, REG> = crate::FieldWriter<'a, REG, 8>;
impl R {
#[doc = "Bits 0:7 - System time subsecond increment"]
#[inline(always)]
pub fn stssi(&self) -> StssiR {
StssiR::new((self.bits & 0xff) as u8)
}
}
impl W {
#[doc = "Bits 0:7 - System time subsecond increment"]
#[inline(always)]
pub fn stssi(&mut self) -> StssiW<'_, PtpssirSpec> {
StssiW::new(self, 0)
}
}
#[doc = "Ethernet PTP subsecond increment register\n\nYou can [`read`](crate::Reg::read) this register and get [`ptpssir::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ptpssir::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct PtpssirSpec;
impl crate::RegisterSpec for PtpssirSpec {
type Ux = u32;
}
#[doc = "`read()` method returns [`ptpssir::R`](R) reader structure"]
impl crate::Readable for PtpssirSpec {}
#[doc = "`write(|w| ..)` method takes [`ptpssir::W`](W) writer structure"]
impl crate::Writable for PtpssirSpec {
type Safety = crate::Unsafe;
}
#[doc = "`reset()` method sets PTPSSIR to value 0"]
impl crate::Resettable for PtpssirSpec {}