]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - tas2557sw-android/tas2557-ftc.git/blob - tas2557_ftc.h
Merge branch 'master' of git://git.ti.com/tas2557sw-android/tas2557-ftc
[tas2557sw-android/tas2557-ftc.git] / tas2557_ftc.h
1 /*\r
2 ** =============================================================================\r
3 ** Copyright (c) 2016  Texas Instruments Inc.\r
4 **\r
5 ** File:\r
6 **     tas2557_ftc.h\r
7 **\r
8 ** Description:\r
9 **     header file for tas2557_ftc.c\r
10 **\r
11 ** =============================================================================\r
12 */\r
13 \r
14 #ifndef TAS2557_FTC_H_\r
15 #define TAS2557_FTC_H_\r
16 \r
17 #include <stdint.h>\r
18 #include <stdbool.h>\r
19 \r
20 struct TSPKCharData {\r
21         double nSpkTMax;\r
22         double nSpkReTolPer;\r
23         double nSpkReAlpha;\r
24 \r
25         double nPPC3_Re0;\r
26         double nPPC3_FWarp;\r
27         double nPPC3_Bl;\r
28         double nPPC3_Mms;\r
29         double nPPC3_RTV;\r
30         double nPPC3_RTM;\r
31         double nPPC3_RTVA;\r
32         double nPPC3_SysGain;\r
33         double nPPC3_DevNonlinPer;\r
34         double nPPC3_PIG;\r
35 \r
36         double nReHi;\r
37         double nReLo;\r
38 };\r
39 \r
40 struct TFTCConfiguration {\r
41         bool bVerbose;\r
42         bool bLoadCalibration;\r
43         unsigned int nCalibrationTime;\r
44         double nPPC3_FS;\r
45 \r
46         struct TSPKCharData nTSpkCharDevA;\r
47 };\r
48 \r
49 uint32_t tas2557_ftc(double t_cal, struct TFTCConfiguration *pFTCC);\r
50 int tas2557_chk(double t_cal, struct TFTCConfiguration *pFTCC);\r
51 #endif /* TAS2557_FTC_H_ */\r