#[repr(C)]
pub struct RegisterBlock {
Show 20 fields pub ep1: EP1, pub ep1_conf: EP1_CONF, pub int_raw: INT_RAW, pub int_st: INT_ST, pub int_ena: INT_ENA, pub int_clr: INT_CLR, pub conf0: CONF0, pub test: TEST, pub jfifo_st: JFIFO_ST, pub fram_num: FRAM_NUM, pub in_ep0_st: IN_EP0_ST, pub in_ep1_st: IN_EP1_ST, pub in_ep2_st: IN_EP2_ST, pub in_ep3_st: IN_EP3_ST, pub out_ep0_st: OUT_EP0_ST, pub out_ep1_st: OUT_EP1_ST, pub out_ep2_st: OUT_EP2_ST, pub misc_conf: MISC_CONF, pub mem_conf: MEM_CONF, pub date: DATE, /* private fields */
}
Expand description

Register block

Fields§

§ep1: EP1

0x00 - Endpoint 1 FIFO register

§ep1_conf: EP1_CONF

0x04 - Endpoint 1 configure and status register

§int_raw: INT_RAW

0x08 - Raw status interrupt

§int_st: INT_ST

0x0c - Masked interrupt

§int_ena: INT_ENA

0x10 - Interrupt enable bits

§int_clr: INT_CLR

0x14 - Interrupt clear bits

§conf0: CONF0

0x18 - Configure 0 register

§test: TEST

0x1c - USB Internal PHY test register

§jfifo_st: JFIFO_ST

0x20 - USB-JTAG FIFO status

§fram_num: FRAM_NUM

0x24 - SOF frame number

§in_ep0_st: IN_EP0_ST

0x28 - IN Endpoint 0 status

§in_ep1_st: IN_EP1_ST

0x2c - IN Endpoint 1 status

§in_ep2_st: IN_EP2_ST

0x30 - IN Endpoint 2 status

§in_ep3_st: IN_EP3_ST

0x34 - IN Endpoint 3 status

§out_ep0_st: OUT_EP0_ST

0x38 - OUT Endpoint 0 status

§out_ep1_st: OUT_EP1_ST

0x3c - OUT Endpoint 1 status

§out_ep2_st: OUT_EP2_ST

0x40 - OUT Endpoint 2 status

§misc_conf: MISC_CONF

0x44 - MISC register

§mem_conf: MEM_CONF

0x48 - Power control

§date: DATE

0x80 - Version control register

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.