Struct stm32l4xx_hal::pac::usb::RegisterBlock
source · [−]#[repr(C)]pub struct RegisterBlock {
pub epr: [Reg<EPR_SPEC>; 8],
pub cntr: Reg<CNTR_SPEC>,
pub istr: Reg<ISTR_SPEC>,
pub fnr: Reg<FNR_SPEC>,
pub daddr: Reg<DADDR_SPEC>,
pub btable: Reg<BTABLE_SPEC>,
pub lpmcsr: Reg<LPMCSR_SPEC>,
pub bcdr: Reg<BCDR_SPEC>,
/* private fields */
}
Expand description
Register block
Fields
epr: [Reg<EPR_SPEC>; 8]
0x00..0x20 - endpoint %s register
cntr: Reg<CNTR_SPEC>
0x40 - control register
istr: Reg<ISTR_SPEC>
0x44 - interrupt status register
fnr: Reg<FNR_SPEC>
0x48 - frame number register
daddr: Reg<DADDR_SPEC>
0x4c - device address
btable: Reg<BTABLE_SPEC>
0x50 - Buffer table address
lpmcsr: Reg<LPMCSR_SPEC>
0x54 - LPM control and status register
bcdr: Reg<BCDR_SPEC>
0x58 - Battery charging detector
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