Struct nrf5340_app_pac::usbregulator_ns::RegisterBlock
source · [−]#[repr(C)]pub struct RegisterBlock {
pub events_usbdetected: EVENTS_USBDETECTED,
pub events_usbremoved: EVENTS_USBREMOVED,
pub events_usbpwrrdy: EVENTS_USBPWRRDY,
pub publish_usbdetected: PUBLISH_USBDETECTED,
pub publish_usbremoved: PUBLISH_USBREMOVED,
pub publish_usbpwrrdy: PUBLISH_USBPWRRDY,
pub inten: INTEN,
pub intenset: INTENSET,
pub intenclr: INTENCLR,
pub usbregstatus: USBREGSTATUS,
/* private fields */
}
Expand description
Register block
Fields
events_usbdetected: EVENTS_USBDETECTED
0x100 - Voltage supply detected on VBUS
events_usbremoved: EVENTS_USBREMOVED
0x104 - Voltage supply removed from VBUS
events_usbpwrrdy: EVENTS_USBPWRRDY
0x108 - USB 3.3 V supply ready
publish_usbdetected: PUBLISH_USBDETECTED
0x180 - Publish configuration for event USBDETECTED
publish_usbremoved: PUBLISH_USBREMOVED
0x184 - Publish configuration for event USBREMOVED
publish_usbpwrrdy: PUBLISH_USBPWRRDY
0x188 - Publish configuration for event USBPWRRDY
inten: INTEN
0x300 - Enable or disable interrupt
intenset: INTENSET
0x304 - Enable interrupt
intenclr: INTENCLR
0x308 - Disable interrupt
usbregstatus: USBREGSTATUS
0x400 - USB supply status
Auto Trait Implementations
impl !RefUnwindSafe for RegisterBlock
impl Send for RegisterBlock
impl !Sync for RegisterBlock
impl Unpin for RegisterBlock
impl UnwindSafe for RegisterBlock
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more