Generated from stm32-data bd6bc952a2503d43ce6af87b9ad6665388e0175b

This commit is contained in:
guangzong 2024-04-16 12:23:18 -04:00
parent d2d5bacbf9
commit a3820c27dc
Signed by: guangzong
GPG Key ID: 095389BACAE97D19
3 changed files with 49 additions and 1 deletions

View File

@ -1174,6 +1174,18 @@
"bit_offset": 0,
"bit_size": 1
},
{
"name": "HBSTLEN",
"description": "Burst length/type",
"bit_offset": 1,
"bit_size": 4
},
{
"name": "DMAEN",
"description": "DMA enable",
"bit_offset": 5,
"bit_size": 1
},
{
"name": "TXFELVL",
"description": "TXFELVL.",

View File

@ -674,7 +674,15 @@ pub struct Gahbcfg (pub u32) ; impl Gahbcfg { # [doc = "GINTMSK."]
# [inline (always)]
pub const fn gintmsk (& self) -> bool { let val = (self . 0 >> 0usize) & 0x01 ; val != 0 } # [doc = "GINTMSK."]
# [inline (always)]
pub fn set_gintmsk (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 0usize)) | (((val as u32) & 0x01) << 0usize) ; } # [doc = "TXFELVL."]
pub fn set_gintmsk (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 0usize)) | (((val as u32) & 0x01) << 0usize) ; } # [doc = "Burst length/type"]
# [inline (always)]
pub const fn hbstlen (& self) -> u8 { let val = (self . 0 >> 1usize) & 0x0f ; val as u8 } # [doc = "Burst length/type"]
# [inline (always)]
pub fn set_hbstlen (& mut self , val : u8) { self . 0 = (self . 0 & ! (0x0f << 1usize)) | (((val as u32) & 0x0f) << 1usize) ; } # [doc = "DMA enable"]
# [inline (always)]
pub const fn dmaen (& self) -> bool { let val = (self . 0 >> 5usize) & 0x01 ; val != 0 } # [doc = "DMA enable"]
# [inline (always)]
pub fn set_dmaen (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 5usize)) | (((val as u32) & 0x01) << 5usize) ; } # [doc = "TXFELVL."]
# [inline (always)]
pub const fn txfelvl (& self) -> bool { let val = (self . 0 >> 7usize) & 0x01 ; val != 0 } # [doc = "TXFELVL."]
# [inline (always)]

View File

@ -2798,6 +2798,34 @@
array: None,
enumm: None,
},
Field {
name: "hbstlen",
description: Some(
"Burst length/type",
),
bit_offset: BitOffset::Regular(
RegularBitOffset {
offset: 1,
},
),
bit_size: 4,
array: None,
enumm: None,
},
Field {
name: "dmaen",
description: Some(
"DMA enable",
),
bit_offset: BitOffset::Regular(
RegularBitOffset {
offset: 5,
},
),
bit_size: 1,
array: None,
enumm: None,
},
Field {
name: "txfelvl",
description: Some(