xmc4100/gpdma0_ch0/
ctlh.rs1#[doc = "Register `CTLH` reader"]
2pub type R = crate::R<CTLH_SPEC>;
3#[doc = "Register `CTLH` writer"]
4pub type W = crate::W<CTLH_SPEC>;
5#[doc = "Field `BLOCK_TS` reader - Block Transfer Size"]
6pub type BLOCK_TS_R = crate::FieldReader<u16>;
7#[doc = "Field `BLOCK_TS` writer - Block Transfer Size"]
8pub type BLOCK_TS_W<'a, REG> = crate::FieldWriter<'a, REG, 12, u16>;
9#[doc = "Field `DONE` reader - Done bit"]
10pub type DONE_R = crate::BitReader;
11#[doc = "Field `DONE` writer - Done bit"]
12pub type DONE_W<'a, REG> = crate::BitWriter<'a, REG>;
13impl R {
14 #[doc = "Bits 0:11 - Block Transfer Size"]
15 #[inline(always)]
16 pub fn block_ts(&self) -> BLOCK_TS_R {
17 BLOCK_TS_R::new((self.bits & 0x0fff) as u16)
18 }
19 #[doc = "Bit 12 - Done bit"]
20 #[inline(always)]
21 pub fn done(&self) -> DONE_R {
22 DONE_R::new(((self.bits >> 12) & 1) != 0)
23 }
24}
25impl W {
26 #[doc = "Bits 0:11 - Block Transfer Size"]
27 #[inline(always)]
28 pub fn block_ts(&mut self) -> BLOCK_TS_W<CTLH_SPEC> {
29 BLOCK_TS_W::new(self, 0)
30 }
31 #[doc = "Bit 12 - Done bit"]
32 #[inline(always)]
33 pub fn done(&mut self) -> DONE_W<CTLH_SPEC> {
34 DONE_W::new(self, 12)
35 }
36}
37#[doc = "Control Register High\n\nYou can [`read`](crate::Reg::read) this register and get [`ctlh::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ctlh::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
38pub struct CTLH_SPEC;
39impl crate::RegisterSpec for CTLH_SPEC {
40 type Ux = u32;
41}
42#[doc = "`read()` method returns [`ctlh::R`](R) reader structure"]
43impl crate::Readable for CTLH_SPEC {}
44#[doc = "`write(|w| ..)` method takes [`ctlh::W`](W) writer structure"]
45impl crate::Writable for CTLH_SPEC {
46 type Safety = crate::Unsafe;
47 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
48 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
49}
50#[doc = "`reset()` method sets CTLH to value 0x02"]
51impl crate::Resettable for CTLH_SPEC {
52 const RESET_VALUE: u32 = 0x02;
53}