Generated from stm32-data bd6bc952a2503d43ce6af87b9ad6665388e0175b
This commit is contained in:
parent
d2d5bacbf9
commit
a3820c27dc
@ -1174,6 +1174,18 @@
|
|||||||
"bit_offset": 0,
|
"bit_offset": 0,
|
||||||
"bit_size": 1
|
"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",
|
"name": "TXFELVL",
|
||||||
"description": "TXFELVL.",
|
"description": "TXFELVL.",
|
||||||
|
@ -674,7 +674,15 @@ pub struct Gahbcfg (pub u32) ; impl Gahbcfg { # [doc = "GINTMSK."]
|
|||||||
# [inline (always)]
|
# [inline (always)]
|
||||||
pub const fn gintmsk (& self) -> bool { let val = (self . 0 >> 0usize) & 0x01 ; val != 0 } # [doc = "GINTMSK."]
|
pub const fn gintmsk (& self) -> bool { let val = (self . 0 >> 0usize) & 0x01 ; val != 0 } # [doc = "GINTMSK."]
|
||||||
# [inline (always)]
|
# [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)]
|
# [inline (always)]
|
||||||
pub const fn txfelvl (& self) -> bool { let val = (self . 0 >> 7usize) & 0x01 ; val != 0 } # [doc = "TXFELVL."]
|
pub const fn txfelvl (& self) -> bool { let val = (self . 0 >> 7usize) & 0x01 ; val != 0 } # [doc = "TXFELVL."]
|
||||||
# [inline (always)]
|
# [inline (always)]
|
||||||
|
@ -2798,6 +2798,34 @@
|
|||||||
array: None,
|
array: None,
|
||||||
enumm: 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 {
|
Field {
|
||||||
name: "txfelvl",
|
name: "txfelvl",
|
||||||
description: Some(
|
description: Some(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user