tec.h
Last updated: 25-Feb-2025
Go to the documentation of this file.
1Â 8Â #ifndef __TEC_LIB_INTERFACE__ 9Â #define __TEC_LIB_INTERFACE__ 10Â 11Â #ifdef __cplusplus 12Â extern "C" { 13Â #endif 14Â 15Â #include "tec/tec_common.h" 16Â 21Â #define CTS_NOTIFICATION_CBK_TYPE_UX_CARD_INSERTED 0x01 28Â typedef void (* cts_Callback) (void *data); 29Â 41Â int cts_SetOptions(const unsigned char *options, unsigned char options_len); 42Â 110Â int cts_StartSelection(unsigned char supportedTechnologies, unsigned short timeout_sec, 111Â cts_Callback cbf, void *cb_data, 112Â unsigned char *options, unsigned char options_len); 113Â 125Â int cts_StopSelection (void); 126Â 162Â int cts_WaitSelection(unsigned char *usedTechnology, unsigned char *dataBuffer, 163Â unsigned short *dataBufferLength, unsigned short timeout_msec); 164Â 175Â int cts_RemoveTechnologies(unsigned char technologies); 176Â 195Â int cts_AddTechnologies(unsigned char technologies, unsigned char *options, unsigned char options_len); 196Â 212Â int cts_WaitCardRemoval(cts_Callback cbf, void *cb_data); 213Â 225Â int cts_WaitCardRemoval2(unsigned short timeout_sec); 226Â 235Â void cts_SetNotificationCallback(int type, cts_Callback cbf, void *cb_data); 236Â 237Â 238Â #ifdef __cplusplus 239Â } 240Â #endif 241Â 242Â #endif
Rate this article: