TI中文支持网
TI专业的中文技术问题搜集分享网站

EVM430-FR6043程序中USS_runAlgorithmsFixedPoint库函数有详细说明吗?

请问USS_runAlgorithmsFixedPoint函数执行完毕后,获得的结果iq44DeltaTOF并不等于iq40TotalTOF_DNS-iq40TotalTOF_UPS,请问这个库函数有源码吗?或者有没有内部运算的说明?

Susan Yang:

很抱歉,该算法的源代码是没有公开的。我们仅以lib形式提供。

Susan Yang:

//! \brief The following API calculates Absolute ToF Upstream, Absolute ToF
//! Downstream, Delta ToF, Volume Flow Rate using fixed point math.
//! //! \n \n \b IMPORTANT: It is recommend to use this version of the API to
//! reduce power consumption numbers
//!
//! \n \n \b Note1: USS_initAlgorithms must be called prior to calling this
//! function.
//!
//! The API expects to have a Up stream (UPS) and Down stream (DNS) of size
//!	"sampleSize" in contiguous LEA memory where the first capture is assumed to
//! be UPS capture and the second capture is assumed to be DNS capture.
//!	Therefore, UPS and DNS capture depends on the type of capture the
//!	user select via sequenceSelection member in USS_Measurement_Configuration structure
//! For example: if sequenceSelection == USS_measurement_capture_sequence_ch0_ch1
//! then USS CH0 is assumed to be UPS capture and CH1 is assumed to be DNS capture
//! and vice versa for USS_measurement_capture_sequence_ch1_ch0
//! If API return message code USS_message_code_valid_results, then algorithms
//! result are valid.
//!
//!
//! \param[in] configis a pointer to the USS SW Library user configuration
//! \param[in] resultsis a pointer to the USS Algoriithms Result structure
//!
//! \return USS_message_codeextern USS_message_code USS_runAlgorithmsFixedPoint(USS_SW_Library_configuration *config,USS_Algorithms_Results_fixed_point *results);

xin wang:

回复 Susan Yang:

//! \brief Contains USS SW Lib Algorithms Results//!typedef struct _USS_Algorithms_Results_fixed_point_{ USS_message_code messageCode; int32_t iq44DeltaTOF; //!< Delta Time Of Flight calculation result int32_t iq40TotalTOF_UPS; //!< Upstream total Time Of Flight calculation result int32_t iq40TotalTOF_DNS; //!< Downstream total Time Of Flight calculation result int32_t iq16VolumeFlowRate; //!< Volume flow rate calculation result int32_t iq16VolumeFlowRateNoCalib; //!< Volume flow rate calculation result without VFR calibration //!< (only used for VFR calibration) int32_t iq16Temperature; //!< Temperature calculation result}USS_Algorithms_Results_fixed_point;

iq40TotalTOF_DNS应该是顺流时间 iq40TotalTOF_UPS应该是逆流时间 iq44DeltaTOF我理解是时间差,为什么不是逆流时间和顺流时间的差值呢?

xin wang:

回复 Susan Yang:

谢谢,我先看看资料

赞(0)
未经允许不得转载:TI中文支持网 » EVM430-FR6043程序中USS_runAlgorithmsFixedPoint库函数有详细说明吗?
分享到: 更多 (0)