atsamd51g/freqm/
ctrlb.rs
1#[doc = "Register `CTRLB` writer"]
2pub type W = crate::W<CtrlbSpec>;
3#[doc = "Field `START` writer - Start Measurement"]
4pub type StartW<'a, REG> = crate::BitWriter<'a, REG>;
5impl W {
6 #[doc = "Bit 0 - Start Measurement"]
7 #[inline(always)]
8 #[must_use]
9 pub fn start(&mut self) -> StartW<CtrlbSpec> {
10 StartW::new(self, 0)
11 }
12}
13#[doc = "Control B Register\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ctrlb::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
14pub struct CtrlbSpec;
15impl crate::RegisterSpec for CtrlbSpec {
16 type Ux = u8;
17}
18#[doc = "`write(|w| ..)` method takes [`ctrlb::W`](W) writer structure"]
19impl crate::Writable for CtrlbSpec {
20 type Safety = crate::Unsafe;
21 const ZERO_TO_MODIFY_FIELDS_BITMAP: u8 = 0;
22 const ONE_TO_MODIFY_FIELDS_BITMAP: u8 = 0;
23}
24#[doc = "`reset()` method sets CTRLB to value 0"]
25impl crate::Resettable for CtrlbSpec {
26 const RESET_VALUE: u8 = 0;
27}