80#define NRF_AXON_GENERATE_VERSION(major, minor, patch) \
81 (((major) << 16) | ((minor) << 8) | (patch))
82#define NRF_AXON_VERSION NRF_AXON_GENERATE_VERSION(1, 5, 0)
85#if !defined(AXON_FORCE_32BIT_ADDR) && ((defined(__SIZEOF_POINTER__) && (__SIZEOF_POINTER__==8)) || defined(_WIN64))
100#define NRF_AXON_CEIL_BITS(x, y) ((((((x)+(1<<(y))-1)))>>(y))<<(y))
101#define NRF_AXON_NPU_OUTPUT_STRIDE(width, byte_width) NRF_AXON_CEIL_BITS((width)*(byte_width), 2)
264 bool keep_reservation);
277 uint32_t buffer_length);
nrf_axon_result_e nrf_axon_run_cmd_buf_sync(nrf_axon_cmd_buffer_info_s *cmd_buf_info, nrf_axon_syncmode_blocking_e block_mode, bool keep_reservation)
Synchronous command buffer execution.
nrf_axon_result_e
Axon driver return codes.
Definition nrf_axon_driver.h:109
@ NRF_AXON_RESULT_FAILURE_INVALID_LENGTH
Definition nrf_axon_driver.h:133
@ NRF_AXON_RESULT_FAILURE_MISSING_NULL_COEF
Definition nrf_axon_driver.h:121
@ NRF_AXON_RESULT_FAILURE_MISALIGNED_BUFFER
Definition nrf_axon_driver.h:127
@ NRF_AXON_RESULT_NULL_BUFFER
Definition nrf_axon_driver.h:123
@ NRF_AXON_RESULT_INVALID_MODEL
Definition nrf_axon_driver.h:115
@ NRF_AXON_RESULT_INVALID_CMD_BUF
Definition nrf_axon_driver.h:119
@ NRF_AXON_RESULT_BUFFER_TOO_SMALL
Definition nrf_axon_driver.h:117
@ NRF_AXON_RESULT_MUTEX_FAILED
Definition nrf_axon_driver.h:113
@ NRF_AXON_RESULT_NOT_FINISHED
Definition nrf_axon_driver.h:138
@ NRF_AXON_RESULT_SUCCESS
Definition nrf_axon_driver.h:137
@ NRF_AXON_RESULT_EVENT_PENDING
Definition nrf_axon_driver.h:142
@ NRF_AXON_RESULT_TOO_MANY_NESTED_SYNC_CMDS
Definition nrf_axon_driver.h:111
@ NRF_AXON_RESULT_FAILURE
Definition nrf_axon_driver.h:135
@ NRF_AXON_RESULT_FAILURE_UNSUPPORTED_HARDWARE
Definition nrf_axon_driver.h:129
@ NRF_AXON_RESULT_FAILURE_INVALID_ROUNDING
Definition nrf_axon_driver.h:125
@ NRF_AXON_RESULT_FAILURE_HARDWARE_ERROR
Definition nrf_axon_driver.h:131
nrf_axon_result_e nrf_axon_queue_cmd_buf(nrf_axon_queued_cmd_info_wrapper_s *cmd_buf_wrapper)
Asynchronous command buffer execution.
int32_t NRF_AXON_PLATFORM_BITWIDTH_SIGNED_TYPE
Definition nrf_axon_driver.h:90
nrf_axon_result_e nrf_axon_init_command_buffer_info(nrf_axon_cmd_buffer_info_s *cmd_buf_info_ptr, const NRF_AXON_PLATFORM_BITWIDTH_UNSIGNED_TYPE *cmd_buf, uint32_t buffer_length)
binds a command buffer to an nrf_axon_cmd_buffer_info_s struct and initializes it....
nrf_axon_syncmode_blocking_e
Specifies the blocking mechanism for synchronous Axon command buffer execution.
Definition nrf_axon_driver.h:177
@ NRF_AXON_SYNC_MODE_BLOCKING_DEFERRED
Definition nrf_axon_driver.h:192
@ NRF_AXON_SYNC_MODE_BLOCKING_INVALID
Definition nrf_axon_driver.h:179
@ NRF_AXON_SYNC_MODE_BLOCKING_EVENT
Definition nrf_axon_driver.h:188
@ NRF_AXON_SYNC_MODE_BLOCKING_COUNT
Definition nrf_axon_driver.h:194
@ NRF_AXON_SYNC_MODE_BLOCKING_POLLING
Definition nrf_axon_driver.h:183
struct nrf_axon_queued_cmd_info_wrapper_s nrf_axon_queued_cmd_info_wrapper_s
Used as a parameter to nrf_axon_queue_cmd_buf for asynchronous execution.
uint32_t NRF_AXON_PLATFORM_BITWIDTH_UNSIGNED_TYPE
Definition nrf_axon_driver.h:89
uint32_t cur_segment_offset
Definition nrf_axon_driver.h:155
uint32_t length
Definition nrf_axon_driver.h:151
const NRF_AXON_PLATFORM_BITWIDTH_UNSIGNED_TYPE * cmd_buf_ptr
Definition nrf_axon_driver.h:153
Internal structure supplied by user but managed by the driver to track execution progress.
Definition nrf_axon_driver.h:149
void(* callback_function)(nrf_axon_result_e result, void *callback_context)
Definition nrf_axon_driver.h:207
void * callback_context
Definition nrf_axon_driver.h:205
nrf_axon_cmd_buffer_info_s * cmd_buf_info
Definition nrf_axon_driver.h:203
uint16_t input_size
Definition nrf_axon_driver.h:215
void(* copy_result_function)(void *callback_context)
Definition nrf_axon_driver.h:217
const int8_t * input_vector
Definition nrf_axon_driver.h:211
struct nrf_axon_queued_cmd_info_wrapper_s * next
Definition nrf_axon_driver.h:219
int8_t * input_buffer
Definition nrf_axon_driver.h:213
Used as a parameter to nrf_axon_queue_cmd_buf for asynchronous execution.
Definition nrf_axon_driver.h:201