Struct svd_rs::clusterinfo::ClusterInfo [−][src]
#[non_exhaustive]pub struct ClusterInfo {
pub name: String,
pub description: Option<String>,
pub header_struct_name: Option<String>,
pub address_offset: u32,
pub default_register_properties: RegisterProperties,
pub children: Vec<RegisterCluster>,
pub derived_from: Option<String>,
}
Expand description
Description of a cluster
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.name: String
String to identify the cluster. Cluster names are required to be unique within the scope of a peripheral
description: Option<String>
String describing the details of the register cluster
header_struct_name: Option<String>
Specify the struct type name created in the device header file
address_offset: u32
Cluster address relative to the baseAddress
of the peripheral
default_register_properties: RegisterProperties
Default properties for all registers
children: Vec<RegisterCluster>
Children/members of the cluster
derived_from: Option<String>
Specify the cluster name from which to inherit data. Elements specified subsequently override inherited values
Implementations
Make a builder for ClusterInfo
pub fn modify_from(
&mut self,
builder: ClusterInfoBuilder,
lvl: ValidateLevel
) -> Result<(), SvdError>
pub fn modify_from(
&mut self,
builder: ClusterInfoBuilder,
lvl: ValidateLevel
) -> Result<(), SvdError>
Modify an existing ClusterInfo
based on a builder.
Validate the ClusterInfo
returns a iterator over all registers the cluster contains
pub fn reg_iter_mut(&mut self) -> RegIterMut<'_>ⓘNotable traits for RegIterMut<'a>impl<'a> Iterator for RegIterMut<'a> type Item = &'a mut Register;
pub fn reg_iter_mut(&mut self) -> RegIterMut<'_>ⓘNotable traits for RegIterMut<'a>impl<'a> Iterator for RegIterMut<'a> type Item = &'a mut Register;
impl<'a> Iterator for RegIterMut<'a> type Item = &'a mut Register;
returns a mutable iterator over all registers cluster contains
Trait Implementations
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for ClusterInfo
impl Send for ClusterInfo
impl Sync for ClusterInfo
impl Unpin for ClusterInfo
impl UnwindSafe for ClusterInfo
Blanket Implementations
Mutably borrows from an owned value. Read more