aboutsummaryrefslogtreecommitdiffstats
blob: 6904780b01b272f229363eafa59101e5a0077859 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/*
** =============================================================================
** Copyright (c) 2016  Texas Instruments Inc.
**
** File:
**     tas2557_ftc.h
**
** Description:
**     header file for tas2557_ftc.c
**
** =============================================================================
*/

#ifndef TAS2557_FTC_H_
#define TAS2557_FTC_H_

#include <stdint.h>
#include <stdbool.h>

struct TSPKCharData {
	double nSpkTMax;
	double nSpkReTolPer;
	double nSpkReAlpha;

	double nPPC3_Re0;
	double nPPC3_FWarp;
	double nPPC3_Bl;
	double nPPC3_Mms;
	double nPPC3_RTV;
	double nPPC3_RTM;
	double nPPC3_RTVA;
	double nPPC3_SysGain;
	double nPPC3_DevNonlinPer;
	double nPPC3_PIG;

	double nReHi;
	double nReLo;
};

struct TFTCConfiguration {
	bool bVerbose;
	bool bLoadCalibration;
	unsigned int nCalibrationTime;
	double nPPC3_FS;

	struct TSPKCharData nTSpkCharDevA;
};

uint32_t tas2557_ftc(double t_cal, struct TFTCConfiguration *pFTCC);
int tas2557_chk(double t_cal, struct TFTCConfiguration *pFTCC);
#endif /* TAS2557_FTC_H_ */