#[doc = "Register `PTPTSAR` reader"]
pub type R = crate::R<PtptsarSpec>;
#[doc = "Register `PTPTSAR` writer"]
pub type W = crate::W<PtptsarSpec>;
#[doc = "Field `TSA` reader - Time stamp addend"]
pub type TsaR = crate::FieldReader<u32>;
#[doc = "Field `TSA` writer - Time stamp addend"]
pub type TsaW<'a, REG> = crate::FieldWriter<'a, REG, 32, u32>;
impl R {
    #[doc = "Bits 0:31 - Time stamp addend"]
    #[inline(always)]
    pub fn tsa(&self) -> TsaR {
        TsaR::new(self.bits)
    }
}
impl W {
    #[doc = "Bits 0:31 - Time stamp addend"]
    #[inline(always)]
    pub fn tsa(&mut self) -> TsaW<'_, PtptsarSpec> {
        TsaW::new(self, 0)
    }
}
#[doc = "Ethernet PTP time stamp addend register\n\nYou can [`read`](crate::Reg::read) this register and get [`ptptsar::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ptptsar::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct PtptsarSpec;
impl crate::RegisterSpec for PtptsarSpec {
    type Ux = u32;
}
#[doc = "`read()` method returns [`ptptsar::R`](R) reader structure"]
impl crate::Readable for PtptsarSpec {}
#[doc = "`write(|w| ..)` method takes [`ptptsar::W`](W) writer structure"]
impl crate::Writable for PtptsarSpec {
    type Safety = crate::Unsafe;
}
#[doc = "`reset()` method sets PTPTSAR to value 0"]
impl crate::Resettable for PtptsarSpec {}
