esp32/dport/
app_vecbase_set.rs

1#[doc = "Register `APP_VECBASE_SET` reader"]
2pub type R = crate::R<APP_VECBASE_SET_SPEC>;
3#[doc = "Register `APP_VECBASE_SET` writer"]
4pub type W = crate::W<APP_VECBASE_SET_SPEC>;
5#[doc = "Field `APP_OUT_VECBASE` reader - "]
6pub type APP_OUT_VECBASE_R = crate::FieldReader<u32>;
7#[doc = "Field `APP_OUT_VECBASE` writer - "]
8pub type APP_OUT_VECBASE_W<'a, REG> = crate::FieldWriter<'a, REG, 22, u32>;
9impl R {
10    #[doc = "Bits 0:21"]
11    #[inline(always)]
12    pub fn app_out_vecbase(&self) -> APP_OUT_VECBASE_R {
13        APP_OUT_VECBASE_R::new(self.bits & 0x003f_ffff)
14    }
15}
16#[cfg(feature = "impl-register-debug")]
17impl core::fmt::Debug for R {
18    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
19        f.debug_struct("APP_VECBASE_SET")
20            .field("app_out_vecbase", &self.app_out_vecbase())
21            .finish()
22    }
23}
24impl W {
25    #[doc = "Bits 0:21"]
26    #[inline(always)]
27    pub fn app_out_vecbase(&mut self) -> APP_OUT_VECBASE_W<APP_VECBASE_SET_SPEC> {
28        APP_OUT_VECBASE_W::new(self, 0)
29    }
30}
31#[doc = "\n\nYou can [`read`](crate::Reg::read) this register and get [`app_vecbase_set::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`app_vecbase_set::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
32pub struct APP_VECBASE_SET_SPEC;
33impl crate::RegisterSpec for APP_VECBASE_SET_SPEC {
34    type Ux = u32;
35}
36#[doc = "`read()` method returns [`app_vecbase_set::R`](R) reader structure"]
37impl crate::Readable for APP_VECBASE_SET_SPEC {}
38#[doc = "`write(|w| ..)` method takes [`app_vecbase_set::W`](W) writer structure"]
39impl crate::Writable for APP_VECBASE_SET_SPEC {
40    type Safety = crate::Unsafe;
41    const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
42    const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
43}
44#[doc = "`reset()` method sets APP_VECBASE_SET to value 0"]
45impl crate::Resettable for APP_VECBASE_SET_SPEC {
46    const RESET_VALUE: u32 = 0;
47}