![]() |
Edge AI Add-on API 2.3.0
|
| nrf_axon_result_e nrf_axon_memset_32_output_stride | ( | int16_t | set_val, |
| int32_t * | out_ptr, | ||
| uint16_t | length, | ||
| uint8_t | output_extra_stride, | ||
| nrf_axon_syncmode_blocking_e | block_mode, | ||
| bool | keep_reservation ) |
#include <include/drivers/axon/nrf_axon_dsp_intrinsics.h>
Sets 32bit words with the value in set_val (which is limited to 16bits, but sign extended to 32bits).
otput_extra_stride allows words to be skipped over. Useful for setting FFT input imaginary coefficients to 0.
If output_extra_stride is not needed it can be set to 0, but using nrf_axon_memset_32() is preferred for better performance.
| set_val | int16 signed extended to 32bits to set the memory to. |
| out_ptr | location to place output. Can safely overlap either input |
| length | number of of elements in the input vectors. Maximum value is 512. |
| rounding_bits | number of bits to round the output by. |
| output_extra_stride | number of gap words between each output. |
| block_mode | recommnended to be set to NRF_AXON_SYNC_MODE_BLOCKING_POLLING. |
| keep_reservation | set to true if there are subsequent axon operations to execute immediately on completion. true prevents axon from be taken by another user and/or being powered off. Set to false if axon will not be used immediately after to free axon for other users and/or power down if idle. |