moondancer_pac/generated/advertiser/
control.rs

1#[doc = "Register `control` reader"]
2pub type R = crate::R<CONTROL_SPEC>;
3#[doc = "Register `control` writer"]
4pub type W = crate::W<CONTROL_SPEC>;
5#[doc = "Field `enable` writer - enable field"]
6pub type ENABLE_W<'a, REG> = crate::BitWriter<'a, REG>;
7impl W {
8    #[doc = "Bit 0 - enable field"]
9    #[inline(always)]
10    pub fn enable(&mut self) -> ENABLE_W<CONTROL_SPEC> {
11        ENABLE_W::new(self, 0)
12    }
13}
14#[doc = "Control register enable : Set this bit to '1' to start ApolloAdvertiser and disconnect the Cynthion USB control port from Apollo.\n\nYou can [`read`](crate::Reg::read) this register and get [`control::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`control::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
15pub struct CONTROL_SPEC;
16impl crate::RegisterSpec for CONTROL_SPEC {
17    type Ux = u8;
18}
19#[doc = "`read()` method returns [`control::R`](R) reader structure"]
20impl crate::Readable for CONTROL_SPEC {}
21#[doc = "`write(|w| ..)` method takes [`control::W`](W) writer structure"]
22impl crate::Writable for CONTROL_SPEC {
23    type Safety = crate::Unsafe;
24    const ZERO_TO_MODIFY_FIELDS_BITMAP: u8 = 0;
25    const ONE_TO_MODIFY_FIELDS_BITMAP: u8 = 0;
26}
27#[doc = "`reset()` method sets control to value 0"]
28impl crate::Resettable for CONTROL_SPEC {
29    const RESET_VALUE: u8 = 0;
30}