Edge AI Add-on API 2.2.0
Loading...
Searching...
No Matches

◆ nrf_axon_run_cmd_buf_sync()

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.

Low level function that executes the command buffer in cmd_buf_info on Axon in a way that appears synchronous to the user. It returns when the execution is complete. Waits for exclusive access to axon using nrf_axon_platform_reserve_for_user(), then executes the command buffer in cmd_buf_info synchronously. The caller can specify to "keep" the reservation in case a series of axon command buffers are executed in succession. The reservation can be returned on the last command buffer or explictly by the user with nrf_axon_platform_free_reservation_from_user().

Parameters
[in]cmd_buf_infocommand buffer that has been initialized by nrf_axon_init_command_buffer_info.
[in]block_modeSpecifies how to wait for Axon completion.
[in]keep_reservationIf true, Axon reservation is not freed before returning; user maintains ownership of Axon.
Return values
0on success or a negative error code.