1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
///Register `C4BRUR` reader
pub type R = crate::R<C4BRURrs>;
///Register `C4BRUR` writer
pub type W = crate::W<C4BRURrs>;
///Field `SUV` reader - SUV
pub type SUV_R = crate::FieldReader<u16>;
///Field `SUV` writer - SUV
pub type SUV_W<'a, REG> = crate::FieldWriter<'a, REG, 16, u16>;
///Field `DUV` reader - DUV
pub type DUV_R = crate::FieldReader<u16>;
///Field `DUV` writer - DUV
pub type DUV_W<'a, REG> = crate::FieldWriter<'a, REG, 16, u16>;
impl R {
///Bits 0:15 - SUV
#[inline(always)]
pub fn suv(&self) -> SUV_R {
SUV_R::new((self.bits & 0xffff) as u16)
}
///Bits 16:31 - DUV
#[inline(always)]
pub fn duv(&self) -> DUV_R {
DUV_R::new(((self.bits >> 16) & 0xffff) as u16)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("C4BRUR")
.field("suv", &self.suv())
.field("duv", &self.duv())
.finish()
}
}
impl W {
///Bits 0:15 - SUV
#[inline(always)]
pub fn suv(&mut self) -> SUV_W<C4BRURrs> {
SUV_W::new(self, 0)
}
///Bits 16:31 - DUV
#[inline(always)]
pub fn duv(&mut self) -> DUV_W<C4BRURrs> {
DUV_W::new(self, 16)
}
}
/**In Linked List mode, at the end of a block (single or last block in repeated block transfer mode), this register will be loaded from memory (from address given by current LAR\[31:0\] + 0x10).
You can [`read`](crate::Reg::read) this register and get [`c4brur::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`c4brur::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
See register [structure](https://stm32-rs.github.io/stm32-rs/STM32MP157.html#MDMA:C4BRUR)*/
pub struct C4BRURrs;
impl crate::RegisterSpec for C4BRURrs {
type Ux = u32;
}
///`read()` method returns [`c4brur::R`](R) reader structure
impl crate::Readable for C4BRURrs {}
///`write(|w| ..)` method takes [`c4brur::W`](W) writer structure
impl crate::Writable for C4BRURrs {
type Safety = crate::Unsafe;
}
///`reset()` method sets C4BRUR to value 0
impl crate::Resettable for C4BRURrs {}