Infuse-IoT SDK API 0.0.1
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
demo.h File Reference

Demonstration algorithms. More...

#include <stdint.h>
#include <zephyr/toolchain.h>
#include <infuse/algorithm_runner/runner.h>
#include <infuse/zbus/channels.h>

Go to the source code of this file.

Data Structures

struct  algorithm_demo_common_config
 
union  algorithm_demo_common_data
 

Macros

#define ALGORITHM_DEMO_EVENT_DEFINE(name, loggers_, tdfs, event_chance_percent)
 Statically define an instance of the demo event algorithm.
 
#define ALGORITHM_DEMO_STATE_DEFINE(name, loggers_, tdfs)
 Statically define an instance of the demo state algorithm.
 
#define ALGORITHM_DEMO_METRIC_DEFINE(name, loggers_, tdfs, metric_compute_len)
 Statically define an instance of the demo compute algorithm.
 

Enumerations

enum  { ALGORITHM_DEMO_EVENT_LOG = BIT(0) , ALGORITHM_DEMO_STATE_LOG = BIT(0) , ALGORITHM_DEMO_METRIC_LOG = BIT(0) }
 

Functions

void algorithm_demo_event_fn (const struct zbus_channel *chan, const void *config, void *data)
 Algorithm implementation, see algorithm_run_fn.
 
void algorithm_demo_state_fn (const struct zbus_channel *chan, const void *config, void *data)
 Algorithm implementation, see algorithm_run_fn.
 
void algorithm_demo_metric_fn (const struct zbus_channel *chan, const void *config, void *data)
 Algorithm implementation, see algorithm_run_fn.
 

Detailed Description

Demonstration algorithms.

Author
Jordan Yates jorda.nosp@m.n@em.nosp@m.beint.nosp@m..com

SPDX-License-Identifier: FSL-1.1-ALv2