/*
 *  Do not modify this file; it is automatically 
 *  generated and any modifications will be overwritten.
 *
 * @(#) xdc-x20
 */

/*
 * ======== GENERATED SECTIONS ========
 *     
 *     PROLOGUE
 *     INCLUDES
 *     
 *     INTERNAL DEFINITIONS
 *     MODULE-WIDE CONFIGS
 *     VIRTUAL FUNCTIONS
 *     FUNCTION DECLARATIONS
 *     CONVERTORS
 *     SYSTEM FUNCTIONS
 *     
 *     EPILOGUE
 *     STATE STRUCTURES
 *     PREFIX ALIASES
 */


/*
 * ======== PROLOGUE ========
 */

#ifndef ti_uiactools_runtime_SyncSTM__include
#define ti_uiactools_runtime_SyncSTM__include

#ifndef __nested__
#define __nested__
#define ti_uiactools_runtime_SyncSTM__top__
#endif

#ifdef __cplusplus
#define __extern extern "C"
#else
#define __extern extern
#endif

#define ti_uiactools_runtime_SyncSTM___VERS 150


/*
 * ======== INCLUDES ========
 */

#include <xdc/std.h>

#include <xdc/runtime/xdc.h>
#include <xdc/runtime/Types.h>
#include <ti/uiactools/runtime/package/package.defs.h>

#include <ti/uia/runtime/IUIATraceSyncProvider.h>
#include <xdc/runtime/IGateProvider.h>
#include <ti/uia/events/UIASync.h>
#include <ti/uiactools/runtime/package/SyncSTM_Module_GateProxy.h>


/*
 * ======== AUXILIARY DEFINITIONS ========
 */

/* ContextType */
typedef ti_uia_runtime_IUIATraceSyncProvider_ContextType ti_uiactools_runtime_SyncSTM_ContextType;

/* ContextType_Reserved0 */
#define ti_uiactools_runtime_SyncSTM_ContextType_Reserved0 ti_uia_runtime_IUIATraceSyncProvider_ContextType_Reserved0

/* ContextType_SyncPoint */
#define ti_uiactools_runtime_SyncSTM_ContextType_SyncPoint ti_uia_runtime_IUIATraceSyncProvider_ContextType_SyncPoint

/* ContextType_ContextChange */
#define ti_uiactools_runtime_SyncSTM_ContextType_ContextChange ti_uia_runtime_IUIATraceSyncProvider_ContextType_ContextChange

/* ContextType_Snapshot */
#define ti_uiactools_runtime_SyncSTM_ContextType_Snapshot ti_uia_runtime_IUIATraceSyncProvider_ContextType_Snapshot

/* ContextType_Reserved4 */
#define ti_uiactools_runtime_SyncSTM_ContextType_Reserved4 ti_uia_runtime_IUIATraceSyncProvider_ContextType_Reserved4

/* ContextType_Reserved5 */
#define ti_uiactools_runtime_SyncSTM_ContextType_Reserved5 ti_uia_runtime_IUIATraceSyncProvider_ContextType_Reserved5

/* ContextType_Reserved6 */
#define ti_uiactools_runtime_SyncSTM_ContextType_Reserved6 ti_uia_runtime_IUIATraceSyncProvider_ContextType_Reserved6

/* ContextType_Reserved7 */
#define ti_uiactools_runtime_SyncSTM_ContextType_Reserved7 ti_uia_runtime_IUIATraceSyncProvider_ContextType_Reserved7

/* ContextType_Reserved8 */
#define ti_uiactools_runtime_SyncSTM_ContextType_Reserved8 ti_uia_runtime_IUIATraceSyncProvider_ContextType_Reserved8

/* ContextType_Reserved9 */
#define ti_uiactools_runtime_SyncSTM_ContextType_Reserved9 ti_uia_runtime_IUIATraceSyncProvider_ContextType_Reserved9

/* ContextType_Reserved10 */
#define ti_uiactools_runtime_SyncSTM_ContextType_Reserved10 ti_uia_runtime_IUIATraceSyncProvider_ContextType_Reserved10

/* ContextType_Reserved11 */
#define ti_uiactools_runtime_SyncSTM_ContextType_Reserved11 ti_uia_runtime_IUIATraceSyncProvider_ContextType_Reserved11

/* ContextType_Reserved12 */
#define ti_uiactools_runtime_SyncSTM_ContextType_Reserved12 ti_uia_runtime_IUIATraceSyncProvider_ContextType_Reserved12

/* ContextType_Reserved13 */
#define ti_uiactools_runtime_SyncSTM_ContextType_Reserved13 ti_uia_runtime_IUIATraceSyncProvider_ContextType_Reserved13

/* ContextType_Global32bTimestamp */
#define ti_uiactools_runtime_SyncSTM_ContextType_Global32bTimestamp ti_uia_runtime_IUIATraceSyncProvider_ContextType_Global32bTimestamp

/* ContextType_User */
#define ti_uiactools_runtime_SyncSTM_ContextType_User ti_uia_runtime_IUIATraceSyncProvider_ContextType_User


/*
 * ======== INTERNAL DEFINITIONS ========
 */


/*
 * ======== MODULE-WIDE CONFIGS ========
 */

/* Module__diagsEnabled */
typedef xdc_Bits32 CT__ti_uiactools_runtime_SyncSTM_Module__diagsEnabled;
__extern __FAR__ const CT__ti_uiactools_runtime_SyncSTM_Module__diagsEnabled ti_uiactools_runtime_SyncSTM_Module__diagsEnabled__C;

/* Module__diagsIncluded */
typedef xdc_Bits32 CT__ti_uiactools_runtime_SyncSTM_Module__diagsIncluded;
__extern __FAR__ const CT__ti_uiactools_runtime_SyncSTM_Module__diagsIncluded ti_uiactools_runtime_SyncSTM_Module__diagsIncluded__C;

/* Module__diagsMask */
typedef xdc_Bits16* CT__ti_uiactools_runtime_SyncSTM_Module__diagsMask;
__extern __FAR__ const CT__ti_uiactools_runtime_SyncSTM_Module__diagsMask ti_uiactools_runtime_SyncSTM_Module__diagsMask__C;

/* Module__gateObj */
typedef xdc_Ptr CT__ti_uiactools_runtime_SyncSTM_Module__gateObj;
__extern __FAR__ const CT__ti_uiactools_runtime_SyncSTM_Module__gateObj ti_uiactools_runtime_SyncSTM_Module__gateObj__C;

/* Module__gatePrms */
typedef xdc_Ptr CT__ti_uiactools_runtime_SyncSTM_Module__gatePrms;
__extern __FAR__ const CT__ti_uiactools_runtime_SyncSTM_Module__gatePrms ti_uiactools_runtime_SyncSTM_Module__gatePrms__C;

/* Module__id */
typedef xdc_runtime_Types_ModuleId CT__ti_uiactools_runtime_SyncSTM_Module__id;
__extern __FAR__ const CT__ti_uiactools_runtime_SyncSTM_Module__id ti_uiactools_runtime_SyncSTM_Module__id__C;

/* Module__loggerDefined */
typedef xdc_Bool CT__ti_uiactools_runtime_SyncSTM_Module__loggerDefined;
__extern __FAR__ const CT__ti_uiactools_runtime_SyncSTM_Module__loggerDefined ti_uiactools_runtime_SyncSTM_Module__loggerDefined__C;

/* Module__loggerObj */
typedef xdc_Ptr CT__ti_uiactools_runtime_SyncSTM_Module__loggerObj;
__extern __FAR__ const CT__ti_uiactools_runtime_SyncSTM_Module__loggerObj ti_uiactools_runtime_SyncSTM_Module__loggerObj__C;

/* Module__loggerFxn0 */
typedef xdc_runtime_Types_LoggerFxn0 CT__ti_uiactools_runtime_SyncSTM_Module__loggerFxn0;
__extern __FAR__ const CT__ti_uiactools_runtime_SyncSTM_Module__loggerFxn0 ti_uiactools_runtime_SyncSTM_Module__loggerFxn0__C;

/* Module__loggerFxn1 */
typedef xdc_runtime_Types_LoggerFxn1 CT__ti_uiactools_runtime_SyncSTM_Module__loggerFxn1;
__extern __FAR__ const CT__ti_uiactools_runtime_SyncSTM_Module__loggerFxn1 ti_uiactools_runtime_SyncSTM_Module__loggerFxn1__C;

/* Module__loggerFxn2 */
typedef xdc_runtime_Types_LoggerFxn2 CT__ti_uiactools_runtime_SyncSTM_Module__loggerFxn2;
__extern __FAR__ const CT__ti_uiactools_runtime_SyncSTM_Module__loggerFxn2 ti_uiactools_runtime_SyncSTM_Module__loggerFxn2__C;

/* Module__loggerFxn4 */
typedef xdc_runtime_Types_LoggerFxn4 CT__ti_uiactools_runtime_SyncSTM_Module__loggerFxn4;
__extern __FAR__ const CT__ti_uiactools_runtime_SyncSTM_Module__loggerFxn4 ti_uiactools_runtime_SyncSTM_Module__loggerFxn4__C;

/* Module__loggerFxn8 */
typedef xdc_runtime_Types_LoggerFxn8 CT__ti_uiactools_runtime_SyncSTM_Module__loggerFxn8;
__extern __FAR__ const CT__ti_uiactools_runtime_SyncSTM_Module__loggerFxn8 ti_uiactools_runtime_SyncSTM_Module__loggerFxn8__C;

/* Module__startupDoneFxn */
typedef xdc_Bool (*CT__ti_uiactools_runtime_SyncSTM_Module__startupDoneFxn)(void);
__extern __FAR__ const CT__ti_uiactools_runtime_SyncSTM_Module__startupDoneFxn ti_uiactools_runtime_SyncSTM_Module__startupDoneFxn__C;

/* Object__count */
typedef xdc_Int CT__ti_uiactools_runtime_SyncSTM_Object__count;
__extern __FAR__ const CT__ti_uiactools_runtime_SyncSTM_Object__count ti_uiactools_runtime_SyncSTM_Object__count__C;

/* Object__heap */
typedef xdc_runtime_IHeap_Handle CT__ti_uiactools_runtime_SyncSTM_Object__heap;
__extern __FAR__ const CT__ti_uiactools_runtime_SyncSTM_Object__heap ti_uiactools_runtime_SyncSTM_Object__heap__C;

/* Object__sizeof */
typedef xdc_SizeT CT__ti_uiactools_runtime_SyncSTM_Object__sizeof;
__extern __FAR__ const CT__ti_uiactools_runtime_SyncSTM_Object__sizeof ti_uiactools_runtime_SyncSTM_Object__sizeof__C;

/* Object__table */
typedef xdc_Ptr CT__ti_uiactools_runtime_SyncSTM_Object__table;
__extern __FAR__ const CT__ti_uiactools_runtime_SyncSTM_Object__table ti_uiactools_runtime_SyncSTM_Object__table__C;

/* isC6XTraceSyncEnabled */
#ifdef ti_uiactools_runtime_SyncSTM_isC6XTraceSyncEnabled__D
#define ti_uiactools_runtime_SyncSTM_isC6XTraceSyncEnabled (ti_uiactools_runtime_SyncSTM_isC6XTraceSyncEnabled__D)
#else
#define ti_uiactools_runtime_SyncSTM_isC6XTraceSyncEnabled (ti_uiactools_runtime_SyncSTM_isC6XTraceSyncEnabled__C)
typedef xdc_Bool CT__ti_uiactools_runtime_SyncSTM_isC6XTraceSyncEnabled;
__extern __FAR__ const CT__ti_uiactools_runtime_SyncSTM_isC6XTraceSyncEnabled ti_uiactools_runtime_SyncSTM_isC6XTraceSyncEnabled__C;
#endif


/*
 * ======== VIRTUAL FUNCTIONS ========
 */

/* Fxns__ */
struct ti_uiactools_runtime_SyncSTM_Fxns__ {
    xdc_runtime_Types_Base* __base;
    const xdc_runtime_Types_SysFxns2* __sysp;
    xdc_Void (*injectIntoTrace)(xdc_UInt32, ti_uia_runtime_IUIATraceSyncProvider_ContextType);
    xdc_runtime_Types_SysFxns2 __sfxns;
};

/* Module__FXNS__C */
__extern const ti_uiactools_runtime_SyncSTM_Fxns__ ti_uiactools_runtime_SyncSTM_Module__FXNS__C;


/*
 * ======== FUNCTION DECLARATIONS ========
 */

/* Module_startup */
#define ti_uiactools_runtime_SyncSTM_Module_startup( state ) -1

/* Module__startupDone__S */
xdc__CODESECT(ti_uiactools_runtime_SyncSTM_Module__startupDone__S, "ti_uiactools_runtime_SyncSTM_Module__startupDone")
__extern xdc_Bool ti_uiactools_runtime_SyncSTM_Module__startupDone__S( void );

/* injectIntoTrace__E */
#define ti_uiactools_runtime_SyncSTM_injectIntoTrace ti_uiactools_runtime_SyncSTM_injectIntoTrace__E
xdc__CODESECT(ti_uiactools_runtime_SyncSTM_injectIntoTrace__E, "ti_uiactools_runtime_SyncSTM_injectIntoTrace")
__extern xdc_Void ti_uiactools_runtime_SyncSTM_injectIntoTrace__E( xdc_UInt32 serialNum, ti_uia_runtime_IUIATraceSyncProvider_ContextType ctxType );
xdc__CODESECT(ti_uiactools_runtime_SyncSTM_injectIntoTrace__F, "ti_uiactools_runtime_SyncSTM_injectIntoTrace")
__extern xdc_Void ti_uiactools_runtime_SyncSTM_injectIntoTrace__F( xdc_UInt32 serialNum, ti_uia_runtime_IUIATraceSyncProvider_ContextType ctxType );
__extern xdc_Void ti_uiactools_runtime_SyncSTM_injectIntoTrace__R( xdc_UInt32 serialNum, ti_uia_runtime_IUIATraceSyncProvider_ContextType ctxType );

/* putSyncPoint__E */
#define ti_uiactools_runtime_SyncSTM_putSyncPoint ti_uiactools_runtime_SyncSTM_putSyncPoint__E
xdc__CODESECT(ti_uiactools_runtime_SyncSTM_putSyncPoint__E, "ti_uiactools_runtime_SyncSTM_putSyncPoint")
__extern xdc_Void ti_uiactools_runtime_SyncSTM_putSyncPoint__E( xdc_UInt32 serialNum );
xdc__CODESECT(ti_uiactools_runtime_SyncSTM_putSyncPoint__F, "ti_uiactools_runtime_SyncSTM_putSyncPoint")
__extern xdc_Void ti_uiactools_runtime_SyncSTM_putSyncPoint__F( xdc_UInt32 serialNum );
__extern xdc_Void ti_uiactools_runtime_SyncSTM_putSyncPoint__R( xdc_UInt32 serialNum );


/*
 * ======== CONVERTORS ========
 */

/* Module_upCast */
static inline ti_uia_runtime_IUIATraceSyncProvider_Module ti_uiactools_runtime_SyncSTM_Module_upCast( void )
{
    return (ti_uia_runtime_IUIATraceSyncProvider_Module)&ti_uiactools_runtime_SyncSTM_Module__FXNS__C;
}

/* Module_to_ti_uia_runtime_IUIATraceSyncProvider */
#define ti_uiactools_runtime_SyncSTM_Module_to_ti_uia_runtime_IUIATraceSyncProvider ti_uiactools_runtime_SyncSTM_Module_upCast

/* Module_upCast2 */
static inline ti_uia_events_IUIAMetaProvider_Module ti_uiactools_runtime_SyncSTM_Module_upCast2( void )
{
    return (ti_uia_events_IUIAMetaProvider_Module)&ti_uiactools_runtime_SyncSTM_Module__FXNS__C;
}

/* Module_to_ti_uia_events_IUIAMetaProvider */
#define ti_uiactools_runtime_SyncSTM_Module_to_ti_uia_events_IUIAMetaProvider ti_uiactools_runtime_SyncSTM_Module_upCast2


/*
 * ======== SYSTEM FUNCTIONS ========
 */

/* Module_startupDone */
#define ti_uiactools_runtime_SyncSTM_Module_startupDone() ti_uiactools_runtime_SyncSTM_Module__startupDone__S()

/* Object_heap */
#define ti_uiactools_runtime_SyncSTM_Object_heap() ti_uiactools_runtime_SyncSTM_Object__heap__C

/* Module_heap */
#define ti_uiactools_runtime_SyncSTM_Module_heap() ti_uiactools_runtime_SyncSTM_Object__heap__C

/* Module_id */
static inline CT__ti_uiactools_runtime_SyncSTM_Module__id ti_uiactools_runtime_SyncSTM_Module_id( void ) 
{
    return ti_uiactools_runtime_SyncSTM_Module__id__C;
}

/* Module_hasMask */
static inline xdc_Bool ti_uiactools_runtime_SyncSTM_Module_hasMask( void ) 
{
    return ti_uiactools_runtime_SyncSTM_Module__diagsMask__C != NULL;
}

/* Module_getMask */
static inline xdc_Bits16 ti_uiactools_runtime_SyncSTM_Module_getMask( void ) 
{
    return ti_uiactools_runtime_SyncSTM_Module__diagsMask__C != NULL ? *ti_uiactools_runtime_SyncSTM_Module__diagsMask__C : 0;
}

/* Module_setMask */
static inline xdc_Void ti_uiactools_runtime_SyncSTM_Module_setMask( xdc_Bits16 mask ) 
{
    if (ti_uiactools_runtime_SyncSTM_Module__diagsMask__C != NULL) *ti_uiactools_runtime_SyncSTM_Module__diagsMask__C = mask;
}


/*
 * ======== EPILOGUE ========
 */

#ifdef ti_uiactools_runtime_SyncSTM__top__
#undef __nested__
#endif

#endif /* ti_uiactools_runtime_SyncSTM__include */


/*
 * ======== STATE STRUCTURES ========
 */

#if defined(__config__) || (!defined(__nested__) && defined(ti_uiactools_runtime_SyncSTM__internalaccess))

#ifndef ti_uiactools_runtime_SyncSTM__include_state
#define ti_uiactools_runtime_SyncSTM__include_state


#endif /* ti_uiactools_runtime_SyncSTM__include_state */

#endif

/*
 * ======== PREFIX ALIASES ========
 */

#if !defined(__nested__) && !defined(ti_uiactools_runtime_SyncSTM__nolocalnames)

#ifndef ti_uiactools_runtime_SyncSTM__localnames__done
#define ti_uiactools_runtime_SyncSTM__localnames__done

/* module prefix */
#define SyncSTM_ContextType ti_uiactools_runtime_SyncSTM_ContextType
#define SyncSTM_ContextType_Reserved0 ti_uiactools_runtime_SyncSTM_ContextType_Reserved0
#define SyncSTM_ContextType_SyncPoint ti_uiactools_runtime_SyncSTM_ContextType_SyncPoint
#define SyncSTM_ContextType_ContextChange ti_uiactools_runtime_SyncSTM_ContextType_ContextChange
#define SyncSTM_ContextType_Snapshot ti_uiactools_runtime_SyncSTM_ContextType_Snapshot
#define SyncSTM_ContextType_Reserved4 ti_uiactools_runtime_SyncSTM_ContextType_Reserved4
#define SyncSTM_ContextType_Reserved5 ti_uiactools_runtime_SyncSTM_ContextType_Reserved5
#define SyncSTM_ContextType_Reserved6 ti_uiactools_runtime_SyncSTM_ContextType_Reserved6
#define SyncSTM_ContextType_Reserved7 ti_uiactools_runtime_SyncSTM_ContextType_Reserved7
#define SyncSTM_ContextType_Reserved8 ti_uiactools_runtime_SyncSTM_ContextType_Reserved8
#define SyncSTM_ContextType_Reserved9 ti_uiactools_runtime_SyncSTM_ContextType_Reserved9
#define SyncSTM_ContextType_Reserved10 ti_uiactools_runtime_SyncSTM_ContextType_Reserved10
#define SyncSTM_ContextType_Reserved11 ti_uiactools_runtime_SyncSTM_ContextType_Reserved11
#define SyncSTM_ContextType_Reserved12 ti_uiactools_runtime_SyncSTM_ContextType_Reserved12
#define SyncSTM_ContextType_Reserved13 ti_uiactools_runtime_SyncSTM_ContextType_Reserved13
#define SyncSTM_ContextType_Global32bTimestamp ti_uiactools_runtime_SyncSTM_ContextType_Global32bTimestamp
#define SyncSTM_ContextType_User ti_uiactools_runtime_SyncSTM_ContextType_User
#define SyncSTM_isC6XTraceSyncEnabled ti_uiactools_runtime_SyncSTM_isC6XTraceSyncEnabled
#define SyncSTM_injectIntoTrace ti_uiactools_runtime_SyncSTM_injectIntoTrace
#define SyncSTM_putSyncPoint ti_uiactools_runtime_SyncSTM_putSyncPoint
#define SyncSTM_Module_name ti_uiactools_runtime_SyncSTM_Module_name
#define SyncSTM_Module_id ti_uiactools_runtime_SyncSTM_Module_id
#define SyncSTM_Module_startup ti_uiactools_runtime_SyncSTM_Module_startup
#define SyncSTM_Module_startupDone ti_uiactools_runtime_SyncSTM_Module_startupDone
#define SyncSTM_Module_hasMask ti_uiactools_runtime_SyncSTM_Module_hasMask
#define SyncSTM_Module_getMask ti_uiactools_runtime_SyncSTM_Module_getMask
#define SyncSTM_Module_setMask ti_uiactools_runtime_SyncSTM_Module_setMask
#define SyncSTM_Object_heap ti_uiactools_runtime_SyncSTM_Object_heap
#define SyncSTM_Module_heap ti_uiactools_runtime_SyncSTM_Module_heap
#define SyncSTM_Module_upCast ti_uiactools_runtime_SyncSTM_Module_upCast
#define SyncSTM_Module_to_ti_uia_runtime_IUIATraceSyncProvider ti_uiactools_runtime_SyncSTM_Module_to_ti_uia_runtime_IUIATraceSyncProvider
#define SyncSTM_Module_upCast2 ti_uiactools_runtime_SyncSTM_Module_upCast2
#define SyncSTM_Module_to_ti_uia_events_IUIAMetaProvider ti_uiactools_runtime_SyncSTM_Module_to_ti_uia_events_IUIAMetaProvider

/* proxies */
#include <ti/uiactools/runtime/package/SyncSTM_Module_GateProxy.h>

#endif /* ti_uiactools_runtime_SyncSTM__localnames__done */
#endif
