pub struct OTG_FS_GLOBAL { /* private fields */ }
Expand description
USB on the go full speed
Implementations§
Source§impl OTG_FS_GLOBAL
impl OTG_FS_GLOBAL
Sourcepub const PTR: *const RegisterBlock = {0x50000000 as *const stm32f4xx_hal::pac::otg_fs_global::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x50000000 as *const stm32f4xx_hal::pac::otg_fs_global::RegisterBlock}
Pointer to the register block
Sourcepub const fn ptr() -> *const RegisterBlock
pub const fn ptr() -> *const RegisterBlock
Return the pointer to the register block
Methods from Deref<Target = RegisterBlock>§
Sourcepub fn dieptxf1(&self) -> &Reg<DIEPTXF_SPEC>
pub fn dieptxf1(&self) -> &Reg<DIEPTXF_SPEC>
0x104 - OTF_FS device IN endpoint transmit FIFO size register
Sourcepub fn dieptxf2(&self) -> &Reg<DIEPTXF_SPEC>
pub fn dieptxf2(&self) -> &Reg<DIEPTXF_SPEC>
0x108 - OTF_FS device IN endpoint transmit FIFO size register
Sourcepub fn dieptxf3(&self) -> &Reg<DIEPTXF_SPEC>
pub fn dieptxf3(&self) -> &Reg<DIEPTXF_SPEC>
0x10c - OTF_FS device IN endpoint transmit FIFO size register
Sourcepub fn grxstsr_host(&self) -> &Reg<GRXSTSR_HOST_SPEC>
pub fn grxstsr_host(&self) -> &Reg<GRXSTSR_HOST_SPEC>
0x1c - OTG status debug read (host mode)
Sourcepub fn grxstsr_device(&self) -> &Reg<GRXSTSR_DEVICE_SPEC>
pub fn grxstsr_device(&self) -> &Reg<GRXSTSR_DEVICE_SPEC>
0x1c - OTG_FS Receive status debug read(Device mode)
Sourcepub fn grxstsp_host(&self) -> &Reg<GRXSTSP_HOST_SPEC>
pub fn grxstsp_host(&self) -> &Reg<GRXSTSP_HOST_SPEC>
0x20 - OTG status read and pop (host mode)
Sourcepub fn grxstsp_device(&self) -> &Reg<GRXSTSP_DEVICE_SPEC>
pub fn grxstsp_device(&self) -> &Reg<GRXSTSP_DEVICE_SPEC>
0x20 - OTG status read and pop (device mode)
Sourcepub fn hnptxfsiz(&self) -> &Reg<HNPTXFSIZ_SPEC>
pub fn hnptxfsiz(&self) -> &Reg<HNPTXFSIZ_SPEC>
0x28 - OTG_FS non-periodic transmit FIFO size register (Host mode)
Sourcepub fn dieptxf0(&self) -> &Reg<DIEPTXF0_SPEC>
pub fn dieptxf0(&self) -> &Reg<DIEPTXF0_SPEC>
0x28 - OTG_FS non-periodic transmit FIFO size register (Device mode)
Trait Implementations§
Source§impl Debug for OTG_FS_GLOBAL
impl Debug for OTG_FS_GLOBAL
Source§impl Deref for OTG_FS_GLOBAL
impl Deref for OTG_FS_GLOBAL
Source§type Target = RegisterBlock
type Target = RegisterBlock
The resulting type after dereferencing.
Source§impl Enable for OTG_FS_GLOBAL
impl Enable for OTG_FS_GLOBAL
Source§fn enable(rcc: &RegisterBlock)
fn enable(rcc: &RegisterBlock)
Enables peripheral
Source§fn disable(rcc: &RegisterBlock)
fn disable(rcc: &RegisterBlock)
Disables peripheral
Source§fn is_enabled() -> bool
fn is_enabled() -> bool
Check if peripheral enabled
Source§fn is_disabled() -> bool
fn is_disabled() -> bool
Check if peripheral disabled
Source§unsafe fn enable_unchecked()
unsafe fn enable_unchecked()
Safety Read more
Source§unsafe fn disable_unchecked()
unsafe fn disable_unchecked()
Safety Read more
Source§impl LPEnable for OTG_FS_GLOBAL
impl LPEnable for OTG_FS_GLOBAL
Source§fn enable_in_low_power(rcc: &RegisterBlock)
fn enable_in_low_power(rcc: &RegisterBlock)
Enables peripheral in low power mode
Source§fn disable_in_low_power(rcc: &RegisterBlock)
fn disable_in_low_power(rcc: &RegisterBlock)
Disables peripheral in low power mode
Source§fn is_enabled_in_low_power() -> bool
fn is_enabled_in_low_power() -> bool
Check if peripheral enabled in low power mode
Source§fn is_disabled_in_low_power() -> bool
fn is_disabled_in_low_power() -> bool
Check if peripheral disabled in low power mode
Source§unsafe fn enable_in_low_power_unchecked()
unsafe fn enable_in_low_power_unchecked()
Safety Read more
Source§unsafe fn disable_in_low_power_unchecked()
unsafe fn disable_in_low_power_unchecked()
Safety Read more
Source§impl Reset for OTG_FS_GLOBAL
impl Reset for OTG_FS_GLOBAL
Source§fn reset(rcc: &RegisterBlock)
fn reset(rcc: &RegisterBlock)
Resets peripheral
Source§unsafe fn reset_unchecked()
unsafe fn reset_unchecked()
Safety Read more
impl Send for OTG_FS_GLOBAL
Auto Trait Implementations§
impl Freeze for OTG_FS_GLOBAL
impl RefUnwindSafe for OTG_FS_GLOBAL
impl !Sync for OTG_FS_GLOBAL
impl Unpin for OTG_FS_GLOBAL
impl UnwindSafe for OTG_FS_GLOBAL
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more