Edge AI Add-on API 2.2.0
Loading...
Searching...
No Matches
nrf_edgeai_runtime.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2026 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
15#ifndef _NRF_EDGEAI_RUNTIME_H_
16#define _NRF_EDGEAI_RUNTIME_H_
17
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
24/***********************************************************************************************************************
25 * nRF Edge AI runtime public API
26 ***********************************************************************************************************************/
27
38
57 void* p_input_values,
58 uint16_t num_values);
59
71
72/***********************************************************************************************************************
73Utility variables and functions
74***********************************************************************************************************************/
75
83
91uint16_t nrf_edgeai_uniq_inputs_num(const nrf_edgeai_t* p_edgeai);
92
101
109
116
123
130
136const char* nrf_edgeai_solution_id_str(const nrf_edgeai_t* p_edgeai);
137
144
150
159
160#ifdef __cplusplus
161}
162#endif
163
164#endif /* _NRF_EDGEAI_RUNTIME_H_ */
165
nrf_edgeai_input_type_t nrf_edgeai_input_type(const nrf_edgeai_t *p_edgeai)
Get neural network input data type nrf_edgeai_input_type_t.
nrf_edgeai_err_t nrf_edgeai_run_inference(nrf_edgeai_t *p_edgeai)
Running live input features into a machine learning algorithm (or “ML/NN model”) to inference an outp...
nrf_edgeai_err_t nrf_edgeai_feed_inputs(nrf_edgeai_t *p_edgeai, void *p_input_values, uint16_t num_values)
Feed raw input data to prepare it for signal processing & model inference.
uint16_t nrf_edgeai_uniq_inputs_num(const nrf_edgeai_t *p_edgeai)
Get number of unique input features on which the model was trained, e.g for features {x,...
const char * nrf_edgeai_solution_id_str(const nrf_edgeai_t *p_edgeai)
Get solution ID in string format.
uint16_t nrf_edgeai_input_window_size(const nrf_edgeai_t *p_edgeai)
Get input features window size in feature samples(vectors), e.g for input window {x0,...
bool nrf_edgeai_is_runtime_compatible(const nrf_edgeai_t *p_edgeai)
Check if the Edge AI runtime library version is compatible with the solution runtime version.
nrf_edgeai_rt_version_t nrf_edgeai_solution_runtime_version(const nrf_edgeai_t *p_edgeai)
Get solution runtime version.
nrf_edgeai_err_t nrf_edgeai_init(nrf_edgeai_t *p_edgeai)
Set up the internal components of the Edge AI runtime.
uint8_t nrf_edgeai_input_subwindows_num(const nrf_edgeai_t *p_edgeai)
Get number of subwindows in the input window.
nrf_edgeai_model_task_t nrf_edgeai_model_task(const nrf_edgeai_t *p_edgeai)
Get model task nrf_edgeai_model_task_t.
uint16_t nrf_edgeai_model_outputs_num(const nrf_edgeai_t *p_edgeai)
Get number of model outputs (predicted targets)
nrf_edgeai_model_type_t nrf_edgeai_model_type(const nrf_edgeai_t *p_edgeai)
Get model type nrf_edgeai_model_type_t.
nrf_edgeai_rt_version_t nrf_edgeai_runtime_version(void)
Get Edge AI runtime library version.
enum nrf_edgeai_err_e nrf_edgeai_err_t
Generic NRF EDGEAI operation status code.
enum nrf_edgeai_input_type_e nrf_edgeai_input_type_t
Supported input data types for neural network.
enum nrf_edgeai_model_task_e nrf_edgeai_model_task_t
enum nrf_edgeai_model_type_e nrf_edgeai_model_type_t
nRF Edge AI model types
Definition nrf_edgeai_types.h:141
EdgeAI runtime version structure.
Definition nrf_edgeai_types.h:118