Infuse-IoT SDK API 0.0.1
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
Infuse zbus channels APIs

Infuse zbus channels API. More...

Macros

#define INFUSE_ZBUS_CHAN_DEFINE(channel)
 Define an Infuse zbus channel with default parameters.
#define INFUSE_ZBUS_CHAN_DECLARE(...)
 Like ZBUS_CHAN_DECLARE for Infuse channels.
#define INFUSE_ZBUS_CHAN_GET(channel)
 Statically get pointer to Infuse channel.

Functions

static uint64_t infuse_zbus_channel_data_age (const struct zbus_channel *chan)
 Retrieve the age of the data in the zbus channel.

Detailed Description

Infuse zbus channels API.

Macro Definition Documentation

◆ INFUSE_ZBUS_CHAN_DECLARE

#define INFUSE_ZBUS_CHAN_DECLARE ( ...)

#include </__w/infuse-sdk/infuse-sdk/infuse-sdk/include/infuse/zbus/channels.h>

Value:
FOR_EACH(_INFUSE_ZBUS_CHAN_EXTERN, (;), __VA_ARGS__)

Like ZBUS_CHAN_DECLARE for Infuse channels.

◆ INFUSE_ZBUS_CHAN_DEFINE

#define INFUSE_ZBUS_CHAN_DEFINE ( channel)

#include </__w/infuse-sdk/infuse-sdk/infuse-sdk/include/infuse/zbus/channels.h>

Value:
ZBUS_CHAN_DEFINE_WITH_ID(INFUSE_ZBUS_NAME(channel), channel, INFUSE_ZBUS_TYPE(channel), \
NULL, NULL, ZBUS_OBSERVERS_EMPTY, ZBUS_MSG_INIT(0));
#define INFUSE_ZBUS_NAME(channel)
Get the channel name associated with an Infuse zbus channel.
Definition types.h:93
#define INFUSE_ZBUS_TYPE(channel)
Get the type associated with an Infuse zbus channel.
Definition types.h:91

Define an Infuse zbus channel with default parameters.

Parameters
channelInfuse channel identifier (infuse_zbus_channel_id)

◆ INFUSE_ZBUS_CHAN_GET

#define INFUSE_ZBUS_CHAN_GET ( channel)

#include </__w/infuse-sdk/infuse-sdk/infuse-sdk/include/infuse/zbus/channels.h>

Value:
(&INFUSE_ZBUS_NAME(channel))

Statically get pointer to Infuse channel.

Parameters
channelInfuse channel identifier (infuse_zbus_channel_id)

Function Documentation

◆ infuse_zbus_channel_data_age()

uint64_t infuse_zbus_channel_data_age ( const struct zbus_channel * chan)
inlinestatic

#include </__w/infuse-sdk/infuse-sdk/infuse-sdk/include/infuse/zbus/channels.h>

Retrieve the age of the data in the zbus channel.

Parameters
chanChannel to query
Return values
UINT64_MAXif channel has never been published to
age_msData age in milliseconds otherwise