#[doc = "Register `DC_SPEED_COUNT_START` reader"]
pub type R = crate::R<DcSpeedCountStartSpec>;
#[doc = "Register `DC_SPEED_COUNT_START` writer"]
pub type W = crate::W<DcSpeedCountStartSpec>;
#[doc = "Field `COUNT_START` reader - Bandwidth for adjustment of local copy of System Time"]
pub type CountStartR = crate::FieldReader<u16>;
#[doc = "Field `COUNT_START` writer - Bandwidth for adjustment of local copy of System Time"]
pub type CountStartW<'a, REG> = crate::FieldWriter<'a, REG, 15, u16>;
impl R {
#[doc = "Bits 0:14 - Bandwidth for adjustment of local copy of System Time"]
#[inline(always)]
pub fn count_start(&self) -> CountStartR {
CountStartR::new(self.bits & 0x7fff)
}
}
impl W {
#[doc = "Bits 0:14 - Bandwidth for adjustment of local copy of System Time"]
#[inline(always)]
#[must_use]
pub fn count_start(&mut self) -> CountStartW<DcSpeedCountStartSpec> {
CountStartW::new(self, 0)
}
}
#[doc = "Speed Counter Start\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`dc_speed_count_start::R`](R). You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`dc_speed_count_start::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct DcSpeedCountStartSpec;
impl crate::RegisterSpec for DcSpeedCountStartSpec {
type Ux = u16;
}
#[doc = "`read()` method returns [`dc_speed_count_start::R`](R) reader structure"]
impl crate::Readable for DcSpeedCountStartSpec {}
#[doc = "`write(|w| ..)` method takes [`dc_speed_count_start::W`](W) writer structure"]
impl crate::Writable for DcSpeedCountStartSpec {
type Safety = crate::Unsafe;
const ZERO_TO_MODIFY_FIELDS_BITMAP: u16 = 0;
const ONE_TO_MODIFY_FIELDS_BITMAP: u16 = 0;
}
#[doc = "`reset()` method sets DC_SPEED_COUNT_START to value 0x1000"]
impl crate::Resettable for DcSpeedCountStartSpec {
const RESET_VALUE: u16 = 0x1000;
}