RegisterBlock

Struct RegisterBlock 

Source
pub struct RegisterBlock { /* private fields */ }
Expand description

Register block

Implementations§

Source§

impl RegisterBlock

Source

pub const fn perid(&self) -> &Perid

0x00 - Peripheral ID

Source

pub const fn idcomp(&self) -> &Idcomp

0x04 - Peripheral ID Complement

Source

pub const fn rev(&self) -> &Rev

0x08 - Peripheral Revision

Source

pub const fn addinfo(&self) -> &Addinfo

0x0c - Peripheral Additional Information

Source

pub const fn otgistat(&self) -> &Otgistat

0x10 - OTG Interrupt Status

Source

pub const fn otgicr(&self) -> &Otgicr

0x14 - OTG Interrupt Control

Source

pub const fn otgstat(&self) -> &Otgstat

0x18 - OTG Status

Source

pub const fn otgctl(&self) -> &Otgctl

0x1c - OTG Control

Source

pub const fn istat(&self) -> &Istat

0x80 - Interrupt Status

Source

pub const fn inten(&self) -> &Inten

0x84 - Interrupt Enable

Source

pub const fn errstat(&self) -> &Errstat

0x88 - Error Interrupt Status

Source

pub const fn erren(&self) -> &Erren

0x8c - Error Interrupt Enable

Source

pub const fn stat(&self) -> &Stat

0x90 - Status

Source

pub const fn ctl(&self) -> &Ctl

0x94 - Control

Source

pub const fn addr(&self) -> &Addr

0x98 - Address

Source

pub const fn bdtpage1(&self) -> &Bdtpage1

0x9c - BDT Page 1

Source

pub const fn frmnuml(&self) -> &Frmnuml

0xa0 - Frame Number Register Low

Source

pub const fn frmnumh(&self) -> &Frmnumh

0xa4 - Frame Number Register High

Source

pub const fn token(&self) -> &Token

0xa8 - Token

Source

pub const fn softhld(&self) -> &Softhld

0xac - SOF Threshold

Source

pub const fn bdtpage2(&self) -> &Bdtpage2

0xb0 - BDT Page 2

Source

pub const fn bdtpage3(&self) -> &Bdtpage3

0xb4 - BDT Page 3

Source

pub const fn endpoint(&self, n: usize) -> &Endpoint

0xc0..0xd0 - Array of registers: ENDPT

Source

pub fn endpoint_iter(&self) -> impl Iterator<Item = &Endpoint>

Iterator for array of: 0xc0..0xd0 - Array of registers: ENDPT

Source

pub const fn usbctrl(&self) -> &Usbctrl

0x100 - USB Control

Source

pub const fn observe(&self) -> &Observe

0x104 - USB OTG Observe

Source

pub const fn control(&self) -> &Control

0x108 - USB OTG Control

Source

pub const fn usbtrc0(&self) -> &Usbtrc0

0x10c - USB Transceiver Control 0

Source

pub const fn usbfrmadjust(&self) -> &Usbfrmadjust

0x114 - Frame Adjust

Source

pub const fn keep_alive_ctrl_rsvd(&self) -> &KeepAliveCtrlRsvd

0x124 - Reserved

Source

pub const fn keep_alive_wkctrl_rsvd(&self) -> &KeepAliveWkctrlRsvd

0x128 - Reserved

Source

pub const fn miscctrl(&self) -> &Miscctrl

0x12c - Miscellaneous Control

Source

pub const fn stall_il_dis(&self) -> &StallIlDis

0x130 - Peripheral Mode Stall Disable for Endpoints 7 to 0 in IN Direction

Source

pub const fn stall_ih_dis(&self) -> &StallIhDis

0x134 - Peripheral Mode Stall Disable for Endpoints 15 to 8 in IN Direction

Source

pub const fn stall_ol_dis(&self) -> &StallOlDis

0x138 - Peripheral Mode Stall Disable for Endpoints 7 to 0 in OUT Direction

Source

pub const fn stall_oh_dis(&self) -> &StallOhDis

0x13c - Peripheral Mode Stall Disable for Endpoints 15 to 8 in OUT Direction

Source

pub const fn clk_recover_ctrl(&self) -> &ClkRecoverCtrl

0x140 - USB Clock Recovery Control

Source

pub const fn clk_recover_irc_en(&self) -> &ClkRecoverIrcEn

0x144 - FIRC Oscillator Enable

Source

pub const fn clk_recover_int_en(&self) -> &ClkRecoverIntEn

0x154 - Clock Recovery Combined Interrupt Enable

Source

pub const fn clk_recover_int_status(&self) -> &ClkRecoverIntStatus

0x15c - Clock Recovery Separated Interrupt Status

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.