Skip to main content

Module rt

Module rt 

Source
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.