Edge AI Add-on API 2.2.0
Loading...
Searching...
No Matches
nrf_axon_platform.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2025 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
11#pragma once
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
17#ifdef _WIN32
18#define EXPORT_API __declspec(dllexport)
19#else
20#define EXPORT_API
21#endif
22
24
30#if NRF_AXON_INTERLAYER_BUFFER_SIZE
31extern uint32_t nrf_axon_interlayer_buffer[NRF_AXON_INTERLAYER_BUFFER_SIZE/sizeof(uint32_t)];
32#endif
33
39#if NRF_AXON_PSUM_BUFFER_SIZE
40extern uint32_t nrf_axon_psum_buffer[NRF_AXON_PSUM_BUFFER_SIZE/sizeof(uint32_t)];
41#endif
42
43
48
57
61void nrf_axon_platform_printf(const char *fmt, ...);
62
67
72
85void nrf_axon_platform_restore_interrupts(uint32_t restore_value);
86
112
117
138
139
148
164
181
183
189 char *input_file_path,
190 char *output_file_path,
191 char *input_file_ext,
192 char *output_file_head_str,
193 uint32_t buffer_size,
194 int (*callback_function)(char *input_file_name, char *output_file_name,
195 int8_t *buffer, uint32_t buffer_size));
196
197#ifdef __cplusplus
198}
199#endif
nrf_axon_result_e
Axon driver return codes.
Definition nrf_axon_driver.h:86
nrf_axon_result_e nrf_axon_platform_init()
Peforms necessary one-time-only platform and driver initialization code.
bool nrf_axon_platform_reserve_for_driver()
Reserves Axon hardware use for asynchronous job processing by the driver.
uint32_t nrf_axon_platform_disable_interrupts()
disable/enable all interrupts These functions are used by the driver to perform light-weight synchron...
void nrf_axon_platform_free_reservation_from_user()
Frees the user's Axon reservation made with nrf_axon_platform_free_reservation_from_driver();.
void nrf_axon_platform_generate_user_event()
uint32_t nrf_axon_platform_get_clk_hz()
Global buffer for all axon nn model intermediate results.
int nrf_axon_simulator_run_test_files(char *input_file_path, char *output_file_path, char *input_file_ext, char *output_file_head_str, uint32_t buffer_size, int(*callback_function)(char *input_file_name, char *output_file_name, int8_t *buffer, uint32_t buffer_size))
void nrf_axon_platform_free_reservation_from_driver()
Frees the Axon hardware reservation made by nrf_axon_platform_reserve_for_driver().
uint32_t nrf_axon_platform_get_ticks()
Returns the current time in units returned by nrf_axon_platform_get_clk_hz().
void nrf_axon_platform_printf(const char *fmt,...)
General purpose function for writing to the console.
void nrf_axon_platform_close()
Peforms necessary one-time-only platform and driver clean-up code on shutdown.
bool nrf_axon_platform_reserve_for_user()
Reserves Axon hardware use for synchronous job processing by the user.
void nrf_axon_platform_restore_interrupts(uint32_t restore_value)
void nrf_axon_platform_wait_for_user_event()
Driver to User signaling in synchronous mode.
void nrf_axon_platform_generate_driver_event()
Driver event to event processing synchronization function.