pub struct RegisterNode {
pub name: String,
pub meta: NodeMeta,
pub access: AccessMode,
pub predicates: PredicateRefs,
/* private fields */
}Expand description
<Register> node: raw byte-array access to a register block.
The base register type — an address, a byte count, and no interpretation of
the bytes. StringNode is this plus UTF-8/NUL decoding.
Fields§
§name: StringUnique feature name.
meta: NodeMetaShared metadata (visibility, description, tooltip, etc.).
access: AccessModeDeclared access rights.
predicates: PredicateRefsPredicate refs gating implementation / availability / lock state.
Implementations§
Source§impl RegisterNode
impl RegisterNode
Sourcepub fn declared_len(&self) -> u32
pub fn declared_len(&self) -> u32
Declared length of the register block in bytes; 0 when a
<pLength> node gives it (RegisterNode::length_node).
This exists so a consumer can report a register’s size without naming
Addressing, which is not re-exported (backlog API-02).
Sourcepub fn port(&self) -> Option<&str>
pub fn port(&self) -> Option<&str>
The <pPort> the register’s address is relative to; None means the
device.
Sourcepub fn length_node(&self) -> Option<&str>
pub fn length_node(&self) -> Option<&str>
The <pLength> node the length is read from at runtime, if any.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for RegisterNode
impl !RefUnwindSafe for RegisterNode
impl !Sync for RegisterNode
impl Send for RegisterNode
impl Unpin for RegisterNode
impl UnsafeUnpin for RegisterNode
impl UnwindSafe for RegisterNode
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