Expand description
Runtime support for generated clients (spec §31). no_std, allocation
free: generated code (moddef-codegen) drives the codec core over its
static POINTS table and calls into these helpers so the emitted method
bodies stay small. Not a stable public API surface — pinned by the
generator, may change with it.
Functions§
- na_
meaning - The sentinel meaning for registers that decoded to
Value::Unavailable. - read_
regs - Read a point window into a fixed-size register array. Coil/discrete spaces read a single bit into word 0 (parity with the dynamic facade).
- ref_int
- Integer value of a scale_ref / selector_ref companion point.
- resolve_
sunspec - Probe SunSpec anchors, walk the (model_id, length) chain, and return the offset of the target model’s ID register (spec §7.3; generated discovery blocks cache the result).
- value_
bool - value_
datetime - Epoch value per the point’s datetime encoding.
- value_
f64 - value_
fields - Raw window of a packed-fields point (feed a generated field struct).
- value_
flags - Raw window of a FLAGS point (feed a generated flags struct).
- value_
i64 - value_
u64 - write_
regs - Write encoded registers (holding) or a single coil.