48 #include "../../STMLib/include/StmLibrary.h"
296 #if defined(TCI6614) && !defined(_TCI6614)
299 #if defined(TCI6612) && !defined(_TCI6612)
302 #if defined(C6674) && !defined(_C6674)
305 #if defined(C6672) && !defined(_C6672)
308 #if defined(C6657) && !defined(_C6657)
311 #if defined(C66AK2Hxx) && !defined(_C66AK2Hxx)
314 #if defined(TCI6630K2L) && !defined(_TCI6630K2L)
317 #if defined(C66AK2Exx) && !defined(_66AK2Exx)
320 #if defined(C66AK2Gxx) && !defined(_66AK2Gxx)
329 #if defined(C6678) && !defined(_C6672) && !defined(_C6674) \
333 #if defined(C6670) && !defined(_TCI6614) && !defined(_TCI6612) \
345 #define CPTLIB_MAJOR_VERSION (0x0)
347 #define CPTLIB_MINOR_VERSION (0xF)
349 #define CPTLIB_FUNC (0xe89)
350 #define CPT_FUNC_ID_SCHEME (0x0)
356 #elif defined(_C6671)
358 #include "CPTLib_C6671.h"
360 #elif defined(_C6672)
362 #include "CPTLib_C6672.h"
364 #elif defined(_C6674)
366 #include "CPTLib_C6674.h"
368 #elif defined(_C6678)
370 #include "CPTLib_C6678.h"
372 #elif defined(_C6657)
374 #include "CPTLib_C6657.h"
376 #elif defined(_TCI6614) && !defined(RUNTIME_DEVICE_SELECT)
378 #include "CPTLib_TCI6614.h"
380 #elif defined(_TCI6612) && !defined(RUNTIME_DEVICE_SELECT)
382 #include "CPTLib_TCI6612.h"
384 #elif defined(_C66AK2Hxx)
386 #include "CPTLib_C66AK2Hxx.h"
388 #elif defined(_TCI6630K2L)
390 #include "CPTLib_TCI6630K2L.h"
392 #elif defined(_66AK2Exx)
394 #include "CPTLib_66AK2Exx.h"
396 #elif defined(_66AK2Gxx)
398 #include "CPTLib_66AK2Gxx.h"
443 #ifdef RUNTIME_DEVICE_SELECT
445 #include "CPTLib_TCI6612.h"
446 #include "CPTLib_TCI6614.h"
447 typedef enum {DEVID_TCI6612, DEVID_TCI6614} eCPT_DeviceID;
449 eCPT_Error CPT_runtimeConfig(eCPT_DeviceID CPT_deviceID);
450 eCPT_Error CPT_getModID(
char * modName,
int * CPT_ModId);
451 eCPT_Error CPT_getMasterID(
char * masterName,
int * CPT_MasterId,
int * CPT_MasterGroupCnt);
452 eCPT_Error CPT_getMetaDataSize(CPT_Handle_Pntr
const pCPT_Handle,
int * num_bytes);
453 eCPT_Error CPT_getMetaData(CPT_Handle_Pntr
const pCPT_Handle,
char * buf,
int buf_size,
int * num_bytes_returned);
454 eCPT_Error CPT_getDivideByFactor(
int CPT_ModId, uint8_t * CPT_DivideByFactor);
455 eCPT_Error CPT_getModList(
const char *** CPT_modList,
int * CPT_listCnt);
456 eCPT_Error CPT_getMasterList(
const char *** CPT_masterList,
int * CPT_listCnt);
458 struct CPT_ArmingInfo {
459 uint32_t arming_addr;
460 uint32_t arming_value;
461 uint32_t disarm_value;
464 eCPT_Error CPT_getArmingInfo(CPT_Handle_Pntr
const pCPT_Handle,
struct CPT_ArmingInfo * pCPT_ArmingInfo );
483 eCPT_MsgSelect_Num = 5
493 eCPT_CntSelect_Num = 2
626 typedef enum { eCPT_WaitDisable,
829 #ifndef RUNTIME_DEVICE_SELECT
907 uint32_t *
const pLibMinorVersion,
908 uint32_t *
const pSWFuncID,
909 uint32_t *
const pHwFuncID );
1071 #ifndef RUNTIME_DEVICE_SELECT
1169 const uint32_t StartAddrFilterLSBs,
1170 const uint32_t EndAddrFilterLSBs,
1312 uint32_t *
const pCPT_ThroughPutCnt1,
1313 uint32_t *
const pCPT_WaitCnt,
1314 uint32_t *
const pCPT_GrantCnt,
1315 uint32_t *
const pAccessStatus );
1433 eCPT_Error CPT_LogMsg(CPT_Handle_Pntr
const pCPT_Handle,
const char * FmtString, uint32_t *
const pValue);