Finalize the build process.
That macro must be called at the end to embed metadata into the binary.
It creates a link section “metadata” with json data of all registered blocks
and exported symbol COLLECTED_STRINGS with all strings from the build.
BindingDefinition’s name_offset and name_len are referencing COLLECTED_STRINGS.
Derive macro for Config trait.
If block requires some configuration, it should be derived from Config trait.
It requires type to be AsBytes and FromBytes. Firmware will pass slice
of bytes and you should be able to call from_bytes method on it to get the
configuration. For C code you should be able to cast a pointer to your struct.