stm32f103-pac 0.1.2

Peripheral Access Crate (PAC) for STM32F103
Documentation
#[doc = "Register `PTPTSLR` reader"]
pub type R = crate::R<PtptslrSpec>;
#[doc = "Field `STSS` reader - System time subseconds"]
pub type StssR = crate::FieldReader<u32>;
#[doc = "Field `STPNS` reader - System time positive or negative sign"]
pub type StpnsR = crate::BitReader;
impl R {
    #[doc = "Bits 0:30 - System time subseconds"]
    #[inline(always)]
    pub fn stss(&self) -> StssR {
        StssR::new(self.bits & 0x7fff_ffff)
    }
    #[doc = "Bit 31 - System time positive or negative sign"]
    #[inline(always)]
    pub fn stpns(&self) -> StpnsR {
        StpnsR::new(((self.bits >> 31) & 1) != 0)
    }
}
#[doc = "Ethernet PTP time stamp low register (ETH_PTPTSLR)\n\nYou can [`read`](crate::Reg::read) this register and get [`ptptslr::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct PtptslrSpec;
impl crate::RegisterSpec for PtptslrSpec {
    type Ux = u32;
}
#[doc = "`read()` method returns [`ptptslr::R`](R) reader structure"]
impl crate::Readable for PtptslrSpec {}
#[doc = "`reset()` method sets PTPTSLR to value 0"]
impl crate::Resettable for PtptslrSpec {}