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

◆ nrf_dsp_rfht_init()

int8_t nrf_dsp_rfht_init ( nrf_dsp_rfht_instance_t * p_inst,
const void * p_sin_table,
const void * p_tg_table,
const uint16_t * p_rev_bit_index,
void * p_window,
const uint16_t window_size,
const uint16_t log_n )

#include <include/nrf_edgeai/dsp/transform/nrf_dsp_rfht.h>

Initialize instance structure for the RFHT/RIFHT functions.

Parameters
[out]p_instPointer to instance structure to initialize
[in]p_sin_tablePointer to sin() table, with size of window_size / 4 elements
[in]p_tg_tablePointer to tg() table, with size of window_size / 4 elements
[in]p_rev_bit_indexPointer to index reordering array, with size of window_size elements
[in]p_windowPointer to RFHT result buffer, with size of window_size elements
[in]window_sizeWindow buffer size to store result of FHT, should be powers of two in value (128/256/512/etc)
[in]log_nValue of log2(window_size)
Returns
0 on success, otherwise error