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

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


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

#ifndef xdc_runtime_Diags__include
#define xdc_runtime_Diags__include

#ifndef __nested__
#define __nested__
#define xdc_runtime_Diags__top__
#endif

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

#define xdc_runtime_Diags___VERS 200


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

#include <xdc/std.h>

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

#include <xdc/runtime/IModule.h>
#include <xdc/runtime/Types.h>


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

/* Mask */
typedef xdc_runtime_Types_DiagsMask xdc_runtime_Diags_Mask;

/* ENTRY */
#define xdc_runtime_Diags_ENTRY (0x0001U)

/* EXIT */
#define xdc_runtime_Diags_EXIT (0x0002U)

/* LIFECYCLE */
#define xdc_runtime_Diags_LIFECYCLE (0x0004U)

/* INTERNAL */
#define xdc_runtime_Diags_INTERNAL (0x0008U)

/* ASSERT */
#define xdc_runtime_Diags_ASSERT (0x0010U)

/* STATUS */
#define xdc_runtime_Diags_STATUS (0x0080U)

/* LEVEL */
#define xdc_runtime_Diags_LEVEL (0x0060U)

/* USER1 */
#define xdc_runtime_Diags_USER1 (0x0100U)

/* USER2 */
#define xdc_runtime_Diags_USER2 (0x0200U)

/* USER3 */
#define xdc_runtime_Diags_USER3 (0x0400U)

/* USER4 */
#define xdc_runtime_Diags_USER4 (0x0800U)

/* USER5 */
#define xdc_runtime_Diags_USER5 (0x1000U)

/* USER6 */
#define xdc_runtime_Diags_USER6 (0x2000U)

/* USER7 */
#define xdc_runtime_Diags_USER7 (0x4000U)

/* INFO */
#define xdc_runtime_Diags_INFO (0x4000U)

/* USER8 */
#define xdc_runtime_Diags_USER8 (0x8000U)

/* ANALYSIS */
#define xdc_runtime_Diags_ANALYSIS (0x8000U)

/* ALL */
#define xdc_runtime_Diags_ALL (0xFF9FU)

/* ALL_LOGGING */
#define xdc_runtime_Diags_ALL_LOGGING (0xFF9FU & (~0x0010U) & (~0x0008U))

/* EventLevel */
enum xdc_runtime_Diags_EventLevel {
    xdc_runtime_Diags_LEVEL1 = 0x0,
    xdc_runtime_Diags_LEVEL2 = 0x20,
    xdc_runtime_Diags_LEVEL3 = 0x40,
    xdc_runtime_Diags_LEVEL4 = 0x60
};
typedef enum xdc_runtime_Diags_EventLevel xdc_runtime_Diags_EventLevel;

/* EMERGENCY */
#define xdc_runtime_Diags_EMERGENCY (xdc_runtime_Diags_LEVEL1)

/* CRITICAL */
#define xdc_runtime_Diags_CRITICAL (xdc_runtime_Diags_LEVEL2)

/* ERROR */
#define xdc_runtime_Diags_ERROR (xdc_runtime_Diags_LEVEL3)

/* WARNING */
#define xdc_runtime_Diags_WARNING (xdc_runtime_Diags_LEVEL4)


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

/* DictElem */
struct xdc_runtime_Diags_DictElem {
    xdc_runtime_Types_ModuleId modId;
    xdc_runtime_Diags_Mask *maskAddr;
};


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

/* Module__diagsEnabled */
typedef xdc_Bits32 CT__xdc_runtime_Diags_Module__diagsEnabled;
__extern __FAR__ const CT__xdc_runtime_Diags_Module__diagsEnabled xdc_runtime_Diags_Module__diagsEnabled__C;
#ifdef xdc_runtime_Diags_Module__diagsEnabled__CR
#define xdc_runtime_Diags_Module__diagsEnabled__C (*((CT__xdc_runtime_Diags_Module__diagsEnabled*)(xdcRomConstPtr + xdc_runtime_Diags_Module__diagsEnabled__C_offset)))
#else
#define xdc_runtime_Diags_Module__diagsEnabled (xdc_runtime_Diags_Module__diagsEnabled__C)
#endif

/* Module__diagsIncluded */
typedef xdc_Bits32 CT__xdc_runtime_Diags_Module__diagsIncluded;
__extern __FAR__ const CT__xdc_runtime_Diags_Module__diagsIncluded xdc_runtime_Diags_Module__diagsIncluded__C;
#ifdef xdc_runtime_Diags_Module__diagsIncluded__CR
#define xdc_runtime_Diags_Module__diagsIncluded__C (*((CT__xdc_runtime_Diags_Module__diagsIncluded*)(xdcRomConstPtr + xdc_runtime_Diags_Module__diagsIncluded__C_offset)))
#else
#define xdc_runtime_Diags_Module__diagsIncluded (xdc_runtime_Diags_Module__diagsIncluded__C)
#endif

/* Module__diagsMask */
typedef xdc_Bits16 *CT__xdc_runtime_Diags_Module__diagsMask;
__extern __FAR__ const CT__xdc_runtime_Diags_Module__diagsMask xdc_runtime_Diags_Module__diagsMask__C;
#ifdef xdc_runtime_Diags_Module__diagsMask__CR
#define xdc_runtime_Diags_Module__diagsMask__C (*((CT__xdc_runtime_Diags_Module__diagsMask*)(xdcRomConstPtr + xdc_runtime_Diags_Module__diagsMask__C_offset)))
#else
#define xdc_runtime_Diags_Module__diagsMask (xdc_runtime_Diags_Module__diagsMask__C)
#endif

/* Module__gateObj */
typedef xdc_Ptr CT__xdc_runtime_Diags_Module__gateObj;
__extern __FAR__ const CT__xdc_runtime_Diags_Module__gateObj xdc_runtime_Diags_Module__gateObj__C;
#ifdef xdc_runtime_Diags_Module__gateObj__CR
#define xdc_runtime_Diags_Module__gateObj__C (*((CT__xdc_runtime_Diags_Module__gateObj*)(xdcRomConstPtr + xdc_runtime_Diags_Module__gateObj__C_offset)))
#else
#define xdc_runtime_Diags_Module__gateObj (xdc_runtime_Diags_Module__gateObj__C)
#endif

/* Module__gatePrms */
typedef xdc_Ptr CT__xdc_runtime_Diags_Module__gatePrms;
__extern __FAR__ const CT__xdc_runtime_Diags_Module__gatePrms xdc_runtime_Diags_Module__gatePrms__C;
#ifdef xdc_runtime_Diags_Module__gatePrms__CR
#define xdc_runtime_Diags_Module__gatePrms__C (*((CT__xdc_runtime_Diags_Module__gatePrms*)(xdcRomConstPtr + xdc_runtime_Diags_Module__gatePrms__C_offset)))
#else
#define xdc_runtime_Diags_Module__gatePrms (xdc_runtime_Diags_Module__gatePrms__C)
#endif

/* Module__id */
typedef xdc_runtime_Types_ModuleId CT__xdc_runtime_Diags_Module__id;
__extern __FAR__ const CT__xdc_runtime_Diags_Module__id xdc_runtime_Diags_Module__id__C;
#ifdef xdc_runtime_Diags_Module__id__CR
#define xdc_runtime_Diags_Module__id__C (*((CT__xdc_runtime_Diags_Module__id*)(xdcRomConstPtr + xdc_runtime_Diags_Module__id__C_offset)))
#else
#define xdc_runtime_Diags_Module__id (xdc_runtime_Diags_Module__id__C)
#endif

/* Module__loggerDefined */
typedef xdc_Bool CT__xdc_runtime_Diags_Module__loggerDefined;
__extern __FAR__ const CT__xdc_runtime_Diags_Module__loggerDefined xdc_runtime_Diags_Module__loggerDefined__C;
#ifdef xdc_runtime_Diags_Module__loggerDefined__CR
#define xdc_runtime_Diags_Module__loggerDefined__C (*((CT__xdc_runtime_Diags_Module__loggerDefined*)(xdcRomConstPtr + xdc_runtime_Diags_Module__loggerDefined__C_offset)))
#else
#define xdc_runtime_Diags_Module__loggerDefined (xdc_runtime_Diags_Module__loggerDefined__C)
#endif

/* Module__loggerObj */
typedef xdc_Ptr CT__xdc_runtime_Diags_Module__loggerObj;
__extern __FAR__ const CT__xdc_runtime_Diags_Module__loggerObj xdc_runtime_Diags_Module__loggerObj__C;
#ifdef xdc_runtime_Diags_Module__loggerObj__CR
#define xdc_runtime_Diags_Module__loggerObj__C (*((CT__xdc_runtime_Diags_Module__loggerObj*)(xdcRomConstPtr + xdc_runtime_Diags_Module__loggerObj__C_offset)))
#else
#define xdc_runtime_Diags_Module__loggerObj (xdc_runtime_Diags_Module__loggerObj__C)
#endif

/* Module__loggerFxn0 */
typedef xdc_runtime_Types_LoggerFxn0 CT__xdc_runtime_Diags_Module__loggerFxn0;
__extern __FAR__ const CT__xdc_runtime_Diags_Module__loggerFxn0 xdc_runtime_Diags_Module__loggerFxn0__C;
#ifdef xdc_runtime_Diags_Module__loggerFxn0__CR
#define xdc_runtime_Diags_Module__loggerFxn0__C (*((CT__xdc_runtime_Diags_Module__loggerFxn0*)(xdcRomConstPtr + xdc_runtime_Diags_Module__loggerFxn0__C_offset)))
#else
#define xdc_runtime_Diags_Module__loggerFxn0 (xdc_runtime_Diags_Module__loggerFxn0__C)
#endif

/* Module__loggerFxn1 */
typedef xdc_runtime_Types_LoggerFxn1 CT__xdc_runtime_Diags_Module__loggerFxn1;
__extern __FAR__ const CT__xdc_runtime_Diags_Module__loggerFxn1 xdc_runtime_Diags_Module__loggerFxn1__C;
#ifdef xdc_runtime_Diags_Module__loggerFxn1__CR
#define xdc_runtime_Diags_Module__loggerFxn1__C (*((CT__xdc_runtime_Diags_Module__loggerFxn1*)(xdcRomConstPtr + xdc_runtime_Diags_Module__loggerFxn1__C_offset)))
#else
#define xdc_runtime_Diags_Module__loggerFxn1 (xdc_runtime_Diags_Module__loggerFxn1__C)
#endif

/* Module__loggerFxn2 */
typedef xdc_runtime_Types_LoggerFxn2 CT__xdc_runtime_Diags_Module__loggerFxn2;
__extern __FAR__ const CT__xdc_runtime_Diags_Module__loggerFxn2 xdc_runtime_Diags_Module__loggerFxn2__C;
#ifdef xdc_runtime_Diags_Module__loggerFxn2__CR
#define xdc_runtime_Diags_Module__loggerFxn2__C (*((CT__xdc_runtime_Diags_Module__loggerFxn2*)(xdcRomConstPtr + xdc_runtime_Diags_Module__loggerFxn2__C_offset)))
#else
#define xdc_runtime_Diags_Module__loggerFxn2 (xdc_runtime_Diags_Module__loggerFxn2__C)
#endif

/* Module__loggerFxn4 */
typedef xdc_runtime_Types_LoggerFxn4 CT__xdc_runtime_Diags_Module__loggerFxn4;
__extern __FAR__ const CT__xdc_runtime_Diags_Module__loggerFxn4 xdc_runtime_Diags_Module__loggerFxn4__C;
#ifdef xdc_runtime_Diags_Module__loggerFxn4__CR
#define xdc_runtime_Diags_Module__loggerFxn4__C (*((CT__xdc_runtime_Diags_Module__loggerFxn4*)(xdcRomConstPtr + xdc_runtime_Diags_Module__loggerFxn4__C_offset)))
#else
#define xdc_runtime_Diags_Module__loggerFxn4 (xdc_runtime_Diags_Module__loggerFxn4__C)
#endif

/* Module__loggerFxn8 */
typedef xdc_runtime_Types_LoggerFxn8 CT__xdc_runtime_Diags_Module__loggerFxn8;
__extern __FAR__ const CT__xdc_runtime_Diags_Module__loggerFxn8 xdc_runtime_Diags_Module__loggerFxn8__C;
#ifdef xdc_runtime_Diags_Module__loggerFxn8__CR
#define xdc_runtime_Diags_Module__loggerFxn8__C (*((CT__xdc_runtime_Diags_Module__loggerFxn8*)(xdcRomConstPtr + xdc_runtime_Diags_Module__loggerFxn8__C_offset)))
#else
#define xdc_runtime_Diags_Module__loggerFxn8 (xdc_runtime_Diags_Module__loggerFxn8__C)
#endif

/* Object__count */
typedef xdc_Int CT__xdc_runtime_Diags_Object__count;
__extern __FAR__ const CT__xdc_runtime_Diags_Object__count xdc_runtime_Diags_Object__count__C;
#ifdef xdc_runtime_Diags_Object__count__CR
#define xdc_runtime_Diags_Object__count__C (*((CT__xdc_runtime_Diags_Object__count*)(xdcRomConstPtr + xdc_runtime_Diags_Object__count__C_offset)))
#else
#define xdc_runtime_Diags_Object__count (xdc_runtime_Diags_Object__count__C)
#endif

/* Object__heap */
typedef xdc_runtime_IHeap_Handle CT__xdc_runtime_Diags_Object__heap;
__extern __FAR__ const CT__xdc_runtime_Diags_Object__heap xdc_runtime_Diags_Object__heap__C;
#ifdef xdc_runtime_Diags_Object__heap__CR
#define xdc_runtime_Diags_Object__heap__C (*((CT__xdc_runtime_Diags_Object__heap*)(xdcRomConstPtr + xdc_runtime_Diags_Object__heap__C_offset)))
#else
#define xdc_runtime_Diags_Object__heap (xdc_runtime_Diags_Object__heap__C)
#endif

/* Object__sizeof */
typedef xdc_SizeT CT__xdc_runtime_Diags_Object__sizeof;
__extern __FAR__ const CT__xdc_runtime_Diags_Object__sizeof xdc_runtime_Diags_Object__sizeof__C;
#ifdef xdc_runtime_Diags_Object__sizeof__CR
#define xdc_runtime_Diags_Object__sizeof__C (*((CT__xdc_runtime_Diags_Object__sizeof*)(xdcRomConstPtr + xdc_runtime_Diags_Object__sizeof__C_offset)))
#else
#define xdc_runtime_Diags_Object__sizeof (xdc_runtime_Diags_Object__sizeof__C)
#endif

/* Object__table */
typedef xdc_Ptr CT__xdc_runtime_Diags_Object__table;
__extern __FAR__ const CT__xdc_runtime_Diags_Object__table xdc_runtime_Diags_Object__table__C;
#ifdef xdc_runtime_Diags_Object__table__CR
#define xdc_runtime_Diags_Object__table__C (*((CT__xdc_runtime_Diags_Object__table*)(xdcRomConstPtr + xdc_runtime_Diags_Object__table__C_offset)))
#else
#define xdc_runtime_Diags_Object__table (xdc_runtime_Diags_Object__table__C)
#endif

/* setMaskEnabled */
typedef xdc_Bool CT__xdc_runtime_Diags_setMaskEnabled;
__extern __FAR__ const CT__xdc_runtime_Diags_setMaskEnabled xdc_runtime_Diags_setMaskEnabled__C;
#ifdef xdc_runtime_Diags_setMaskEnabled__CR
#define xdc_runtime_Diags_setMaskEnabled (*((CT__xdc_runtime_Diags_setMaskEnabled*)(xdcRomConstPtr + xdc_runtime_Diags_setMaskEnabled__C_offset)))
#else
#ifdef xdc_runtime_Diags_setMaskEnabled__D
#define xdc_runtime_Diags_setMaskEnabled (xdc_runtime_Diags_setMaskEnabled__D)
#else
#define xdc_runtime_Diags_setMaskEnabled (xdc_runtime_Diags_setMaskEnabled__C)
#endif
#endif

/* dictBase */
typedef xdc_runtime_Diags_DictElem *CT__xdc_runtime_Diags_dictBase;
__extern __FAR__ const CT__xdc_runtime_Diags_dictBase xdc_runtime_Diags_dictBase__C;
#ifdef xdc_runtime_Diags_dictBase__CR
#define xdc_runtime_Diags_dictBase (*((CT__xdc_runtime_Diags_dictBase*)(xdcRomConstPtr + xdc_runtime_Diags_dictBase__C_offset)))
#else
#define xdc_runtime_Diags_dictBase (xdc_runtime_Diags_dictBase__C)
#endif


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

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

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

/* setMask__E */
#define xdc_runtime_Diags_setMask xdc_runtime_Diags_setMask__E
xdc__CODESECT(xdc_runtime_Diags_setMask__E, "xdc_runtime_Diags_setMask")
__extern xdc_Void xdc_runtime_Diags_setMask__E( xdc_CString control );


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

/* Module_startupDone */
#define xdc_runtime_Diags_Module_startupDone() xdc_runtime_Diags_Module__startupDone__S()

/* Object_heap */
#define xdc_runtime_Diags_Object_heap() xdc_runtime_Diags_Object__heap__C

/* Module_heap */
#define xdc_runtime_Diags_Module_heap() xdc_runtime_Diags_Object__heap__C

/* Module_id */
static inline CT__xdc_runtime_Diags_Module__id xdc_runtime_Diags_Module_id(void);
static inline CT__xdc_runtime_Diags_Module__id xdc_runtime_Diags_Module_id( void ) 
{
    return xdc_runtime_Diags_Module__id__C;
}

/* Module_hasMask */
static inline xdc_Bool xdc_runtime_Diags_Module_hasMask(void);
static inline xdc_Bool xdc_runtime_Diags_Module_hasMask(void)
{
    return (xdc_Bool)(xdc_runtime_Diags_Module__diagsMask__C != (CT__xdc_runtime_Diags_Module__diagsMask)NULL);
}

/* Module_getMask */
static inline xdc_Bits16 xdc_runtime_Diags_Module_getMask(void);
static inline xdc_Bits16 xdc_runtime_Diags_Module_getMask(void)
{
    return (xdc_runtime_Diags_Module__diagsMask__C != (CT__xdc_runtime_Diags_Module__diagsMask)NULL) ? *xdc_runtime_Diags_Module__diagsMask__C : (xdc_Bits16)0;
}

/* Module_setMask */
static inline xdc_Void xdc_runtime_Diags_Module_setMask(xdc_Bits16 mask);
static inline xdc_Void xdc_runtime_Diags_Module_setMask(xdc_Bits16 mask)
{
    if (xdc_runtime_Diags_Module__diagsMask__C != (CT__xdc_runtime_Diags_Module__diagsMask)NULL) {
        *xdc_runtime_Diags_Module__diagsMask__C = mask;
    }
}


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

#include <xdc/runtime/Diags__epilogue.h>

#ifdef xdc_runtime_Diags__top__
#undef __nested__
#endif

#endif /* xdc_runtime_Diags__include */


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

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

#ifndef xdc_runtime_Diags__include_state
#define xdc_runtime_Diags__include_state


#endif /* xdc_runtime_Diags__include_state */

#endif

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

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

#ifndef xdc_runtime_Diags__localnames__done
#define xdc_runtime_Diags__localnames__done

/* module prefix */
#define Diags_Mask xdc_runtime_Diags_Mask
#define Diags_ENTRY xdc_runtime_Diags_ENTRY
#define Diags_EXIT xdc_runtime_Diags_EXIT
#define Diags_LIFECYCLE xdc_runtime_Diags_LIFECYCLE
#define Diags_INTERNAL xdc_runtime_Diags_INTERNAL
#define Diags_ASSERT xdc_runtime_Diags_ASSERT
#define Diags_STATUS xdc_runtime_Diags_STATUS
#define Diags_LEVEL xdc_runtime_Diags_LEVEL
#define Diags_USER1 xdc_runtime_Diags_USER1
#define Diags_USER2 xdc_runtime_Diags_USER2
#define Diags_USER3 xdc_runtime_Diags_USER3
#define Diags_USER4 xdc_runtime_Diags_USER4
#define Diags_USER5 xdc_runtime_Diags_USER5
#define Diags_USER6 xdc_runtime_Diags_USER6
#define Diags_USER7 xdc_runtime_Diags_USER7
#define Diags_INFO xdc_runtime_Diags_INFO
#define Diags_USER8 xdc_runtime_Diags_USER8
#define Diags_ANALYSIS xdc_runtime_Diags_ANALYSIS
#define Diags_ALL xdc_runtime_Diags_ALL
#define Diags_ALL_LOGGING xdc_runtime_Diags_ALL_LOGGING
#define Diags_EventLevel xdc_runtime_Diags_EventLevel
#define Diags_EMERGENCY xdc_runtime_Diags_EMERGENCY
#define Diags_CRITICAL xdc_runtime_Diags_CRITICAL
#define Diags_ERROR xdc_runtime_Diags_ERROR
#define Diags_WARNING xdc_runtime_Diags_WARNING
#define Diags_DictElem xdc_runtime_Diags_DictElem
#define Diags_LEVEL1 xdc_runtime_Diags_LEVEL1
#define Diags_LEVEL2 xdc_runtime_Diags_LEVEL2
#define Diags_LEVEL3 xdc_runtime_Diags_LEVEL3
#define Diags_LEVEL4 xdc_runtime_Diags_LEVEL4
#define Diags_setMaskEnabled xdc_runtime_Diags_setMaskEnabled
#define Diags_dictBase xdc_runtime_Diags_dictBase
#define Diags_query xdc_runtime_Diags_query
#define Diags_getLevel xdc_runtime_Diags_getLevel
#define Diags_compareLevels xdc_runtime_Diags_compareLevels
#define Diags_setMask xdc_runtime_Diags_setMask
#define Diags_Module_name xdc_runtime_Diags_Module_name
#define Diags_Module_id xdc_runtime_Diags_Module_id
#define Diags_Module_startup xdc_runtime_Diags_Module_startup
#define Diags_Module_startupDone xdc_runtime_Diags_Module_startupDone
#define Diags_Module_hasMask xdc_runtime_Diags_Module_hasMask
#define Diags_Module_getMask xdc_runtime_Diags_Module_getMask
#define Diags_Module_setMask xdc_runtime_Diags_Module_setMask
#define Diags_Object_heap xdc_runtime_Diags_Object_heap
#define Diags_Module_heap xdc_runtime_Diags_Module_heap

#endif /* xdc_runtime_Diags__localnames__done */
#endif
/*
 *  @(#) xdc.runtime; 2, 1, 0,0; 5-8-2019 15:48:08; /db/ztree/library/trees/xdc/xdc-G16/src/packages/
 */

