#[derive(Config)]
{
// Attributes available to this derive:
#[block_names]
}
Expand description
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.