#[non_exhaustive]pub enum NodeDecl {
Integer {Show 21 fields
name: String,
meta: NodeMeta,
addressing: Option<Addressing>,
len: u32,
access: AccessMode,
min: Option<i64>,
max: Option<i64>,
inc: Option<i64>,
unit: Option<String>,
bitfield: Option<BitField>,
sign: Sign,
byte_order: ByteOrder,
selected: Vec<String>,
pvalue: Option<String>,
p_max: Option<String>,
p_min: Option<String>,
p_inc: Option<String>,
value: Option<i64>,
indexed: Option<IndexedValue<i64>>,
predicates: PredicateRefs,
invalidators: Vec<String>,
},
Float {Show 18 fields
name: String,
meta: NodeMeta,
addressing: Option<Addressing>,
access: AccessMode,
min: Option<f64>,
max: Option<f64>,
unit: Option<String>,
scale: Option<(i64, i64)>,
offset: Option<f64>,
pvalue: Option<String>,
p_min: Option<String>,
p_max: Option<String>,
value: Option<f64>,
indexed: Option<IndexedValue<f64>>,
encoding: FloatEncoding,
byte_order: ByteOrder,
predicates: PredicateRefs,
invalidators: Vec<String>,
},
Enum {
name: String,
meta: NodeMeta,
addressing: Option<Addressing>,
access: AccessMode,
entries: Vec<EnumEntryDecl>,
default: Option<String>,
selected: Vec<String>,
pvalue: Option<String>,
value: Option<i64>,
predicates: PredicateRefs,
},
Boolean {
name: String,
meta: NodeMeta,
addressing: Option<Addressing>,
len: u32,
access: AccessMode,
bitfield: Option<BitField>,
pvalue: Option<String>,
on_value: Option<i64>,
off_value: Option<i64>,
value: Option<i64>,
predicates: PredicateRefs,
},
Command {
name: String,
meta: NodeMeta,
address: Option<u64>,
len: u32,
pvalue: Option<String>,
command_value: CommandValueSrc,
predicates: PredicateRefs,
},
Category {
name: String,
meta: NodeMeta,
children: Vec<String>,
predicates: PredicateRefs,
},
SwissKnife(SwissKnifeDecl),
Converter(ConverterDecl),
IntConverter(IntConverterDecl),
String(StringDecl),
Register(RegisterDecl),
}Expand description
Declaration of a node extracted from the GenICam XML description.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Integer
Integer feature backed by a register block or delegated via pValue.
Fields
addressing: Option<Addressing>Addressing metadata (absent when delegated via pvalue).
len: u32Length in bytes of the register payload; 0 when a <pLength>
node gives it (Addressing::length_node).
access: AccessModeAccess privileges.
min: Option<i64><Min>; None when the XML declares none.
Absent is not the same as i64::MIN: a document may declare the
full domain, and a feature delegating through <pValue> takes the
bound of the node it delegates to when it declares none itself.
byte_order: ByteOrderByte order of the register payload. Defaults to ByteOrder::Big
(the GenICam default). Recorded here as well as on bitfield,
because an unmasked register has no bitfield to carry it.
selected: Vec<String><pSelected>: the features this node selects.
GenICam Standard v2.1.1 §2.8.4 puts <pSelected> on the
selector, naming each feature that “will show a different value
depending on the value of selector node”.
indexed: Option<IndexedValue<i64>><pIndex> with <ValueIndexed>/<pValueIndexed> and
<ValueDefault>/<pValueDefault>: a value picked from a table.
predicates: PredicateRefsPredicate refs gating implementation / availability / lock state.
Float
Floating point feature backed by an integer register with scaling, a native IEEE 754 register, or delegated via pValue.
Fields
addressing: Option<Addressing>Addressing metadata (absent when delegated via pvalue).
access: AccessModeDeclared access mode.
value: Option<f64><Value>: the start value of a floating <Float>, one with no
register and no <pValue> (GenICam Standard v2.1.1 §2.8.9).
indexed: Option<IndexedValue<f64>><pIndex> with <ValueIndexed>/<pValueIndexed> and
<ValueDefault>/<pValueDefault>: a value picked from a table.
encoding: FloatEncodingHow the register payload should be interpreted — native IEEE 754
or scaled integer. Defaults to FloatEncoding::ScaledInteger to
preserve existing behaviour for XML that relied on it.
byte_order: ByteOrderByte order of the register payload. Defaults to ByteOrder::Big
(the GenICam default).
predicates: PredicateRefsPredicate refs gating implementation / availability / lock state.
Enum
Enumeration feature exposing a list of named integer values.
Fields
addressing: Option<Addressing>Addressing metadata (absent when delegated via pvalue).
access: AccessModeDeclared access mode.
entries: Vec<EnumEntryDecl>The entries, in document order.
selected: Vec<String><pSelected>: the features this enumeration selects (GenICam
Standard v2.1.1 §2.8.4).
value: Option<i64><Value>: the start value of an enumeration with no register
behind it, a selector the host keeps (AVT’s GainSelector).
predicates: PredicateRefsPredicate refs gating implementation / availability / lock state.
Boolean
Boolean feature backed by a single bit/byte register or delegated via pValue.
Fields
addressing: Option<Addressing>Addressing metadata (absent when delegated via pvalue).
access: AccessModeDeclared access mode.
value: Option<i64><Value>: the start value of a boolean with no register behind
it, compared with on_value. AVT and Prosilica declare
TLParamsLocked this way.
predicates: PredicateRefsPredicate refs gating implementation / availability / lock state.
Command
Command feature that triggers an action when written.
Fields
command_value: CommandValueSrcThe value executing the command writes: <CommandValue> or
<pCommandValue>.
predicates: PredicateRefsPredicate refs gating implementation / availability / lock state.
Category
Category used to organise features.
Fields
predicates: PredicateRefsPredicate refs gating implementation / availability.
SwissKnife(SwissKnifeDecl)
Computed value backed by an arithmetic expression referencing other nodes.
Converter(ConverterDecl)
Converter transforming raw values to/from user-facing floating-point values.
IntConverter(IntConverterDecl)
IntConverter transforming raw values to/from user-facing integer values.
String(StringDecl)
StringReg for string-typed register access.
Register(RegisterDecl)
Raw byte-array register access.