/*
 *  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
 *     PER-INSTANCE TYPES
 *     VIRTUAL FUNCTIONS
 *     FUNCTION DECLARATIONS
 *     FUNCTION SELECTORS
 *     CONVERTORS
 *     SYSTEM FUNCTIONS
 *     
 *     EPILOGUE
 *     STATE STRUCTURES
 *     PREFIX ALIASES
 */


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

#ifndef ti_uiactools_runtime_BufferPacketizer__include
#define ti_uiactools_runtime_BufferPacketizer__include

#ifndef __nested__
#define __nested__
#define ti_uiactools_runtime_BufferPacketizer__top__
#endif

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

#define ti_uiactools_runtime_BufferPacketizer___VERS 150


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

#include <xdc/std.h>

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

#include <xdc/runtime/Types.h>
#include <ti/uiactools/runtime/UIAPacket.h>
#include <xdc/runtime/IHeap.h>
#include <ti/uiactools/runtime/IUIAPacketTransfer.h>
#include <ti/uia/runtime/QueueDescriptor.h>
#include <xdc/runtime/Error.h>


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

/* TransferType */
typedef ti_uiactools_runtime_IUIAPacketTransfer_TransferType ti_uiactools_runtime_BufferPacketizer_TransferType;

/* Priority */
typedef ti_uiactools_runtime_IUIAPacketTransfer_Priority ti_uiactools_runtime_BufferPacketizer_Priority;

/* BufferType */
enum ti_uiactools_runtime_BufferPacketizer_BufferType {
    ti_uiactools_runtime_BufferPacketizer_BufferType_MEMORY = 0,
    ti_uiactools_runtime_BufferPacketizer_BufferType_CPUTRACE_ETB = 1,
    ti_uiactools_runtime_BufferPacketizer_BufferType_STM_ETB = 2
};
typedef enum ti_uiactools_runtime_BufferPacketizer_BufferType ti_uiactools_runtime_BufferPacketizer_BufferType;

/* TransportType */
enum ti_uiactools_runtime_BufferPacketizer_TransportType {
    ti_uiactools_runtime_BufferPacketizer_TransportType_UART = 0,
    ti_uiactools_runtime_BufferPacketizer_TransportType_USB = 1,
    ti_uiactools_runtime_BufferPacketizer_TransportType_UDP = 2,
    ti_uiactools_runtime_BufferPacketizer_TransportType_TCP = 3,
    ti_uiactools_runtime_BufferPacketizer_TransportType_CUSTOM = 4
};
typedef enum ti_uiactools_runtime_BufferPacketizer_TransportType ti_uiactools_runtime_BufferPacketizer_TransportType;

/* ExchangeFxnType */
typedef xdc_Ptr (*ti_uiactools_runtime_BufferPacketizer_ExchangeFxnType)(xdc_Ptr, xdc_Ptr);

/* PrimeFxnType */
typedef xdc_Ptr (*ti_uiactools_runtime_BufferPacketizer_PrimeFxnType)(xdc_Ptr);

/* TransferType_RELIABLE */
#define ti_uiactools_runtime_BufferPacketizer_TransferType_RELIABLE ti_uiactools_runtime_IUIAPacketTransfer_TransferType_RELIABLE

/* TransferType_LOSSY */
#define ti_uiactools_runtime_BufferPacketizer_TransferType_LOSSY ti_uiactools_runtime_IUIAPacketTransfer_TransferType_LOSSY

/* Priority_LOW */
#define ti_uiactools_runtime_BufferPacketizer_Priority_LOW ti_uiactools_runtime_IUIAPacketTransfer_Priority_LOW

/* Priority_STANDARD */
#define ti_uiactools_runtime_BufferPacketizer_Priority_STANDARD ti_uiactools_runtime_IUIAPacketTransfer_Priority_STANDARD

/* Priority_HIGH */
#define ti_uiactools_runtime_BufferPacketizer_Priority_HIGH ti_uiactools_runtime_IUIAPacketTransfer_Priority_HIGH

/* Priority_SYNC */
#define ti_uiactools_runtime_BufferPacketizer_Priority_SYNC ti_uiactools_runtime_IUIAPacketTransfer_Priority_SYNC


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


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

/* Module__diagsEnabled */
typedef xdc_Bits32 CT__ti_uiactools_runtime_BufferPacketizer_Module__diagsEnabled;
__extern __FAR__ const CT__ti_uiactools_runtime_BufferPacketizer_Module__diagsEnabled ti_uiactools_runtime_BufferPacketizer_Module__diagsEnabled__C;

/* Module__diagsIncluded */
typedef xdc_Bits32 CT__ti_uiactools_runtime_BufferPacketizer_Module__diagsIncluded;
__extern __FAR__ const CT__ti_uiactools_runtime_BufferPacketizer_Module__diagsIncluded ti_uiactools_runtime_BufferPacketizer_Module__diagsIncluded__C;

/* Module__diagsMask */
typedef xdc_Bits16* CT__ti_uiactools_runtime_BufferPacketizer_Module__diagsMask;
__extern __FAR__ const CT__ti_uiactools_runtime_BufferPacketizer_Module__diagsMask ti_uiactools_runtime_BufferPacketizer_Module__diagsMask__C;

/* Module__gateObj */
typedef xdc_Ptr CT__ti_uiactools_runtime_BufferPacketizer_Module__gateObj;
__extern __FAR__ const CT__ti_uiactools_runtime_BufferPacketizer_Module__gateObj ti_uiactools_runtime_BufferPacketizer_Module__gateObj__C;

/* Module__gatePrms */
typedef xdc_Ptr CT__ti_uiactools_runtime_BufferPacketizer_Module__gatePrms;
__extern __FAR__ const CT__ti_uiactools_runtime_BufferPacketizer_Module__gatePrms ti_uiactools_runtime_BufferPacketizer_Module__gatePrms__C;

/* Module__id */
typedef xdc_runtime_Types_ModuleId CT__ti_uiactools_runtime_BufferPacketizer_Module__id;
__extern __FAR__ const CT__ti_uiactools_runtime_BufferPacketizer_Module__id ti_uiactools_runtime_BufferPacketizer_Module__id__C;

/* Module__loggerDefined */
typedef xdc_Bool CT__ti_uiactools_runtime_BufferPacketizer_Module__loggerDefined;
__extern __FAR__ const CT__ti_uiactools_runtime_BufferPacketizer_Module__loggerDefined ti_uiactools_runtime_BufferPacketizer_Module__loggerDefined__C;

/* Module__loggerObj */
typedef xdc_Ptr CT__ti_uiactools_runtime_BufferPacketizer_Module__loggerObj;
__extern __FAR__ const CT__ti_uiactools_runtime_BufferPacketizer_Module__loggerObj ti_uiactools_runtime_BufferPacketizer_Module__loggerObj__C;

/* Module__loggerFxn0 */
typedef xdc_runtime_Types_LoggerFxn0 CT__ti_uiactools_runtime_BufferPacketizer_Module__loggerFxn0;
__extern __FAR__ const CT__ti_uiactools_runtime_BufferPacketizer_Module__loggerFxn0 ti_uiactools_runtime_BufferPacketizer_Module__loggerFxn0__C;

/* Module__loggerFxn1 */
typedef xdc_runtime_Types_LoggerFxn1 CT__ti_uiactools_runtime_BufferPacketizer_Module__loggerFxn1;
__extern __FAR__ const CT__ti_uiactools_runtime_BufferPacketizer_Module__loggerFxn1 ti_uiactools_runtime_BufferPacketizer_Module__loggerFxn1__C;

/* Module__loggerFxn2 */
typedef xdc_runtime_Types_LoggerFxn2 CT__ti_uiactools_runtime_BufferPacketizer_Module__loggerFxn2;
__extern __FAR__ const CT__ti_uiactools_runtime_BufferPacketizer_Module__loggerFxn2 ti_uiactools_runtime_BufferPacketizer_Module__loggerFxn2__C;

/* Module__loggerFxn4 */
typedef xdc_runtime_Types_LoggerFxn4 CT__ti_uiactools_runtime_BufferPacketizer_Module__loggerFxn4;
__extern __FAR__ const CT__ti_uiactools_runtime_BufferPacketizer_Module__loggerFxn4 ti_uiactools_runtime_BufferPacketizer_Module__loggerFxn4__C;

/* Module__loggerFxn8 */
typedef xdc_runtime_Types_LoggerFxn8 CT__ti_uiactools_runtime_BufferPacketizer_Module__loggerFxn8;
__extern __FAR__ const CT__ti_uiactools_runtime_BufferPacketizer_Module__loggerFxn8 ti_uiactools_runtime_BufferPacketizer_Module__loggerFxn8__C;

/* Module__startupDoneFxn */
typedef xdc_Bool (*CT__ti_uiactools_runtime_BufferPacketizer_Module__startupDoneFxn)(void);
__extern __FAR__ const CT__ti_uiactools_runtime_BufferPacketizer_Module__startupDoneFxn ti_uiactools_runtime_BufferPacketizer_Module__startupDoneFxn__C;

/* Object__count */
typedef xdc_Int CT__ti_uiactools_runtime_BufferPacketizer_Object__count;
__extern __FAR__ const CT__ti_uiactools_runtime_BufferPacketizer_Object__count ti_uiactools_runtime_BufferPacketizer_Object__count__C;

/* Object__heap */
typedef xdc_runtime_IHeap_Handle CT__ti_uiactools_runtime_BufferPacketizer_Object__heap;
__extern __FAR__ const CT__ti_uiactools_runtime_BufferPacketizer_Object__heap ti_uiactools_runtime_BufferPacketizer_Object__heap__C;

/* Object__sizeof */
typedef xdc_SizeT CT__ti_uiactools_runtime_BufferPacketizer_Object__sizeof;
__extern __FAR__ const CT__ti_uiactools_runtime_BufferPacketizer_Object__sizeof ti_uiactools_runtime_BufferPacketizer_Object__sizeof__C;

/* Object__table */
typedef xdc_Ptr CT__ti_uiactools_runtime_BufferPacketizer_Object__table;
__extern __FAR__ const CT__ti_uiactools_runtime_BufferPacketizer_Object__table ti_uiactools_runtime_BufferPacketizer_Object__table__C;

/* transportType */
#define ti_uiactools_runtime_BufferPacketizer_transportType (ti_uiactools_runtime_BufferPacketizer_transportType__C)
typedef ti_uiactools_runtime_BufferPacketizer_TransportType CT__ti_uiactools_runtime_BufferPacketizer_transportType;
__extern __FAR__ const CT__ti_uiactools_runtime_BufferPacketizer_transportType ti_uiactools_runtime_BufferPacketizer_transportType__C;

/* customTransportType */
#define ti_uiactools_runtime_BufferPacketizer_customTransportType (ti_uiactools_runtime_BufferPacketizer_customTransportType__C)
typedef xdc_String CT__ti_uiactools_runtime_BufferPacketizer_customTransportType;
__extern __FAR__ const CT__ti_uiactools_runtime_BufferPacketizer_customTransportType ti_uiactools_runtime_BufferPacketizer_customTransportType__C;


/*
 * ======== PER-INSTANCE TYPES ========
 */

/* Params */
struct ti_uiactools_runtime_BufferPacketizer_Params {
    size_t __size;
    const void* __self;
    void* __fxns;
    xdc_runtime_IInstance_Params* instance;
    ti_uiactools_runtime_IUIAPacketTransfer_TransferType transferType;
    ti_uiactools_runtime_IUIAPacketTransfer_Priority priority;
    xdc_SizeT packetSizeInMAUs;
    xdc_UInt8 etbCoreId;
    ti_uiactools_runtime_BufferPacketizer_BufferType bufferType;
    xdc_Bits16 endpointNumber;
    ti_uiactools_runtime_BufferPacketizer_PrimeFxnType primeFxn;
    ti_uiactools_runtime_BufferPacketizer_ExchangeFxnType exchangeFxn;
    xdc_runtime_IInstance_Params __iprms;
};

/* Struct */
struct ti_uiactools_runtime_BufferPacketizer_Struct {
    const ti_uiactools_runtime_BufferPacketizer_Fxns__* __fxns;
    xdc_Bool __f0;
    xdc_UInt32* __f1;
    xdc_UInt32* __f2;
    xdc_UInt32* __f3;
    xdc_UInt32* __f4;
    xdc_Bool __f5;
    xdc_Bits16 __f6;
    xdc_UInt32 __f7;
    xdc_UInt32 __f8;
    xdc_Bits16 __f9;
    xdc_Bool __f10;
    xdc_Bits16 __f11;
    xdc_Bits16 __f12;
    ti_uiactools_runtime_UIAPacket_HdrType __f13;
    ti_uiactools_runtime_IUIAPacketTransfer_TransferType __f14;
    xdc_UInt32 __f15;
    xdc_UInt8 __f16;
    ti_uiactools_runtime_BufferPacketizer_BufferType __f17;
    xdc_UInt32* __f18;
    xdc_SizeT __f19;
    xdc_Ptr __f20;
    xdc_Bool __f21;
    ti_uiactools_runtime_BufferPacketizer_ExchangeFxnType __f22;
    ti_uiactools_runtime_BufferPacketizer_PrimeFxnType __f23;
    xdc_Bool __f24;
    xdc_runtime_Types_CordAddr __name;
};


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

/* Fxns__ */
struct ti_uiactools_runtime_BufferPacketizer_Fxns__ {
    xdc_runtime_Types_Base* __base;
    const xdc_runtime_Types_SysFxns2* __sysp;
    xdc_Bool (*enable)(ti_uiactools_runtime_BufferPacketizer_Handle);
    xdc_Bool (*disable)(ti_uiactools_runtime_BufferPacketizer_Handle);
    ti_uiactools_runtime_IUIAPacketTransfer_TransferType (*getTransferType)(ti_uiactools_runtime_BufferPacketizer_Handle);
    xdc_Bool (*isEmpty)(ti_uiactools_runtime_BufferPacketizer_Handle);
    xdc_UInt32 (*poll)(ti_uiactools_runtime_BufferPacketizer_Handle);
    xdc_Bool (*readyToSend)(ti_uiactools_runtime_BufferPacketizer_Handle);
    xdc_Bool (*transferData)(ti_uiactools_runtime_BufferPacketizer_Handle, xdc_UInt32);
    xdc_Bool (*prime)(ti_uiactools_runtime_BufferPacketizer_Handle, xdc_Ptr);
    xdc_runtime_Types_SysFxns2 __sfxns;
};

/* Module__FXNS__C */
__extern const ti_uiactools_runtime_BufferPacketizer_Fxns__ ti_uiactools_runtime_BufferPacketizer_Module__FXNS__C;


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

/* Module_startup */
#define ti_uiactools_runtime_BufferPacketizer_Module_startup ti_uiactools_runtime_BufferPacketizer_Module_startup__E
xdc__CODESECT(ti_uiactools_runtime_BufferPacketizer_Module_startup__E, "ti_uiactools_runtime_BufferPacketizer_Module_startup")
__extern xdc_Int ti_uiactools_runtime_BufferPacketizer_Module_startup__E( xdc_Int state );
xdc__CODESECT(ti_uiactools_runtime_BufferPacketizer_Module_startup__F, "ti_uiactools_runtime_BufferPacketizer_Module_startup")
__extern xdc_Int ti_uiactools_runtime_BufferPacketizer_Module_startup__F( xdc_Int state );
xdc__CODESECT(ti_uiactools_runtime_BufferPacketizer_Module_startup__R, "ti_uiactools_runtime_BufferPacketizer_Module_startup")
__extern xdc_Int ti_uiactools_runtime_BufferPacketizer_Module_startup__R( xdc_Int state );

/* Instance_init__F */
xdc__CODESECT(ti_uiactools_runtime_BufferPacketizer_Instance_init__F, "ti_uiactools_runtime_BufferPacketizer_Instance_init")
__extern int ti_uiactools_runtime_BufferPacketizer_Instance_init__F( ti_uiactools_runtime_BufferPacketizer_Object*, const ti_uiactools_runtime_BufferPacketizer_Params*, xdc_runtime_Error_Block* );

/* Instance_finalize__F */
xdc__CODESECT(ti_uiactools_runtime_BufferPacketizer_Instance_finalize__F, "ti_uiactools_runtime_BufferPacketizer_Instance_finalize")
__extern void ti_uiactools_runtime_BufferPacketizer_Instance_finalize__F( ti_uiactools_runtime_BufferPacketizer_Object* , int );

/* Instance_init__R */
xdc__CODESECT(ti_uiactools_runtime_BufferPacketizer_Instance_init__R, "ti_uiactools_runtime_BufferPacketizer_Instance_init")
__extern int ti_uiactools_runtime_BufferPacketizer_Instance_init__R( ti_uiactools_runtime_BufferPacketizer_Object*, const ti_uiactools_runtime_BufferPacketizer_Params*, xdc_runtime_Error_Block* );

/* Instance_finalize__R */
xdc__CODESECT(ti_uiactools_runtime_BufferPacketizer_Instance_finalize__R, "ti_uiactools_runtime_BufferPacketizer_Instance_finalize")
__extern void ti_uiactools_runtime_BufferPacketizer_Instance_finalize__R( ti_uiactools_runtime_BufferPacketizer_Object* , int );

/* Handle__label__S */
xdc__CODESECT(ti_uiactools_runtime_BufferPacketizer_Handle__label__S, "ti_uiactools_runtime_BufferPacketizer_Handle__label")
__extern xdc_runtime_Types_Label* ti_uiactools_runtime_BufferPacketizer_Handle__label__S( xdc_Ptr obj, xdc_runtime_Types_Label* lab );

/* Module__startupDone__S */
xdc__CODESECT(ti_uiactools_runtime_BufferPacketizer_Module__startupDone__S, "ti_uiactools_runtime_BufferPacketizer_Module__startupDone")
__extern xdc_Bool ti_uiactools_runtime_BufferPacketizer_Module__startupDone__S( void );

/* Object__create__S */
xdc__CODESECT(ti_uiactools_runtime_BufferPacketizer_Object__create__S, "ti_uiactools_runtime_BufferPacketizer_Object__create")
__extern xdc_Ptr ti_uiactools_runtime_BufferPacketizer_Object__create__S( xdc_Ptr __oa, xdc_SizeT __osz, xdc_Ptr __aa, const xdc_UChar* __pa, xdc_SizeT __psz, xdc_runtime_Error_Block* __eb );

/* Object__delete__S */
xdc__CODESECT(ti_uiactools_runtime_BufferPacketizer_Object__delete__S, "ti_uiactools_runtime_BufferPacketizer_Object__delete")
__extern xdc_Void ti_uiactools_runtime_BufferPacketizer_Object__delete__S( xdc_Ptr instp );

/* Object__destruct__S */
xdc__CODESECT(ti_uiactools_runtime_BufferPacketizer_Object__destruct__S, "ti_uiactools_runtime_BufferPacketizer_Object__destruct")
__extern xdc_Void ti_uiactools_runtime_BufferPacketizer_Object__destruct__S( xdc_Ptr objp );

/* Object__get__S */
xdc__CODESECT(ti_uiactools_runtime_BufferPacketizer_Object__get__S, "ti_uiactools_runtime_BufferPacketizer_Object__get")
__extern xdc_Ptr ti_uiactools_runtime_BufferPacketizer_Object__get__S( xdc_Ptr oarr, xdc_Int i );

/* Object__first__S */
xdc__CODESECT(ti_uiactools_runtime_BufferPacketizer_Object__first__S, "ti_uiactools_runtime_BufferPacketizer_Object__first")
__extern xdc_Ptr ti_uiactools_runtime_BufferPacketizer_Object__first__S( void );

/* Object__next__S */
xdc__CODESECT(ti_uiactools_runtime_BufferPacketizer_Object__next__S, "ti_uiactools_runtime_BufferPacketizer_Object__next")
__extern xdc_Ptr ti_uiactools_runtime_BufferPacketizer_Object__next__S( xdc_Ptr obj );

/* Params__init__S */
xdc__CODESECT(ti_uiactools_runtime_BufferPacketizer_Params__init__S, "ti_uiactools_runtime_BufferPacketizer_Params__init")
__extern xdc_Void ti_uiactools_runtime_BufferPacketizer_Params__init__S( xdc_Ptr dst, xdc_Ptr src, xdc_SizeT psz, xdc_SizeT isz );

/* getTransferType__E */
#define ti_uiactools_runtime_BufferPacketizer_getTransferType ti_uiactools_runtime_BufferPacketizer_getTransferType__E
xdc__CODESECT(ti_uiactools_runtime_BufferPacketizer_getTransferType__E, "ti_uiactools_runtime_BufferPacketizer_getTransferType")
__extern ti_uiactools_runtime_IUIAPacketTransfer_TransferType ti_uiactools_runtime_BufferPacketizer_getTransferType__E( ti_uiactools_runtime_BufferPacketizer_Handle __inst );
xdc__CODESECT(ti_uiactools_runtime_BufferPacketizer_getTransferType__F, "ti_uiactools_runtime_BufferPacketizer_getTransferType")
__extern ti_uiactools_runtime_IUIAPacketTransfer_TransferType ti_uiactools_runtime_BufferPacketizer_getTransferType__F( ti_uiactools_runtime_BufferPacketizer_Object* __inst );
__extern ti_uiactools_runtime_IUIAPacketTransfer_TransferType ti_uiactools_runtime_BufferPacketizer_getTransferType__R( ti_uiactools_runtime_BufferPacketizer_Handle __inst );

/* isEmpty__E */
#define ti_uiactools_runtime_BufferPacketizer_isEmpty ti_uiactools_runtime_BufferPacketizer_isEmpty__E
xdc__CODESECT(ti_uiactools_runtime_BufferPacketizer_isEmpty__E, "ti_uiactools_runtime_BufferPacketizer_isEmpty")
__extern xdc_Bool ti_uiactools_runtime_BufferPacketizer_isEmpty__E( ti_uiactools_runtime_BufferPacketizer_Handle __inst );
xdc__CODESECT(ti_uiactools_runtime_BufferPacketizer_isEmpty__F, "ti_uiactools_runtime_BufferPacketizer_isEmpty")
__extern xdc_Bool ti_uiactools_runtime_BufferPacketizer_isEmpty__F( ti_uiactools_runtime_BufferPacketizer_Object* __inst );
__extern xdc_Bool ti_uiactools_runtime_BufferPacketizer_isEmpty__R( ti_uiactools_runtime_BufferPacketizer_Handle __inst );

/* poll__E */
#define ti_uiactools_runtime_BufferPacketizer_poll ti_uiactools_runtime_BufferPacketizer_poll__E
xdc__CODESECT(ti_uiactools_runtime_BufferPacketizer_poll__E, "ti_uiactools_runtime_BufferPacketizer_poll")
__extern xdc_UInt32 ti_uiactools_runtime_BufferPacketizer_poll__E( ti_uiactools_runtime_BufferPacketizer_Handle __inst );
xdc__CODESECT(ti_uiactools_runtime_BufferPacketizer_poll__F, "ti_uiactools_runtime_BufferPacketizer_poll")
__extern xdc_UInt32 ti_uiactools_runtime_BufferPacketizer_poll__F( ti_uiactools_runtime_BufferPacketizer_Object* __inst );
__extern xdc_UInt32 ti_uiactools_runtime_BufferPacketizer_poll__R( ti_uiactools_runtime_BufferPacketizer_Handle __inst );

/* readyToSend__E */
#define ti_uiactools_runtime_BufferPacketizer_readyToSend ti_uiactools_runtime_BufferPacketizer_readyToSend__E
xdc__CODESECT(ti_uiactools_runtime_BufferPacketizer_readyToSend__E, "ti_uiactools_runtime_BufferPacketizer_readyToSend")
__extern xdc_Bool ti_uiactools_runtime_BufferPacketizer_readyToSend__E( ti_uiactools_runtime_BufferPacketizer_Handle __inst );
xdc__CODESECT(ti_uiactools_runtime_BufferPacketizer_readyToSend__F, "ti_uiactools_runtime_BufferPacketizer_readyToSend")
__extern xdc_Bool ti_uiactools_runtime_BufferPacketizer_readyToSend__F( ti_uiactools_runtime_BufferPacketizer_Object* __inst );
__extern xdc_Bool ti_uiactools_runtime_BufferPacketizer_readyToSend__R( ti_uiactools_runtime_BufferPacketizer_Handle __inst );

/* sendPacket__E */
#define ti_uiactools_runtime_BufferPacketizer_sendPacket ti_uiactools_runtime_BufferPacketizer_sendPacket__E
xdc__CODESECT(ti_uiactools_runtime_BufferPacketizer_sendPacket__E, "ti_uiactools_runtime_BufferPacketizer_sendPacket")
__extern xdc_Void ti_uiactools_runtime_BufferPacketizer_sendPacket__E( ti_uiactools_runtime_BufferPacketizer_Handle __inst );
xdc__CODESECT(ti_uiactools_runtime_BufferPacketizer_sendPacket__F, "ti_uiactools_runtime_BufferPacketizer_sendPacket")
__extern xdc_Void ti_uiactools_runtime_BufferPacketizer_sendPacket__F( ti_uiactools_runtime_BufferPacketizer_Object* __inst );
__extern xdc_Void ti_uiactools_runtime_BufferPacketizer_sendPacket__R( ti_uiactools_runtime_BufferPacketizer_Handle __inst );

/* prime__E */
#define ti_uiactools_runtime_BufferPacketizer_prime ti_uiactools_runtime_BufferPacketizer_prime__E
xdc__CODESECT(ti_uiactools_runtime_BufferPacketizer_prime__E, "ti_uiactools_runtime_BufferPacketizer_prime")
__extern xdc_Bool ti_uiactools_runtime_BufferPacketizer_prime__E( ti_uiactools_runtime_BufferPacketizer_Handle __inst, xdc_Ptr packetBuffer );
xdc__CODESECT(ti_uiactools_runtime_BufferPacketizer_prime__F, "ti_uiactools_runtime_BufferPacketizer_prime")
__extern xdc_Bool ti_uiactools_runtime_BufferPacketizer_prime__F( ti_uiactools_runtime_BufferPacketizer_Object* __inst, xdc_Ptr packetBuffer );
__extern xdc_Bool ti_uiactools_runtime_BufferPacketizer_prime__R( ti_uiactools_runtime_BufferPacketizer_Handle __inst, xdc_Ptr packetBuffer );

/* enable__E */
#define ti_uiactools_runtime_BufferPacketizer_enable ti_uiactools_runtime_BufferPacketizer_enable__E
xdc__CODESECT(ti_uiactools_runtime_BufferPacketizer_enable__E, "ti_uiactools_runtime_BufferPacketizer_enable")
__extern xdc_Bool ti_uiactools_runtime_BufferPacketizer_enable__E( ti_uiactools_runtime_BufferPacketizer_Handle __inst );
xdc__CODESECT(ti_uiactools_runtime_BufferPacketizer_enable__F, "ti_uiactools_runtime_BufferPacketizer_enable")
__extern xdc_Bool ti_uiactools_runtime_BufferPacketizer_enable__F( ti_uiactools_runtime_BufferPacketizer_Object* __inst );
__extern xdc_Bool ti_uiactools_runtime_BufferPacketizer_enable__R( ti_uiactools_runtime_BufferPacketizer_Handle __inst );

/* disable__E */
#define ti_uiactools_runtime_BufferPacketizer_disable ti_uiactools_runtime_BufferPacketizer_disable__E
xdc__CODESECT(ti_uiactools_runtime_BufferPacketizer_disable__E, "ti_uiactools_runtime_BufferPacketizer_disable")
__extern xdc_Bool ti_uiactools_runtime_BufferPacketizer_disable__E( ti_uiactools_runtime_BufferPacketizer_Handle __inst );
xdc__CODESECT(ti_uiactools_runtime_BufferPacketizer_disable__F, "ti_uiactools_runtime_BufferPacketizer_disable")
__extern xdc_Bool ti_uiactools_runtime_BufferPacketizer_disable__F( ti_uiactools_runtime_BufferPacketizer_Object* __inst );
__extern xdc_Bool ti_uiactools_runtime_BufferPacketizer_disable__R( ti_uiactools_runtime_BufferPacketizer_Handle __inst );

/* setBufferToUpload__E */
#define ti_uiactools_runtime_BufferPacketizer_setBufferToUpload ti_uiactools_runtime_BufferPacketizer_setBufferToUpload__E
xdc__CODESECT(ti_uiactools_runtime_BufferPacketizer_setBufferToUpload__E, "ti_uiactools_runtime_BufferPacketizer_setBufferToUpload")
__extern xdc_Bool ti_uiactools_runtime_BufferPacketizer_setBufferToUpload__E( ti_uiactools_runtime_BufferPacketizer_Handle __inst, xdc_UInt32* pBuffer, xdc_UInt32 bufferSizeInWords, xdc_Ptr pUploaderContext );
xdc__CODESECT(ti_uiactools_runtime_BufferPacketizer_setBufferToUpload__F, "ti_uiactools_runtime_BufferPacketizer_setBufferToUpload")
__extern xdc_Bool ti_uiactools_runtime_BufferPacketizer_setBufferToUpload__F( ti_uiactools_runtime_BufferPacketizer_Object* __inst, xdc_UInt32* pBuffer, xdc_UInt32 bufferSizeInWords, xdc_Ptr pUploaderContext );
__extern xdc_Bool ti_uiactools_runtime_BufferPacketizer_setBufferToUpload__R( ti_uiactools_runtime_BufferPacketizer_Handle __inst, xdc_UInt32* pBuffer, xdc_UInt32 bufferSizeInWords, xdc_Ptr pUploaderContext );

/* getUnsentSize__E */
#define ti_uiactools_runtime_BufferPacketizer_getUnsentSize ti_uiactools_runtime_BufferPacketizer_getUnsentSize__E
xdc__CODESECT(ti_uiactools_runtime_BufferPacketizer_getUnsentSize__E, "ti_uiactools_runtime_BufferPacketizer_getUnsentSize")
__extern xdc_SizeT ti_uiactools_runtime_BufferPacketizer_getUnsentSize__E( ti_uiactools_runtime_BufferPacketizer_Handle __inst );
xdc__CODESECT(ti_uiactools_runtime_BufferPacketizer_getUnsentSize__F, "ti_uiactools_runtime_BufferPacketizer_getUnsentSize")
__extern xdc_SizeT ti_uiactools_runtime_BufferPacketizer_getUnsentSize__F( ti_uiactools_runtime_BufferPacketizer_Object* __inst );
__extern xdc_SizeT ti_uiactools_runtime_BufferPacketizer_getUnsentSize__R( ti_uiactools_runtime_BufferPacketizer_Handle __inst );

/* transferData__E */
#define ti_uiactools_runtime_BufferPacketizer_transferData ti_uiactools_runtime_BufferPacketizer_transferData__E
xdc__CODESECT(ti_uiactools_runtime_BufferPacketizer_transferData__E, "ti_uiactools_runtime_BufferPacketizer_transferData")
__extern xdc_Bool ti_uiactools_runtime_BufferPacketizer_transferData__E( ti_uiactools_runtime_BufferPacketizer_Handle __inst, xdc_UInt32 maxNumPackets );
xdc__CODESECT(ti_uiactools_runtime_BufferPacketizer_transferData__F, "ti_uiactools_runtime_BufferPacketizer_transferData")
__extern xdc_Bool ti_uiactools_runtime_BufferPacketizer_transferData__F( ti_uiactools_runtime_BufferPacketizer_Object* __inst, xdc_UInt32 maxNumPackets );
__extern xdc_Bool ti_uiactools_runtime_BufferPacketizer_transferData__R( ti_uiactools_runtime_BufferPacketizer_Handle __inst, xdc_UInt32 maxNumPackets );

/* transferSTMConfig__E */
#define ti_uiactools_runtime_BufferPacketizer_transferSTMConfig ti_uiactools_runtime_BufferPacketizer_transferSTMConfig__E
xdc__CODESECT(ti_uiactools_runtime_BufferPacketizer_transferSTMConfig__E, "ti_uiactools_runtime_BufferPacketizer_transferSTMConfig")
__extern xdc_Void ti_uiactools_runtime_BufferPacketizer_transferSTMConfig__E( ti_uiactools_runtime_BufferPacketizer_Handle __inst );
xdc__CODESECT(ti_uiactools_runtime_BufferPacketizer_transferSTMConfig__F, "ti_uiactools_runtime_BufferPacketizer_transferSTMConfig")
__extern xdc_Void ti_uiactools_runtime_BufferPacketizer_transferSTMConfig__F( ti_uiactools_runtime_BufferPacketizer_Object* __inst );
__extern xdc_Void ti_uiactools_runtime_BufferPacketizer_transferSTMConfig__R( ti_uiactools_runtime_BufferPacketizer_Handle __inst );

/* init__E */
#define ti_uiactools_runtime_BufferPacketizer_init ti_uiactools_runtime_BufferPacketizer_init__E
xdc__CODESECT(ti_uiactools_runtime_BufferPacketizer_init__E, "ti_uiactools_runtime_BufferPacketizer_init")
__extern xdc_Bool ti_uiactools_runtime_BufferPacketizer_init__E( ti_uiactools_runtime_BufferPacketizer_Handle __inst );
xdc__CODESECT(ti_uiactools_runtime_BufferPacketizer_init__F, "ti_uiactools_runtime_BufferPacketizer_init")
__extern xdc_Bool ti_uiactools_runtime_BufferPacketizer_init__F( ti_uiactools_runtime_BufferPacketizer_Object* __inst );
__extern xdc_Bool ti_uiactools_runtime_BufferPacketizer_init__R( ti_uiactools_runtime_BufferPacketizer_Handle __inst );

/* enableDebugMessages__E */
#define ti_uiactools_runtime_BufferPacketizer_enableDebugMessages ti_uiactools_runtime_BufferPacketizer_enableDebugMessages__E
xdc__CODESECT(ti_uiactools_runtime_BufferPacketizer_enableDebugMessages__E, "ti_uiactools_runtime_BufferPacketizer_enableDebugMessages")
__extern xdc_Void ti_uiactools_runtime_BufferPacketizer_enableDebugMessages__E( ti_uiactools_runtime_BufferPacketizer_Handle __inst, xdc_Bool enable );
xdc__CODESECT(ti_uiactools_runtime_BufferPacketizer_enableDebugMessages__F, "ti_uiactools_runtime_BufferPacketizer_enableDebugMessages")
__extern xdc_Void ti_uiactools_runtime_BufferPacketizer_enableDebugMessages__F( ti_uiactools_runtime_BufferPacketizer_Object* __inst, xdc_Bool enable );
__extern xdc_Void ti_uiactools_runtime_BufferPacketizer_enableDebugMessages__R( ti_uiactools_runtime_BufferPacketizer_Handle __inst, xdc_Bool enable );

/* isFirstPacketFlagSet__E */
#define ti_uiactools_runtime_BufferPacketizer_isFirstPacketFlagSet ti_uiactools_runtime_BufferPacketizer_isFirstPacketFlagSet__E
xdc__CODESECT(ti_uiactools_runtime_BufferPacketizer_isFirstPacketFlagSet__E, "ti_uiactools_runtime_BufferPacketizer_isFirstPacketFlagSet")
__extern xdc_Bool ti_uiactools_runtime_BufferPacketizer_isFirstPacketFlagSet__E( ti_uiactools_runtime_BufferPacketizer_Handle __inst );
xdc__CODESECT(ti_uiactools_runtime_BufferPacketizer_isFirstPacketFlagSet__F, "ti_uiactools_runtime_BufferPacketizer_isFirstPacketFlagSet")
__extern xdc_Bool ti_uiactools_runtime_BufferPacketizer_isFirstPacketFlagSet__F( ti_uiactools_runtime_BufferPacketizer_Object* __inst );
__extern xdc_Bool ti_uiactools_runtime_BufferPacketizer_isFirstPacketFlagSet__R( ti_uiactools_runtime_BufferPacketizer_Handle __inst );


/*
 * ======== FUNCTION SELECTORS ========
 */

/* getTransferType_{FxnT,fxnP} */
typedef ti_uiactools_runtime_IUIAPacketTransfer_TransferType (*ti_uiactools_runtime_BufferPacketizer_getTransferType_FxnT)(void*);
static inline ti_uiactools_runtime_BufferPacketizer_getTransferType_FxnT ti_uiactools_runtime_BufferPacketizer_getTransferType_fxnP( void )
{
    return (ti_uiactools_runtime_BufferPacketizer_getTransferType_FxnT)ti_uiactools_runtime_BufferPacketizer_getTransferType; 
}

/* isEmpty_{FxnT,fxnP} */
typedef xdc_Bool (*ti_uiactools_runtime_BufferPacketizer_isEmpty_FxnT)(void*);
static inline ti_uiactools_runtime_BufferPacketizer_isEmpty_FxnT ti_uiactools_runtime_BufferPacketizer_isEmpty_fxnP( void )
{
    return (ti_uiactools_runtime_BufferPacketizer_isEmpty_FxnT)ti_uiactools_runtime_BufferPacketizer_isEmpty; 
}

/* poll_{FxnT,fxnP} */
typedef xdc_UInt32 (*ti_uiactools_runtime_BufferPacketizer_poll_FxnT)(void*);
static inline ti_uiactools_runtime_BufferPacketizer_poll_FxnT ti_uiactools_runtime_BufferPacketizer_poll_fxnP( void )
{
    return (ti_uiactools_runtime_BufferPacketizer_poll_FxnT)ti_uiactools_runtime_BufferPacketizer_poll; 
}

/* readyToSend_{FxnT,fxnP} */
typedef xdc_Bool (*ti_uiactools_runtime_BufferPacketizer_readyToSend_FxnT)(void*);
static inline ti_uiactools_runtime_BufferPacketizer_readyToSend_FxnT ti_uiactools_runtime_BufferPacketizer_readyToSend_fxnP( void )
{
    return (ti_uiactools_runtime_BufferPacketizer_readyToSend_FxnT)ti_uiactools_runtime_BufferPacketizer_readyToSend; 
}

/* sendPacket_{FxnT,fxnP} */
typedef xdc_Void (*ti_uiactools_runtime_BufferPacketizer_sendPacket_FxnT)(void*);
static inline ti_uiactools_runtime_BufferPacketizer_sendPacket_FxnT ti_uiactools_runtime_BufferPacketizer_sendPacket_fxnP( void )
{
    return (ti_uiactools_runtime_BufferPacketizer_sendPacket_FxnT)ti_uiactools_runtime_BufferPacketizer_sendPacket; 
}

/* prime_{FxnT,fxnP} */
typedef xdc_Bool (*ti_uiactools_runtime_BufferPacketizer_prime_FxnT)(void*, xdc_Ptr);
static inline ti_uiactools_runtime_BufferPacketizer_prime_FxnT ti_uiactools_runtime_BufferPacketizer_prime_fxnP( void )
{
    return (ti_uiactools_runtime_BufferPacketizer_prime_FxnT)ti_uiactools_runtime_BufferPacketizer_prime; 
}

/* enable_{FxnT,fxnP} */
typedef xdc_Bool (*ti_uiactools_runtime_BufferPacketizer_enable_FxnT)(void*);
static inline ti_uiactools_runtime_BufferPacketizer_enable_FxnT ti_uiactools_runtime_BufferPacketizer_enable_fxnP( void )
{
    return (ti_uiactools_runtime_BufferPacketizer_enable_FxnT)ti_uiactools_runtime_BufferPacketizer_enable; 
}

/* disable_{FxnT,fxnP} */
typedef xdc_Bool (*ti_uiactools_runtime_BufferPacketizer_disable_FxnT)(void*);
static inline ti_uiactools_runtime_BufferPacketizer_disable_FxnT ti_uiactools_runtime_BufferPacketizer_disable_fxnP( void )
{
    return (ti_uiactools_runtime_BufferPacketizer_disable_FxnT)ti_uiactools_runtime_BufferPacketizer_disable; 
}

/* setBufferToUpload_{FxnT,fxnP} */
typedef xdc_Bool (*ti_uiactools_runtime_BufferPacketizer_setBufferToUpload_FxnT)(void*, xdc_UInt32*, xdc_UInt32, xdc_Ptr);
static inline ti_uiactools_runtime_BufferPacketizer_setBufferToUpload_FxnT ti_uiactools_runtime_BufferPacketizer_setBufferToUpload_fxnP( void )
{
    return (ti_uiactools_runtime_BufferPacketizer_setBufferToUpload_FxnT)ti_uiactools_runtime_BufferPacketizer_setBufferToUpload; 
}

/* getUnsentSize_{FxnT,fxnP} */
typedef xdc_SizeT (*ti_uiactools_runtime_BufferPacketizer_getUnsentSize_FxnT)(void*);
static inline ti_uiactools_runtime_BufferPacketizer_getUnsentSize_FxnT ti_uiactools_runtime_BufferPacketizer_getUnsentSize_fxnP( void )
{
    return (ti_uiactools_runtime_BufferPacketizer_getUnsentSize_FxnT)ti_uiactools_runtime_BufferPacketizer_getUnsentSize; 
}

/* transferData_{FxnT,fxnP} */
typedef xdc_Bool (*ti_uiactools_runtime_BufferPacketizer_transferData_FxnT)(void*, xdc_UInt32);
static inline ti_uiactools_runtime_BufferPacketizer_transferData_FxnT ti_uiactools_runtime_BufferPacketizer_transferData_fxnP( void )
{
    return (ti_uiactools_runtime_BufferPacketizer_transferData_FxnT)ti_uiactools_runtime_BufferPacketizer_transferData; 
}

/* transferSTMConfig_{FxnT,fxnP} */
typedef xdc_Void (*ti_uiactools_runtime_BufferPacketizer_transferSTMConfig_FxnT)(void*);
static inline ti_uiactools_runtime_BufferPacketizer_transferSTMConfig_FxnT ti_uiactools_runtime_BufferPacketizer_transferSTMConfig_fxnP( void )
{
    return (ti_uiactools_runtime_BufferPacketizer_transferSTMConfig_FxnT)ti_uiactools_runtime_BufferPacketizer_transferSTMConfig; 
}

/* init_{FxnT,fxnP} */
typedef xdc_Bool (*ti_uiactools_runtime_BufferPacketizer_init_FxnT)(void*);
static inline ti_uiactools_runtime_BufferPacketizer_init_FxnT ti_uiactools_runtime_BufferPacketizer_init_fxnP( void )
{
    return (ti_uiactools_runtime_BufferPacketizer_init_FxnT)ti_uiactools_runtime_BufferPacketizer_init; 
}

/* enableDebugMessages_{FxnT,fxnP} */
typedef xdc_Void (*ti_uiactools_runtime_BufferPacketizer_enableDebugMessages_FxnT)(void*, xdc_Bool);
static inline ti_uiactools_runtime_BufferPacketizer_enableDebugMessages_FxnT ti_uiactools_runtime_BufferPacketizer_enableDebugMessages_fxnP( void )
{
    return (ti_uiactools_runtime_BufferPacketizer_enableDebugMessages_FxnT)ti_uiactools_runtime_BufferPacketizer_enableDebugMessages; 
}

/* isFirstPacketFlagSet_{FxnT,fxnP} */
typedef xdc_Bool (*ti_uiactools_runtime_BufferPacketizer_isFirstPacketFlagSet_FxnT)(void*);
static inline ti_uiactools_runtime_BufferPacketizer_isFirstPacketFlagSet_FxnT ti_uiactools_runtime_BufferPacketizer_isFirstPacketFlagSet_fxnP( void )
{
    return (ti_uiactools_runtime_BufferPacketizer_isFirstPacketFlagSet_FxnT)ti_uiactools_runtime_BufferPacketizer_isFirstPacketFlagSet; 
}


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

/* Module_upCast */
static inline ti_uiactools_runtime_IUIAPacketTransfer_Module ti_uiactools_runtime_BufferPacketizer_Module_upCast( void )
{
    return (ti_uiactools_runtime_IUIAPacketTransfer_Module)&ti_uiactools_runtime_BufferPacketizer_Module__FXNS__C;
}

/* Module_to_ti_uiactools_runtime_IUIAPacketTransfer */
#define ti_uiactools_runtime_BufferPacketizer_Module_to_ti_uiactools_runtime_IUIAPacketTransfer ti_uiactools_runtime_BufferPacketizer_Module_upCast

/* Handle_upCast */
static inline ti_uiactools_runtime_IUIAPacketTransfer_Handle ti_uiactools_runtime_BufferPacketizer_Handle_upCast( ti_uiactools_runtime_BufferPacketizer_Handle i )
{
    return (ti_uiactools_runtime_IUIAPacketTransfer_Handle)i;
}

/* Handle_to_ti_uiactools_runtime_IUIAPacketTransfer */
#define ti_uiactools_runtime_BufferPacketizer_Handle_to_ti_uiactools_runtime_IUIAPacketTransfer ti_uiactools_runtime_BufferPacketizer_Handle_upCast

/* Handle_downCast */
static inline ti_uiactools_runtime_BufferPacketizer_Handle ti_uiactools_runtime_BufferPacketizer_Handle_downCast( ti_uiactools_runtime_IUIAPacketTransfer_Handle i )
{
    ti_uiactools_runtime_IUIAPacketTransfer_Handle i2 = (ti_uiactools_runtime_IUIAPacketTransfer_Handle)i;
    return (void*)i2->__fxns == (void*)&ti_uiactools_runtime_BufferPacketizer_Module__FXNS__C ? (ti_uiactools_runtime_BufferPacketizer_Handle)i : 0;
}

/* Handle_from_ti_uiactools_runtime_IUIAPacketTransfer */
#define ti_uiactools_runtime_BufferPacketizer_Handle_from_ti_uiactools_runtime_IUIAPacketTransfer ti_uiactools_runtime_BufferPacketizer_Handle_downCast

/* Module_upCast2 */
static inline ti_uia_events_IUIAMetaProvider_Module ti_uiactools_runtime_BufferPacketizer_Module_upCast2( void )
{
    return (ti_uia_events_IUIAMetaProvider_Module)&ti_uiactools_runtime_BufferPacketizer_Module__FXNS__C;
}

/* Module_to_ti_uia_events_IUIAMetaProvider */
#define ti_uiactools_runtime_BufferPacketizer_Module_to_ti_uia_events_IUIAMetaProvider ti_uiactools_runtime_BufferPacketizer_Module_upCast2


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

/* Module_startupDone */
#define ti_uiactools_runtime_BufferPacketizer_Module_startupDone() ti_uiactools_runtime_BufferPacketizer_Module__startupDone__S()

/* Object_heap */
#define ti_uiactools_runtime_BufferPacketizer_Object_heap() ti_uiactools_runtime_BufferPacketizer_Object__heap__C

/* Module_heap */
#define ti_uiactools_runtime_BufferPacketizer_Module_heap() ti_uiactools_runtime_BufferPacketizer_Object__heap__C

/* Module_id */
static inline CT__ti_uiactools_runtime_BufferPacketizer_Module__id ti_uiactools_runtime_BufferPacketizer_Module_id( void ) 
{
    return ti_uiactools_runtime_BufferPacketizer_Module__id__C;
}

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

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

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

/* Params_init */
static inline void ti_uiactools_runtime_BufferPacketizer_Params_init( ti_uiactools_runtime_BufferPacketizer_Params* prms ) 
{
    if (prms) {
        ti_uiactools_runtime_BufferPacketizer_Params__init__S(prms, 0, sizeof(ti_uiactools_runtime_BufferPacketizer_Params), sizeof(xdc_runtime_IInstance_Params));
    }
}

/* Params_copy */
static inline void ti_uiactools_runtime_BufferPacketizer_Params_copy( ti_uiactools_runtime_BufferPacketizer_Params* dst, const ti_uiactools_runtime_BufferPacketizer_Params* src ) 
{
    if (dst) {
        ti_uiactools_runtime_BufferPacketizer_Params__init__S(dst, (xdc_Ptr)src, sizeof(ti_uiactools_runtime_BufferPacketizer_Params), sizeof(xdc_runtime_IInstance_Params));
    }
}

/* Object_count */
#define ti_uiactools_runtime_BufferPacketizer_Object_count() ti_uiactools_runtime_BufferPacketizer_Object__count__C

/* Object_sizeof */
#define ti_uiactools_runtime_BufferPacketizer_Object_sizeof() ti_uiactools_runtime_BufferPacketizer_Object__sizeof__C

/* Object_get */
static inline ti_uiactools_runtime_BufferPacketizer_Handle ti_uiactools_runtime_BufferPacketizer_Object_get( ti_uiactools_runtime_BufferPacketizer_Instance_State* oarr, int i ) 
{
    return (ti_uiactools_runtime_BufferPacketizer_Handle)ti_uiactools_runtime_BufferPacketizer_Object__get__S(oarr, i);
}

/* Object_first */
static inline ti_uiactools_runtime_BufferPacketizer_Handle ti_uiactools_runtime_BufferPacketizer_Object_first( void )
{
    return (ti_uiactools_runtime_BufferPacketizer_Handle)ti_uiactools_runtime_BufferPacketizer_Object__first__S();
}

/* Object_next */
static inline ti_uiactools_runtime_BufferPacketizer_Handle ti_uiactools_runtime_BufferPacketizer_Object_next( ti_uiactools_runtime_BufferPacketizer_Object* obj )
{
    return (ti_uiactools_runtime_BufferPacketizer_Handle)ti_uiactools_runtime_BufferPacketizer_Object__next__S(obj);
}

/* Handle_label */
static inline xdc_runtime_Types_Label* ti_uiactools_runtime_BufferPacketizer_Handle_label( ti_uiactools_runtime_BufferPacketizer_Handle inst, xdc_runtime_Types_Label* lab )
{
    return ti_uiactools_runtime_BufferPacketizer_Handle__label__S(inst, lab);
}

/* Handle_name */
static inline String ti_uiactools_runtime_BufferPacketizer_Handle_name( ti_uiactools_runtime_BufferPacketizer_Handle inst )
{
    xdc_runtime_Types_Label lab;
    return ti_uiactools_runtime_BufferPacketizer_Handle__label__S(inst, &lab)->iname;
}

/* create */
static inline ti_uiactools_runtime_BufferPacketizer_Handle ti_uiactools_runtime_BufferPacketizer_create( const ti_uiactools_runtime_BufferPacketizer_Params* __prms, xdc_runtime_Error_Block* __eb )
{
    return (ti_uiactools_runtime_BufferPacketizer_Handle)ti_uiactools_runtime_BufferPacketizer_Object__create__S(0, 0, 0, (const xdc_UChar*)__prms, sizeof(ti_uiactools_runtime_BufferPacketizer_Params), __eb);
}

/* construct */
static inline void ti_uiactools_runtime_BufferPacketizer_construct( ti_uiactools_runtime_BufferPacketizer_Struct* __obj, const ti_uiactools_runtime_BufferPacketizer_Params* __prms, xdc_runtime_Error_Block* __eb )
{
    ti_uiactools_runtime_BufferPacketizer_Object__create__S(__obj, sizeof (ti_uiactools_runtime_BufferPacketizer_Struct), 0, (const xdc_UChar*)__prms, sizeof(ti_uiactools_runtime_BufferPacketizer_Params), __eb);
}

/* delete */
static inline void ti_uiactools_runtime_BufferPacketizer_delete( ti_uiactools_runtime_BufferPacketizer_Handle* instp )
{
    ti_uiactools_runtime_BufferPacketizer_Object__delete__S(instp);
}

/* destruct */
static inline void ti_uiactools_runtime_BufferPacketizer_destruct( ti_uiactools_runtime_BufferPacketizer_Struct* obj )
{
    ti_uiactools_runtime_BufferPacketizer_Object__destruct__S(obj);
}

/* handle */
static inline ti_uiactools_runtime_BufferPacketizer_Handle ti_uiactools_runtime_BufferPacketizer_handle( ti_uiactools_runtime_BufferPacketizer_Struct* str )
{
    return (ti_uiactools_runtime_BufferPacketizer_Handle)str;
}

/* struct */
static inline ti_uiactools_runtime_BufferPacketizer_Struct* ti_uiactools_runtime_BufferPacketizer_struct( ti_uiactools_runtime_BufferPacketizer_Handle inst )
{
    return (ti_uiactools_runtime_BufferPacketizer_Struct*)inst;
}


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

#include <ti/uiactools/runtime/BufferPacketizer__epilogue.h>

#ifdef ti_uiactools_runtime_BufferPacketizer__top__
#undef __nested__
#endif

#endif /* ti_uiactools_runtime_BufferPacketizer__include */


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

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

#ifndef ti_uiactools_runtime_BufferPacketizer__include_state
#define ti_uiactools_runtime_BufferPacketizer__include_state

/* Object */
struct ti_uiactools_runtime_BufferPacketizer_Object {
    const ti_uiactools_runtime_BufferPacketizer_Fxns__* __fxns;
    xdc_Bool enabled;
    xdc_UInt32* pPacketBuffer;
    xdc_UInt32* wrPacket;
    xdc_UInt32* rdUploadBuffer;
    xdc_UInt32* pPacketEndPlusOne;
    xdc_Bool isInitialized;
    xdc_Bits16 serial;
    xdc_UInt32 snapshotNumber;
    xdc_UInt32 transferNumber;
    xdc_Bits16 endpointNumber;
    xdc_Bool isFirstPacket;
    xdc_Bits16 tracePktDownCount;
    xdc_Bits16 tracePktUpCount;
    ti_uiactools_runtime_UIAPacket_HdrType traceHdrType;
    ti_uiactools_runtime_IUIAPacketTransfer_TransferType transferType;
    xdc_UInt32 packetSizeInMAUs;
    xdc_UInt8 etbCoreId;
    ti_uiactools_runtime_BufferPacketizer_BufferType bufType;
    xdc_UInt32* pUploadBuffer;
    xdc_SizeT uploadBufferSizeInWords;
    xdc_Ptr pUploaderContext;
    xdc_Bool primeStatus;
    ti_uiactools_runtime_BufferPacketizer_ExchangeFxnType exchangeFxn;
    ti_uiactools_runtime_BufferPacketizer_PrimeFxnType primeFxn;
    xdc_Bool printDebugMessages;
};

#endif /* ti_uiactools_runtime_BufferPacketizer__include_state */

#endif


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

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

#ifndef ti_uiactools_runtime_BufferPacketizer__localnames__done
#define ti_uiactools_runtime_BufferPacketizer__localnames__done

/* module prefix */
#define BufferPacketizer_Instance ti_uiactools_runtime_BufferPacketizer_Instance
#define BufferPacketizer_Handle ti_uiactools_runtime_BufferPacketizer_Handle
#define BufferPacketizer_Module ti_uiactools_runtime_BufferPacketizer_Module
#define BufferPacketizer_Object ti_uiactools_runtime_BufferPacketizer_Object
#define BufferPacketizer_Struct ti_uiactools_runtime_BufferPacketizer_Struct
#define BufferPacketizer_TransferType ti_uiactools_runtime_BufferPacketizer_TransferType
#define BufferPacketizer_Priority ti_uiactools_runtime_BufferPacketizer_Priority
#define BufferPacketizer_BufferType ti_uiactools_runtime_BufferPacketizer_BufferType
#define BufferPacketizer_TransportType ti_uiactools_runtime_BufferPacketizer_TransportType
#define BufferPacketizer_ExchangeFxnType ti_uiactools_runtime_BufferPacketizer_ExchangeFxnType
#define BufferPacketizer_PrimeFxnType ti_uiactools_runtime_BufferPacketizer_PrimeFxnType
#define BufferPacketizer_Instance_State ti_uiactools_runtime_BufferPacketizer_Instance_State
#define BufferPacketizer_TransferType_RELIABLE ti_uiactools_runtime_BufferPacketizer_TransferType_RELIABLE
#define BufferPacketizer_TransferType_LOSSY ti_uiactools_runtime_BufferPacketizer_TransferType_LOSSY
#define BufferPacketizer_Priority_LOW ti_uiactools_runtime_BufferPacketizer_Priority_LOW
#define BufferPacketizer_Priority_STANDARD ti_uiactools_runtime_BufferPacketizer_Priority_STANDARD
#define BufferPacketizer_Priority_HIGH ti_uiactools_runtime_BufferPacketizer_Priority_HIGH
#define BufferPacketizer_Priority_SYNC ti_uiactools_runtime_BufferPacketizer_Priority_SYNC
#define BufferPacketizer_BufferType_MEMORY ti_uiactools_runtime_BufferPacketizer_BufferType_MEMORY
#define BufferPacketizer_BufferType_CPUTRACE_ETB ti_uiactools_runtime_BufferPacketizer_BufferType_CPUTRACE_ETB
#define BufferPacketizer_BufferType_STM_ETB ti_uiactools_runtime_BufferPacketizer_BufferType_STM_ETB
#define BufferPacketizer_TransportType_UART ti_uiactools_runtime_BufferPacketizer_TransportType_UART
#define BufferPacketizer_TransportType_USB ti_uiactools_runtime_BufferPacketizer_TransportType_USB
#define BufferPacketizer_TransportType_UDP ti_uiactools_runtime_BufferPacketizer_TransportType_UDP
#define BufferPacketizer_TransportType_TCP ti_uiactools_runtime_BufferPacketizer_TransportType_TCP
#define BufferPacketizer_TransportType_CUSTOM ti_uiactools_runtime_BufferPacketizer_TransportType_CUSTOM
#define BufferPacketizer_transportType ti_uiactools_runtime_BufferPacketizer_transportType
#define BufferPacketizer_customTransportType ti_uiactools_runtime_BufferPacketizer_customTransportType
#define BufferPacketizer_Params ti_uiactools_runtime_BufferPacketizer_Params
#define BufferPacketizer_getTransferType ti_uiactools_runtime_BufferPacketizer_getTransferType
#define BufferPacketizer_getTransferType_fxnP ti_uiactools_runtime_BufferPacketizer_getTransferType_fxnP
#define BufferPacketizer_getTransferType_FxnT ti_uiactools_runtime_BufferPacketizer_getTransferType_FxnT
#define BufferPacketizer_isEmpty ti_uiactools_runtime_BufferPacketizer_isEmpty
#define BufferPacketizer_isEmpty_fxnP ti_uiactools_runtime_BufferPacketizer_isEmpty_fxnP
#define BufferPacketizer_isEmpty_FxnT ti_uiactools_runtime_BufferPacketizer_isEmpty_FxnT
#define BufferPacketizer_poll ti_uiactools_runtime_BufferPacketizer_poll
#define BufferPacketizer_poll_fxnP ti_uiactools_runtime_BufferPacketizer_poll_fxnP
#define BufferPacketizer_poll_FxnT ti_uiactools_runtime_BufferPacketizer_poll_FxnT
#define BufferPacketizer_readyToSend ti_uiactools_runtime_BufferPacketizer_readyToSend
#define BufferPacketizer_readyToSend_fxnP ti_uiactools_runtime_BufferPacketizer_readyToSend_fxnP
#define BufferPacketizer_readyToSend_FxnT ti_uiactools_runtime_BufferPacketizer_readyToSend_FxnT
#define BufferPacketizer_initBuffer ti_uiactools_runtime_BufferPacketizer_initBuffer
#define BufferPacketizer_sendPacket ti_uiactools_runtime_BufferPacketizer_sendPacket
#define BufferPacketizer_sendPacket_fxnP ti_uiactools_runtime_BufferPacketizer_sendPacket_fxnP
#define BufferPacketizer_sendPacket_FxnT ti_uiactools_runtime_BufferPacketizer_sendPacket_FxnT
#define BufferPacketizer_prime ti_uiactools_runtime_BufferPacketizer_prime
#define BufferPacketizer_prime_fxnP ti_uiactools_runtime_BufferPacketizer_prime_fxnP
#define BufferPacketizer_prime_FxnT ti_uiactools_runtime_BufferPacketizer_prime_FxnT
#define BufferPacketizer_enable ti_uiactools_runtime_BufferPacketizer_enable
#define BufferPacketizer_enable_fxnP ti_uiactools_runtime_BufferPacketizer_enable_fxnP
#define BufferPacketizer_enable_FxnT ti_uiactools_runtime_BufferPacketizer_enable_FxnT
#define BufferPacketizer_disable ti_uiactools_runtime_BufferPacketizer_disable
#define BufferPacketizer_disable_fxnP ti_uiactools_runtime_BufferPacketizer_disable_fxnP
#define BufferPacketizer_disable_FxnT ti_uiactools_runtime_BufferPacketizer_disable_FxnT
#define BufferPacketizer_setBufferToUpload ti_uiactools_runtime_BufferPacketizer_setBufferToUpload
#define BufferPacketizer_setBufferToUpload_fxnP ti_uiactools_runtime_BufferPacketizer_setBufferToUpload_fxnP
#define BufferPacketizer_setBufferToUpload_FxnT ti_uiactools_runtime_BufferPacketizer_setBufferToUpload_FxnT
#define BufferPacketizer_getUnsentSize ti_uiactools_runtime_BufferPacketizer_getUnsentSize
#define BufferPacketizer_getUnsentSize_fxnP ti_uiactools_runtime_BufferPacketizer_getUnsentSize_fxnP
#define BufferPacketizer_getUnsentSize_FxnT ti_uiactools_runtime_BufferPacketizer_getUnsentSize_FxnT
#define BufferPacketizer_transferData ti_uiactools_runtime_BufferPacketizer_transferData
#define BufferPacketizer_transferData_fxnP ti_uiactools_runtime_BufferPacketizer_transferData_fxnP
#define BufferPacketizer_transferData_FxnT ti_uiactools_runtime_BufferPacketizer_transferData_FxnT
#define BufferPacketizer_transferSTMConfig ti_uiactools_runtime_BufferPacketizer_transferSTMConfig
#define BufferPacketizer_transferSTMConfig_fxnP ti_uiactools_runtime_BufferPacketizer_transferSTMConfig_fxnP
#define BufferPacketizer_transferSTMConfig_FxnT ti_uiactools_runtime_BufferPacketizer_transferSTMConfig_FxnT
#define BufferPacketizer_init ti_uiactools_runtime_BufferPacketizer_init
#define BufferPacketizer_init_fxnP ti_uiactools_runtime_BufferPacketizer_init_fxnP
#define BufferPacketizer_init_FxnT ti_uiactools_runtime_BufferPacketizer_init_FxnT
#define BufferPacketizer_enableDebugMessages ti_uiactools_runtime_BufferPacketizer_enableDebugMessages
#define BufferPacketizer_enableDebugMessages_fxnP ti_uiactools_runtime_BufferPacketizer_enableDebugMessages_fxnP
#define BufferPacketizer_enableDebugMessages_FxnT ti_uiactools_runtime_BufferPacketizer_enableDebugMessages_FxnT
#define BufferPacketizer_isFirstPacketFlagSet ti_uiactools_runtime_BufferPacketizer_isFirstPacketFlagSet
#define BufferPacketizer_isFirstPacketFlagSet_fxnP ti_uiactools_runtime_BufferPacketizer_isFirstPacketFlagSet_fxnP
#define BufferPacketizer_isFirstPacketFlagSet_FxnT ti_uiactools_runtime_BufferPacketizer_isFirstPacketFlagSet_FxnT
#define BufferPacketizer_Module_name ti_uiactools_runtime_BufferPacketizer_Module_name
#define BufferPacketizer_Module_id ti_uiactools_runtime_BufferPacketizer_Module_id
#define BufferPacketizer_Module_startup ti_uiactools_runtime_BufferPacketizer_Module_startup
#define BufferPacketizer_Module_startupDone ti_uiactools_runtime_BufferPacketizer_Module_startupDone
#define BufferPacketizer_Module_hasMask ti_uiactools_runtime_BufferPacketizer_Module_hasMask
#define BufferPacketizer_Module_getMask ti_uiactools_runtime_BufferPacketizer_Module_getMask
#define BufferPacketizer_Module_setMask ti_uiactools_runtime_BufferPacketizer_Module_setMask
#define BufferPacketizer_Object_heap ti_uiactools_runtime_BufferPacketizer_Object_heap
#define BufferPacketizer_Module_heap ti_uiactools_runtime_BufferPacketizer_Module_heap
#define BufferPacketizer_construct ti_uiactools_runtime_BufferPacketizer_construct
#define BufferPacketizer_create ti_uiactools_runtime_BufferPacketizer_create
#define BufferPacketizer_handle ti_uiactools_runtime_BufferPacketizer_handle
#define BufferPacketizer_struct ti_uiactools_runtime_BufferPacketizer_struct
#define BufferPacketizer_Handle_label ti_uiactools_runtime_BufferPacketizer_Handle_label
#define BufferPacketizer_Handle_name ti_uiactools_runtime_BufferPacketizer_Handle_name
#define BufferPacketizer_Instance_init ti_uiactools_runtime_BufferPacketizer_Instance_init
#define BufferPacketizer_Object_count ti_uiactools_runtime_BufferPacketizer_Object_count
#define BufferPacketizer_Object_get ti_uiactools_runtime_BufferPacketizer_Object_get
#define BufferPacketizer_Object_first ti_uiactools_runtime_BufferPacketizer_Object_first
#define BufferPacketizer_Object_next ti_uiactools_runtime_BufferPacketizer_Object_next
#define BufferPacketizer_Object_sizeof ti_uiactools_runtime_BufferPacketizer_Object_sizeof
#define BufferPacketizer_Params_copy ti_uiactools_runtime_BufferPacketizer_Params_copy
#define BufferPacketizer_Params_init ti_uiactools_runtime_BufferPacketizer_Params_init
#define BufferPacketizer_Instance_finalize ti_uiactools_runtime_BufferPacketizer_Instance_finalize
#define BufferPacketizer_delete ti_uiactools_runtime_BufferPacketizer_delete
#define BufferPacketizer_destruct ti_uiactools_runtime_BufferPacketizer_destruct
#define BufferPacketizer_Module_upCast ti_uiactools_runtime_BufferPacketizer_Module_upCast
#define BufferPacketizer_Module_to_ti_uiactools_runtime_IUIAPacketTransfer ti_uiactools_runtime_BufferPacketizer_Module_to_ti_uiactools_runtime_IUIAPacketTransfer
#define BufferPacketizer_Handle_upCast ti_uiactools_runtime_BufferPacketizer_Handle_upCast
#define BufferPacketizer_Handle_to_ti_uiactools_runtime_IUIAPacketTransfer ti_uiactools_runtime_BufferPacketizer_Handle_to_ti_uiactools_runtime_IUIAPacketTransfer
#define BufferPacketizer_Handle_downCast ti_uiactools_runtime_BufferPacketizer_Handle_downCast
#define BufferPacketizer_Handle_from_ti_uiactools_runtime_IUIAPacketTransfer ti_uiactools_runtime_BufferPacketizer_Handle_from_ti_uiactools_runtime_IUIAPacketTransfer
#define BufferPacketizer_Module_upCast2 ti_uiactools_runtime_BufferPacketizer_Module_upCast2
#define BufferPacketizer_Module_to_ti_uia_events_IUIAMetaProvider ti_uiactools_runtime_BufferPacketizer_Module_to_ti_uia_events_IUIAMetaProvider

#endif /* ti_uiactools_runtime_BufferPacketizer__localnames__done */
#endif
