#[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

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.