pub struct IntegerNode {Show 16 fields
pub name: String,
pub meta: NodeMeta,
pub addressing: Option<Addressing>,
pub len: u32,
pub access: AccessMode,
pub min: i64,
pub max: i64,
pub inc: Option<i64>,
pub unit: Option<String>,
pub bitfield: Option<BitField>,
pub selectors: Vec<String>,
pub selected_if: Vec<(String, Vec<String>)>,
pub pvalue: Option<String>,
pub p_max: Option<String>,
pub p_min: Option<String>,
pub value: Option<i64>,
/* private fields */
}Expand description
Integer feature metadata extracted from the XML description.
Fields§
§name: StringUnique feature name.
meta: NodeMetaShared metadata (visibility, description, tooltip, etc.).
addressing: Option<Addressing>Register addressing metadata (absent when delegated via pvalue).
len: u32Nominal register length in bytes.
access: AccessModeDeclared access rights.
min: i64Minimum permitted user value.
max: i64Maximum permitted user value.
inc: Option<i64>Optional increment step the value must respect.
unit: Option<String>Optional engineering unit such as “us”.
bitfield: Option<BitField>Optional bitfield metadata restricting active bits.
selectors: Vec<String>Selector nodes controlling the visibility of this node.
selected_if: Vec<(String, Vec<String>)>Selector gating rules in the form (selector, allowed values).
pvalue: Option<String>Node providing the value (delegates read/write).
p_max: Option<String>Node providing the dynamic maximum.
p_min: Option<String>Node providing the dynamic minimum.
value: Option<i64>Static value for constant nodes.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for IntegerNode
impl !RefUnwindSafe for IntegerNode
impl Send for IntegerNode
impl !Sync for IntegerNode
impl Unpin for IntegerNode
impl UnsafeUnpin for IntegerNode
impl UnwindSafe for IntegerNode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more