d1_pac/usb1/
ohci_memory_pointer_partition.rs1#[doc = r"Register block"]
2#[repr(C)]
3pub struct OHCI_MEMORY_POINTER_PARTITION {
4 hc_hcca: HC_HCCA,
5 hc_period_current_ed: HC_PERIOD_CURRENT_ED,
6 hc_control_head_ed: HC_CONTROL_HEAD_ED,
7 hc_control_current_ed: HC_CONTROL_CURRENT_ED,
8 hc_bulk_head_ed: HC_BULK_HEAD_ED,
9 hc_bulk_current_ed: HC_BULK_CURRENT_ED,
10 hc_done_head: HC_DONE_HEAD,
11}
12impl OHCI_MEMORY_POINTER_PARTITION {
13 #[doc = "0x00 - OHCI HCCA Base"]
14 #[inline(always)]
15 pub const fn hc_hcca(&self) -> &HC_HCCA {
16 &self.hc_hcca
17 }
18 #[doc = "0x04 - OHCI Period Current ED Base"]
19 #[inline(always)]
20 pub const fn hc_period_current_ed(&self) -> &HC_PERIOD_CURRENT_ED {
21 &self.hc_period_current_ed
22 }
23 #[doc = "0x08 - OHCI Control Head ED Base"]
24 #[inline(always)]
25 pub const fn hc_control_head_ed(&self) -> &HC_CONTROL_HEAD_ED {
26 &self.hc_control_head_ed
27 }
28 #[doc = "0x0c - OHCI Control Current ED Base"]
29 #[inline(always)]
30 pub const fn hc_control_current_ed(&self) -> &HC_CONTROL_CURRENT_ED {
31 &self.hc_control_current_ed
32 }
33 #[doc = "0x10 - OHCI Bulk Head ED Base"]
34 #[inline(always)]
35 pub const fn hc_bulk_head_ed(&self) -> &HC_BULK_HEAD_ED {
36 &self.hc_bulk_head_ed
37 }
38 #[doc = "0x14 - OHCI Bulk Current ED Base"]
39 #[inline(always)]
40 pub const fn hc_bulk_current_ed(&self) -> &HC_BULK_CURRENT_ED {
41 &self.hc_bulk_current_ed
42 }
43 #[doc = "0x18 - OHCI Done Head Base"]
44 #[inline(always)]
45 pub const fn hc_done_head(&self) -> &HC_DONE_HEAD {
46 &self.hc_done_head
47 }
48}
49#[doc = "hc_hcca (rw) register accessor: OHCI HCCA Base\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`hc_hcca::R`]. You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`hc_hcca::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@hc_hcca`] module"]
50pub type HC_HCCA = crate::Reg<hc_hcca::HC_HCCA_SPEC>;
51#[doc = "OHCI HCCA Base"]
52pub mod hc_hcca;
53#[doc = "hc_period_current_ed (rw) register accessor: OHCI Period Current ED Base\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`hc_period_current_ed::R`]. You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`hc_period_current_ed::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@hc_period_current_ed`] module"]
54pub type HC_PERIOD_CURRENT_ED = crate::Reg<hc_period_current_ed::HC_PERIOD_CURRENT_ED_SPEC>;
55#[doc = "OHCI Period Current ED Base"]
56pub mod hc_period_current_ed;
57#[doc = "hc_control_head_ed (rw) register accessor: OHCI Control Head ED Base\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`hc_control_head_ed::R`]. You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`hc_control_head_ed::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@hc_control_head_ed`] module"]
58pub type HC_CONTROL_HEAD_ED = crate::Reg<hc_control_head_ed::HC_CONTROL_HEAD_ED_SPEC>;
59#[doc = "OHCI Control Head ED Base"]
60pub mod hc_control_head_ed;
61#[doc = "hc_control_current_ed (rw) register accessor: OHCI Control Current ED Base\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`hc_control_current_ed::R`]. You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`hc_control_current_ed::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@hc_control_current_ed`] module"]
62pub type HC_CONTROL_CURRENT_ED = crate::Reg<hc_control_current_ed::HC_CONTROL_CURRENT_ED_SPEC>;
63#[doc = "OHCI Control Current ED Base"]
64pub mod hc_control_current_ed;
65#[doc = "hc_bulk_head_ed (rw) register accessor: OHCI Bulk Head ED Base\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`hc_bulk_head_ed::R`]. You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`hc_bulk_head_ed::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@hc_bulk_head_ed`] module"]
66pub type HC_BULK_HEAD_ED = crate::Reg<hc_bulk_head_ed::HC_BULK_HEAD_ED_SPEC>;
67#[doc = "OHCI Bulk Head ED Base"]
68pub mod hc_bulk_head_ed;
69#[doc = "hc_bulk_current_ed (rw) register accessor: OHCI Bulk Current ED Base\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`hc_bulk_current_ed::R`]. You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`hc_bulk_current_ed::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@hc_bulk_current_ed`] module"]
70pub type HC_BULK_CURRENT_ED = crate::Reg<hc_bulk_current_ed::HC_BULK_CURRENT_ED_SPEC>;
71#[doc = "OHCI Bulk Current ED Base"]
72pub mod hc_bulk_current_ed;
73#[doc = "hc_done_head (rw) register accessor: OHCI Done Head Base\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`hc_done_head::R`]. You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`hc_done_head::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@hc_done_head`] module"]
74pub type HC_DONE_HEAD = crate::Reg<hc_done_head::HC_DONE_HEAD_SPEC>;
75#[doc = "OHCI Done Head Base"]
76pub mod hc_done_head;