]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - tas2557sw-android/tas2557-ftc.git/blob - tas2557_ftc_lib.h
Merge branch 'master' of git://git.ti.com/tas2557sw-android/tas2557-ftc
[tas2557sw-android/tas2557-ftc.git] / tas2557_ftc_lib.h
1 /*\r
2 ** =============================================================================\r
3 ** Copyright (c) 2016  Texas Instruments Inc.\r
4 **\r
5 ** File:\r
6 **     tas2557_lib_ftc.h\r
7 **\r
8 ** Description:\r
9 **     header file for tas2557_lib_ftc.c\r
10 **\r
11 ** =============================================================================\r
12 */\r
13 \r
14 #ifndef TAS2557_LIB_FTC_H_\r
15 #define TAS2557_LIB_FTC_H_\r
16 \r
17 #include <stdint.h>\r
18 #include <stdbool.h>\r
19 \r
20 #include "tas2557.h"\r
21 \r
22 int get_lib_ver(void);\r
23 void tas2557_ftc_set_PGID(unsigned char nPGID);\r
24 void tas2557_ftc_start(void);\r
25 void set_re(double re_ppc3, double re, double alpha);\r
26 void set_temp_cal(uint32_t prm_pow, uint32_t prm_tlimit);\r
27 double get_re(double re_ppc3);\r
28 double CalcRe(double re_ppc3, uint32_t prm_r0);\r
29 uint32_t calc_prm_pow(double re, double delta_t_max, double nRTV, double nRTM, double nRTVA, double nSysGain);\r
30 uint32_t calc_prm_tlimit(double delta_t_max, double alpha, double nDevNonlinPer, double nRTV, double nRTM, double nRTVA, double nPIG);\r
31 void tas2557_ftc_stop(void);\r
32 \r
33 /* below functions are used in SPK measurement only */\r
34 int get_Re_deltaT(double nPPC3_Re, double nPPC3_alpha, double *pnRe, double *pnDeltaT);\r
35 int get_f0_Q(double nPPC3_FWarp, double nPPC3_nFS, double nPPC3_Bl, double nPPC3_Mms, double nPPC3_Re0, double *pnF0, double *pnQ);\r
36 \r
37 #endif /* TAS2557_LIB_FTC_H_ */\r