pub struct Usbphy { /* private fields */ }Expand description
Universal System Bus Physical Layer
Implementations§
Source§impl Usbphy
impl Usbphy
Sourcepub const PTR: *const RegisterBlock = {0x4013b000 as *const usbphy::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x4013b000 as *const usbphy::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
Sourcepub unsafe fn steal() -> Self
pub unsafe fn steal() -> Self
Steal an instance of this peripheral
§Safety
Ensure that the new instance of the peripheral cannot be used in a way that may race with any existing instances, for example by only accessing read-only or write-only registers, or by consuming the original peripheral and using critical sections to coordinate access between multiple new instances.
Additionally, other software such as HALs may rely on only one peripheral instance existing to ensure memory safety; ensure no stolen instances are passed to such software.
Methods from Deref<Target = RegisterBlock>§
Sourcepub fn debug0_set(&self) -> &Debug0Set
pub fn debug0_set(&self) -> &Debug0Set
0x54 - USB PHY Debug Register 0
Sourcepub fn debug0_clr(&self) -> &Debug0Clr
pub fn debug0_clr(&self) -> &Debug0Clr
0x58 - USB PHY Debug Register 0
Sourcepub fn debug0_tog(&self) -> &Debug0Tog
pub fn debug0_tog(&self) -> &Debug0Tog
0x5c - USB PHY Debug Register 0
Sourcepub fn debug1_set(&self) -> &Debug1Set
pub fn debug1_set(&self) -> &Debug1Set
0x74 - UTMI Debug Status Register 1
Sourcepub fn debug1_clr(&self) -> &Debug1Clr
pub fn debug1_clr(&self) -> &Debug1Clr
0x78 - UTMI Debug Status Register 1
Sourcepub fn debug1_tog(&self) -> &Debug1Tog
pub fn debug1_tog(&self) -> &Debug1Tog
0x7c - UTMI Debug Status Register 1
Sourcepub fn pll_sic_set(&self) -> &PllSicSet
pub fn pll_sic_set(&self) -> &PllSicSet
0xa4 - USB PHY PLL Control/Status Register
Sourcepub fn pll_sic_clr(&self) -> &PllSicClr
pub fn pll_sic_clr(&self) -> &PllSicClr
0xa8 - USB PHY PLL Control/Status Register
Sourcepub fn pll_sic_tog(&self) -> &PllSicTog
pub fn pll_sic_tog(&self) -> &PllSicTog
0xac - USB PHY PLL Control/Status Register
Sourcepub fn usb1_vbus_detect(&self) -> &Usb1VbusDetect
pub fn usb1_vbus_detect(&self) -> &Usb1VbusDetect
0xc0 - USB PHY VBUS Detect Control Register
Sourcepub fn usb1_vbus_detect_set(&self) -> &Usb1VbusDetectSet
pub fn usb1_vbus_detect_set(&self) -> &Usb1VbusDetectSet
0xc4 - USB PHY VBUS Detect Control Register
Sourcepub fn usb1_vbus_detect_clr(&self) -> &Usb1VbusDetectClr
pub fn usb1_vbus_detect_clr(&self) -> &Usb1VbusDetectClr
0xc8 - USB PHY VBUS Detect Control Register
Sourcepub fn usb1_vbus_detect_tog(&self) -> &Usb1VbusDetectTog
pub fn usb1_vbus_detect_tog(&self) -> &Usb1VbusDetectTog
0xcc - USB PHY VBUS Detect Control Register
Sourcepub fn usb1_vbus_det_stat(&self) -> &Usb1VbusDetStat
pub fn usb1_vbus_det_stat(&self) -> &Usb1VbusDetStat
0xd0 - USB PHY VBUS Detector Status Register
Sourcepub fn usb1_chrg_detect(&self) -> &Usb1ChrgDetect
pub fn usb1_chrg_detect(&self) -> &Usb1ChrgDetect
0xe0 - USB PHY Charger Detect Control Register
Sourcepub fn usb1_chrg_detect_set(&self) -> &Usb1ChrgDetectSet
pub fn usb1_chrg_detect_set(&self) -> &Usb1ChrgDetectSet
0xe4 - USB PHY Charger Detect Control Register
Sourcepub fn usb1_chrg_detect_clr(&self) -> &Usb1ChrgDetectClr
pub fn usb1_chrg_detect_clr(&self) -> &Usb1ChrgDetectClr
0xe8 - USB PHY Charger Detect Control Register
Sourcepub fn usb1_chrg_detect_tog(&self) -> &Usb1ChrgDetectTog
pub fn usb1_chrg_detect_tog(&self) -> &Usb1ChrgDetectTog
0xec - USB PHY Charger Detect Control Register
Sourcepub fn usb1_chrg_det_stat(&self) -> &Usb1ChrgDetStat
pub fn usb1_chrg_det_stat(&self) -> &Usb1ChrgDetStat
0xf0 - USB PHY Charger Detect Status Register
Sourcepub fn anactrl_set(&self) -> &AnactrlSet
pub fn anactrl_set(&self) -> &AnactrlSet
0x104 - USB PHY Analog Control Register
Sourcepub fn anactrl_clr(&self) -> &AnactrlClr
pub fn anactrl_clr(&self) -> &AnactrlClr
0x108 - USB PHY Analog Control Register
Sourcepub fn anactrl_tog(&self) -> &AnactrlTog
pub fn anactrl_tog(&self) -> &AnactrlTog
0x10c - USB PHY Analog Control Register
Sourcepub fn usb1_loopback(&self) -> &Usb1Loopback
pub fn usb1_loopback(&self) -> &Usb1Loopback
0x110 - USB PHY Loopback Control/Status Register
Sourcepub fn usb1_loopback_set(&self) -> &Usb1LoopbackSet
pub fn usb1_loopback_set(&self) -> &Usb1LoopbackSet
0x114 - USB PHY Loopback Control/Status Register
Sourcepub fn usb1_loopback_clr(&self) -> &Usb1LoopbackClr
pub fn usb1_loopback_clr(&self) -> &Usb1LoopbackClr
0x118 - USB PHY Loopback Control/Status Register
Sourcepub fn usb1_loopback_tog(&self) -> &Usb1LoopbackTog
pub fn usb1_loopback_tog(&self) -> &Usb1LoopbackTog
0x11c - USB PHY Loopback Control/Status Register
Sourcepub fn usb1_loopback_hsfscnt(&self) -> &Usb1LoopbackHsfscnt
pub fn usb1_loopback_hsfscnt(&self) -> &Usb1LoopbackHsfscnt
0x120 - USB PHY Loopback Packet Number Select Register
Sourcepub fn usb1_loopback_hsfscnt_set(&self) -> &Usb1LoopbackHsfscntSet
pub fn usb1_loopback_hsfscnt_set(&self) -> &Usb1LoopbackHsfscntSet
0x124 - USB PHY Loopback Packet Number Select Register
Sourcepub fn usb1_loopback_hsfscnt_clr(&self) -> &Usb1LoopbackHsfscntClr
pub fn usb1_loopback_hsfscnt_clr(&self) -> &Usb1LoopbackHsfscntClr
0x128 - USB PHY Loopback Packet Number Select Register
Sourcepub fn usb1_loopback_hsfscnt_tog(&self) -> &Usb1LoopbackHsfscntTog
pub fn usb1_loopback_hsfscnt_tog(&self) -> &Usb1LoopbackHsfscntTog
0x12c - USB PHY Loopback Packet Number Select Register
Sourcepub fn trim_override_en(&self) -> &TrimOverrideEn
pub fn trim_override_en(&self) -> &TrimOverrideEn
0x130 - USB PHY Trim Override Enable Register
Sourcepub fn trim_override_en_set(&self) -> &TrimOverrideEnSet
pub fn trim_override_en_set(&self) -> &TrimOverrideEnSet
0x134 - USB PHY Trim Override Enable Register
Sourcepub fn trim_override_en_clr(&self) -> &TrimOverrideEnClr
pub fn trim_override_en_clr(&self) -> &TrimOverrideEnClr
0x138 - USB PHY Trim Override Enable Register
Sourcepub fn trim_override_en_tog(&self) -> &TrimOverrideEnTog
pub fn trim_override_en_tog(&self) -> &TrimOverrideEnTog
0x13c - USB PHY Trim Override Enable Register