#[repr(C)]
pub struct RegisterBlock {
Show 46 fields pub usbhd_base_ctrl: USBHD_BASE_CTRL, pub usbhd_udev_ctrl__usbhd_uhost_ctrl: USBHD_UDEV_CTRL__USBHD_UHOST_CTRL, pub usb_int_en: USB_INT_EN, pub usb_dev_ad: USB_DEV_AD, pub usb_mis_st: USB_MIS_ST, pub usb_int_fg: USB_INT_FG, pub usb_int_st: USB_INT_ST, pub usb_rx_len: USB_RX_LEN, pub uep4_1_mod: UEP4_1_MOD, pub uep2_3_mod__r8_uh_ep_mod: UEP2_3_MOD__R8_UH_EP_MOD, pub uep5_6_mod: UEP5_6_MOD, pub uep7_mod: UEP7_MOD, pub uep0_dma: UEP0_DMA, pub uep1_dma: UEP1_DMA, pub uep2_dma__r32_uh_rx_dma: UEP2_DMA__R32_UH_RX_DMA, pub uep3_dma__r32_uh_tx_dma: UEP3_DMA__R32_UH_TX_DMA, pub uep4_dma: UEP4_DMA, pub uep5_dma: UEP5_DMA, pub uep6_dma: UEP6_DMA, pub uep7_dma: UEP7_DMA, pub uep0_t_len: UEP0_T_LEN, pub uep0_t_ctrl: UEP0_T_CTRL, pub uep0_r_ctrl: UEP0_R_CTRL, pub uep1_t_len: UEP1_T_LEN, pub uep1_t_ctrl___usbhd_uh_setup: UEP1_T_CTRL___USBHD_UH_SETUP, pub uep1_r_ctrl: UEP1_R_CTRL, pub uep2_t_len__usbhd_uh_ep_pid: UEP2_T_LEN__USBHD_UH_EP_PID, pub uep2_t_ctrl: UEP2_T_CTRL, pub uep2_r_ctrl__usbhd_uh_rx_ctrl: UEP2_R_CTRL__USBHD_UH_RX_CTRL, pub uep3_t_len__usbhd_uh_tx_len: UEP3_T_LEN__USBHD_UH_TX_LEN, pub uep3_t_ctrl__usbhd_uh_tx_ctrl: UEP3_T_CTRL__USBHD_UH_TX_CTRL, pub uep3_r_ctrl_: UEP3_R_CTRL_, pub uep4_t_len: UEP4_T_LEN, pub uep4_t_ctrl: UEP4_T_CTRL, pub uep4_r_ctrl_: UEP4_R_CTRL_, pub uep5_t_len: UEP5_T_LEN, pub uep5_t_ctrl: UEP5_T_CTRL, pub uep5_r_ctrl_: UEP5_R_CTRL_, pub uep6_t_len: UEP6_T_LEN, pub uep6_t_ctrl: UEP6_T_CTRL, pub uep6_r_ctrl_: UEP6_R_CTRL_, pub uep7_t_len: UEP7_T_LEN, pub uep7_t_ctrl: UEP7_T_CTRL, pub uep7_r_ctrl_: UEP7_R_CTRL_, pub usb_otg_cr: USB_OTG_CR, pub usb_otg_sr: USB_OTG_SR, /* private fields */
}
Expand description

Register block

Fields§

§usbhd_base_ctrl: USBHD_BASE_CTRL

0x00 - USB base control

§usbhd_udev_ctrl__usbhd_uhost_ctrl: USBHD_UDEV_CTRL__USBHD_UHOST_CTRL

0x01 - USB device/host physical prot control

§usb_int_en: USB_INT_EN

0x02 - USB interrupt enable

§usb_dev_ad: USB_DEV_AD

0x03 - USB device address

§usb_mis_st: USB_MIS_ST

0x05 - USB miscellaneous status

§usb_int_fg: USB_INT_FG

0x06 - USB interrupt flag

§usb_int_st: USB_INT_ST

0x07 - USB interrupt status

§usb_rx_len: USB_RX_LEN

0x08 - USB receiving length

§uep4_1_mod: UEP4_1_MOD

0x0c - endpoint 4/1 mode

§uep2_3_mod__r8_uh_ep_mod: UEP2_3_MOD__R8_UH_EP_MOD

0x0d - endpoint 2/3 mode;host endpoint mode

§uep5_6_mod: UEP5_6_MOD

0x0e - endpoint 5/6 mode

§uep7_mod: UEP7_MOD

0x0f - endpoint 7 mode

§uep0_dma: UEP0_DMA

0x10 - endpoint 0 DMA buffer address

§uep1_dma: UEP1_DMA

0x14 - endpoint 1 DMA buffer address

§uep2_dma__r32_uh_rx_dma: UEP2_DMA__R32_UH_RX_DMA

0x18 - endpoint 2 DMA buffer address;host rx endpoint buffer high address

§uep3_dma__r32_uh_tx_dma: UEP3_DMA__R32_UH_TX_DMA

0x1c - endpoint 3 DMA buffer address;host tx endpoint buffer high address

§uep4_dma: UEP4_DMA

0x20 - endpoint 4 DMA buffer address

§uep5_dma: UEP5_DMA

0x24 - endpoint 5 DMA buffer address

§uep6_dma: UEP6_DMA

0x28 - endpoint 6 DMA buffer address

§uep7_dma: UEP7_DMA

0x2c - endpoint 7 DMA buffer address

§uep0_t_len: UEP0_T_LEN

0x30 - endpoint 0 transmittal length

§uep0_t_ctrl: UEP0_T_CTRL

0x32 - endpoint 0 control

§uep0_r_ctrl: UEP0_R_CTRL

0x33 - endpoint 0 control

§uep1_t_len: UEP1_T_LEN

0x34 - endpoint 1 transmittal length

§uep1_t_ctrl___usbhd_uh_setup: UEP1_T_CTRL___USBHD_UH_SETUP

0x36 - endpoint 1 control

§uep1_r_ctrl: UEP1_R_CTRL

0x37 - endpoint 1 control

§uep2_t_len__usbhd_uh_ep_pid: UEP2_T_LEN__USBHD_UH_EP_PID

0x38 - endpoint 2 transmittal length

§uep2_t_ctrl: UEP2_T_CTRL

0x3a - endpoint 2 control

§uep2_r_ctrl__usbhd_uh_rx_ctrl: UEP2_R_CTRL__USBHD_UH_RX_CTRL

0x3b - endpoint 2 control

§uep3_t_len__usbhd_uh_tx_len: UEP3_T_LEN__USBHD_UH_TX_LEN

0x3c - endpoint 3 transmittal length

§uep3_t_ctrl__usbhd_uh_tx_ctrl: UEP3_T_CTRL__USBHD_UH_TX_CTRL

0x3e - endpoint 3 control

§uep3_r_ctrl_: UEP3_R_CTRL_

0x3f - endpoint 3 control

§uep4_t_len: UEP4_T_LEN

0x40 - endpoint 4 transmittal length

§uep4_t_ctrl: UEP4_T_CTRL

0x42 - endpoint 4 control

§uep4_r_ctrl_: UEP4_R_CTRL_

0x43 - endpoint 4 control

§uep5_t_len: UEP5_T_LEN

0x44 - endpoint 5 transmittal length

§uep5_t_ctrl: UEP5_T_CTRL

0x46 - endpoint 5 control

§uep5_r_ctrl_: UEP5_R_CTRL_

0x47 - endpoint 5 control

§uep6_t_len: UEP6_T_LEN

0x48 - endpoint 6 transmittal length

§uep6_t_ctrl: UEP6_T_CTRL

0x4a - endpoint 6 control

§uep6_r_ctrl_: UEP6_R_CTRL_

0x4b - endpoint 6 control

§uep7_t_len: UEP7_T_LEN

0x4c - endpoint 7 transmittal length

§uep7_t_ctrl: UEP7_T_CTRL

0x4e - endpoint 7 control

§uep7_r_ctrl_: UEP7_R_CTRL_

0x4f - endpoint 7 control

§usb_otg_cr: USB_OTG_CR

0x54 - usb otg control

§usb_otg_sr: USB_OTG_SR

0x58 - usb otg status

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

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

const: unstable · 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 Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.
source§

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

§

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

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.