Production Line Tool v5.0
The DA1470x Production Line Tool Software Package
Loading...
Searching...
No Matches
temp_meas_api.h
Go to the documentation of this file.
1
16#ifndef _TEMP_MEAS_API_H_
17#define _TEMP_MEAS_API_H_
18
19/****************************************************************************************/
20/* INCLUDE FILES */
21/****************************************************************************************/
22
46#ifndef __bool_true_false_are_defined
47#define __bool_true_false_are_defined 1
48#ifndef __cplusplus /* In C++, 'bool', 'true' and 'false' and keywords */
49#define bool char
50#define true 1
51#define false 0
52#else
53#ifdef __GNUC__
54/* GNU C++ supports direct inclusion of stdbool.h to provide C99
55compatibility by defining _Bool */
56#define BOOL bool
57#endif
58#endif
59#endif /* __bool_true_false_are_defined */
60
61#define TEMP_MEAS_API_EXPORTS
62#ifdef TEMP_MEAS_API_EXPORTS
63#define TEMP_MEAS_API __declspec(dllexport)
64#else
65#define TEMP_MEAS_API __declspec(dllimport)
66#endif
67
75#define TEMP_MEAS_CALLBACK(A, Y, Z) (A != NULL) ? A(Y, Z) : ((void)0)
76
78#define TEMP_MEAS_STR_SIZE 256
95{
96 TEMP_MEAS_API_SUCCESS = 0,
97 TEMP_MEAS_API_ERROR,
98 TEMP_MEAS_API_INVALID_DBG_PARAMS,
99 TEMP_MEAS_API_DBG_DLL_ERROR,
100 TEMP_MEAS_API_START,
101 TEMP_MEAS_API_READ_OK
119#ifdef __cplusplus // If used by C++ code,
120extern "C" { // we need to export the C interface
121#endif
122
139typedef void (*_callback_temp_meas)(int status, float temp);
140
148TEMP_MEAS_API int temp_meas_api_dbg_init(_dbg_params *dbg_params_t);
149
155TEMP_MEAS_API int temp_meas_api_dbg_close(void);
156
165TEMP_MEAS_API int temp_meas_api_init(const char *iface,
166 _callback_temp_meas callback_temp_meas);
167
173TEMP_MEAS_API int temp_meas_api_close(void);
174
180TEMP_MEAS_API int temp_meas_api_measure(void);
183#ifdef __cplusplus
184}
185#endif // @defgroup temp_meas_api
187
188#endif //_TEMP_MEAS_API_H_
void(* _callback_temp_meas)(int status, float temp)
Temperature measurement API callback function type definition.
TEMP_MEAS_API int temp_meas_api_measure(void)
Perform a temperature measurement and return the result with callbacks.
TEMP_MEAS_API int temp_meas_api_dbg_init(_dbg_params *dbg_params_t)
Temperature measurement instrument debug session initialize.
TEMP_MEAS_API int temp_meas_api_init(const char *iface, _callback_temp_meas callback_temp_meas)
Temperature measurement instrument initialize function.
TEMP_MEAS_API int temp_meas_api_close(void)
Temperature measurement instrument close function and free allocated resources.
TEMP_MEAS_API int temp_meas_api_dbg_close(void)
Temperature measurement instrument debug session close.
enum _TEMP_MEAS_API_STATUS_CODES TEMP_MEAS_API_STATUS_CODES
The temperature measurement instrument API return status codes.
_TEMP_MEAS_API_STATUS_CODES
The temperature measurement instrument API return status codes.
Definition: temp_meas_api.h:95
The main settings of the Debug DLL API.
Definition: dbg_dll.h:143