/*
 *  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_services_BufferUpload__include
#define ti_uiactools_services_BufferUpload__include

#ifndef __nested__
#define __nested__
#define ti_uiactools_services_BufferUpload__top__
#endif

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

#define ti_uiactools_services_BufferUpload___VERS 150


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

#include <xdc/std.h>

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

#include <ti/uia/events/IUIAMetaProvider.h>
#include <ti/uiactools/runtime/IUIAPacketTransfer.h>
#include <xdc/runtime/Log.h>
#include <ti/uia/runtime/UIAPacket.h>
#include <ti/uia/runtime/ServiceMgr.h>
#include <xdc/runtime/Diags.h>


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

/* Packet */
struct ti_uiactools_services_BufferUpload_Packet {
    ti_uia_runtime_UIAPacket_Hdr hdr;
    xdc_Bits32 arg0;
    xdc_Bits32 arg1;
};


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

/* Module_State */
typedef ti_uiactools_runtime_IUIAPacketTransfer_Handle __T1_ti_uiactools_services_BufferUpload_Module_State__hBufferPacketizers;
typedef ti_uiactools_runtime_IUIAPacketTransfer_Handle *__ARRAY1_ti_uiactools_services_BufferUpload_Module_State__hBufferPacketizers;
typedef __ARRAY1_ti_uiactools_services_BufferUpload_Module_State__hBufferPacketizers __TA_ti_uiactools_services_BufferUpload_Module_State__hBufferPacketizers;

/* Command */
enum ti_uiactools_services_BufferUpload_Command {
    ti_uiactools_services_BufferUpload_Command_BUF_OFF = 2,
    ti_uiactools_services_BufferUpload_Command_BUF_ON = 3,
    ti_uiactools_services_BufferUpload_Command_GET_CPU_SPEED = 4,
    ti_uiactools_services_BufferUpload_Command_RESET_BUF = 5,
    ti_uiactools_services_BufferUpload_Command_CHANGE_PERIOD = 6,
    ti_uiactools_services_BufferUpload_Command_START_TX = 7,
    ti_uiactools_services_BufferUpload_Command_STOP_TX = 8,
    ti_uiactools_services_BufferUpload_Command_BUF_OFF_ALL = 9,
    ti_uiactools_services_BufferUpload_Command_BUF_ON_ALL = 10,
    ti_uiactools_services_BufferUpload_Command_RESET_BUF_ALL = 11,
    ti_uiactools_services_BufferUpload_Command_SNAPSHOT_ALL = 12
};
typedef enum ti_uiactools_services_BufferUpload_Command ti_uiactools_services_BufferUpload_Command;

/* ErrorCode */
enum ti_uiactools_services_BufferUpload_ErrorCode {
    ti_uiactools_services_BufferUpload_ErrorCode_NULLPOINTER = 0
};
typedef enum ti_uiactools_services_BufferUpload_ErrorCode ti_uiactools_services_BufferUpload_ErrorCode;


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

/* Module__diagsEnabled */
typedef xdc_Bits32 CT__ti_uiactools_services_BufferUpload_Module__diagsEnabled;
__extern __FAR__ const CT__ti_uiactools_services_BufferUpload_Module__diagsEnabled ti_uiactools_services_BufferUpload_Module__diagsEnabled__C;

/* Module__diagsIncluded */
typedef xdc_Bits32 CT__ti_uiactools_services_BufferUpload_Module__diagsIncluded;
__extern __FAR__ const CT__ti_uiactools_services_BufferUpload_Module__diagsIncluded ti_uiactools_services_BufferUpload_Module__diagsIncluded__C;

/* Module__diagsMask */
typedef xdc_Bits16* CT__ti_uiactools_services_BufferUpload_Module__diagsMask;
__extern __FAR__ const CT__ti_uiactools_services_BufferUpload_Module__diagsMask ti_uiactools_services_BufferUpload_Module__diagsMask__C;

/* Module__gateObj */
typedef xdc_Ptr CT__ti_uiactools_services_BufferUpload_Module__gateObj;
__extern __FAR__ const CT__ti_uiactools_services_BufferUpload_Module__gateObj ti_uiactools_services_BufferUpload_Module__gateObj__C;

/* Module__gatePrms */
typedef xdc_Ptr CT__ti_uiactools_services_BufferUpload_Module__gatePrms;
__extern __FAR__ const CT__ti_uiactools_services_BufferUpload_Module__gatePrms ti_uiactools_services_BufferUpload_Module__gatePrms__C;

/* Module__id */
typedef xdc_runtime_Types_ModuleId CT__ti_uiactools_services_BufferUpload_Module__id;
__extern __FAR__ const CT__ti_uiactools_services_BufferUpload_Module__id ti_uiactools_services_BufferUpload_Module__id__C;

/* Module__loggerDefined */
typedef xdc_Bool CT__ti_uiactools_services_BufferUpload_Module__loggerDefined;
__extern __FAR__ const CT__ti_uiactools_services_BufferUpload_Module__loggerDefined ti_uiactools_services_BufferUpload_Module__loggerDefined__C;

/* Module__loggerObj */
typedef xdc_Ptr CT__ti_uiactools_services_BufferUpload_Module__loggerObj;
__extern __FAR__ const CT__ti_uiactools_services_BufferUpload_Module__loggerObj ti_uiactools_services_BufferUpload_Module__loggerObj__C;

/* Module__loggerFxn0 */
typedef xdc_runtime_Types_LoggerFxn0 CT__ti_uiactools_services_BufferUpload_Module__loggerFxn0;
__extern __FAR__ const CT__ti_uiactools_services_BufferUpload_Module__loggerFxn0 ti_uiactools_services_BufferUpload_Module__loggerFxn0__C;

/* Module__loggerFxn1 */
typedef xdc_runtime_Types_LoggerFxn1 CT__ti_uiactools_services_BufferUpload_Module__loggerFxn1;
__extern __FAR__ const CT__ti_uiactools_services_BufferUpload_Module__loggerFxn1 ti_uiactools_services_BufferUpload_Module__loggerFxn1__C;

/* Module__loggerFxn2 */
typedef xdc_runtime_Types_LoggerFxn2 CT__ti_uiactools_services_BufferUpload_Module__loggerFxn2;
__extern __FAR__ const CT__ti_uiactools_services_BufferUpload_Module__loggerFxn2 ti_uiactools_services_BufferUpload_Module__loggerFxn2__C;

/* Module__loggerFxn4 */
typedef xdc_runtime_Types_LoggerFxn4 CT__ti_uiactools_services_BufferUpload_Module__loggerFxn4;
__extern __FAR__ const CT__ti_uiactools_services_BufferUpload_Module__loggerFxn4 ti_uiactools_services_BufferUpload_Module__loggerFxn4__C;

/* Module__loggerFxn8 */
typedef xdc_runtime_Types_LoggerFxn8 CT__ti_uiactools_services_BufferUpload_Module__loggerFxn8;
__extern __FAR__ const CT__ti_uiactools_services_BufferUpload_Module__loggerFxn8 ti_uiactools_services_BufferUpload_Module__loggerFxn8__C;

/* Module__startupDoneFxn */
typedef xdc_Bool (*CT__ti_uiactools_services_BufferUpload_Module__startupDoneFxn)(void);
__extern __FAR__ const CT__ti_uiactools_services_BufferUpload_Module__startupDoneFxn ti_uiactools_services_BufferUpload_Module__startupDoneFxn__C;

/* Object__count */
typedef xdc_Int CT__ti_uiactools_services_BufferUpload_Object__count;
__extern __FAR__ const CT__ti_uiactools_services_BufferUpload_Object__count ti_uiactools_services_BufferUpload_Object__count__C;

/* Object__heap */
typedef xdc_runtime_IHeap_Handle CT__ti_uiactools_services_BufferUpload_Object__heap;
__extern __FAR__ const CT__ti_uiactools_services_BufferUpload_Object__heap ti_uiactools_services_BufferUpload_Object__heap__C;

/* Object__sizeof */
typedef xdc_SizeT CT__ti_uiactools_services_BufferUpload_Object__sizeof;
__extern __FAR__ const CT__ti_uiactools_services_BufferUpload_Object__sizeof ti_uiactools_services_BufferUpload_Object__sizeof__C;

/* Object__table */
typedef xdc_Ptr CT__ti_uiactools_services_BufferUpload_Object__table;
__extern __FAR__ const CT__ti_uiactools_services_BufferUpload_Object__table ti_uiactools_services_BufferUpload_Object__table__C;

/* LD_recordsSent */
#define ti_uiactools_services_BufferUpload_LD_recordsSent (ti_uiactools_services_BufferUpload_LD_recordsSent__C)
typedef xdc_runtime_Log_Event CT__ti_uiactools_services_BufferUpload_LD_recordsSent;
__extern __FAR__ const CT__ti_uiactools_services_BufferUpload_LD_recordsSent ti_uiactools_services_BufferUpload_LD_recordsSent__C;

/* LD_cmdRcvd */
#define ti_uiactools_services_BufferUpload_LD_cmdRcvd (ti_uiactools_services_BufferUpload_LD_cmdRcvd__C)
typedef xdc_runtime_Log_Event CT__ti_uiactools_services_BufferUpload_LD_cmdRcvd;
__extern __FAR__ const CT__ti_uiactools_services_BufferUpload_LD_cmdRcvd ti_uiactools_services_BufferUpload_LD_cmdRcvd__C;

/* periodInMs */
#ifdef ti_uiactools_services_BufferUpload_periodInMs__D
#define ti_uiactools_services_BufferUpload_periodInMs (ti_uiactools_services_BufferUpload_periodInMs__D)
#else
#define ti_uiactools_services_BufferUpload_periodInMs (ti_uiactools_services_BufferUpload_periodInMs__C)
typedef xdc_Int CT__ti_uiactools_services_BufferUpload_periodInMs;
__extern __FAR__ const CT__ti_uiactools_services_BufferUpload_periodInMs ti_uiactools_services_BufferUpload_periodInMs__C;
#endif

/* SERVICEID */
#define ti_uiactools_services_BufferUpload_SERVICEID (ti_uiactools_services_BufferUpload_SERVICEID__C)
typedef ti_uia_runtime_ServiceMgr_ServiceId CT__ti_uiactools_services_BufferUpload_SERVICEID;
__extern __FAR__ const CT__ti_uiactools_services_BufferUpload_SERVICEID ti_uiactools_services_BufferUpload_SERVICEID__C;

/* maxNumConsecutivePackets */
#ifdef ti_uiactools_services_BufferUpload_maxNumConsecutivePackets__D
#define ti_uiactools_services_BufferUpload_maxNumConsecutivePackets (ti_uiactools_services_BufferUpload_maxNumConsecutivePackets__D)
#else
#define ti_uiactools_services_BufferUpload_maxNumConsecutivePackets (ti_uiactools_services_BufferUpload_maxNumConsecutivePackets__C)
typedef xdc_UInt32 CT__ti_uiactools_services_BufferUpload_maxNumConsecutivePackets;
__extern __FAR__ const CT__ti_uiactools_services_BufferUpload_maxNumConsecutivePackets ti_uiactools_services_BufferUpload_maxNumConsecutivePackets__C;
#endif


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

/* Fxns__ */
struct ti_uiactools_services_BufferUpload_Fxns__ {
    xdc_runtime_Types_Base* __base;
    const xdc_runtime_Types_SysFxns2* __sysp;
    xdc_runtime_Types_SysFxns2 __sfxns;
};

/* Module__FXNS__C */
__extern const ti_uiactools_services_BufferUpload_Fxns__ ti_uiactools_services_BufferUpload_Module__FXNS__C;


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

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

/* Module__startupDone__S */
xdc__CODESECT(ti_uiactools_services_BufferUpload_Module__startupDone__S, "ti_uiactools_services_BufferUpload_Module__startupDone")
__extern xdc_Bool ti_uiactools_services_BufferUpload_Module__startupDone__S( void );

/* processCallback__E */
#define ti_uiactools_services_BufferUpload_processCallback ti_uiactools_services_BufferUpload_processCallback__E
xdc__CODESECT(ti_uiactools_services_BufferUpload_processCallback__E, "ti_uiactools_services_BufferUpload_processCallback")
__extern xdc_Void ti_uiactools_services_BufferUpload_processCallback__E( ti_uia_runtime_ServiceMgr_Reason reason, ti_uia_runtime_UIAPacket_Hdr* cmd );
xdc__CODESECT(ti_uiactools_services_BufferUpload_processCallback__F, "ti_uiactools_services_BufferUpload_processCallback")
__extern xdc_Void ti_uiactools_services_BufferUpload_processCallback__F( ti_uia_runtime_ServiceMgr_Reason reason, ti_uia_runtime_UIAPacket_Hdr* cmd );
__extern xdc_Void ti_uiactools_services_BufferUpload_processCallback__R( ti_uia_runtime_ServiceMgr_Reason reason, ti_uia_runtime_UIAPacket_Hdr* cmd );

/* disableAllBuffers__E */
#define ti_uiactools_services_BufferUpload_disableAllBuffers ti_uiactools_services_BufferUpload_disableAllBuffers__E
xdc__CODESECT(ti_uiactools_services_BufferUpload_disableAllBuffers__E, "ti_uiactools_services_BufferUpload_disableAllBuffers")
__extern xdc_Void ti_uiactools_services_BufferUpload_disableAllBuffers__E( void );
xdc__CODESECT(ti_uiactools_services_BufferUpload_disableAllBuffers__F, "ti_uiactools_services_BufferUpload_disableAllBuffers")
__extern xdc_Void ti_uiactools_services_BufferUpload_disableAllBuffers__F( void );
__extern xdc_Void ti_uiactools_services_BufferUpload_disableAllBuffers__R( void );

/* enableAllBuffers__E */
#define ti_uiactools_services_BufferUpload_enableAllBuffers ti_uiactools_services_BufferUpload_enableAllBuffers__E
xdc__CODESECT(ti_uiactools_services_BufferUpload_enableAllBuffers__E, "ti_uiactools_services_BufferUpload_enableAllBuffers")
__extern xdc_Void ti_uiactools_services_BufferUpload_enableAllBuffers__E( void );
xdc__CODESECT(ti_uiactools_services_BufferUpload_enableAllBuffers__F, "ti_uiactools_services_BufferUpload_enableAllBuffers")
__extern xdc_Void ti_uiactools_services_BufferUpload_enableAllBuffers__F( void );
__extern xdc_Void ti_uiactools_services_BufferUpload_enableAllBuffers__R( void );

/* snapshotAllBuffers__E */
#define ti_uiactools_services_BufferUpload_snapshotAllBuffers ti_uiactools_services_BufferUpload_snapshotAllBuffers__E
xdc__CODESECT(ti_uiactools_services_BufferUpload_snapshotAllBuffers__E, "ti_uiactools_services_BufferUpload_snapshotAllBuffers")
__extern xdc_Void ti_uiactools_services_BufferUpload_snapshotAllBuffers__E( xdc_UArg reset, xdc_UArg waitPeriod );
xdc__CODESECT(ti_uiactools_services_BufferUpload_snapshotAllBuffers__F, "ti_uiactools_services_BufferUpload_snapshotAllBuffers")
__extern xdc_Void ti_uiactools_services_BufferUpload_snapshotAllBuffers__F( xdc_UArg reset, xdc_UArg waitPeriod );
__extern xdc_Void ti_uiactools_services_BufferUpload_snapshotAllBuffers__R( xdc_UArg reset, xdc_UArg waitPeriod );

/* resetAllBuffers__E */
#define ti_uiactools_services_BufferUpload_resetAllBuffers ti_uiactools_services_BufferUpload_resetAllBuffers__E
xdc__CODESECT(ti_uiactools_services_BufferUpload_resetAllBuffers__E, "ti_uiactools_services_BufferUpload_resetAllBuffers")
__extern xdc_Void ti_uiactools_services_BufferUpload_resetAllBuffers__E( void );
xdc__CODESECT(ti_uiactools_services_BufferUpload_resetAllBuffers__F, "ti_uiactools_services_BufferUpload_resetAllBuffers")
__extern xdc_Void ti_uiactools_services_BufferUpload_resetAllBuffers__F( void );
__extern xdc_Void ti_uiactools_services_BufferUpload_resetAllBuffers__R( void );

/* startDataTx__E */
#define ti_uiactools_services_BufferUpload_startDataTx ti_uiactools_services_BufferUpload_startDataTx__E
xdc__CODESECT(ti_uiactools_services_BufferUpload_startDataTx__E, "ti_uiactools_services_BufferUpload_startDataTx")
__extern xdc_Void ti_uiactools_services_BufferUpload_startDataTx__E( void );
xdc__CODESECT(ti_uiactools_services_BufferUpload_startDataTx__F, "ti_uiactools_services_BufferUpload_startDataTx")
__extern xdc_Void ti_uiactools_services_BufferUpload_startDataTx__F( void );
__extern xdc_Void ti_uiactools_services_BufferUpload_startDataTx__R( void );

/* stopDataTx__E */
#define ti_uiactools_services_BufferUpload_stopDataTx ti_uiactools_services_BufferUpload_stopDataTx__E
xdc__CODESECT(ti_uiactools_services_BufferUpload_stopDataTx__E, "ti_uiactools_services_BufferUpload_stopDataTx")
__extern xdc_Void ti_uiactools_services_BufferUpload_stopDataTx__E( void );
xdc__CODESECT(ti_uiactools_services_BufferUpload_stopDataTx__F, "ti_uiactools_services_BufferUpload_stopDataTx")
__extern xdc_Void ti_uiactools_services_BufferUpload_stopDataTx__F( void );
__extern xdc_Void ti_uiactools_services_BufferUpload_stopDataTx__R( void );

/* isDataTx__E */
#define ti_uiactools_services_BufferUpload_isDataTx ti_uiactools_services_BufferUpload_isDataTx__E
xdc__CODESECT(ti_uiactools_services_BufferUpload_isDataTx__E, "ti_uiactools_services_BufferUpload_isDataTx")
__extern xdc_Bool ti_uiactools_services_BufferUpload_isDataTx__E( void );
xdc__CODESECT(ti_uiactools_services_BufferUpload_isDataTx__F, "ti_uiactools_services_BufferUpload_isDataTx")
__extern xdc_Bool ti_uiactools_services_BufferUpload_isDataTx__F( void );
__extern xdc_Bool ti_uiactools_services_BufferUpload_isDataTx__R( void );

/* packetBufferExchange__E */
#define ti_uiactools_services_BufferUpload_packetBufferExchange ti_uiactools_services_BufferUpload_packetBufferExchange__E
xdc__CODESECT(ti_uiactools_services_BufferUpload_packetBufferExchange__E, "ti_uiactools_services_BufferUpload_packetBufferExchange")
__extern xdc_Ptr ti_uiactools_services_BufferUpload_packetBufferExchange__E( xdc_Ptr hBufferPacketizer, xdc_Ptr full );
xdc__CODESECT(ti_uiactools_services_BufferUpload_packetBufferExchange__F, "ti_uiactools_services_BufferUpload_packetBufferExchange")
__extern xdc_Ptr ti_uiactools_services_BufferUpload_packetBufferExchange__F( xdc_Ptr hBufferPacketizer, xdc_Ptr full );
__extern xdc_Ptr ti_uiactools_services_BufferUpload_packetBufferExchange__R( xdc_Ptr hBufferPacketizer, xdc_Ptr full );

/* sendEvents__I */
#define ti_uiactools_services_BufferUpload_sendEvents ti_uiactools_services_BufferUpload_sendEvents__I
xdc__CODESECT(ti_uiactools_services_BufferUpload_sendEvents__I, "ti_uiactools_services_BufferUpload_sendEvents")
__extern xdc_Void ti_uiactools_services_BufferUpload_sendEvents__I( void );

/* processMsg__I */
#define ti_uiactools_services_BufferUpload_processMsg ti_uiactools_services_BufferUpload_processMsg__I
xdc__CODESECT(ti_uiactools_services_BufferUpload_processMsg__I, "ti_uiactools_services_BufferUpload_processMsg")
__extern xdc_Void ti_uiactools_services_BufferUpload_processMsg__I( ti_uia_runtime_UIAPacket_Hdr* cmd );

/* flushBuffer__I */
#define ti_uiactools_services_BufferUpload_flushBuffer ti_uiactools_services_BufferUpload_flushBuffer__I
xdc__CODESECT(ti_uiactools_services_BufferUpload_flushBuffer__I, "ti_uiactools_services_BufferUpload_flushBuffer")
__extern xdc_Void ti_uiactools_services_BufferUpload_flushBuffer__I( ti_uiactools_runtime_IUIAPacketTransfer_Handle hBufferPacketizer, xdc_UInt bufNum );

/* acknowledgeCmd__I */
#define ti_uiactools_services_BufferUpload_acknowledgeCmd ti_uiactools_services_BufferUpload_acknowledgeCmd__I
xdc__CODESECT(ti_uiactools_services_BufferUpload_acknowledgeCmd__I, "ti_uiactools_services_BufferUpload_acknowledgeCmd")
__extern xdc_Void ti_uiactools_services_BufferUpload_acknowledgeCmd__I( ti_uiactools_services_BufferUpload_Packet* resp );

/* enableBuffer__I */
#define ti_uiactools_services_BufferUpload_enableBuffer ti_uiactools_services_BufferUpload_enableBuffer__I
xdc__CODESECT(ti_uiactools_services_BufferUpload_enableBuffer__I, "ti_uiactools_services_BufferUpload_enableBuffer")
__extern xdc_Void ti_uiactools_services_BufferUpload_enableBuffer__I( xdc_UArg log );

/* disableBuffer__I */
#define ti_uiactools_services_BufferUpload_disableBuffer ti_uiactools_services_BufferUpload_disableBuffer__I
xdc__CODESECT(ti_uiactools_services_BufferUpload_disableBuffer__I, "ti_uiactools_services_BufferUpload_disableBuffer")
__extern xdc_Void ti_uiactools_services_BufferUpload_disableBuffer__I( xdc_UArg log );

/* getCpuSpeed__I */
#define ti_uiactools_services_BufferUpload_getCpuSpeed ti_uiactools_services_BufferUpload_getCpuSpeed__I
xdc__CODESECT(ti_uiactools_services_BufferUpload_getCpuSpeed__I, "ti_uiactools_services_BufferUpload_getCpuSpeed")
__extern xdc_Void ti_uiactools_services_BufferUpload_getCpuSpeed__I( ti_uiactools_services_BufferUpload_Packet* resp );

/* resetBuffer__I */
#define ti_uiactools_services_BufferUpload_resetBuffer ti_uiactools_services_BufferUpload_resetBuffer__I
xdc__CODESECT(ti_uiactools_services_BufferUpload_resetBuffer__I, "ti_uiactools_services_BufferUpload_resetBuffer")
__extern xdc_Void ti_uiactools_services_BufferUpload_resetBuffer__I( xdc_UArg log );

/* changePeriod__I */
#define ti_uiactools_services_BufferUpload_changePeriod ti_uiactools_services_BufferUpload_changePeriod__I
xdc__CODESECT(ti_uiactools_services_BufferUpload_changePeriod__I, "ti_uiactools_services_BufferUpload_changePeriod")
__extern xdc_Void ti_uiactools_services_BufferUpload_changePeriod__I( xdc_UArg period );


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

/* Module_upCast */
static inline ti_uia_events_IUIAMetaProvider_Module ti_uiactools_services_BufferUpload_Module_upCast( void )
{
    return (ti_uia_events_IUIAMetaProvider_Module)&ti_uiactools_services_BufferUpload_Module__FXNS__C;
}

/* Module_to_ti_uia_events_IUIAMetaProvider */
#define ti_uiactools_services_BufferUpload_Module_to_ti_uia_events_IUIAMetaProvider ti_uiactools_services_BufferUpload_Module_upCast


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

/* Module_startupDone */
#define ti_uiactools_services_BufferUpload_Module_startupDone() ti_uiactools_services_BufferUpload_Module__startupDone__S()

/* Object_heap */
#define ti_uiactools_services_BufferUpload_Object_heap() ti_uiactools_services_BufferUpload_Object__heap__C

/* Module_heap */
#define ti_uiactools_services_BufferUpload_Module_heap() ti_uiactools_services_BufferUpload_Object__heap__C

/* Module_id */
static inline CT__ti_uiactools_services_BufferUpload_Module__id ti_uiactools_services_BufferUpload_Module_id( void ) 
{
    return ti_uiactools_services_BufferUpload_Module__id__C;
}

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

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

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


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

#ifdef ti_uiactools_services_BufferUpload__top__
#undef __nested__
#endif

#endif /* ti_uiactools_services_BufferUpload__include */


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

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

#ifndef ti_uiactools_services_BufferUpload__include_state
#define ti_uiactools_services_BufferUpload__include_state

/* Module_State */
struct ti_uiactools_services_BufferUpload_Module_State {
    __TA_ti_uiactools_services_BufferUpload_Module_State__hBufferPacketizers hBufferPacketizers;
    xdc_UInt numBufs;
    xdc_UInt totalPacketsSent;
    xdc_Int period;
    xdc_Bits16 seq;
    xdc_Bool txData;
    xdc_Bool snapshot;
};

/* Module__state__V */
extern struct ti_uiactools_services_BufferUpload_Module_State__ ti_uiactools_services_BufferUpload_Module__state__V;

#endif /* ti_uiactools_services_BufferUpload__include_state */

#endif


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

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

#ifndef ti_uiactools_services_BufferUpload__localnames__done
#define ti_uiactools_services_BufferUpload__localnames__done

/* module prefix */
#define BufferUpload_Packet ti_uiactools_services_BufferUpload_Packet
#define BufferUpload_Module_State ti_uiactools_services_BufferUpload_Module_State
#define BufferUpload_Command ti_uiactools_services_BufferUpload_Command
#define BufferUpload_ErrorCode ti_uiactools_services_BufferUpload_ErrorCode
#define BufferUpload_Command_BUF_OFF ti_uiactools_services_BufferUpload_Command_BUF_OFF
#define BufferUpload_Command_BUF_ON ti_uiactools_services_BufferUpload_Command_BUF_ON
#define BufferUpload_Command_GET_CPU_SPEED ti_uiactools_services_BufferUpload_Command_GET_CPU_SPEED
#define BufferUpload_Command_RESET_BUF ti_uiactools_services_BufferUpload_Command_RESET_BUF
#define BufferUpload_Command_CHANGE_PERIOD ti_uiactools_services_BufferUpload_Command_CHANGE_PERIOD
#define BufferUpload_Command_START_TX ti_uiactools_services_BufferUpload_Command_START_TX
#define BufferUpload_Command_STOP_TX ti_uiactools_services_BufferUpload_Command_STOP_TX
#define BufferUpload_Command_BUF_OFF_ALL ti_uiactools_services_BufferUpload_Command_BUF_OFF_ALL
#define BufferUpload_Command_BUF_ON_ALL ti_uiactools_services_BufferUpload_Command_BUF_ON_ALL
#define BufferUpload_Command_RESET_BUF_ALL ti_uiactools_services_BufferUpload_Command_RESET_BUF_ALL
#define BufferUpload_Command_SNAPSHOT_ALL ti_uiactools_services_BufferUpload_Command_SNAPSHOT_ALL
#define BufferUpload_ErrorCode_NULLPOINTER ti_uiactools_services_BufferUpload_ErrorCode_NULLPOINTER
#define BufferUpload_LD_recordsSent ti_uiactools_services_BufferUpload_LD_recordsSent
#define BufferUpload_LD_cmdRcvd ti_uiactools_services_BufferUpload_LD_cmdRcvd
#define BufferUpload_periodInMs ti_uiactools_services_BufferUpload_periodInMs
#define BufferUpload_SERVICEID ti_uiactools_services_BufferUpload_SERVICEID
#define BufferUpload_maxNumConsecutivePackets ti_uiactools_services_BufferUpload_maxNumConsecutivePackets
#define BufferUpload_processCallback ti_uiactools_services_BufferUpload_processCallback
#define BufferUpload_disableAllBuffers ti_uiactools_services_BufferUpload_disableAllBuffers
#define BufferUpload_enableAllBuffers ti_uiactools_services_BufferUpload_enableAllBuffers
#define BufferUpload_snapshotAllBuffers ti_uiactools_services_BufferUpload_snapshotAllBuffers
#define BufferUpload_resetAllBuffers ti_uiactools_services_BufferUpload_resetAllBuffers
#define BufferUpload_startDataTx ti_uiactools_services_BufferUpload_startDataTx
#define BufferUpload_stopDataTx ti_uiactools_services_BufferUpload_stopDataTx
#define BufferUpload_isDataTx ti_uiactools_services_BufferUpload_isDataTx
#define BufferUpload_packetBufferExchange ti_uiactools_services_BufferUpload_packetBufferExchange
#define BufferUpload_Module_name ti_uiactools_services_BufferUpload_Module_name
#define BufferUpload_Module_id ti_uiactools_services_BufferUpload_Module_id
#define BufferUpload_Module_startup ti_uiactools_services_BufferUpload_Module_startup
#define BufferUpload_Module_startupDone ti_uiactools_services_BufferUpload_Module_startupDone
#define BufferUpload_Module_hasMask ti_uiactools_services_BufferUpload_Module_hasMask
#define BufferUpload_Module_getMask ti_uiactools_services_BufferUpload_Module_getMask
#define BufferUpload_Module_setMask ti_uiactools_services_BufferUpload_Module_setMask
#define BufferUpload_Object_heap ti_uiactools_services_BufferUpload_Object_heap
#define BufferUpload_Module_heap ti_uiactools_services_BufferUpload_Module_heap
#define BufferUpload_Module_upCast ti_uiactools_services_BufferUpload_Module_upCast
#define BufferUpload_Module_to_ti_uia_events_IUIAMetaProvider ti_uiactools_services_BufferUpload_Module_to_ti_uia_events_IUIAMetaProvider

#endif /* ti_uiactools_services_BufferUpload__localnames__done */
#endif
