#[repr(C)]pub struct RegisterBlock {Show 15 fields
pub cfgr1: Reg<CFGR1_SPEC>,
pub cfgr2: Reg<CFGR2_SPEC>,
pub cfgr3: Reg<CFGR3_SPEC>,
pub cr: Reg<CR_SPEC>,
pub imr: Reg<IMR_SPEC>,
pub sr: Reg<SR_SPEC>,
pub icr: Reg<ICR_SPEC>,
pub tx_ordsetr: Reg<TX_ORDSETR_SPEC>,
pub tx_payszr: Reg<TX_PAYSZR_SPEC>,
pub txdr: Reg<TXDR_SPEC>,
pub rx_ordsetr: Reg<RX_ORDSETR_SPEC>,
pub rx_payszr: Reg<RX_PAYSZR_SPEC>,
pub rxdr: Reg<RXDR_SPEC>,
pub rx_ordextr1: Reg<RX_ORDEXTR1_SPEC>,
pub rx_ordextr2: Reg<RX_ORDEXTR2_SPEC>,
}
Expand description
Register block
Fields
cfgr1: Reg<CFGR1_SPEC>
0x00 - UCPD configuration register 1
cfgr2: Reg<CFGR2_SPEC>
0x04 - UCPD configuration register 2
cfgr3: Reg<CFGR3_SPEC>
0x08 - UCPD configuration register 3
cr: Reg<CR_SPEC>
0x0c - UCPD control register
imr: Reg<IMR_SPEC>
0x10 - UCPD interrupt mask register
sr: Reg<SR_SPEC>
0x14 - UCPD status register
icr: Reg<ICR_SPEC>
0x18 - UCPD interrupt clear register
tx_ordsetr: Reg<TX_ORDSETR_SPEC>
0x1c - UCPD Tx ordered set type register
tx_payszr: Reg<TX_PAYSZR_SPEC>
0x20 - UCPD Tx payload size register
txdr: Reg<TXDR_SPEC>
0x24 - UCPD Tx data register
rx_ordsetr: Reg<RX_ORDSETR_SPEC>
0x28 - UCPD Rx ordered set register
rx_payszr: Reg<RX_PAYSZR_SPEC>
0x2c - UCPD Rx payload size register
rxdr: Reg<RXDR_SPEC>
0x30 - UCPD receive data register
rx_ordextr1: Reg<RX_ORDEXTR1_SPEC>
0x34 - UCPD Rx ordered set extension register 1
rx_ordextr2: Reg<RX_ORDEXTR2_SPEC>
0x38 - UCPD Rx ordered set extension register 2
Auto Trait Implementations
impl !RefUnwindSafe for RegisterBlock
impl Send for RegisterBlock
impl !Sync for RegisterBlock
impl Unpin for RegisterBlock
impl UnwindSafe for RegisterBlock
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more