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_info | command buffer that has been initialized by nrf_axon_init_command_buffer_info. |
| [in] | block_mode | Specifies how to wait for Axon completion. |
| [in] | keep_reservation | If true, Axon reservation is not freed before returning; user maintains ownership of Axon. |
- Return values
-
| 0 | on success or a negative error code. |