#[repr(C)]
#[cfg_attr(feature = "impl-register-debug", derive(Debug))]
#[doc = "Device OUT endpoint 0"]
pub struct OUT_EP0 {
doepctl: DOEPCTL,
_reserved1: [u8; 0x04],
doepint: DOEPINT,
_reserved2: [u8; 0x04],
doeptsiz: DOEPTSIZ,
doepdma: DOEPDMA,
_reserved4: [u8; 0x04],
doepdmab: DOEPDMAB,
}
impl OUT_EP0 {
#[doc = "0x00 - "]
#[inline(always)]
pub const fn doepctl(&self) -> &DOEPCTL {
&self.doepctl
}
#[doc = "0x08 - "]
#[inline(always)]
pub const fn doepint(&self) -> &DOEPINT {
&self.doepint
}
#[doc = "0x10 - "]
#[inline(always)]
pub const fn doeptsiz(&self) -> &DOEPTSIZ {
&self.doeptsiz
}
#[doc = "0x14 - "]
#[inline(always)]
pub const fn doepdma(&self) -> &DOEPDMA {
&self.doepdma
}
#[doc = "0x1c - "]
#[inline(always)]
pub const fn doepdmab(&self) -> &DOEPDMAB {
&self.doepdmab
}
}
#[doc = "DOEPCTL (rw) register accessor: \n\nYou can [`read`](crate::generic::Reg::read) this register and get [`doepctl::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 [`doepctl::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@doepctl`] module"]
pub type DOEPCTL = crate::Reg<doepctl::DOEPCTL_SPEC>;
#[doc = ""]
pub mod doepctl;
#[doc = "DOEPINT (rw) register accessor: \n\nYou can [`read`](crate::generic::Reg::read) this register and get [`doepint::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 [`doepint::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@doepint`] module"]
pub type DOEPINT = crate::Reg<doepint::DOEPINT_SPEC>;
#[doc = ""]
pub mod doepint;
#[doc = "DOEPTSIZ (rw) register accessor: \n\nYou can [`read`](crate::generic::Reg::read) this register and get [`doeptsiz::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 [`doeptsiz::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@doeptsiz`] module"]
pub type DOEPTSIZ = crate::Reg<doeptsiz::DOEPTSIZ_SPEC>;
#[doc = ""]
pub mod doeptsiz;
#[doc = "DOEPDMA (rw) register accessor: \n\nYou can [`read`](crate::generic::Reg::read) this register and get [`doepdma::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 [`doepdma::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@doepdma`] module"]
pub type DOEPDMA = crate::Reg<doepdma::DOEPDMA_SPEC>;
#[doc = ""]
pub mod doepdma;
#[doc = "DOEPDMAB (rw) register accessor: \n\nYou can [`read`](crate::generic::Reg::read) this register and get [`doepdmab::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 [`doepdmab::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@doepdmab`] module"]
pub type DOEPDMAB = crate::Reg<doepdmab::DOEPDMAB_SPEC>;
#[doc = ""]
pub mod doepdmab;