NHS31xx SW API
tmeas.h
1 /*
2  * Copyright 2015-2016 NXP
3  * This software is owned or controlled by NXP and may only be used strictly
4  * in accordance with the applicable license terms. By expressly accepting
5  * such terms or by downloading, installing, activating and/or otherwise using
6  * the software, you are agreeing that you have read, and that you agree to
7  * comply with and are bound by, such license terms. If you do not agree to
8  * be bound by the applicable license terms, then you may not retain, install,
9  * activate or otherwise use the software.
10  */
11 
12 #ifndef __TMEAS_H_
13 #define __TMEAS_H_
14 
47 /* -------------------------------------------------------------------------
48  * Include files
49  * ------------------------------------------------------------------------- */
50 
51 #include "chip.h"
52 #include "tmeas_dft.h"
53 
54 /* -------------------------------------------------------------------------
55  * Types and defines
56  * ------------------------------------------------------------------------- */
57 
61 #define TMEAS_ERROR (-1)
62 
64 typedef enum TMEAS_FORMAT {
70 
81 typedef void (*pTMeas_Cb_t)(TSEN_RESOLUTION_T resolution, TMEAS_FORMAT_T format, int value, uint32_t context);
82 
83 /* -------------------------------------------------------------------------
84  * Exported function prototypes
85  * ------------------------------------------------------------------------- */
86 
109 int TMeas_Measure(TSEN_RESOLUTION_T resolution, TMEAS_FORMAT_T format, bool synchronous, uint32_t context);
110 
111 #endif
Definition: tmeas.h:65
TSEN_RESOLUTION_T
Definition: tsen_nss.h:104
void(* pTMeas_Cb_t)(TSEN_RESOLUTION_T resolution, TMEAS_FORMAT_T format, int value, uint32_t context)
Definition: tmeas.h:81
Definition: tmeas.h:68
int TMeas_Measure(TSEN_RESOLUTION_T resolution, TMEAS_FORMAT_T format, bool synchronous, uint32_t context)
TMEAS_FORMAT_T
Definition: tmeas.h:64
Definition: tmeas.h:66
Definition: tmeas.h:67