Infuse-IoT SDK API 0.0.1
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
runner.h
Go to the documentation of this file.
1
9
10#ifndef INFUSE_SDK_INCLUDE_INFUSE_ALGORITHM_RUNNER_RUNNER_H_
11#define INFUSE_SDK_INCLUDE_INFUSE_ALGORITHM_RUNNER_RUNNER_H_
12
13#include <stdint.h>
14
16#include <infuse/fs/kv_types.h>
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
28
33
48int algorithm_runner_register(const struct infuse_algorithm *algorithm);
49
59int algorithm_runner_unregister(const struct infuse_algorithm *algorithm);
60
71void algorithm_runner_tdf_log(const struct kv_algorithm_logging *logging, uint8_t tdf_mask,
72 uint16_t tdf_id, uint8_t tdf_len, uint64_t time, const void *data);
73
74#ifdef CONFIG_ZTEST
75
81void algorithm_runner_reset(void);
82
83#endif /* CONFIG_ZTEST */
84
88
89#ifdef __cplusplus
90}
91#endif
92
93#endif /* INFUSE_SDK_INCLUDE_INFUSE_ALGORITHM_RUNNER_RUNNER_H_ */
int algorithm_runner_unregister(const struct infuse_algorithm *algorithm)
Unregister an algorithm from the runner.
void algorithm_runner_init(void)
Initialise the algorithm runner.
void algorithm_runner_tdf_log(const struct kv_algorithm_logging *logging, uint8_t tdf_mask, uint16_t tdf_id, uint8_t tdf_len, uint64_t time, const void *data)
Log a single TDF as requested by algorithm configuration.
int algorithm_runner_register(const struct infuse_algorithm *algorithm)
Register an algorithm with the runner.
API that algorithms must implement.
Autogenerated KV definitions.
Algorithm definition.
Definition implementation.h:47
Algorithm logging configuration.
Definition kv_types.h:97