#ifndef LIBSFRA_TI_HAL_H
#define LIBSFRA_TI_HAL_H

#include "sfra_f32.h"
#include "libsfra.h"

#ifdef __cplusplus
extern "C" {
#endif


void libsfra_ti_hal_init(sfra_t *libsfra,
                        float32_t isrFrequency,
                        float32_t injectionAmplitude,
                        int16_t noFreqPoints,
                        float32_t fraSweepStartFreq,
                        float32_t freqStep,
                        float32_t *h_magVect,
                        float32_t *h_phaseVect,
                        float32_t *gh_magVect,
                        float32_t *gh_phaseVect,
                        float32_t *cl_magVect,
                        float32_t *cl_phaseVect,
                        float32_t *freqVect
                        );

/**
 * 获取 TI 适配器结构体指针，用于传给 SFRA_GUI_config
 */
SFRA_F32* libsfra_ti_hal_get_adapter(void);

#ifdef __cplusplus
}
#endif

#endif
