mcxa_pac/
dac0.rs

1#[repr(C)]
2#[cfg_attr(feature = "debug", derive(Debug))]
3#[doc = "Register block"]
4pub struct RegisterBlock {
5    verid: Verid,
6    param: Param,
7    data: Data,
8    gcr: Gcr,
9    fcr: Fcr,
10    fpr: Fpr,
11    fsr: Fsr,
12    ier: Ier,
13    der: Der,
14    rcr: Rcr,
15    tcr: Tcr,
16    pcr: Pcr,
17}
18impl RegisterBlock {
19    #[doc = "0x00 - Version Identifier"]
20    #[inline(always)]
21    pub const fn verid(&self) -> &Verid {
22        &self.verid
23    }
24    #[doc = "0x04 - Parameter"]
25    #[inline(always)]
26    pub const fn param(&self) -> &Param {
27        &self.param
28    }
29    #[doc = "0x08 - Data"]
30    #[inline(always)]
31    pub const fn data(&self) -> &Data {
32        &self.data
33    }
34    #[doc = "0x0c - Global Control"]
35    #[inline(always)]
36    pub const fn gcr(&self) -> &Gcr {
37        &self.gcr
38    }
39    #[doc = "0x10 - DAC FIFO Control"]
40    #[inline(always)]
41    pub const fn fcr(&self) -> &Fcr {
42        &self.fcr
43    }
44    #[doc = "0x14 - DAC FIFO Pointer"]
45    #[inline(always)]
46    pub const fn fpr(&self) -> &Fpr {
47        &self.fpr
48    }
49    #[doc = "0x18 - FIFO Status"]
50    #[inline(always)]
51    pub const fn fsr(&self) -> &Fsr {
52        &self.fsr
53    }
54    #[doc = "0x1c - Interrupt Enable"]
55    #[inline(always)]
56    pub const fn ier(&self) -> &Ier {
57        &self.ier
58    }
59    #[doc = "0x20 - DMA Enable"]
60    #[inline(always)]
61    pub const fn der(&self) -> &Der {
62        &self.der
63    }
64    #[doc = "0x24 - Reset Control"]
65    #[inline(always)]
66    pub const fn rcr(&self) -> &Rcr {
67        &self.rcr
68    }
69    #[doc = "0x28 - Trigger Control"]
70    #[inline(always)]
71    pub const fn tcr(&self) -> &Tcr {
72        &self.tcr
73    }
74    #[doc = "0x2c - Periodic Trigger Control"]
75    #[inline(always)]
76    pub const fn pcr(&self) -> &Pcr {
77        &self.pcr
78    }
79}
80#[doc = "VERID (r) register accessor: Version Identifier\n\nYou can [`read`](crate::Reg::read) this register and get [`verid::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@verid`] module"]
81#[doc(alias = "VERID")]
82pub type Verid = crate::Reg<verid::VeridSpec>;
83#[doc = "Version Identifier"]
84pub mod verid;
85#[doc = "PARAM (r) register accessor: Parameter\n\nYou can [`read`](crate::Reg::read) this register and get [`param::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@param`] module"]
86#[doc(alias = "PARAM")]
87pub type Param = crate::Reg<param::ParamSpec>;
88#[doc = "Parameter"]
89pub mod param;
90#[doc = "DATA (rw) register accessor: Data\n\nYou can [`read`](crate::Reg::read) this register and get [`data::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`data::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@data`] module"]
91#[doc(alias = "DATA")]
92pub type Data = crate::Reg<data::DataSpec>;
93#[doc = "Data"]
94pub mod data;
95#[doc = "GCR (rw) register accessor: Global Control\n\nYou can [`read`](crate::Reg::read) this register and get [`gcr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`gcr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@gcr`] module"]
96#[doc(alias = "GCR")]
97pub type Gcr = crate::Reg<gcr::GcrSpec>;
98#[doc = "Global Control"]
99pub mod gcr;
100#[doc = "FCR (rw) register accessor: DAC FIFO Control\n\nYou can [`read`](crate::Reg::read) this register and get [`fcr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fcr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fcr`] module"]
101#[doc(alias = "FCR")]
102pub type Fcr = crate::Reg<fcr::FcrSpec>;
103#[doc = "DAC FIFO Control"]
104pub mod fcr;
105#[doc = "FPR (r) register accessor: DAC FIFO Pointer\n\nYou can [`read`](crate::Reg::read) this register and get [`fpr::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fpr`] module"]
106#[doc(alias = "FPR")]
107pub type Fpr = crate::Reg<fpr::FprSpec>;
108#[doc = "DAC FIFO Pointer"]
109pub mod fpr;
110#[doc = "FSR (rw) register accessor: FIFO Status\n\nYou can [`read`](crate::Reg::read) this register and get [`fsr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fsr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fsr`] module"]
111#[doc(alias = "FSR")]
112pub type Fsr = crate::Reg<fsr::FsrSpec>;
113#[doc = "FIFO Status"]
114pub mod fsr;
115#[doc = "IER (rw) register accessor: Interrupt Enable\n\nYou can [`read`](crate::Reg::read) this register and get [`ier::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ier::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ier`] module"]
116#[doc(alias = "IER")]
117pub type Ier = crate::Reg<ier::IerSpec>;
118#[doc = "Interrupt Enable"]
119pub mod ier;
120#[doc = "DER (rw) register accessor: DMA Enable\n\nYou can [`read`](crate::Reg::read) this register and get [`der::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`der::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@der`] module"]
121#[doc(alias = "DER")]
122pub type Der = crate::Reg<der::DerSpec>;
123#[doc = "DMA Enable"]
124pub mod der;
125#[doc = "RCR (rw) register accessor: Reset Control\n\nYou can [`read`](crate::Reg::read) this register and get [`rcr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`rcr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@rcr`] module"]
126#[doc(alias = "RCR")]
127pub type Rcr = crate::Reg<rcr::RcrSpec>;
128#[doc = "Reset Control"]
129pub mod rcr;
130#[doc = "TCR (rw) register accessor: Trigger Control\n\nYou can [`read`](crate::Reg::read) this register and get [`tcr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`tcr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@tcr`] module"]
131#[doc(alias = "TCR")]
132pub type Tcr = crate::Reg<tcr::TcrSpec>;
133#[doc = "Trigger Control"]
134pub mod tcr;
135#[doc = "PCR (rw) register accessor: Periodic Trigger Control\n\nYou can [`read`](crate::Reg::read) this register and get [`pcr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`pcr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@pcr`] module"]
136#[doc(alias = "PCR")]
137pub type Pcr = crate::Reg<pcr::PcrSpec>;
138#[doc = "Periodic Trigger Control"]
139pub mod pcr;