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