Generated from stm32-data 68b0e791cf895669c32dcf3ab2b8cd5332f19079

This commit is contained in:
guangzong 2024-04-15 11:40:57 -04:00
parent 89e8c79237
commit d2d5bacbf9
Signed by: guangzong
GPG Key ID: 095389BACAE97D19
3 changed files with 50 additions and 2 deletions

View File

@ -493,6 +493,12 @@
"bit_offset": 0,
"bit_size": 11
},
{
"name": "MPSIZ0",
"description": "MPSIZ for endpoint 0",
"bit_offset": 0,
"bit_size": 2
},
{
"name": "USBAEP",
"description": "USBAEP",
@ -746,6 +752,12 @@
"bit_offset": 0,
"bit_size": 11
},
{
"name": "MPSIZ0",
"description": "MPSIZ for endpoint 0",
"bit_offset": 0,
"bit_size": 2
},
{
"name": "USBAEP",
"description": "USBAEP",

View File

@ -210,7 +210,11 @@ pub struct Diepctl (pub u32) ; impl Diepctl { # [doc = "MPSIZ"]
# [inline (always)]
pub const fn mpsiz (& self) -> u16 { let val = (self . 0 >> 0usize) & 0x07ff ; val as u16 } # [doc = "MPSIZ"]
# [inline (always)]
pub fn set_mpsiz (& mut self , val : u16) { self . 0 = (self . 0 & ! (0x07ff << 0usize)) | (((val as u32) & 0x07ff) << 0usize) ; } # [doc = "USBAEP"]
pub fn set_mpsiz (& mut self , val : u16) { self . 0 = (self . 0 & ! (0x07ff << 0usize)) | (((val as u32) & 0x07ff) << 0usize) ; } # [doc = "MPSIZ for endpoint 0"]
# [inline (always)]
pub const fn mpsiz0 (& self) -> u8 { let val = (self . 0 >> 0usize) & 0x03 ; val as u8 } # [doc = "MPSIZ for endpoint 0"]
# [inline (always)]
pub fn set_mpsiz0 (& mut self , val : u8) { self . 0 = (self . 0 & ! (0x03 << 0usize)) | (((val as u32) & 0x03) << 0usize) ; } # [doc = "USBAEP"]
# [inline (always)]
pub const fn usbaep (& self) -> bool { let val = (self . 0 >> 15usize) & 0x01 ; val != 0 } # [doc = "USBAEP"]
# [inline (always)]
@ -382,7 +386,11 @@ pub struct Doepctl (pub u32) ; impl Doepctl { # [doc = "MPSIZ"]
# [inline (always)]
pub const fn mpsiz (& self) -> u16 { let val = (self . 0 >> 0usize) & 0x07ff ; val as u16 } # [doc = "MPSIZ"]
# [inline (always)]
pub fn set_mpsiz (& mut self , val : u16) { self . 0 = (self . 0 & ! (0x07ff << 0usize)) | (((val as u32) & 0x07ff) << 0usize) ; } # [doc = "USBAEP"]
pub fn set_mpsiz (& mut self , val : u16) { self . 0 = (self . 0 & ! (0x07ff << 0usize)) | (((val as u32) & 0x07ff) << 0usize) ; } # [doc = "MPSIZ for endpoint 0"]
# [inline (always)]
pub const fn mpsiz0 (& self) -> u8 { let val = (self . 0 >> 0usize) & 0x03 ; val as u8 } # [doc = "MPSIZ for endpoint 0"]
# [inline (always)]
pub fn set_mpsiz0 (& mut self , val : u8) { self . 0 = (self . 0 & ! (0x03 << 0usize)) | (((val as u32) & 0x03) << 0usize) ; } # [doc = "USBAEP"]
# [inline (always)]
pub const fn usbaep (& self) -> bool { let val = (self . 0 >> 15usize) & 0x01 ; val != 0 } # [doc = "USBAEP"]
# [inline (always)]

View File

@ -1240,6 +1240,20 @@
array: None,
enumm: None,
},
Field {
name: "mpsiz0",
description: Some(
"MPSIZ for endpoint 0",
),
bit_offset: BitOffset::Regular(
RegularBitOffset {
offset: 0,
},
),
bit_size: 2,
array: None,
enumm: None,
},
Field {
name: "usbaep",
description: Some(
@ -1820,6 +1834,20 @@
array: None,
enumm: None,
},
Field {
name: "mpsiz0",
description: Some(
"MPSIZ for endpoint 0",
),
bit_offset: BitOffset::Regular(
RegularBitOffset {
offset: 0,
},
),
bit_size: 2,
array: None,
enumm: None,
},
Field {
name: "usbaep",
description: Some(