|
| 1 | +#[repr(C)] |
| 2 | +#[cfg_attr(feature = "impl-register-debug", derive(Debug))] |
| 3 | +#[doc = "Register block"] |
| 4 | +pub struct RegisterBlock { |
| 5 | + int_raw: INT_RAW, |
| 6 | + int_st: INT_ST, |
| 7 | + int_ena: INT_ENA, |
| 8 | + int_clr: INT_CLR, |
| 9 | + out_link: OUT_LINK, |
| 10 | + in_link: IN_LINK, |
| 11 | + out_eof_des_addr: OUT_EOF_DES_ADDR, |
| 12 | + in_eof_des_addr: IN_EOF_DES_ADDR, |
| 13 | + out_eof_bfr_des_addr: OUT_EOF_BFR_DES_ADDR, |
| 14 | + inlink_dscr: INLINK_DSCR, |
| 15 | + inlink_dscr_bf0: INLINK_DSCR_BF0, |
| 16 | + _reserved11: [u8; 0x04], |
| 17 | + outlink_dscr: OUTLINK_DSCR, |
| 18 | + outlink_dscr_bf0: OUTLINK_DSCR_BF0, |
| 19 | + _reserved13: [u8; 0x04], |
| 20 | + conf: CONF, |
| 21 | + in_st: IN_ST, |
| 22 | + out_st: OUT_ST, |
| 23 | + _reserved16: [u8; 0xb4], |
| 24 | + date: DATE, |
| 25 | +} |
| 26 | +impl RegisterBlock { |
| 27 | + #[doc = "0x00 - Raw interrupt status"] |
| 28 | + #[inline(always)] |
| 29 | + pub const fn int_raw(&self) -> &INT_RAW { |
| 30 | + &self.int_raw |
| 31 | + } |
| 32 | + #[doc = "0x04 - Masked interrupt status"] |
| 33 | + #[inline(always)] |
| 34 | + pub const fn int_st(&self) -> &INT_ST { |
| 35 | + &self.int_st |
| 36 | + } |
| 37 | + #[doc = "0x08 - Interrupt enable bits"] |
| 38 | + #[inline(always)] |
| 39 | + pub const fn int_ena(&self) -> &INT_ENA { |
| 40 | + &self.int_ena |
| 41 | + } |
| 42 | + #[doc = "0x0c - Interrupt clear bits"] |
| 43 | + #[inline(always)] |
| 44 | + pub const fn int_clr(&self) -> &INT_CLR { |
| 45 | + &self.int_clr |
| 46 | + } |
| 47 | + #[doc = "0x10 - Link descriptor address and control"] |
| 48 | + #[inline(always)] |
| 49 | + pub const fn out_link(&self) -> &OUT_LINK { |
| 50 | + &self.out_link |
| 51 | + } |
| 52 | + #[doc = "0x14 - Link descriptor address and control"] |
| 53 | + #[inline(always)] |
| 54 | + pub const fn in_link(&self) -> &IN_LINK { |
| 55 | + &self.in_link |
| 56 | + } |
| 57 | + #[doc = "0x18 - Transmit descriptor address when EOF occurs"] |
| 58 | + #[inline(always)] |
| 59 | + pub const fn out_eof_des_addr(&self) -> &OUT_EOF_DES_ADDR { |
| 60 | + &self.out_eof_des_addr |
| 61 | + } |
| 62 | + #[doc = "0x1c - Receive descriptor address when EOF occurs"] |
| 63 | + #[inline(always)] |
| 64 | + pub const fn in_eof_des_addr(&self) -> &IN_EOF_DES_ADDR { |
| 65 | + &self.in_eof_des_addr |
| 66 | + } |
| 67 | + #[doc = "0x20 - Transmit descriptor address before the last transmit descriptor"] |
| 68 | + #[inline(always)] |
| 69 | + pub const fn out_eof_bfr_des_addr(&self) -> &OUT_EOF_BFR_DES_ADDR { |
| 70 | + &self.out_eof_bfr_des_addr |
| 71 | + } |
| 72 | + #[doc = "0x24 - Address of current receive descriptor"] |
| 73 | + #[inline(always)] |
| 74 | + pub const fn inlink_dscr(&self) -> &INLINK_DSCR { |
| 75 | + &self.inlink_dscr |
| 76 | + } |
| 77 | + #[doc = "0x28 - Address of last receive descriptor"] |
| 78 | + #[inline(always)] |
| 79 | + pub const fn inlink_dscr_bf0(&self) -> &INLINK_DSCR_BF0 { |
| 80 | + &self.inlink_dscr_bf0 |
| 81 | + } |
| 82 | + #[doc = "0x30 - Address of current transmit descriptor"] |
| 83 | + #[inline(always)] |
| 84 | + pub const fn outlink_dscr(&self) -> &OUTLINK_DSCR { |
| 85 | + &self.outlink_dscr |
| 86 | + } |
| 87 | + #[doc = "0x34 - Address of last transmit descriptor"] |
| 88 | + #[inline(always)] |
| 89 | + pub const fn outlink_dscr_bf0(&self) -> &OUTLINK_DSCR_BF0 { |
| 90 | + &self.outlink_dscr_bf0 |
| 91 | + } |
| 92 | + #[doc = "0x3c - Copy DMA configuration register"] |
| 93 | + #[inline(always)] |
| 94 | + pub const fn conf(&self) -> &CONF { |
| 95 | + &self.conf |
| 96 | + } |
| 97 | + #[doc = "0x40 - Status register of receiving data"] |
| 98 | + #[inline(always)] |
| 99 | + pub const fn in_st(&self) -> &IN_ST { |
| 100 | + &self.in_st |
| 101 | + } |
| 102 | + #[doc = "0x44 - Status register of transmitting data"] |
| 103 | + #[inline(always)] |
| 104 | + pub const fn out_st(&self) -> &OUT_ST { |
| 105 | + &self.out_st |
| 106 | + } |
| 107 | + #[doc = "0xfc - Copy DMA version control register"] |
| 108 | + #[inline(always)] |
| 109 | + pub const fn date(&self) -> &DATE { |
| 110 | + &self.date |
| 111 | + } |
| 112 | +} |
| 113 | +#[doc = "INT_RAW (r) register accessor: Raw interrupt status\n\nYou can [`read`](crate::Reg::read) this register and get [`int_raw::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_raw`] module"] |
| 114 | +pub type INT_RAW = crate::Reg<int_raw::INT_RAW_SPEC>; |
| 115 | +#[doc = "Raw interrupt status"] |
| 116 | +pub mod int_raw; |
| 117 | +#[doc = "INT_ST (r) register accessor: Masked interrupt status\n\nYou can [`read`](crate::Reg::read) this register and get [`int_st::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_st`] module"] |
| 118 | +pub type INT_ST = crate::Reg<int_st::INT_ST_SPEC>; |
| 119 | +#[doc = "Masked interrupt status"] |
| 120 | +pub mod int_st; |
| 121 | +#[doc = "INT_ENA (rw) register accessor: Interrupt enable bits\n\nYou can [`read`](crate::Reg::read) this register and get [`int_ena::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`int_ena::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@int_ena`] module"] |
| 122 | +pub type INT_ENA = crate::Reg<int_ena::INT_ENA_SPEC>; |
| 123 | +#[doc = "Interrupt enable bits"] |
| 124 | +pub mod int_ena; |
| 125 | +#[doc = "INT_CLR (w) register accessor: Interrupt clear bits\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`int_clr::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_clr`] module"] |
| 126 | +pub type INT_CLR = crate::Reg<int_clr::INT_CLR_SPEC>; |
| 127 | +#[doc = "Interrupt clear bits"] |
| 128 | +pub mod int_clr; |
| 129 | +#[doc = "OUT_LINK (rw) register accessor: Link descriptor address and control\n\nYou can [`read`](crate::Reg::read) this register and get [`out_link::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`out_link::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@out_link`] module"] |
| 130 | +pub type OUT_LINK = crate::Reg<out_link::OUT_LINK_SPEC>; |
| 131 | +#[doc = "Link descriptor address and control"] |
| 132 | +pub mod out_link; |
| 133 | +#[doc = "IN_LINK (rw) register accessor: Link descriptor address and control\n\nYou can [`read`](crate::Reg::read) this register and get [`in_link::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`in_link::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@in_link`] module"] |
| 134 | +pub type IN_LINK = crate::Reg<in_link::IN_LINK_SPEC>; |
| 135 | +#[doc = "Link descriptor address and control"] |
| 136 | +pub mod in_link; |
| 137 | +#[doc = "CONF (r) register accessor: Copy DMA configuration register\n\nYou can [`read`](crate::Reg::read) this register and get [`conf::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@conf`] module"] |
| 138 | +pub type CONF = crate::Reg<conf::CONF_SPEC>; |
| 139 | +#[doc = "Copy DMA configuration register"] |
| 140 | +pub mod conf; |
| 141 | +#[doc = "OUT_EOF_DES_ADDR (r) register accessor: Transmit descriptor address when EOF occurs\n\nYou can [`read`](crate::Reg::read) this register and get [`out_eof_des_addr::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@out_eof_des_addr`] module"] |
| 142 | +pub type OUT_EOF_DES_ADDR = crate::Reg<out_eof_des_addr::OUT_EOF_DES_ADDR_SPEC>; |
| 143 | +#[doc = "Transmit descriptor address when EOF occurs"] |
| 144 | +pub mod out_eof_des_addr; |
| 145 | +#[doc = "IN_EOF_DES_ADDR (r) register accessor: Receive descriptor address when EOF occurs\n\nYou can [`read`](crate::Reg::read) this register and get [`in_eof_des_addr::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@in_eof_des_addr`] module"] |
| 146 | +pub type IN_EOF_DES_ADDR = crate::Reg<in_eof_des_addr::IN_EOF_DES_ADDR_SPEC>; |
| 147 | +#[doc = "Receive descriptor address when EOF occurs"] |
| 148 | +pub mod in_eof_des_addr; |
| 149 | +#[doc = "OUT_EOF_BFR_DES_ADDR (r) register accessor: Transmit descriptor address before the last transmit descriptor\n\nYou can [`read`](crate::Reg::read) this register and get [`out_eof_bfr_des_addr::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@out_eof_bfr_des_addr`] module"] |
| 150 | +pub type OUT_EOF_BFR_DES_ADDR = crate::Reg<out_eof_bfr_des_addr::OUT_EOF_BFR_DES_ADDR_SPEC>; |
| 151 | +#[doc = "Transmit descriptor address before the last transmit descriptor"] |
| 152 | +pub mod out_eof_bfr_des_addr; |
| 153 | +#[doc = "INLINK_DSCR (r) register accessor: Address of current receive descriptor\n\nYou can [`read`](crate::Reg::read) this register and get [`inlink_dscr::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@inlink_dscr`] module"] |
| 154 | +pub type INLINK_DSCR = crate::Reg<inlink_dscr::INLINK_DSCR_SPEC>; |
| 155 | +#[doc = "Address of current receive descriptor"] |
| 156 | +pub mod inlink_dscr; |
| 157 | +#[doc = "INLINK_DSCR_BF0 (r) register accessor: Address of last receive descriptor\n\nYou can [`read`](crate::Reg::read) this register and get [`inlink_dscr_bf0::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@inlink_dscr_bf0`] module"] |
| 158 | +pub type INLINK_DSCR_BF0 = crate::Reg<inlink_dscr_bf0::INLINK_DSCR_BF0_SPEC>; |
| 159 | +#[doc = "Address of last receive descriptor"] |
| 160 | +pub mod inlink_dscr_bf0; |
| 161 | +#[doc = "OUTLINK_DSCR (r) register accessor: Address of current transmit descriptor\n\nYou can [`read`](crate::Reg::read) this register and get [`outlink_dscr::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@outlink_dscr`] module"] |
| 162 | +pub type OUTLINK_DSCR = crate::Reg<outlink_dscr::OUTLINK_DSCR_SPEC>; |
| 163 | +#[doc = "Address of current transmit descriptor"] |
| 164 | +pub mod outlink_dscr; |
| 165 | +#[doc = "OUTLINK_DSCR_BF0 (r) register accessor: Address of last transmit descriptor\n\nYou can [`read`](crate::Reg::read) this register and get [`outlink_dscr_bf0::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@outlink_dscr_bf0`] module"] |
| 166 | +pub type OUTLINK_DSCR_BF0 = crate::Reg<outlink_dscr_bf0::OUTLINK_DSCR_BF0_SPEC>; |
| 167 | +#[doc = "Address of last transmit descriptor"] |
| 168 | +pub mod outlink_dscr_bf0; |
| 169 | +#[doc = "IN_ST (r) register accessor: Status register of receiving data\n\nYou can [`read`](crate::Reg::read) this register and get [`in_st::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@in_st`] module"] |
| 170 | +pub type IN_ST = crate::Reg<in_st::IN_ST_SPEC>; |
| 171 | +#[doc = "Status register of receiving data"] |
| 172 | +pub mod in_st; |
| 173 | +#[doc = "OUT_ST (r) register accessor: Status register of transmitting data\n\nYou can [`read`](crate::Reg::read) this register and get [`out_st::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@out_st`] module"] |
| 174 | +pub type OUT_ST = crate::Reg<out_st::OUT_ST_SPEC>; |
| 175 | +#[doc = "Status register of transmitting data"] |
| 176 | +pub mod out_st; |
| 177 | +#[doc = "DATE (rw) register accessor: Copy DMA version control register\n\nYou can [`read`](crate::Reg::read) this register and get [`date::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`date::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@date`] module"] |
| 178 | +pub type DATE = crate::Reg<date::DATE_SPEC>; |
| 179 | +#[doc = "Copy DMA version control register"] |
| 180 | +pub mod date; |
0 commit comments