![]() |
nRF Connect SDK API 3.4.99
|
| #define VTF_CHANNEL_DEFINE | ( | _sym, | |
| _id, | |||
| _sample_fn, | |||
| _init_fn, | |||
| _type, | |||
| _field, | |||
| _default ) |
#include <include/drivers/vtf_monitoring/vtf_monitoring.h>
Register a channel with the VTF subsystem.
Expands to a static const struct vtf_channel placed in the vtf_channel iterable section.
| _sym | C symbol name for the descriptor. |
| _id | enum vtf_channel_id this channel handles. |
| _sample_fn | Per-channel sample callback. Must be non-NULL. |
| _init_fn | Optional init callback (NULL if not needed). |
| _type | Default value's enum vtf_sample_type. |
| _field | Member of union vtf_sample_value to assign the default into (for example, i32). |
| _default | Default reading value. |