stm32l4x2_pac/
usb.rs

1#[doc = r" Register block"]
2#[repr(C)]
3pub struct RegisterBlock {
4    #[doc = "0x00 - endpoint 0 register"]
5    pub epr: [EPR; 8],
6    _reserved0: [u8; 32usize],
7    #[doc = "0x40 - control register"]
8    pub cntr: CNTR,
9    #[doc = "0x44 - interrupt status register"]
10    pub istr: ISTR,
11    #[doc = "0x48 - frame number register"]
12    pub fnr: FNR,
13    #[doc = "0x4c - device address"]
14    pub daddr: DADDR,
15    #[doc = "0x50 - Buffer table address"]
16    pub btable: BTABLE,
17    #[doc = "0x54 - LPM control and status register"]
18    pub lpmcsr: LPMCSR,
19    #[doc = "0x58 - Battery charging detector"]
20    pub bcdr: BCDR,
21}
22#[doc = "endpoint 0 register"]
23pub struct EPR {
24    register: ::vcell::VolatileCell<u32>,
25}
26#[doc = "endpoint 0 register"]
27pub mod epr;
28#[doc = "control register"]
29pub struct CNTR {
30    register: ::vcell::VolatileCell<u32>,
31}
32#[doc = "control register"]
33pub mod cntr;
34#[doc = "interrupt status register"]
35pub struct ISTR {
36    register: ::vcell::VolatileCell<u32>,
37}
38#[doc = "interrupt status register"]
39pub mod istr;
40#[doc = "frame number register"]
41pub struct FNR {
42    register: ::vcell::VolatileCell<u32>,
43}
44#[doc = "frame number register"]
45pub mod fnr;
46#[doc = "device address"]
47pub struct DADDR {
48    register: ::vcell::VolatileCell<u32>,
49}
50#[doc = "device address"]
51pub mod daddr;
52#[doc = "Buffer table address"]
53pub struct BTABLE {
54    register: ::vcell::VolatileCell<u32>,
55}
56#[doc = "Buffer table address"]
57pub mod btable;
58#[doc = "LPM control and status register"]
59pub struct LPMCSR {
60    register: ::vcell::VolatileCell<u32>,
61}
62#[doc = "LPM control and status register"]
63pub mod lpmcsr;
64#[doc = "Battery charging detector"]
65pub struct BCDR {
66    register: ::vcell::VolatileCell<u32>,
67}
68#[doc = "Battery charging detector"]
69pub mod bcdr;