stm32g0_staging/stm32g0b0/dma1/
ch.rs

1#[repr(C)]
2#[derive(Debug)]
3///Channel cluster: CCR?, CNDTR?, CPAR?, and CMAR? registers
4pub struct CH {
5    cr: CR,
6    ndtr: NDTR,
7    par: PAR,
8    mar: MAR,
9    _reserved_end: [u8; 0x04],
10}
11impl CH {
12    ///0x00 - DMA channel 1 configuration register
13    #[inline(always)]
14    pub const fn cr(&self) -> &CR {
15        &self.cr
16    }
17    ///0x04 - DMA channel x number of data register
18    #[inline(always)]
19    pub const fn ndtr(&self) -> &NDTR {
20        &self.ndtr
21    }
22    ///0x08 - DMA channel x peripheral address register
23    #[inline(always)]
24    pub const fn par(&self) -> &PAR {
25        &self.par
26    }
27    ///0x0c - DMA channel x memory address register
28    #[inline(always)]
29    pub const fn mar(&self) -> &MAR {
30        &self.mar
31    }
32}
33/**CR (rw) register accessor: DMA channel 1 configuration register
34
35You can [`read`](crate::Reg::read) this register and get [`cr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
36
37For information about available fields see [`mod@cr`]
38module*/
39pub type CR = crate::Reg<cr::CRrs>;
40///DMA channel 1 configuration register
41pub mod cr;
42/**NDTR (rw) register accessor: DMA channel x number of data register
43
44You can [`read`](crate::Reg::read) this register and get [`ndtr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ndtr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
45
46For information about available fields see [`mod@ndtr`]
47module*/
48pub type NDTR = crate::Reg<ndtr::NDTRrs>;
49///DMA channel x number of data register
50pub mod ndtr;
51/**PAR (rw) register accessor: DMA channel x peripheral address register
52
53You can [`read`](crate::Reg::read) this register and get [`par::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`par::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
54
55For information about available fields see [`mod@par`]
56module*/
57pub type PAR = crate::Reg<par::PARrs>;
58///DMA channel x peripheral address register
59pub mod par;
60/**MAR (rw) register accessor: DMA channel x memory address register
61
62You can [`read`](crate::Reg::read) this register and get [`mar::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`mar::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
63
64For information about available fields see [`mod@mar`]
65module*/
66pub type MAR = crate::Reg<mar::MARrs>;
67///DMA channel x memory address register
68pub mod mar;