tec_common.h File Reference
Last updated: 25-Feb-2025
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Typedefs |
|
typedef void(* | cts_TraceCallback) (const char *str, void *data) |
Functions |
|
void | cts_Version (char *version, unsigned char len) |
void | cts_SetTraceCallback (cts_TraceCallback cbf, void *cb_data) |
Detailed Description
Interface definitions for libtec, common part for tec.h and tecclient.h. This file defines the API for the technology selection library.
- Author
- Dirk Germann, GSS
Macro Definition Documentation
◆ CTS_DATA_TLV
#define CTS_DATA_TLV 0x80 |
if set in usedTechnology parameter of cts_WaitSelection(), dataBuffer is in TLV format (this is only the case if NFC or VAS are used)
Typedef Documentation
◆ cts_TraceCallback
typedef void(* cts_TraceCallback) (const char *str, void *data) |
Type of function that is called for traces, see cts_SetTraceCallback();
- Parameters
-
[in] str : Trace message. [in] data : Data pointer provided by the application.
Function Documentation
◆ cts_SetTraceCallback()
void cts_SetTraceCallback | ( | cts_TraceCallback | cbf, |
void * | cb_data | ||
) |
Set callback function for trace output.
- Parameters
-
[in] cbf : Callback function for trace messages, may be NULL. [in] cb_data : Data pointer that is passed on to the callback function cbf, may be NULL.
◆ cts_Version()
void cts_Version | ( | char * | version, |
unsigned char | len | ||
) |
Get version of libtec.
- Parameters
-
[out] version : Buffer to store null-terminated version string. [in] len : Size of buffer version.
Rate this article: