pub enum AddressTerm {
Fixed(i64),
Node(String),
Index {
node: String,
offset: IndexOffset,
},
}Expand description
One contribution to a register address.
Variants§
Fixed(i64)
<Address> — a literal offset.
Signed: GenICam Standard v2.1.1 §2.8.16 lets a register on a chunk port
declare a negative address, “interpreted as offset from the back of the
chunk”. Baumer’s HXG20 reads ChunkImageLength at -4. A hex literal
keeps its bit pattern, so 0xFFFFFFFFFFFFFFFC is -4 too.
Node(String)
<pAddress> — an offset read from another node at runtime.
Index
<pIndex> — an index read from another node, scaled by a stride.
Fields
§
offset: IndexOffsetStride each index step advances the address by.
Trait Implementations§
Source§impl Clone for AddressTerm
impl Clone for AddressTerm
Source§impl Debug for AddressTerm
impl Debug for AddressTerm
Source§impl<'de> Deserialize<'de> for AddressTerm
impl<'de> Deserialize<'de> for AddressTerm
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AddressTerm
Source§impl PartialEq for AddressTerm
impl PartialEq for AddressTerm
Source§impl Serialize for AddressTerm
impl Serialize for AddressTerm
impl StructuralPartialEq for AddressTerm
Auto Trait Implementations§
impl Freeze for AddressTerm
impl RefUnwindSafe for AddressTerm
impl Send for AddressTerm
impl Sync for AddressTerm
impl Unpin for AddressTerm
impl UnsafeUnpin for AddressTerm
impl UnwindSafe for AddressTerm
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