Skip to main content

RegisterBlock

Struct RegisterBlock 

Source
pub struct RegisterBlock {
Show 35 fields pub syscfg: SYSCFG, pub syssts0: SYSSTS0, pub dvstctr0: DVSTCTR0, pub cfifosel: CFIFOSEL, pub cfifoctr: CFIFOCTR, pub intenb0: INTENB0, pub brdyenb: BRDYENB, pub nrdyenb: NRDYENB, pub bempenb: BEMPENB, pub sofcfg: SOFCFG, pub intsts0: INTSTS0, pub brdysts: BRDYSTS, pub nrdysts: NRDYSTS, pub bempsts: BEMPSTS, pub frmnum: FRMNUM, pub usbreq: USBREQ, pub usbval: USBVAL, pub usbindx: USBINDX, pub usbleng: USBLENG, pub dcpcfg: DCPCFG, pub dcpmaxp: DCPMAXP, pub dcpctr: DCPCTR, pub pipesel: PIPESEL, pub pipecfg: PIPECFG, pub pipemaxp: PIPEMAXP, pub pipectr: [PIPECTR; 2], pub pipe6ctr: PIPE6CTR, pub pipe7ctr: PIPE6CTR, pub pipe4tre: PIPETRE, pub pipe4trn: PIPETRN, pub pipe5tre: PIPETRE, pub pipe5trn: PIPETRN, pub usbbcctrl0: USBBCCTRL0, pub ucksel: UCKSEL, pub usbmc: USBMC, /* private fields */
}
Expand description

Register block

Fields§

§syscfg: SYSCFG

0x00 - System Configuration Control Register

§syssts0: SYSSTS0

0x04 - System Configuration Status Register 0

§dvstctr0: DVSTCTR0

0x08 - Device State Control Register 0

§cfifosel: CFIFOSEL

0x20 - CFIFO Port Select Register

§cfifoctr: CFIFOCTR

0x22 - CFIFO Port Control Register

§intenb0: INTENB0

0x30 - Interrupt Enable Register 0

§brdyenb: BRDYENB

0x36 - BRDY Interrupt Enable Register

§nrdyenb: NRDYENB

0x38 - NRDY Interrupt Enable Register

§bempenb: BEMPENB

0x3a - BEMP Interrupt Enable Register

§sofcfg: SOFCFG

0x3c - SOF Output Configuration Register

§intsts0: INTSTS0

0x40 - Interrupt Status Register 0

§brdysts: BRDYSTS

0x46 - BRDY Interrupt Status Register

§nrdysts: NRDYSTS

0x48 - NRDY Interrupt Status Register

§bempsts: BEMPSTS

0x4a - BEMP Interrupt Status Register

§frmnum: FRMNUM

0x4c - Frame Number Register

§usbreq: USBREQ

0x54 - USB Request Type Register

§usbval: USBVAL

0x56 - USB Request Value Register

§usbindx: USBINDX

0x58 - USB Request Index Register

§usbleng: USBLENG

0x5a - USB Request Length Register

§dcpcfg: DCPCFG

0x5c - DCP Configuration Register

§dcpmaxp: DCPMAXP

0x5e - DCP Maximum Packet Size Register

§dcpctr: DCPCTR

0x60 - DCP Control Register

§pipesel: PIPESEL

0x64 - Pipe Window Select Register

§pipecfg: PIPECFG

0x68 - Pipe Configuration Register

§pipemaxp: PIPEMAXP

0x6c - Pipe Maximum Packet Size Register

§pipectr: [PIPECTR; 2]

0x76 - Pipe %s Control Register

§pipe6ctr: PIPE6CTR

0x7a - Pipe %s Control Register

§pipe7ctr: PIPE6CTR

0x7c - Pipe %s Control Register

§pipe4tre: PIPETRE

0x9c - Pipe %s Transaction Counter Enable Register

§pipe4trn: PIPETRN

0x9e - Pipe %s Transaction Counter Register

§pipe5tre: PIPETRE

0xa0 - Pipe %s Transaction Counter Enable Register

§pipe5trn: PIPETRN

0xa2 - Pipe %s Transaction Counter Register

§usbbcctrl0: USBBCCTRL0

0xb0 - BC Control Register 0

§ucksel: UCKSEL

0xc4 - USB Clock Selection Register

§usbmc: USBMC

0xcc - USB Module Control Register

Implementations§

Source§

impl RegisterBlock

Source

pub const fn cfifol(&self) -> &CFIFOL

0x14 - CFIFO Port Register L

Source

pub const fn cfifo(&self) -> &CFIFO

0x14 - CFIFO Port Register

Source

pub fn pipe4ctr(&self) -> &PIPECTR

0x76 - Pipe %s Control Register

Source

pub fn pipe5ctr(&self) -> &PIPECTR

0x78 - Pipe %s Control Register

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.