/****************************************************************************************/
/**@file compression.h
* @brief Enter a brief single line description here.
* For detailed description, see the corresponding c file or the doxygen
* generated documents.
* @author sahosou
* @date 07 Okt. 2020
*/
/*--------------------------------------------------------------------------------------*/
/* Copyright (c) 2017...2020 Baker Hughes, a GE company, LLC ("BHGE") (unpublished work).
* All rights reserved. The information contained in this document is confidential and
* proprietary property of BHGE and its affiliates. It is to be used only for the benefit
* of BHGE and may not be distributed, transmitted, reproduced, altered or used for any
* purpose without the express written consent of BHGE. */
/*--------------------------------------------------------------------------------------*/
/****************************************************************************************/
/* Imported include interfaces: */
/****************************************************************************************/
/**@file stdint.h
* @brief This module provides processor/controller independent types, to support
* portable code. It is a subset of the definitions of the C99 standard
* @author Hednrik Hantzko
* @date 26 Feb 2009
*/
/*--------------------------------------------------------------------------------------*/
/* Copyright (c) 2001...2018 Baker Hughes, a GE company, LLC ("BHGE") (unpublished work).
* All rights reserved. The information contained in this document is confidential and
* proprietary property of BHGE and its affiliates. It is to be used only for the benefit
* of BHGE and may not be distributed, transmitted, reproduced, altered or used for any
* purpose without the express written consent of BHGE. */
/*--------------------------------------------------------------------------------------*/
/****************************************************************************************/
/* Imported include interfaces: */
/****************************************************************************************/
/* Exported type definitions: */
/*!---------------------------------------------------------------------------------------
* @brief Typedef for Unsigned 8-bit Integer
* @author Hednrik Hantzko
* @date 26 Feb 2009
*//*-----------------------------------------------------------------------------------*/
typedef unsigned char uint8_t;
/*!---------------------------------------------------------------------------------------
* @brief Typedef for Signed 8-bit Integer
* @author Hednrik Hantzko
* @date 26 Feb 2009
*//*-----------------------------------------------------------------------------------*/
typedef signed char int8_t;
/*!---------------------------------------------------------------------------------------
* @brief Typedef for Unsigned 16-bit Integer
* @author Hednrik Hantzko
* @date 26 Feb 2009
*//*-----------------------------------------------------------------------------------*/
typedef unsigned int uint16_t;
/*!---------------------------------------------------------------------------------------
* @brief Typedef for Signed 16-bit Integer
* @author Hednrik Hantzko
* @date 26 Feb 2009
*//*-----------------------------------------------------------------------------------*/
typedef signed int int16_t;
/*!---------------------------------------------------------------------------------------
* @brief Typedef for Unsigned 32-bit Integer
* @author Hednrik Hantzko
* @date 26 Feb 2009
*//*-----------------------------------------------------------------------------------*/
typedef unsigned long uint32_t;
/*!---------------------------------------------------------------------------------------
* @brief Typedef for Signed 32-bit Integer
* @author Hednrik Hantzko
* @date 26 Feb 2009
*//*-----------------------------------------------------------------------------------*/
typedef signed long int32_t;
/*!---------------------------------------------------------------------------------------
* @brief Typedef for Signed 64-bit Integer
* @author Hednrik Hantzko
* @date 26 Feb 2009
*//*-----------------------------------------------------------------------------------*/
typedef long long int64_t;
/*!---------------------------------------------------------------------------------------
* @brief Typedef for Signed 64-bit Integer
* @author Hednrik Hantzko
* @date 26 Feb 2009
*//*-----------------------------------------------------------------------------------*/
typedef unsigned long long uint64_t;
/* 7.18.1.2 Minimum-width integer types */
/*!---------------------------------------------------------------------------------------
* @brief Minimum-width integer types Signed 8-bit Integer
* @author Hednrik Hantzko
* @date 26 Feb 2009
*//*-----------------------------------------------------------------------------------*/
typedef int16_t int_least8_t;
/*!---------------------------------------------------------------------------------------
* @brief Minimum-width integer types Unsigned 8-bit Integer
* @author Hednrik Hantzko
* @date 26 Feb 2009
*//*-----------------------------------------------------------------------------------*/
typedef uint16_t uint_least8_t;
/*!---------------------------------------------------------------------------------------
* @brief Minimum-width integer types Signed 16-bit Integer
* @author Hednrik Hantzko
* @date 26 Feb 2009
*//*-----------------------------------------------------------------------------------*/
typedef int16_t int_least16_t;
/*!---------------------------------------------------------------------------------------
* @brief Minimum-width integer types Unsigned 16-bit Integer
* @author Hednrik Hantzko
* @date 26 Feb 2009
*//*-----------------------------------------------------------------------------------*/
typedef uint16_t uint_least16_t;
/*!---------------------------------------------------------------------------------------
* @brief Minimum-width integer types Signed 32-bit Integer
* @author Hednrik Hantzko
* @date 26 Feb 2009
*//*-----------------------------------------------------------------------------------*/
typedef int32_t int_least32_t;
/*!---------------------------------------------------------------------------------------
* @brief Minimum-width integer types Unsigned 32-bit Integer
* @author Hednrik Hantzko
* @date 26 Feb 2009
*//*-----------------------------------------------------------------------------------*/
typedef uint32_t uint_least32_t;
/*!---------------------------------------------------------------------------------------
* @brief Minimum-width integer types Signed 64-bit Integer
* @author Hednrik Hantzko
* @date 26 Feb 2009
*//*-----------------------------------------------------------------------------------*/
typedef int64_t int_least64_t;
/*!---------------------------------------------------------------------------------------
* @brief Minimum-width integer types Unsigned 64-bit Integer
* @author Hednrik Hantzko
* @date 26 Feb 2009
*//*-----------------------------------------------------------------------------------*/
typedef uint64_t uint_least64_t;
/* 7.18.1.3 Fastest minimum-width integer types */
/*!---------------------------------------------------------------------------------------
* @brief Fastest minimum-width integer types Signed 8-bit Integer
* @author Hednrik Hantzko
* @date 26 Feb 2009
*//*-----------------------------------------------------------------------------------*/
typedef int16_t int_fast8_t;
/*!---------------------------------------------------------------------------------------
* @brief Fastest minimum-width integer types Unsigned 8-bit Integer.
* @author Hednrik Hantzko
* @date 26 Feb 2009
*//*-----------------------------------------------------------------------------------*/
typedef uint16_t uint_fast8_t;
/*!---------------------------------------------------------------------------------------
* @brief Fastest minimum-width integer types Signed 16-bit Integer.
* @author Hednrik Hantzko
* @date 26 Feb 2009
*//*-----------------------------------------------------------------------------------*/
typedef int16_t int_fast16_t;
/*!---------------------------------------------------------------------------------------
* @brief Fastest minimum-width integer types Unsigned 16-bit Integer.
* @author Hednrik Hantzko
* @date 26 Feb 2009
*//*-----------------------------------------------------------------------------------*/
typedef uint16_t uint_fast16_t;
/*!---------------------------------------------------------------------------------------
* @brief Fastest minimum-width integer types Signed 32-bit Integer.
* @author Hednrik Hantzko
* @date 26 Feb 2009
*//*-----------------------------------------------------------------------------------*/
typedef int32_t int_fast32_t;
/*!---------------------------------------------------------------------------------------
* @brief Fastest minimum-width integer types Unsigned 32-bit Integer.
* @author Hednrik Hantzko
* @date 26 Feb 2009
*//*-----------------------------------------------------------------------------------*/
typedef uint32_t uint_fast32_t;
/*!---------------------------------------------------------------------------------------
* @brief Fastest minimum-width integer types Signed 64-bit Integer.
* @author Hednrik Hantzko
* @date 26 Feb 2009
*//*-----------------------------------------------------------------------------------*/
typedef int64_t int_fast64_t;
/*!---------------------------------------------------------------------------------------
* @brief Fastest minimum-width integer types Unsigned 64-bit Integer.
* @author Hednrik Hantzko
* @date 26 Feb 2009
*//*-----------------------------------------------------------------------------------*/
typedef uint64_t uint_fast64_t;
/* 7.18.1.4 Integer types capable of holding object pointers */
/*!---------------------------------------------------------------------------------------
* @brief Signed Integer types capable of holding object pointers
* @author Hednrik Hantzko
* @date 26 Feb 2009
*//*-----------------------------------------------------------------------------------*/
typedef long intptr_t;
/*!---------------------------------------------------------------------------------------
* @brief Unsigned Integer types capable of holding object pointers
* @author Hednrik Hantzko
* @date 26 Feb 2009
*//*-----------------------------------------------------------------------------------*/
typedef unsigned long uintptr_t;
/****************************************************************************************/
/* Exported constant definitions: */
/*!@brief Minimum value of Signed integer of 8 bit */
/*!@brief Minimum value of Signed integer of 16 bit */
/*!@brief Minimum value of Signed integer of 32 bit */
/*!@brief Maximum value of Signed integer of 8 bit */
/*!@brief Maximum value of Signed integer of 16 bit */
/*!@brief Maximum value of Signed integer of 32 bit */
/*!@brief Maximum value of Unsigned integer of 8 bit */
/*!@brief Maximum value of Unsigned integer of 16 bit */
/*!@brief Maximum value of Unsigned integer of 32 bit */
/****************************************************************************************/
/* Exported macro definitions: */
/****************************************************************************************/
/* Exported data declarations: */
/****************************************************************************************/
/* Exported function prototypes: */
/****************************************************************************************/
/****************************************************************************************/
/**@file stdbool.h
* @brief This module provides processor/controller independent types, to support
* portable code. It is a subset of the definitions of the C99 standard
* @author Hednrik Hantzko
* @date 26 Feb 2009
*/
/*--------------------------------------------------------------------------------------*/
/* Copyright (c) 2001...2018 Baker Hughes, a GE company, LLC ("BHGE") (unpublished work).
* All rights reserved. The information contained in this document is confidential and
* proprietary property of BHGE and its affiliates. It is to be used only for the benefit
* of BHGE and may not be distributed, transmitted, reproduced, altered or used for any
* purpose without the express written consent of BHGE. */
/*--------------------------------------------------------------------------------------*/
/*****************************************************************************/
/* Imported include interfaces: */
/*****************************************************************************/
/* Exported type definitions: */
/*!---------------------------------------------------------------------------------------
* @brief definition boolean type
* @author Hednrik Hantzko
* @date 26 Feb 2009
*//*-----------------------------------------------------------------------------------*/
typedef unsigned int bool;
/*****************************************************************************/
/* Exported constant definitions: */
/*!@brief false defined */
/*!@brief true defined */
/*!@brief Availability of true or false definition */
/*!@brief Pre-processor False */
/*!@brief Pre-processor True */
/*****************************************************************************/
/* Exported macro definitions: */
/*****************************************************************************/
/* Exported function prototypes: */
/*****************************************************************************/
/* Exported data declarations: */
/****************************************************************************************/
/****************************************************************************************/
/**@file stdfloat.h
* @brief This module provides processor/controller independent types, to support
* portable code. It is a subset of the definitions of the C99 standard.
* @author Hendrik Hantzko / Matthias Wauer
* @date 18 Jul 2014
*/
/*--------------------------------------------------------------------------------------*/
/* Copyright (c) 2001...2018 Baker Hughes, a GE company, LLC ("BHGE") (unpublished work).
* All rights reserved. The information contained in this document is confidential and
* proprietary property of BHGE and its affiliates. It is to be used only for the benefit
* of BHGE and may not be distributed, transmitted, reproduced, altered or used for any
* purpose without the express written consent of BHGE. */
/*--------------------------------------------------------------------------------------*/
/****************************************************************************************/
/* Imported include interfaces: */
/****************************************************************************************/
/* Exported constant definitions: */
/*!@brief DECIMAL PRECISION */
/*!@brief BITS IN MANTISSA */
/*!@brief SMALLEST EXPONENT */
/*!@brief LARGEST EXPONENT */
/*!@brief SMALLEST X WHERE 1+X != 1 */
/*!@brief SMALLEST POSITIVE VALUE */
/*!@brief LARGEST POSITIVE VALUE */
/*!@brief MIN POWER OF 10 */
/*!@brief MAX POWER OF 10 */
/*!@brief DECIMAL PRECISION */
/*!@brief BITS IN MANTISSA */
/*!@brief SMALLEST EXPONENT */
/*!@brief LARGEST EXPONENT */
/*!@brief SMALLEST X WHERE 1+X != 1 */
/*!@brief SMALLEST POSITIVE VALUE */
/*!@brief LARGEST POSITIVE VALUE */
/*!@brief MIN POWER OF 10 */
/*!@brief MAX POWER OF 10 */
/****************************************************************************************/
/* Exported macro definitions: */
/****************************************************************************************/
/* Exported type definitions: */
/*!---------------------------------------------------------------------------------------
* @brief This is float32_t typedef.
* @author Hendrik Hantzko / Matthias Wauer
* @date 18 Jul 2014
*//*-----------------------------------------------------------------------------------*/
typedef float float32_t;
/*!---------------------------------------------------------------------------------------
* @brief This is float64_t typedef.
* @author Hendrik Hantzko / Matthias Wauer
* @date 18 Jul 2014
*//*-----------------------------------------------------------------------------------*/
typedef long double float64_t;
/****************************************************************************************/
/* Exported function prototypes: */
/****************************************************************************************/
/* Exported data declarations: */
/****************************************************************************************/
/****************************************************************************************/
/* Exported constant definitions: */
/****************************************************************************************/
/* Exported macro definitions: */
/****************************************************************************************/
/* Exported type definitions: */
/*!---------------------------------------------------------------------------------------
* @brief This structure describes the template parameters.
* @author sahosou
* @date 07 Okt. 2020
*//*-----------------------------------------------------------------------------------*/
typedef struct compression_param_tag/* compression_param_tag (optional tag name) */
{
float *compDataIn;
float maxAbsRowData[16U]; /* maximum absolute row data */
float scaleRowData[16U]; /* scale row data */
uint16_t scaledRowData[8192U]; /* uint scaled row data -used as input by the model*/
uint16_t modelInBuf[512];
uint16_t refVal_u16a[2];
uint16_t pwqOut_u16sa[1024];
uint16_t modelOutBuf[8192U];
}compression_param_t;
extern uint32_t compPrcTime_u32;
extern float *extRamDataIn;
/****************************************************************************************/
/* Exported function prototypes: */
extern bool compression_InitializeParameters_bol (compression_param_t* const param_stpc);
extern bool compression_Initialize_bol (void);
extern bool compression_Activate_bol (void);
extern bool compression_Deactivate_bol (void);
bool compression_Data_bol(void);
static void getModelInputData(const uint16_t dataIn[], uint8_t seg);
static void getMaxAbsRowData(const float *var1, float *maxAbsRowData);
static void getScaledRowData(const float *var2,const float scaleRowData[16]);
/****************************************************************************************/
/* Exported data declarations: */
/****************************************************************************************/
/*****************************************************************************/
/* string.h v6.4.11 */
/* */
/* Copyright (c) 1993-2016 Texas Instruments Incorporated */
/* http://www.ti.com/ */
/* */
/* Redistribution and use in source and binary forms, with or without */
/* modification, are permitted provided that the following conditions */
/* are met: */
/* */
/* Redistributions of source code must retain the above copyright */
/* notice, this list of conditions and the following disclaimer. */
/* */
/* Redistributions in binary form must reproduce the above copyright */
/* notice, this list of conditions and the following disclaimer in */
/* the documentation and/or other materials provided with the */
/* distribution. */
/* */
/* Neither the name of Texas Instruments Incorporated nor the names */
/* of its contributors may be used to endorse or promote products */
/* derived from this software without specific prior written */
/* permission. */
/* */
/* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS */
/* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT */
/* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR */
/* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT */
/* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, */
/* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT */
/* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, */
/* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY */
/* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT */
/* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE */
/* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
/* */
/*****************************************************************************/
#pragma diag_push
#pragma CHECK_MISRA("-6.3") /* standard types required for standard headers */
#pragma CHECK_MISRA("-19.1") /* #includes required for implementation */
typedef unsigned long size_t;
/*****************************************************************************/
/* linkage.h v6.4.11 */
/* */
/* Copyright (c) 1998-2016 Texas Instruments Incorporated */
/* http://www.ti.com/ */
/* */
/* Redistribution and use in source and binary forms, with or without */
/* modification, are permitted provided that the following conditions */
/* are met: */
/* */
/* Redistributions of source code must retain the above copyright */
/* notice, this list of conditions and the following disclaimer. */
/* */
/* Redistributions in binary form must reproduce the above copyright */
/* notice, this list of conditions and the following disclaimer in */
/* the documentation and/or other materials provided with the */
/* distribution. */
/* */
/* Neither the name of Texas Instruments Incorporated nor the names */
/* of its contributors may be used to endorse or promote products */
/* derived from this software without specific prior written */
/* permission. */
/* */
/* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS */
/* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT */
/* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR */
/* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT */
/* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, */
/* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT */
/* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, */
/* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY */
/* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT */
/* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE */
/* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
/* */
/*****************************************************************************/
#pragma diag_push
#pragma CHECK_MISRA("-19.4") /* macros required for implementation */
/* No modifiers needed to access code */
/*--------------------------------------------------------------------------*/
/* Define _DATA_ACCESS ==> how to access RTS global or static data */
/*--------------------------------------------------------------------------*/
/*--------------------------------------------------------------------------*/
/* Define _OPTIMIZE_FOR_SPACE ==> Always optimize for space. */
/*--------------------------------------------------------------------------*/
/*--------------------------------------------------------------------------*/
/* Define _IDECL ==> how inline functions are declared */
/*--------------------------------------------------------------------------*/
#pragma diag_pop
#pragma diag_push
#pragma CHECK_MISRA("-19.4") /* macros required for implementation */
#pragma diag_pop
size_t strlen(const char *string);
char *strcpy(char *dest, const char *src);
char *strncpy(char *dest, const char *src, size_t n);
char *strcat(char *string1, const char *string2);
char *strncat(char *dest, const char *src, size_t n);
char *strchr(const char *string, int c);
char *strrchr(const char *string, int c);
int strcmp(const char *string1, const char *string2);
int strncmp(const char *string1, const char *string2, size_t n);
int strcoll(const char *string1, const char *_string2);
size_t strxfrm(char *to, const char *from, size_t n);
char *strpbrk(const char *string, const char *chs);
size_t strspn(const char *string, const char *chs);
size_t strcspn(const char *string, const char *chs);
char *strstr(const char *string1, const char *string2);
char *strtok(char *str1, const char *str2);
char *strerror(int _errno);
char *strdup(const char *string);
void *memmove(void *s1, const void *s2, size_t n);
#pragma diag_push
#pragma CHECK_MISRA("-16.4") /* false positives due to builtin declarations */
void *memcpy(void *s1, const void *s2, size_t n);
#pragma diag_pop
int memcmp(const void *cs, const void *ct, size_t n);
void *memchr(const void *cs, int c, size_t n);
void *memset(void *mem, int ch, size_t length);
#pragma diag_push
/* keep macros as direct #defines and not function-like macros or function
names surrounded by parentheses to support all original supported use cases
including taking their address through the macros and prefixing with
namespace macros */
#pragma CHECK_MISRA("-19.4")
#pragma diag_pop
size_t far_strlen(const char *s);
char *strcpy_nf(char *s1, const char *s2);
char *strcpy_fn(char *s1, const char *s2);
char *strcpy_ff(char *s1, const char *s2);
char *far_strncpy(char *s1, const char *s2, size_t n);
char *far_strcat(char *s1, const char *s2);
char *far_strncat(char *s1, const char *s2, size_t n);
char *far_strchr(const char *s, int c);
char *far_strrchr(const char *s, int c);
int far_strcmp(const char *s1, const char *s2);
int far_strncmp(const char *s1, const char *s2, size_t n);
int far_strcoll(const char *s1, const char *s2);
size_t far_strxfrm(char *s1, const char *s2, size_t n);
char *far_strpbrk(const char *s1, const char *s2);
size_t far_strspn(const char *s1, const char *s2);
size_t far_strcspn(const char *s1, const char *s2);
char *far_strstr(const char *s1, const char *s2);
char *far_strtok(char *s1, const char *s2);
char *far_strerror(int _errno);
void *far_memmove(void *s1, const void *s2, size_t n);
void *__memcpy_nf (void *_s1, const void *_s2, size_t _n);
void *__memcpy_fn (void *_s1, const void *_s2, size_t _n);
void *__memcpy_ff (void *_s1, const void *_s2, size_t _n);
int far_memcmp(const void *s1, const void *s2, size_t n);
void *far_memchr(const void *s, int c, size_t n);
void *far_memset(void *s, int c, size_t n);
void *far_memlcpy(void *to, const void *from,
unsigned long n);
void *far_memlmove(void *to, const void *from,
unsigned long n);
#pragma diag_pop
#pragma diag_push
/* using declarations must occur outside header guard to support including both
C and C++-wrapped version of header; see _CPP_STYLE_HEADER check */
/* this code is for C++ mode only and thus also not relevant for MISRA */
#pragma CHECK_MISRA("-19.15")
#pragma diag_pop
/*****************************************************************************/
/* math.h v6.4.11 */
/* */
/* Copyright (c) 1996-2016 Texas Instruments Incorporated */
/* http://www.ti.com/ */
/* */
/* Redistribution and use in source and binary forms, with or without */
/* modification, are permitted provided that the following conditions */
/* are met: */
/* */
/* Redistributions of source code must retain the above copyright */
/* notice, this list of conditions and the following disclaimer. */
/* */
/* Redistributions in binary form must reproduce the above copyright */
/* notice, this list of conditions and the following disclaimer in */
/* the documentation and/or other materials provided with the */
/* distribution. */
/* */
/* Neither the name of Texas Instruments Incorporated nor the names */
/* of its contributors may be used to endorse or promote products */
/* derived from this software without specific prior written */
/* permission. */
/* */
/* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS */
/* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT */
/* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR */
/* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT */
/* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, */
/* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT */
/* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, */
/* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY */
/* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT */
/* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE */
/* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
/* */
/*****************************************************************************/
#pragma diag_push
#pragma CHECK_MISRA("-6.3") /* standard types required for standard headers */
#pragma CHECK_MISRA("-8.5") /* need to define inline function */
#pragma CHECK_MISRA("-8.11") /* need to use __inline as is */
#pragma CHECK_MISRA("-19.7") /* macros required for implementation */
#pragma CHECK_MISRA("-20.1") /* standard headers must define standard names */
#pragma CHECK_MISRA("-20.2") /* standard headers must define standard names */
/* simplistic isinf and isnan */
/***************************************************************/
/* TMU SUPPORT AND RELAXED MODE: USE INSTRINSICS. */
/***************************************************************/
/***************************************************************/
/* FUNCTION DEFINITIONS. */
/***************************************************************/
double modf(double x, double *y);
double far_modf(double x, double *y);
double asin(double x);
double acos(double x);
double atan(double x);
double atan2(double y, double x);
__inline double ceil(double x);
__inline double ceil(double x)
{
double ceil_result;
double ceil_y;
#pragma diag_push
#pragma diag_suppress 551 /* must be uninitialized to work around bug */
#pragma CHECK_MISRA("-9.1") /* must be uninitialized to work around bug */
#pragma CHECK_MISRA("-10.2") /* false positive on pointer-to-double param */
if(modf(x, &ceil_y) > 0.)
#pragma diag_pop
{
ceil_result = ceil_y + 1.;
}
else
{
ceil_result = ceil_y;
}
return ceil_result;
}
double cos(double x);
double cosh(double x);
double exp(double x);
#pragma diag_push
#pragma CHECK_MISRA("-16.4") /* false positives due to builtin declarations */
double fabs(double x);
#pragma diag_pop
__inline double floor(double x);
__inline double floor(double x)
{
double floor_result;
double floor_y;
#pragma diag_push
#pragma diag_suppress 551 /* must be uninitialized to work around bug */
#pragma CHECK_MISRA("-9.1") /* must be uninitialized to work around bug */
#pragma CHECK_MISRA("-10.2") /* false positive on pointer-to-double param */
if(modf(x, &floor_y) < 0.)
#pragma diag_pop
{
floor_result = floor_y - 1.;
}
else
{
floor_result = floor_y;
}
return floor_result;
}
double fmod(double x, double y);
double frexp(double x, int *_exp);
double far_frexp(double x, int *_exp);
double ldexp(double x, int _exp);
double log(double x);
double log10(double x);
double pow(double x, double y);
double sin(double x);
double sinh(double x);
double tan(double x);
double tanh(double x);
double sqrt(double x);
#pragma diag_pop
/******************************************************************************/
/* Overloaded version of math functions for float and long double removed */
/* from here, and include in cmath instead (see Section 26.5 of C++ standard */
/* for details). Thus cpp_inline_math.h is now included in cmath . */
/******************************************************************************/
#pragma diag_push
/* using declarations must occur outside header guard to support including both
C and C++-wrapped version of header; see _CPP_STYLE_HEADER check */
/* this code is for C++ mode only and thus also not relevant for MISRA */
#pragma CHECK_MISRA("-19.15")
#pragma diag_pop
/****************************************************************************************/
/**@file config.h
* @brief This file contains project specific configuration defines, which are not
* specific for a certain functionality. Those can be found in special config
* files (e.g. adamconfig.h)
* For detailed description, see the corresponding c file or the doxygen
* generated documents.
* @author Eduard Siewert
* @date 06 Jan 2014
*/
/*--------------------------------------------------------------------------------------*/
/* Copyright (c) 2014...2018 Baker Hughes, a GE company, LLC ("BHGE") (unpublished work).
* All rights reserved. The information contained in this document is confidential and
* proprietary property of BHGE and its affiliates. It is to be used only for the benefit
* of BHGE and may not be distributed, transmitted, reproduced, altered or used for any
* purpose without the express written consent of BHGE. */
/*--------------------------------------------------------------------------------------*/
/****************************************************************************************/
/* Imported include interfaces: */
/****************************************************************************************/
/**@file hw.h
* @author Eli Adetola
* @date 10. Jan. 2011
* @brief For detailed description, see the corresponding c file or the doxygen
* generated docs */
/*--------------------------------------------------------------------------------------*/
/* Copyright (c) 2001...2010 Baker Hughes, Inc.
* All Rights Reserved.
* The information contained herein is confidential property of Baker Hughes, Inc.
* The use, copying, transfer or disclosure of such information is prohibited except
* by express written agreement with Baker Hughes, Inc. */
/*--------------------------------------------------------------------------------------*/
/****************************************************************************************/
/* Imported header files: */
/****************************************************************************************/
/**@file device.h
* @author Hendrik Hantzko
* @date 23 Jan 2013
* @brief This file allows a generic include in library files redirected to the specific
* DSPxxx_Device.h file. */
/*--------------------------------------------------------------------------------------*/
/* Copyright (c) 2001...2013 Baker Hughes, Inc.
* All Rights Reserved.
* The information contained herein is confidential property of Baker Hughes, Inc.
* The use, copying, transfer or disclosure of such information is prohibited except
* by express written agreement with Baker Hughes, Inc. */
/*--------------------------------------------------------------------------------------*/
/****************************************************************************************/
/* Imported header files: */
//###########################################################################
//
// FILE: DSP2833x_Device.h
//
// TITLE: DSP2833x Device Definitions.
//
//###########################################################################
// $TI Release: 2833x/2823x Header Files and Peripheral Examples V133 $
// $Release Date: June 8, 2012 $
//###########################################################################
//---------------------------------------------------------------------------
// User To Select Target Device:
//---------------------------------------------------------------------------
// Common CPU Definitions:
//
extern cregister volatile unsigned int IFR;
extern cregister volatile unsigned int IER;
//---------------------------------------------------------------------------
// For Portability, User Is Recommended To Use Following Data Type Size
// Definitions For 16-bit and 32-Bit Signed/Unsigned Integers:
//
//---------------------------------------------------------------------------
// Include All Peripheral Header Files:
//
//###########################################################################
//
// FILE: DSP2833x_Adc.h
//
// TITLE: DSP2833x Device ADC Register Definitions.
//
//###########################################################################
// $TI Release: 2833x/2823x Header Files and Peripheral Examples V133 $
// $Release Date: June 8, 2012 $
//###########################################################################
//---------------------------------------------------------------------------
// ADC Individual Register Bit Definitions:
struct ADCTRL1_BITS { // bits description
uint16_t rsvd1:4; // 3:0 reserved
uint16_t SEQ_CASC:1; // 4 Cascaded sequencer mode
uint16_t SEQ_OVRD:1; // 5 Sequencer override
uint16_t CONT_RUN:1; // 6 Continuous run
uint16_t CPS:1; // 7 ADC core clock pre-scalar
uint16_t ACQ_PS:4; // 11:8 Acquisition window size
uint16_t SUSMOD:2; // 13:12 Emulation suspend mode
uint16_t RESET:1; // 14 ADC reset
uint16_t rsvd2:1; // 15 reserved
};
union ADCTRL1_REG {
uint16_t all;
struct ADCTRL1_BITS bit;
};
struct ADCTRL2_BITS { // bits description
uint16_t EPWM_SOCB_SEQ2:1; // 0 EPWM compare B SOC mask for SEQ2
uint16_t rsvd1:1; // 1 reserved
uint16_t INT_MOD_SEQ2:1; // 2 SEQ2 Interrupt mode
uint16_t INT_ENA_SEQ2:1; // 3 SEQ2 Interrupt enable
uint16_t rsvd2:1; // 4 reserved
uint16_t SOC_SEQ2:1; // 5 Start of conversion for SEQ2
uint16_t RST_SEQ2:1; // 6 Reset SEQ2
uint16_t EXT_SOC_SEQ1:1; // 7 External start of conversion for SEQ1
uint16_t EPWM_SOCA_SEQ1:1; // 8 EPWM compare B SOC mask for SEQ1
uint16_t rsvd3:1; // 9 reserved
uint16_t INT_MOD_SEQ1:1; // 10 SEQ1 Interrupt mode
uint16_t INT_ENA_SEQ1:1; // 11 SEQ1 Interrupt enable
uint16_t rsvd4:1; // 12 reserved
uint16_t SOC_SEQ1:1; // 13 Start of conversion trigger for SEQ1
uint16_t RST_SEQ1:1; // 14 Restart sequencer 1
uint16_t EPWM_SOCB_SEQ:1; // 15 EPWM compare B SOC enable
};
union ADCTRL2_REG {
uint16_t all;
struct ADCTRL2_BITS bit;
};
struct ADCASEQSR_BITS { // bits description
uint16_t SEQ1_STATE:4; // 3:0 SEQ1 state
uint16_t SEQ2_STATE:3; // 6:4 SEQ2 state
uint16_t rsvd1:1; // 7 reserved
uint16_t SEQ_CNTR:4; // 11:8 Sequencing counter status
uint16_t rsvd2:4; // 15:12 reserved
};
union ADCASEQSR_REG {
uint16_t all;
struct ADCASEQSR_BITS bit;
};
struct ADCMAXCONV_BITS { // bits description
uint16_t MAX_CONV1:4; // 3:0 Max number of conversions
uint16_t MAX_CONV2:3; // 6:4 Max number of conversions
uint16_t rsvd1:9; // 15:7 reserved
};
union ADCMAXCONV_REG {
uint16_t all;
struct ADCMAXCONV_BITS bit;
};
struct ADCCHSELSEQ1_BITS { // bits description
uint16_t CONV00:4; // 3:0 Conversion selection 00
uint16_t CONV01:4; // 7:4 Conversion selection 01
uint16_t CONV02:4; // 11:8 Conversion selection 02
uint16_t CONV03:4; // 15:12 Conversion selection 03
};
union ADCCHSELSEQ1_REG{
uint16_t all;
struct ADCCHSELSEQ1_BITS bit;
};
struct ADCCHSELSEQ2_BITS { // bits description
uint16_t CONV04:4; // 3:0 Conversion selection 04
uint16_t CONV05:4; // 7:4 Conversion selection 05
uint16_t CONV06:4; // 11:8 Conversion selection 06
uint16_t CONV07:4; // 15:12 Conversion selection 07
};
union ADCCHSELSEQ2_REG{
uint16_t all;
struct ADCCHSELSEQ2_BITS bit;
};
struct ADCCHSELSEQ3_BITS { // bits description
uint16_t CONV08:4; // 3:0 Conversion selection 08
uint16_t CONV09:4; // 7:4 Conversion selection 09
uint16_t CONV10:4; // 11:8 Conversion selection 10
uint16_t CONV11:4; // 15:12 Conversion selection 11
};
union ADCCHSELSEQ3_REG{
uint16_t all;
struct ADCCHSELSEQ3_BITS bit;
};
struct ADCCHSELSEQ4_BITS { // bits description
uint16_t CONV12:4; // 3:0 Conversion selection 12
uint16_t CONV13:4; // 7:4 Conversion selection 13
uint16_t CONV14:4; // 11:8 Conversion selection 14
uint16_t CONV15:4; // 15:12 Conversion selection 15
};
union ADCCHSELSEQ4_REG {
uint16_t all;
struct ADCCHSELSEQ4_BITS bit;
};
struct ADCTRL3_BITS { // bits description
uint16_t SMODE_SEL:1; // 0 Sampling mode select
uint16_t ADCCLKPS:4; // 4:1 ADC core clock divider
uint16_t ADCPWDN:1; // 5 ADC powerdown
uint16_t ADCBGRFDN:2; // 7:6 ADC bandgap/ref power down
uint16_t rsvd1:8; // 15:8 reserved
};
union ADCTRL3_REG {
uint16_t all;
struct ADCTRL3_BITS bit;
};
struct ADCST_BITS { // bits description
uint16_t INT_SEQ1:1; // 0 SEQ1 Interrupt flag
uint16_t INT_SEQ2:1; // 1 SEQ2 Interrupt flag
uint16_t SEQ1_BSY:1; // 2 SEQ1 busy status
uint16_t SEQ2_BSY:1; // 3 SEQ2 busy status
uint16_t INT_SEQ1_CLR:1; // 4 SEQ1 Interrupt clear
uint16_t INT_SEQ2_CLR:1; // 5 SEQ2 Interrupt clear
uint16_t EOS_BUF1:1; // 6 End of sequence buffer1
uint16_t EOS_BUF2:1; // 7 End of sequence buffer2
uint16_t rsvd1:8; // 15:8 reserved
};
union ADCST_REG {
uint16_t all;
struct ADCST_BITS bit;
};
struct ADCREFSEL_BITS { // bits description
uint16_t rsvd1:14; // 13:0 reserved
uint16_t REF_SEL:2; // 15:14 Reference select
};
union ADCREFSEL_REG {
uint16_t all;
struct ADCREFSEL_BITS bit;
};
struct ADCOFFTRIM_BITS{ // bits description
int16_t OFFSET_TRIM:9; // 8:0 Offset Trim
uint16_t rsvd1:7; // 15:9 reserved
};
union ADCOFFTRIM_REG{
uint16_t all;
struct ADCOFFTRIM_BITS bit;
};
struct ADC_REGS {
union ADCTRL1_REG ADCTRL1; // ADC Control 1
union ADCTRL2_REG ADCTRL2; // ADC Control 2
union ADCMAXCONV_REG ADCMAXCONV; // Max conversions
union ADCCHSELSEQ1_REG ADCCHSELSEQ1; // Channel select sequencing control 1
union ADCCHSELSEQ2_REG ADCCHSELSEQ2; // Channel select sequencing control 2
union ADCCHSELSEQ3_REG ADCCHSELSEQ3; // Channel select sequencing control 3
union ADCCHSELSEQ4_REG ADCCHSELSEQ4; // Channel select sequencing control 4
union ADCASEQSR_REG ADCASEQSR; // Autosequence status register
uint16_t ADCRESULT0; // Conversion Result Buffer 0
uint16_t ADCRESULT1; // Conversion Result Buffer 1
uint16_t ADCRESULT2; // Conversion Result Buffer 2
uint16_t ADCRESULT3; // Conversion Result Buffer 3
uint16_t ADCRESULT4; // Conversion Result Buffer 4
uint16_t ADCRESULT5; // Conversion Result Buffer 5
uint16_t ADCRESULT6; // Conversion Result Buffer 6
uint16_t ADCRESULT7; // Conversion Result Buffer 7
uint16_t ADCRESULT8; // Conversion Result Buffer 8
uint16_t ADCRESULT9; // Conversion Result Buffer 9
uint16_t ADCRESULT10; // Conversion Result Buffer 10
uint16_t ADCRESULT11; // Conversion Result Buffer 11
uint16_t ADCRESULT12; // Conversion Result Buffer 12
uint16_t ADCRESULT13; // Conversion Result Buffer 13
uint16_t ADCRESULT14; // Conversion Result Buffer 14
uint16_t ADCRESULT15; // Conversion Result Buffer 15
union ADCTRL3_REG ADCTRL3; // ADC Control 3
union ADCST_REG ADCST; // ADC Status Register
uint16_t rsvd1;
uint16_t rsvd2;
union ADCREFSEL_REG ADCREFSEL; // Reference Select Register
union ADCOFFTRIM_REG ADCOFFTRIM; // Offset Trim Register
};
struct ADC_RESULT_MIRROR_REGS
{
uint16_t ADCRESULT0; // Conversion Result Buffer 0
uint16_t ADCRESULT1; // Conversion Result Buffer 1
uint16_t ADCRESULT2; // Conversion Result Buffer 2
uint16_t ADCRESULT3; // Conversion Result Buffer 3
uint16_t ADCRESULT4; // Conversion Result Buffer 4
uint16_t ADCRESULT5; // Conversion Result Buffer 5
uint16_t ADCRESULT6; // Conversion Result Buffer 6
uint16_t ADCRESULT7; // Conversion Result Buffer 7
uint16_t ADCRESULT8; // Conversion Result Buffer 8
uint16_t ADCRESULT9; // Conversion Result Buffer 9
uint16_t ADCRESULT10; // Conversion Result Buffer 10
uint16_t ADCRESULT11; // Conversion Result Buffer 11
uint16_t ADCRESULT12; // Conversion Result Buffer 12
uint16_t ADCRESULT13; // Conversion Result Buffer 13
uint16_t ADCRESULT14; // Conversion Result Buffer 14
uint16_t ADCRESULT15; // Conversion Result Buffer 15
};
//---------------------------------------------------------------------------
// ADC External References & Function Declarations:
//
extern volatile struct ADC_REGS AdcRegs;
extern volatile struct ADC_RESULT_MIRROR_REGS AdcMirror;
//===========================================================================
// End of file.
//===========================================================================
//###########################################################################
//
// FILE: DSP2833x_DevEmu.h
//
// TITLE: DSP2833x Device Emulation Register Definitions.
//
//###########################################################################
// $TI Release: 2833x/2823x Header Files and Peripheral Examples V133 $
// $Release Date: June 8, 2012 $
//###########################################################################
//---------------------------------------------------------------------------
// Device Emulation Register Bit Definitions:
//
// Device Configuration Register Bit Definitions
struct DEVICECNF_BITS { // bits description
uint16_t rsvd1:3; // 2:0 reserved
uint16_t VMAPS:1; // 3 VMAP Status
uint16_t rsvd2:1; // 4 reserved
uint16_t XRSn:1; // 5 XRSn Signal Status
uint16_t rsvd3:10; // 15:6
uint16_t rsvd4:3; // 18:16
uint16_t ENPROT:1; // 19 Enable/Disable pipeline protection
uint16_t rsvd5:7; // 26:20 reserved
uint16_t TRSTN:1; // 27 Status of TRSTn signal
uint16_t rsvd6:4; // 31:28 reserved
};
union DEVICECNF_REG {
uint32_t all;
struct DEVICECNF_BITS bit;
};
// CLASSID
struct CLASSID_BITS { // bits description
uint16_t CLASSNO:8; // 7:0 Class Number
uint16_t PARTTYPE:8; // 15:8 Part Type
};
union CLASSID_REG {
uint16_t all;
struct CLASSID_BITS bit;
};
struct DEV_EMU_REGS {
union DEVICECNF_REG DEVICECNF; // device configuration
union CLASSID_REG CLASSID; // Class ID
uint16_t REVID; // Device ID
uint16_t PROTSTART; // Write-Read protection start
uint16_t PROTRANGE; // Write-Read protection range
uint16_t rsvd2[202];
};
// PARTID
struct PARTID_BITS { // bits description
uint16_t PARTNO:8; // 7:0 Part Number
uint16_t PARTTYPE:8; // 15:8 Part Type
};
union PARTID_REG {
uint16_t all;
struct PARTID_BITS bit;
};
struct PARTID_REGS {
union PARTID_REG PARTID; // Part ID
};
//---------------------------------------------------------------------------
// Device Emulation Register References & Function Declarations:
//
extern volatile struct DEV_EMU_REGS DevEmuRegs;
extern volatile struct PARTID_REGS PartIdRegs;
//===========================================================================
// End of file.
//===========================================================================
//###########################################################################
//
// FILE: DSP2833x_CpuTimers.h
//
// TITLE: DSP2833x CPU 32-bit Timers Register Definitions.
//
// NOTES: CpuTimer1 and CpuTimer2 are reserved for use with DSP BIOS and
// other realtime operating systems.
//
// Do not use these two timers in your application if you ever plan
// on integrating DSP-BIOS or another realtime OS.
//
// For this reason, comment out the code to manipulate these two timers
// if using DSP-BIOS or another realtime OS.
//
//###########################################################################
// $TI Release: 2833x/2823x Header Files and Peripheral Examples V133 $
// $Release Date: June 8, 2012 $
//###########################################################################
//---------------------------------------------------------------------------
// CPU Timer Register Bit Definitions:
//
//
// TCR: Control register bit definitions:
struct TCR_BITS { // bits description
uint16_t rsvd1:4; // 3:0 reserved
uint16_t TSS:1; // 4 Timer Start/Stop
uint16_t TRB:1; // 5 Timer reload
uint16_t rsvd2:4; // 9:6 reserved
uint16_t SOFT:1; // 10 Emulation modes
uint16_t FREE:1; // 11
uint16_t rsvd3:2; // 12:13 reserved
uint16_t TIE:1; // 14 Output enable
uint16_t TIF:1; // 15 Interrupt flag
};
union TCR_REG {
uint16_t all;
struct TCR_BITS bit;
};
// TPR: Pre-scale low bit definitions:
struct TPR_BITS { // bits description
uint16_t TDDR:8; // 7:0 Divide-down low
uint16_t PSC:8; // 15:8 Prescale counter low
};
union TPR_REG {
uint16_t all;
struct TPR_BITS bit;
};
// TPRH: Pre-scale high bit definitions:
struct TPRH_BITS { // bits description
uint16_t TDDRH:8; // 7:0 Divide-down high
uint16_t PSCH:8; // 15:8 Prescale counter high
};
union TPRH_REG {
uint16_t all;
struct TPRH_BITS bit;
};
// TIM, TIMH: Timer register definitions:
struct TIM_REG {
uint16_t LSW;
uint16_t MSW;
};
union TIM_GROUP {
uint32_t all;
struct TIM_REG half;
};
// PRD, PRDH: Period register definitions:
struct PRD_REG {
uint16_t LSW;
uint16_t MSW;
};
union PRD_GROUP {
uint32_t all;
struct PRD_REG half;
};
//---------------------------------------------------------------------------
// CPU Timer Register File:
//
struct CPUTIMER_REGS {
union TIM_GROUP TIM; // Timer counter register
union PRD_GROUP PRD; // Period register
union TCR_REG TCR; // Timer control register
uint16_t rsvd1; // reserved
union TPR_REG TPR; // Timer pre-scale low
union TPRH_REG TPRH; // Timer pre-scale high
};
//---------------------------------------------------------------------------
// CPU Timer Support Variables:
//
struct CPUTIMER_VARS {
volatile struct CPUTIMER_REGS *RegsAddr;
uint32_t InterruptCount;
float CPUFreqInMHz;
float PeriodInUSec;
};
//---------------------------------------------------------------------------
// Function prototypes and external definitions:
//
void InitCpuTimers(void);
void ConfigCpuTimer(struct CPUTIMER_VARS *Timer, float Freq, float Period);
extern volatile struct CPUTIMER_REGS CpuTimer0Regs;
extern struct CPUTIMER_VARS CpuTimer0;
// CpuTimer 1 and CpuTimer2 are reserved for DSP BIOS & other RTOS. Comment out CpuTimer1 and CpuTimer2 if using DSP BIOS or other RTOS
extern volatile struct CPUTIMER_REGS CpuTimer1Regs;
extern volatile struct CPUTIMER_REGS CpuTimer2Regs;
extern struct CPUTIMER_VARS CpuTimer1;
extern struct CPUTIMER_VARS CpuTimer2;
//---------------------------------------------------------------------------
// Usefull Timer Operations:
//
// Start Timer:
// Stop Timer:
// Reload Timer With period Value:
// Read 32-Bit Timer Value:
// Read 32-Bit Period Value:
// CpuTimer 1 and CpuTimer2 are reserved for DSP BIOS & other RTOS
// Do not use these two timers if you ever plan on integrating
// DSP-BIOS or another realtime OS.
//
// For this reason, comment out the code to manipulate these two timers
// if using DSP-BIOS or another realtime OS.
// Start Timer:
// Stop Timer:
// Reload Timer With period Value:
// Read 32-Bit Timer Value:
// Read 32-Bit Period Value:
//===========================================================================
// End of file.
//===========================================================================
//###########################################################################
//
// FILE: DSP2833x_ECan.h
//
// TITLE: DSP2833x Device eCAN Register Definitions.
//
//###########################################################################
// $TI Release: 2833x/2823x Header Files and Peripheral Examples V133 $
// $Release Date: June 8, 2012 $
//###########################################################################
/* --------------------------------------------------- */
/* eCAN Control & Status Registers */
/* ----------------------------------------------------*/
/* eCAN Mailbox enable register (CANME) bit definitions */
struct CANME_BITS { // bit description
uint16_t ME0:1; // 0 Enable Mailbox 0
uint16_t ME1:1; // 1 Enable Mailbox 1
uint16_t ME2:1; // 2 Enable Mailbox 2
uint16_t ME3:1; // 3 Enable Mailbox 3
uint16_t ME4:1; // 4 Enable Mailbox 4
uint16_t ME5:1; // 5 Enable Mailbox 5
uint16_t ME6:1; // 6 Enable Mailbox 6
uint16_t ME7:1; // 7 Enable Mailbox 7
uint16_t ME8:1; // 8 Enable Mailbox 8
uint16_t ME9:1; // 9 Enable Mailbox 9
uint16_t ME10:1; // 10 Enable Mailbox 10
uint16_t ME11:1; // 11 Enable Mailbox 11
uint16_t ME12:1; // 12 Enable Mailbox 12
uint16_t ME13:1; // 13 Enable Mailbox 13
uint16_t ME14:1; // 14 Enable Mailbox 14
uint16_t ME15:1; // 15 Enable Mailbox 15
uint16_t ME16:1; // 16 Enable Mailbox 16
uint16_t ME17:1; // 17 Enable Mailbox 17
uint16_t ME18:1; // 18 Enable Mailbox 18
uint16_t ME19:1; // 19 Enable Mailbox 19
uint16_t ME20:1; // 20 Enable Mailbox 20
uint16_t ME21:1; // 21 Enable Mailbox 21
uint16_t ME22:1; // 22 Enable Mailbox 22
uint16_t ME23:1; // 23 Enable Mailbox 23
uint16_t ME24:1; // 24 Enable Mailbox 24
uint16_t ME25:1; // 25 Enable Mailbox 25
uint16_t ME26:1; // 26 Enable Mailbox 26
uint16_t ME27:1; // 27 Enable Mailbox 27
uint16_t ME28:1; // 28 Enable Mailbox 28
uint16_t ME29:1; // 29 Enable Mailbox 29
uint16_t ME30:1; // 30 Enable Mailbox 30
uint16_t ME31:1; // 31 Enable Mailbox 31
};
/* Allow access to the bit fields or entire register */
union CANME_REG {
uint32_t all;
struct CANME_BITS bit;
};
/* eCAN Mailbox direction register (CANMD) bit definitions */
struct CANMD_BITS { // bit description
uint16_t MD0:1; // 0 0 -> Tx 1 -> Rx
uint16_t MD1:1; // 1 0 -> Tx 1 -> Rx
uint16_t MD2:1; // 2 0 -> Tx 1 -> Rx
uint16_t MD3:1; // 3 0 -> Tx 1 -> Rx
uint16_t MD4:1; // 4 0 -> Tx 1 -> Rx
uint16_t MD5:1; // 5 0 -> Tx 1 -> Rx
uint16_t MD6:1; // 6 0 -> Tx 1 -> Rx
uint16_t MD7:1; // 7 0 -> Tx 1 -> Rx
uint16_t MD8:1; // 8 0 -> Tx 1 -> Rx
uint16_t MD9:1; // 9 0 -> Tx 1 -> Rx
uint16_t MD10:1; // 10 0 -> Tx 1 -> Rx
uint16_t MD11:1; // 11 0 -> Tx 1 -> Rx
uint16_t MD12:1; // 12 0 -> Tx 1 -> Rx
uint16_t MD13:1; // 13 0 -> Tx 1 -> Rx
uint16_t MD14:1; // 14 0 -> Tx 1 -> Rx
uint16_t MD15:1; // 15 0 -> Tx 1 -> Rx
uint16_t MD16:1; // 16 0 -> Tx 1 -> Rx
uint16_t MD17:1; // 17 0 -> Tx 1 -> Rx
uint16_t MD18:1; // 18 0 -> Tx 1 -> Rx
uint16_t MD19:1; // 19 0 -> Tx 1 -> Rx
uint16_t MD20:1; // 20 0 -> Tx 1 -> Rx
uint16_t MD21:1; // 21 0 -> Tx 1 -> Rx
uint16_t MD22:1; // 22 0 -> Tx 1 -> Rx
uint16_t MD23:1; // 23 0 -> Tx 1 -> Rx
uint16_t MD24:1; // 24 0 -> Tx 1 -> Rx
uint16_t MD25:1; // 25 0 -> Tx 1 -> Rx
uint16_t MD26:1; // 26 0 -> Tx 1 -> Rx
uint16_t MD27:1; // 27 0 -> Tx 1 -> Rx
uint16_t MD28:1; // 28 0 -> Tx 1 -> Rx
uint16_t MD29:1; // 29 0 -> Tx 1 -> Rx
uint16_t MD30:1; // 30 0 -> Tx 1 -> Rx
uint16_t MD31:1; // 31 0 -> Tx 1 -> Rx
};
/* Allow access to the bit fields or entire register */
union CANMD_REG {
uint32_t all;
struct CANMD_BITS bit;
};
/* eCAN Transmit Request Set register (CANTRS) bit definitions */
struct CANTRS_BITS { // bit description
uint16_t TRS0:1; // 0 TRS for Mailbox 0
uint16_t TRS1:1; // 1 TRS for Mailbox 1
uint16_t TRS2:1; // 2 TRS for Mailbox 2
uint16_t TRS3:1; // 3 TRS for Mailbox 3
uint16_t TRS4:1; // 4 TRS for Mailbox 4
uint16_t TRS5:1; // 5 TRS for Mailbox 5
uint16_t TRS6:1; // 6 TRS for Mailbox 6
uint16_t TRS7:1; // 7 TRS for Mailbox 7
uint16_t TRS8:1; // 8 TRS for Mailbox 8
uint16_t TRS9:1; // 9 TRS for Mailbox 9
uint16_t TRS10:1; // 10 TRS for Mailbox 10
uint16_t TRS11:1; // 11 TRS for Mailbox 11
uint16_t TRS12:1; // 12 TRS for Mailbox 12
uint16_t TRS13:1; // 13 TRS for Mailbox 13
uint16_t TRS14:1; // 14 TRS for Mailbox 14
uint16_t TRS15:1; // 15 TRS for Mailbox 15
uint16_t TRS16:1; // 16 TRS for Mailbox 16
uint16_t TRS17:1; // 17 TRS for Mailbox 17
uint16_t TRS18:1; // 18 TRS for Mailbox 18
uint16_t TRS19:1; // 19 TRS for Mailbox 19
uint16_t TRS20:1; // 20 TRS for Mailbox 20
uint16_t TRS21:1; // 21 TRS for Mailbox 21
uint16_t TRS22:1; // 22 TRS for Mailbox 22
uint16_t TRS23:1; // 23 TRS for Mailbox 23
uint16_t TRS24:1; // 24 TRS for Mailbox 24
uint16_t TRS25:1; // 25 TRS for Mailbox 25
uint16_t TRS26:1; // 26 TRS for Mailbox 26
uint16_t TRS27:1; // 27 TRS for Mailbox 27
uint16_t TRS28:1; // 28 TRS for Mailbox 28
uint16_t TRS29:1; // 29 TRS for Mailbox 29
uint16_t TRS30:1; // 30 TRS for Mailbox 30
uint16_t TRS31:1; // 31 TRS for Mailbox 31
};
/* Allow access to the bit fields or entire register */
union CANTRS_REG {
uint32_t all;
struct CANTRS_BITS bit;
};
/* eCAN Transmit Request Reset register (CANTRR) bit definitions */
struct CANTRR_BITS { // bit description
uint16_t TRR0:1; // 0 TRR for Mailbox 0
uint16_t TRR1:1; // 1 TRR for Mailbox 1
uint16_t TRR2:1; // 2 TRR for Mailbox 2
uint16_t TRR3:1; // 3 TRR for Mailbox 3
uint16_t TRR4:1; // 4 TRR for Mailbox 4
uint16_t TRR5:1; // 5 TRR for Mailbox 5
uint16_t TRR6:1; // 6 TRR for Mailbox 6
uint16_t TRR7:1; // 7 TRR for Mailbox 7
uint16_t TRR8:1; // 8 TRR for Mailbox 8
uint16_t TRR9:1; // 9 TRR for Mailbox 9
uint16_t TRR10:1; // 10 TRR for Mailbox 10
uint16_t TRR11:1; // 11 TRR for Mailbox 11
uint16_t TRR12:1; // 12 TRR for Mailbox 12
uint16_t TRR13:1; // 13 TRR for Mailbox 13
uint16_t TRR14:1; // 14 TRR for Mailbox 14
uint16_t TRR15:1; // 15 TRR for Mailbox 15
uint16_t TRR16:1; // 16 TRR for Mailbox 16
uint16_t TRR17:1; // 17 TRR for Mailbox 17
uint16_t TRR18:1; // 18 TRR for Mailbox 18
uint16_t TRR19:1; // 19 TRR for Mailbox 19
uint16_t TRR20:1; // 20 TRR for Mailbox 20
uint16_t TRR21:1; // 21 TRR for Mailbox 21
uint16_t TRR22:1; // 22 TRR for Mailbox 22
uint16_t TRR23:1; // 23 TRR for Mailbox 23
uint16_t TRR24:1; // 24 TRR for Mailbox 24
uint16_t TRR25:1; // 25 TRR for Mailbox 25
uint16_t TRR26:1; // 26 TRR for Mailbox 26
uint16_t TRR27:1; // 27 TRR for Mailbox 27
uint16_t TRR28:1; // 28 TRR for Mailbox 28
uint16_t TRR29:1; // 29 TRR for Mailbox 29
uint16_t TRR30:1; // 30 TRR for Mailbox 30
uint16_t TRR31:1; // 31 TRR for Mailbox 31
};
/* Allow access to the bit fields or entire register */
union CANTRR_REG {
uint32_t all;
struct CANTRR_BITS bit;
};
/* eCAN Transmit Acknowledge register (CANTA) bit definitions */
struct CANTA_BITS { // bit description
uint16_t TA0:1; // 0 TA for Mailbox 0
uint16_t TA1:1; // 1 TA for Mailbox 1
uint16_t TA2:1; // 2 TA for Mailbox 2
uint16_t TA3:1; // 3 TA for Mailbox 3
uint16_t TA4:1; // 4 TA for Mailbox 4
uint16_t TA5:1; // 5 TA for Mailbox 5
uint16_t TA6:1; // 6 TA for Mailbox 6
uint16_t TA7:1; // 7 TA for Mailbox 7
uint16_t TA8:1; // 8 TA for Mailbox 8
uint16_t TA9:1; // 9 TA for Mailbox 9
uint16_t TA10:1; // 10 TA for Mailbox 10
uint16_t TA11:1; // 11 TA for Mailbox 11
uint16_t TA12:1; // 12 TA for Mailbox 12
uint16_t TA13:1; // 13 TA for Mailbox 13
uint16_t TA14:1; // 14 TA for Mailbox 14
uint16_t TA15:1; // 15 TA for Mailbox 15
uint16_t TA16:1; // 16 TA for Mailbox 16
uint16_t TA17:1; // 17 TA for Mailbox 17
uint16_t TA18:1; // 18 TA for Mailbox 18
uint16_t TA19:1; // 19 TA for Mailbox 19
uint16_t TA20:1; // 20 TA for Mailbox 20
uint16_t TA21:1; // 21 TA for Mailbox 21
uint16_t TA22:1; // 22 TA for Mailbox 22
uint16_t TA23:1; // 23 TA for Mailbox 23
uint16_t TA24:1; // 24 TA for Mailbox 24
uint16_t TA25:1; // 25 TA for Mailbox 25
uint16_t TA26:1; // 26 TA for Mailbox 26
uint16_t TA27:1; // 27 TA for Mailbox 27
uint16_t TA28:1; // 28 TA for Mailbox 28
uint16_t TA29:1; // 29 TA for Mailbox 29
uint16_t TA30:1; // 30 TA for Mailbox 30
uint16_t TA31:1; // 31 TA for Mailbox 31
};
/* Allow access to the bit fields or entire register */
union CANTA_REG {
uint32_t all;
struct CANTA_BITS bit;
};
/* eCAN Transmit Abort Acknowledge register (CANAA) bit definitions */
struct CANAA_BITS { // bit description
uint16_t AA0:1; // 0 AA for Mailbox 0
uint16_t AA1:1; // 1 AA for Mailbox 1
uint16_t AA2:1; // 2 AA for Mailbox 2
uint16_t AA3:1; // 3 AA for Mailbox 3
uint16_t AA4:1; // 4 AA for Mailbox 4
uint16_t AA5:1; // 5 AA for Mailbox 5
uint16_t AA6:1; // 6 AA for Mailbox 6
uint16_t AA7:1; // 7 AA for Mailbox 7
uint16_t AA8:1; // 8 AA for Mailbox 8
uint16_t AA9:1; // 9 AA for Mailbox 9
uint16_t AA10:1; // 10 AA for Mailbox 10
uint16_t AA11:1; // 11 AA for Mailbox 11
uint16_t AA12:1; // 12 AA for Mailbox 12
uint16_t AA13:1; // 13 AA for Mailbox 13
uint16_t AA14:1; // 14 AA for Mailbox 14
uint16_t AA15:1; // 15 AA for Mailbox 15
uint16_t AA16:1; // 16 AA for Mailbox 16
uint16_t AA17:1; // 17 AA for Mailbox 17
uint16_t AA18:1; // 18 AA for Mailbox 18
uint16_t AA19:1; // 19 AA for Mailbox 19
uint16_t AA20:1; // 20 AA for Mailbox 20
uint16_t AA21:1; // 21 AA for Mailbox 21
uint16_t AA22:1; // 22 AA for Mailbox 22
uint16_t AA23:1; // 23 AA for Mailbox 23
uint16_t AA24:1; // 24 AA for Mailbox 24
uint16_t AA25:1; // 25 AA for Mailbox 25
uint16_t AA26:1; // 26 AA for Mailbox 26
uint16_t AA27:1; // 27 AA for Mailbox 27
uint16_t AA28:1; // 28 AA for Mailbox 28
uint16_t AA29:1; // 29 AA for Mailbox 29
uint16_t AA30:1; // 30 AA for Mailbox 30
uint16_t AA31:1; // 31 AA for Mailbox 31
};
/* Allow access to the bit fields or entire register */
union CANAA_REG {
uint32_t all;
struct CANAA_BITS bit;
};
/* eCAN Received Message Pending register (CANRMP) bit definitions */
struct CANRMP_BITS { // bit description
uint16_t RMP0:1; // 0 RMP for Mailbox 0
uint16_t RMP1:1; // 1 RMP for Mailbox 1
uint16_t RMP2:1; // 2 RMP for Mailbox 2
uint16_t RMP3:1; // 3 RMP for Mailbox 3
uint16_t RMP4:1; // 4 RMP for Mailbox 4
uint16_t RMP5:1; // 5 RMP for Mailbox 5
uint16_t RMP6:1; // 6 RMP for Mailbox 6
uint16_t RMP7:1; // 7 RMP for Mailbox 7
uint16_t RMP8:1; // 8 RMP for Mailbox 8
uint16_t RMP9:1; // 9 RMP for Mailbox 9
uint16_t RMP10:1; // 10 RMP for Mailbox 10
uint16_t RMP11:1; // 11 RMP for Mailbox 11
uint16_t RMP12:1; // 12 RMP for Mailbox 12
uint16_t RMP13:1; // 13 RMP for Mailbox 13
uint16_t RMP14:1; // 14 RMP for Mailbox 14
uint16_t RMP15:1; // 15 RMP for Mailbox 15
uint16_t RMP16:1; // 16 RMP for Mailbox 16
uint16_t RMP17:1; // 17 RMP for Mailbox 17
uint16_t RMP18:1; // 18 RMP for Mailbox 18
uint16_t RMP19:1; // 19 RMP for Mailbox 19
uint16_t RMP20:1; // 20 RMP for Mailbox 20
uint16_t RMP21:1; // 21 RMP for Mailbox 21
uint16_t RMP22:1; // 22 RMP for Mailbox 22
uint16_t RMP23:1; // 23 RMP for Mailbox 23
uint16_t RMP24:1; // 24 RMP for Mailbox 24
uint16_t RMP25:1; // 25 RMP for Mailbox 25
uint16_t RMP26:1; // 26 RMP for Mailbox 26
uint16_t RMP27:1; // 27 RMP for Mailbox 27
uint16_t RMP28:1; // 28 RMP for Mailbox 28
uint16_t RMP29:1; // 29 RMP for Mailbox 29
uint16_t RMP30:1; // 30 RMP for Mailbox 30
uint16_t RMP31:1; // 31 RMP for Mailbox 31
};
/* Allow access to the bit fields or entire register */
union CANRMP_REG {
uint32_t all;
struct CANRMP_BITS bit;
};
/* eCAN Received Message Lost register (CANRML) bit definitions */
struct CANRML_BITS { // bit description
uint16_t RML0:1; // 0 RML for Mailbox 0
uint16_t RML1:1; // 1 RML for Mailbox 1
uint16_t RML2:1; // 2 RML for Mailbox 2
uint16_t RML3:1; // 3 RML for Mailbox 3
uint16_t RML4:1; // 4 RML for Mailbox 4
uint16_t RML5:1; // 5 RML for Mailbox 5
uint16_t RML6:1; // 6 RML for Mailbox 6
uint16_t RML7:1; // 7 RML for Mailbox 7
uint16_t RML8:1; // 8 RML for Mailbox 8
uint16_t RML9:1; // 9 RML for Mailbox 9
uint16_t RML10:1; // 10 RML for Mailbox 10
uint16_t RML11:1; // 11 RML for Mailbox 11
uint16_t RML12:1; // 12 RML for Mailbox 12
uint16_t RML13:1; // 13 RML for Mailbox 13
uint16_t RML14:1; // 14 RML for Mailbox 14
uint16_t RML15:1; // 15 RML for Mailbox 15
uint16_t RML16:1; // 16 RML for Mailbox 16
uint16_t RML17:1; // 17 RML for Mailbox 17
uint16_t RML18:1; // 18 RML for Mailbox 18
uint16_t RML19:1; // 19 RML for Mailbox 19
uint16_t RML20:1; // 20 RML for Mailbox 20
uint16_t RML21:1; // 21 RML for Mailbox 21
uint16_t RML22:1; // 22 RML for Mailbox 22
uint16_t RML23:1; // 23 RML for Mailbox 23
uint16_t RML24:1; // 24 RML for Mailbox 24
uint16_t RML25:1; // 25 RML for Mailbox 25
uint16_t RML26:1; // 26 RML for Mailbox 26
uint16_t RML27:1; // 27 RML for Mailbox 27
uint16_t RML28:1; // 28 RML for Mailbox 28
uint16_t RML29:1; // 29 RML for Mailbox 29
uint16_t RML30:1; // 30 RML for Mailbox 30
uint16_t RML31:1; // 31 RML for Mailbox 31
};
/* Allow access to the bit fields or entire register */
union CANRML_REG {
uint32_t all;
struct CANRML_BITS bit;
};
/* eCAN Remote Frame Pending register (CANRFP) bit definitions */
struct CANRFP_BITS { // bit description
uint16_t RFP0:1; // 0 RFP for Mailbox 0
uint16_t RFP1:1; // 1 RFP for Mailbox 1
uint16_t RFP2:1; // 2 RFP for Mailbox 2
uint16_t RFP3:1; // 3 RFP for Mailbox 3
uint16_t RFP4:1; // 4 RFP for Mailbox 4
uint16_t RFP5:1; // 5 RFP for Mailbox 5
uint16_t RFP6:1; // 6 RFP for Mailbox 6
uint16_t RFP7:1; // 7 RFP for Mailbox 7
uint16_t RFP8:1; // 8 RFP for Mailbox 8
uint16_t RFP9:1; // 9 RFP for Mailbox 9
uint16_t RFP10:1; // 10 RFP for Mailbox 10
uint16_t RFP11:1; // 11 RFP for Mailbox 11
uint16_t RFP12:1; // 12 RFP for Mailbox 12
uint16_t RFP13:1; // 13 RFP for Mailbox 13
uint16_t RFP14:1; // 14 RFP for Mailbox 14
uint16_t RFP15:1; // 15 RFP for Mailbox 15
uint16_t RFP16:1; // 16 RFP for Mailbox 16
uint16_t RFP17:1; // 17 RFP for Mailbox 17
uint16_t RFP18:1; // 18 RFP for Mailbox 18
uint16_t RFP19:1; // 19 RFP for Mailbox 19
uint16_t RFP20:1; // 20 RFP for Mailbox 20
uint16_t RFP21:1; // 21 RFP for Mailbox 21
uint16_t RFP22:1; // 22 RFP for Mailbox 22
uint16_t RFP23:1; // 23 RFP for Mailbox 23
uint16_t RFP24:1; // 24 RFP for Mailbox 24
uint16_t RFP25:1; // 25 RFP for Mailbox 25
uint16_t RFP26:1; // 26 RFP for Mailbox 26
uint16_t RFP27:1; // 27 RFP for Mailbox 27
uint16_t RFP28:1; // 28 RFP for Mailbox 28
uint16_t RFP29:1; // 29 RFP for Mailbox 29
uint16_t RFP30:1; // 30 RFP for Mailbox 30
uint16_t RFP31:1; // 31 RFP for Mailbox 31
};
/* Allow access to the bit fields or entire register */
union CANRFP_REG {
uint32_t all;
struct CANRFP_BITS bit;
};
/* eCAN Global Acceptance Mask register (CANGAM) bit definitions */
struct CANGAM_BITS { // bits description
uint16_t GAM150:16; // 15:0 Global acceptance mask bits 0-15
uint16_t GAM2816:13; // 28:16 Global acceptance mask bits 16-28
uint16_t rsvd:2; // 30:29 reserved
uint16_t AMI:1; // 31 AMI bit
};
/* Allow access to the bit fields or entire register */
union CANGAM_REG {
uint32_t all;
struct CANGAM_BITS bit;
};
/* eCAN Master Control register (CANMC) bit definitions */
struct CANMC_BITS { // bits description
uint16_t MBNR:5; // 4:0 MBX # for CDR bit
uint16_t SRES:1; // 5 Soft reset
uint16_t STM:1; // 6 Self-test mode
uint16_t ABO:1; // 7 Auto bus-on
uint16_t CDR:1; // 8 Change data request
uint16_t WUBA:1; // 9 Wake-up on bus activity
uint16_t DBO:1; // 10 Data-byte order
uint16_t PDR:1; // 11 Power-down mode request
uint16_t CCR:1; // 12 Change configuration request
uint16_t SCB:1; // 13 SCC compatibility bit
uint16_t TCC:1; // 14 TSC MSB clear bit
uint16_t MBCC:1; // 15 TSC clear bit thru mailbox 16
uint16_t SUSP:1; // 16 SUSPEND free/soft bit
uint16_t rsvd:15; // 31:17 reserved
};
/* Allow access to the bit fields or entire register */
union CANMC_REG {
uint32_t all;
struct CANMC_BITS bit;
};
/* eCAN Bit -timing configuration register (CANBTC) bit definitions */
struct CANBTC_BITS { // bits description
uint16_t TSEG2REG:3; // 2:0 TSEG2 register value
uint16_t TSEG1REG:4; // 6:3 TSEG1 register value
uint16_t SAM:1; // 7 Sample-point setting
uint16_t SJWREG:2; // 9:8 Synchroniztion Jump Width register value
uint16_t rsvd1:6; // 15:10 reserved
uint16_t BRPREG:8; // 23:16 Baudrate prescaler register value
uint16_t rsvd2:8; // 31:24 reserved
};
/* Allow access to the bit fields or entire register */
union CANBTC_REG {
uint32_t all;
struct CANBTC_BITS bit;
};
/* eCAN Error & Status register (CANES) bit definitions */
struct CANES_BITS { // bits description
uint16_t TM:1; // 0 Transmit Mode
uint16_t RM:1; // 1 Receive Mode
uint16_t rsvd1:1; // 2 reserved
uint16_t PDA:1; // 3 Power-down acknowledge
uint16_t CCE:1; // 4 Change Configuration Enable
uint16_t SMA:1; // 5 Suspend Mode Acknowledge
uint16_t rsvd2:10; // 15:6 reserved
uint16_t EW:1; // 16 Warning status
uint16_t EP:1; // 17 Error Passive status
uint16_t BO:1; // 18 Bus-off status
uint16_t ACKE:1; // 19 Acknowledge error
uint16_t SE:1; // 20 Stuff error
uint16_t CRCE:1; // 21 CRC error
uint16_t SA1:1; // 22 Stuck at Dominant error
uint16_t BE:1; // 23 Bit error
uint16_t FE:1; // 24 Framing error
uint16_t rsvd3:7; // 31:25 reserved
};
/* Allow access to the bit fields or entire register */
union CANES_REG {
uint32_t all;
struct CANES_BITS bit;
};
/* eCAN Transmit Error Counter register (CANTEC) bit definitions */
struct CANTEC_BITS { // bits description
uint16_t TEC:8; // 7:0 TEC
uint16_t rsvd1:8; // 15:8 reserved
uint16_t rsvd2:16; // 31:16 reserved
};
/* Allow access to the bit fields or entire register */
union CANTEC_REG {
uint32_t all;
struct CANTEC_BITS bit;
};
/* eCAN Receive Error Counter register (CANREC) bit definitions */
struct CANREC_BITS { // bits description
uint16_t REC:8; // 7:0 REC
uint16_t rsvd1:8; // 15:8 reserved
uint16_t rsvd2:16; // 31:16 reserved
};
/* Allow access to the bit fields or entire register */
union CANREC_REG {
uint32_t all;
struct CANREC_BITS bit;
};
/* eCAN Global Interrupt Flag 0 (CANGIF0) bit definitions */
struct CANGIF0_BITS { // bits description
uint16_t MIV0:5; // 4:0 Mailbox Interrupt Vector
uint16_t rsvd1:3; // 7:5 reserved
uint16_t WLIF0:1; // 8 Warning level interrupt flag
uint16_t EPIF0:1; // 9 Error-passive interrupt flag
uint16_t BOIF0:1; // 10 Bus-off interrupt flag
uint16_t RMLIF0:1; // 11 Received message lost interrupt flag
uint16_t WUIF0:1; // 12 Wakeup interrupt flag
uint16_t WDIF0:1; // 13 Write denied interrupt flag
uint16_t AAIF0:1; // 14 Abort Ack interrupt flag
uint16_t GMIF0:1; // 15 Global MBX interrupt flag
uint16_t TCOF0:1; // 16 TSC Overflow flag
uint16_t MTOF0:1; // 17 Mailbox Timeout flag
uint16_t rsvd2:14; // 31:18 reserved
};
/* Allow access to the bit fields or entire register */
union CANGIF0_REG {
uint32_t all;
struct CANGIF0_BITS bit;
};
/* eCAN Global Interrupt Mask register (CANGIM) bit definitions */
struct CANGIM_BITS { // bits description
uint16_t I0EN:1; // 0 Interrupt 0 enable
uint16_t I1EN:1; // 1 Interrupt 1 enable
uint16_t GIL:1; // 2 Global Interrupt Level
uint16_t rsvd1:5; // 7:3 reserved
uint16_t WLIM:1; // 8 Warning level interrupt mask
uint16_t EPIM:1; // 9 Error-passive interrupt mask
uint16_t BOIM:1; // 10 Bus-off interrupt mask
uint16_t RMLIM:1; // 11 Received message lost interrupt mask
uint16_t WUIM:1; // 12 Wakeup interrupt mask
uint16_t WDIM:1; // 13 Write denied interrupt mask
uint16_t AAIM:1; // 14 Abort Ack interrupt mask
uint16_t rsvd2:1; // 15 reserved
uint16_t TCOM:1; // 16 TSC overflow interrupt mask
uint16_t MTOM:1; // 17 MBX Timeout interrupt mask
uint16_t rsvd3:14; // 31:18 reserved
};
/* Allow access to the bit fields or entire register */
union CANGIM_REG {
uint32_t all;
struct CANGIM_BITS bit;
};
/* eCAN Global Interrupt Flag 1 (eCANGIF1) bit definitions */
struct CANGIF1_BITS { // bits description
uint16_t MIV1:5; // 4:0 Mailbox Interrupt Vector
uint16_t rsvd1:3; // 7:5 reserved
uint16_t WLIF1:1; // 8 Warning level interrupt flag
uint16_t EPIF1:1; // 9 Error-passive interrupt flag
uint16_t BOIF1:1; // 10 Bus-off interrupt flag
uint16_t RMLIF1:1; // 11 Received message lost interrupt flag
uint16_t WUIF1:1; // 12 Wakeup interrupt flag
uint16_t WDIF1:1; // 13 Write denied interrupt flag
uint16_t AAIF1:1; // 14 Abort Ack interrupt flag
uint16_t GMIF1:1; // 15 Global MBX interrupt flag
uint16_t TCOF1:1; // 16 TSC Overflow flag
uint16_t MTOF1:1; // 17 Mailbox Timeout flag
uint16_t rsvd2:14; // 31:18 reserved
};
/* Allow access to the bit fields or entire register */
union CANGIF1_REG {
uint32_t all;
struct CANGIF1_BITS bit;
};
/* eCAN Mailbox Interrupt Mask register (CANMIM) bit definitions */
struct CANMIM_BITS { // bit description
uint16_t MIM0:1; // 0 MIM for Mailbox 0
uint16_t MIM1:1; // 1 MIM for Mailbox 1
uint16_t MIM2:1; // 2 MIM for Mailbox 2
uint16_t MIM3:1; // 3 MIM for Mailbox 3
uint16_t MIM4:1; // 4 MIM for Mailbox 4
uint16_t MIM5:1; // 5 MIM for Mailbox 5
uint16_t MIM6:1; // 6 MIM for Mailbox 6
uint16_t MIM7:1; // 7 MIM for Mailbox 7
uint16_t MIM8:1; // 8 MIM for Mailbox 8
uint16_t MIM9:1; // 9 MIM for Mailbox 9
uint16_t MIM10:1; // 10 MIM for Mailbox 10
uint16_t MIM11:1; // 11 MIM for Mailbox 11
uint16_t MIM12:1; // 12 MIM for Mailbox 12
uint16_t MIM13:1; // 13 MIM for Mailbox 13
uint16_t MIM14:1; // 14 MIM for Mailbox 14
uint16_t MIM15:1; // 15 MIM for Mailbox 15
uint16_t MIM16:1; // 16 MIM for Mailbox 16
uint16_t MIM17:1; // 17 MIM for Mailbox 17
uint16_t MIM18:1; // 18 MIM for Mailbox 18
uint16_t MIM19:1; // 19 MIM for Mailbox 19
uint16_t MIM20:1; // 20 MIM for Mailbox 20
uint16_t MIM21:1; // 21 MIM for Mailbox 21
uint16_t MIM22:1; // 22 MIM for Mailbox 22
uint16_t MIM23:1; // 23 MIM for Mailbox 23
uint16_t MIM24:1; // 24 MIM for Mailbox 24
uint16_t MIM25:1; // 25 MIM for Mailbox 25
uint16_t MIM26:1; // 26 MIM for Mailbox 26
uint16_t MIM27:1; // 27 MIM for Mailbox 27
uint16_t MIM28:1; // 28 MIM for Mailbox 28
uint16_t MIM29:1; // 29 MIM for Mailbox 29
uint16_t MIM30:1; // 30 MIM for Mailbox 30
uint16_t MIM31:1; // 31 MIM for Mailbox 31
};
/* Allow access to the bit fields or entire register */
union CANMIM_REG {
uint32_t all;
struct CANMIM_BITS bit;
};
/* eCAN Mailbox Interrupt Level register (CANMIL) bit definitions */
struct CANMIL_BITS { // bit description
uint16_t MIL0:1; // 0 0 -> Int 9.5 1 -> Int 9.6
uint16_t MIL1:1; // 1 0 -> Int 9.5 1 -> Int 9.6
uint16_t MIL2:1; // 2 0 -> Int 9.5 1 -> Int 9.6
uint16_t MIL3:1; // 3 0 -> Int 9.5 1 -> Int 9.6
uint16_t MIL4:1; // 4 0 -> Int 9.5 1 -> Int 9.6
uint16_t MIL5:1; // 5 0 -> Int 9.5 1 -> Int 9.6
uint16_t MIL6:1; // 6 0 -> Int 9.5 1 -> Int 9.6
uint16_t MIL7:1; // 7 0 -> Int 9.5 1 -> Int 9.6
uint16_t MIL8:1; // 8 0 -> Int 9.5 1 -> Int 9.6
uint16_t MIL9:1; // 9 0 -> Int 9.5 1 -> Int 9.6
uint16_t MIL10:1; // 10 0 -> Int 9.5 1 -> Int 9.6
uint16_t MIL11:1; // 11 0 -> Int 9.5 1 -> Int 9.6
uint16_t MIL12:1; // 12 0 -> Int 9.5 1 -> Int 9.6
uint16_t MIL13:1; // 13 0 -> Int 9.5 1 -> Int 9.6
uint16_t MIL14:1; // 14 0 -> Int 9.5 1 -> Int 9.6
uint16_t MIL15:1; // 15 0 -> Int 9.5 1 -> Int 9.6
uint16_t MIL16:1; // 16 0 -> Int 9.5 1 -> Int 9.6
uint16_t MIL17:1; // 17 0 -> Int 9.5 1 -> Int 9.6
uint16_t MIL18:1; // 18 0 -> Int 9.5 1 -> Int 9.6
uint16_t MIL19:1; // 19 0 -> Int 9.5 1 -> Int 9.6
uint16_t MIL20:1; // 20 0 -> Int 9.5 1 -> Int 9.6
uint16_t MIL21:1; // 21 0 -> Int 9.5 1 -> Int 9.6
uint16_t MIL22:1; // 22 0 -> Int 9.5 1 -> Int 9.6
uint16_t MIL23:1; // 23 0 -> Int 9.5 1 -> Int 9.6
uint16_t MIL24:1; // 24 0 -> Int 9.5 1 -> Int 9.6
uint16_t MIL25:1; // 25 0 -> Int 9.5 1 -> Int 9.6
uint16_t MIL26:1; // 26 0 -> Int 9.5 1 -> Int 9.6
uint16_t MIL27:1; // 27 0 -> Int 9.5 1 -> Int 9.6
uint16_t MIL28:1; // 28 0 -> Int 9.5 1 -> Int 9.6
uint16_t MIL29:1; // 29 0 -> Int 9.5 1 -> Int 9.6
uint16_t MIL30:1; // 30 0 -> Int 9.5 1 -> Int 9.6
uint16_t MIL31:1; // 31 0 -> Int 9.5 1 -> Int 9.6
};
/* Allow access to the bit fields or entire register */
union CANMIL_REG {
uint32_t all;
struct CANMIL_BITS bit;
};
/* eCAN Overwrite Protection Control register (CANOPC) bit definitions */
struct CANOPC_BITS { // bit description
uint16_t OPC0:1; // 0 OPC for Mailbox 0
uint16_t OPC1:1; // 1 OPC for Mailbox 1
uint16_t OPC2:1; // 2 OPC for Mailbox 2
uint16_t OPC3:1; // 3 OPC for Mailbox 3
uint16_t OPC4:1; // 4 OPC for Mailbox 4
uint16_t OPC5:1; // 5 OPC for Mailbox 5
uint16_t OPC6:1; // 6 OPC for Mailbox 6
uint16_t OPC7:1; // 7 OPC for Mailbox 7
uint16_t OPC8:1; // 8 OPC for Mailbox 8
uint16_t OPC9:1; // 9 OPC for Mailbox 9
uint16_t OPC10:1; // 10 OPC for Mailbox 10
uint16_t OPC11:1; // 11 OPC for Mailbox 11
uint16_t OPC12:1; // 12 OPC for Mailbox 12
uint16_t OPC13:1; // 13 OPC for Mailbox 13
uint16_t OPC14:1; // 14 OPC for Mailbox 14
uint16_t OPC15:1; // 15 OPC for Mailbox 15
uint16_t OPC16:1; // 16 OPC for Mailbox 16
uint16_t OPC17:1; // 17 OPC for Mailbox 17
uint16_t OPC18:1; // 18 OPC for Mailbox 18
uint16_t OPC19:1; // 19 OPC for Mailbox 19
uint16_t OPC20:1; // 20 OPC for Mailbox 20
uint16_t OPC21:1; // 21 OPC for Mailbox 21
uint16_t OPC22:1; // 22 OPC for Mailbox 22
uint16_t OPC23:1; // 23 OPC for Mailbox 23
uint16_t OPC24:1; // 24 OPC for Mailbox 24
uint16_t OPC25:1; // 25 OPC for Mailbox 25
uint16_t OPC26:1; // 26 OPC for Mailbox 26
uint16_t OPC27:1; // 27 OPC for Mailbox 27
uint16_t OPC28:1; // 28 OPC for Mailbox 28
uint16_t OPC29:1; // 29 OPC for Mailbox 29
uint16_t OPC30:1; // 30 OPC for Mailbox 30
uint16_t OPC31:1; // 31 OPC for Mailbox 31
};
/* Allow access to the bit fields or entire register */
union CANOPC_REG {
uint32_t all;
struct CANOPC_BITS bit;
};
/* eCAN TX I/O Control Register (CANTIOC) bit definitions */
struct CANTIOC_BITS { // bits description
uint16_t rsvd1:3; // 2:0 reserved
uint16_t TXFUNC:1; // 3 TXFUNC
uint16_t rsvd2:12; // 15:4 reserved
uint16_t rsvd3:16; // 31:16 reserved
};
/* Allow access to the bit fields or entire register */
union CANTIOC_REG {
uint32_t all;
struct CANTIOC_BITS bit;
};
/* eCAN RX I/O Control Register (CANRIOC) bit definitions */
struct CANRIOC_BITS { // bits description
uint16_t rsvd1:3; // 2:0 reserved
uint16_t RXFUNC:1; // 3 RXFUNC
uint16_t rsvd2:12; // 15:4 reserved
uint16_t rsvd3:16; // 31:16 reserved
};
/* Allow access to the bit fields or entire register */
union CANRIOC_REG {
uint32_t all;
struct CANRIOC_BITS bit;
};
/* eCAN Time-out Control register (CANTOC) bit definitions */
struct CANTOC_BITS { // bit description
uint16_t TOC0:1; // 0 TOC for Mailbox 0
uint16_t TOC1:1; // 1 TOC for Mailbox 1
uint16_t TOC2:1; // 2 TOC for Mailbox 2
uint16_t TOC3:1; // 3 TOC for Mailbox 3
uint16_t TOC4:1; // 4 TOC for Mailbox 4
uint16_t TOC5:1; // 5 TOC for Mailbox 5
uint16_t TOC6:1; // 6 TOC for Mailbox 6
uint16_t TOC7:1; // 7 TOC for Mailbox 7
uint16_t TOC8:1; // 8 TOC for Mailbox 8
uint16_t TOC9:1; // 9 TOC for Mailbox 9
uint16_t TOC10:1; // 10 TOC for Mailbox 10
uint16_t TOC11:1; // 11 TOC for Mailbox 11
uint16_t TOC12:1; // 12 TOC for Mailbox 12
uint16_t TOC13:1; // 13 TOC for Mailbox 13
uint16_t TOC14:1; // 14 TOC for Mailbox 14
uint16_t TOC15:1; // 15 TOC for Mailbox 15
uint16_t TOC16:1; // 16 TOC for Mailbox 16
uint16_t TOC17:1; // 17 TOC for Mailbox 17
uint16_t TOC18:1; // 18 TOC for Mailbox 18
uint16_t TOC19:1; // 19 TOC for Mailbox 19
uint16_t TOC20:1; // 20 TOC for Mailbox 20
uint16_t TOC21:1; // 21 TOC for Mailbox 21
uint16_t TOC22:1; // 22 TOC for Mailbox 22
uint16_t TOC23:1; // 23 TOC for Mailbox 23
uint16_t TOC24:1; // 24 TOC for Mailbox 24
uint16_t TOC25:1; // 25 TOC for Mailbox 25
uint16_t TOC26:1; // 26 TOC for Mailbox 26
uint16_t TOC27:1; // 27 TOC for Mailbox 27
uint16_t TOC28:1; // 28 TOC for Mailbox 28
uint16_t TOC29:1; // 29 TOC for Mailbox 29
uint16_t TOC30:1; // 30 TOC for Mailbox 30
uint16_t TOC31:1; // 31 TOC for Mailbox 31
};
/* Allow access to the bit fields or entire register */
union CANTOC_REG {
uint32_t all;
struct CANTOC_BITS bit;
};
/* eCAN Time-out Status register (CANTOS) bit definitions */
struct CANTOS_BITS { // bit description
uint16_t TOS0:1; // 0 TOS for Mailbox 0
uint16_t TOS1:1; // 1 TOS for Mailbox 1
uint16_t TOS2:1; // 2 TOS for Mailbox 2
uint16_t TOS3:1; // 3 TOS for Mailbox 3
uint16_t TOS4:1; // 4 TOS for Mailbox 4
uint16_t TOS5:1; // 5 TOS for Mailbox 5
uint16_t TOS6:1; // 6 TOS for Mailbox 6
uint16_t TOS7:1; // 7 TOS for Mailbox 7
uint16_t TOS8:1; // 8 TOS for Mailbox 8
uint16_t TOS9:1; // 9 TOS for Mailbox 9
uint16_t TOS10:1; // 10 TOS for Mailbox 10
uint16_t TOS11:1; // 11 TOS for Mailbox 11
uint16_t TOS12:1; // 12 TOS for Mailbox 12
uint16_t TOS13:1; // 13 TOS for Mailbox 13
uint16_t TOS14:1; // 14 TOS for Mailbox 14
uint16_t TOS15:1; // 15 TOS for Mailbox 15
uint16_t TOS16:1; // 16 TOS for Mailbox 16
uint16_t TOS17:1; // 17 TOS for Mailbox 17
uint16_t TOS18:1; // 18 TOS for Mailbox 18
uint16_t TOS19:1; // 19 TOS for Mailbox 19
uint16_t TOS20:1; // 20 TOS for Mailbox 20
uint16_t TOS21:1; // 21 TOS for Mailbox 21
uint16_t TOS22:1; // 22 TOS for Mailbox 22
uint16_t TOS23:1; // 23 TOS for Mailbox 23
uint16_t TOS24:1; // 24 TOS for Mailbox 24
uint16_t TOS25:1; // 25 TOS for Mailbox 25
uint16_t TOS26:1; // 26 TOS for Mailbox 26
uint16_t TOS27:1; // 27 TOS for Mailbox 27
uint16_t TOS28:1; // 28 TOS for Mailbox 28
uint16_t TOS29:1; // 29 TOS for Mailbox 29
uint16_t TOS30:1; // 30 TOS for Mailbox 30
uint16_t TOS31:1; // 31 TOS for Mailbox 31
};
/* Allow access to the bit fields or entire register */
union CANTOS_REG {
uint32_t all;
struct CANTOS_BITS bit;
};
/**************************************/
/* eCAN Control & Status register file */
/**************************************/
struct ECAN_REGS {
union CANME_REG CANME; // Mailbox Enable
union CANMD_REG CANMD; // Mailbox Direction
union CANTRS_REG CANTRS; // Transmit Request Set
union CANTRR_REG CANTRR; // Transmit Request Reset
union CANTA_REG CANTA; // Transmit Acknowledge
union CANAA_REG CANAA; // Abort Acknowledge
union CANRMP_REG CANRMP; // Received Message Pending
union CANRML_REG CANRML; // Received Message Lost
union CANRFP_REG CANRFP; // Remote Frame Pending
union CANGAM_REG CANGAM; // Global Acceptance Mask
union CANMC_REG CANMC; // Master Control
union CANBTC_REG CANBTC; // Bit Timing
union CANES_REG CANES; // Error Status
union CANTEC_REG CANTEC; // Transmit Error Counter
union CANREC_REG CANREC; // Receive Error Counter
union CANGIF0_REG CANGIF0; // Global Interrupt Flag 0
union CANGIM_REG CANGIM; // Global Interrupt Mask 0
union CANGIF1_REG CANGIF1; // Global Interrupt Flag 1
union CANMIM_REG CANMIM; // Mailbox Interrupt Mask
union CANMIL_REG CANMIL; // Mailbox Interrupt Level
union CANOPC_REG CANOPC; // Overwrite Protection Control
union CANTIOC_REG CANTIOC; // TX I/O Control
union CANRIOC_REG CANRIOC; // RX I/O Control
uint32_t CANTSC; // Time-stamp counter
union CANTOC_REG CANTOC; // Time-out Control
union CANTOS_REG CANTOS; // Time-out Status
};
/* --------------------------------------------------- */
/* eCAN Mailbox Registers */
/* ----------------------------------------------------*/
/* eCAN Message ID (MSGID) bit definitions */
struct CANMSGID_BITS { // bits description
uint16_t EXTMSGID_L:16; // 0:15
uint16_t EXTMSGID_H:2; // 16:17
uint16_t STDMSGID:11; // 18:28
uint16_t AAM:1; // 29
uint16_t AME:1; // 30
uint16_t IDE:1; // 31
};
/* Allow access to the bit fields or entire register */
union CANMSGID_REG {
uint32_t all;
struct CANMSGID_BITS bit;
};
/* eCAN Message Control Register (MSGCTRL) bit definitions */
struct CANMSGCTRL_BITS { // bits description
uint16_t DLC:4; // 0:3
uint16_t RTR:1; // 4
uint16_t rsvd1:3; // 7:5 reserved
uint16_t TPL:5; // 12:8
uint16_t rsvd2:3; // 15:13 reserved
uint16_t rsvd3:16; // 31:16 reserved
};
/* Allow access to the bit fields or entire register */
union CANMSGCTRL_REG {
uint32_t all;
struct CANMSGCTRL_BITS bit;
};
/* eCAN Message Data Register low (MDR_L) word definitions */
struct CANMDL_WORDS { // bits description
uint16_t LOW_WORD:16; // 0:15
uint16_t HI_WORD:16; // 31:16
};
/* eCAN Message Data Register low (MDR_L) byte definitions */
struct CANMDL_BYTES { // bits description
uint16_t BYTE3:8; // 31:24
uint16_t BYTE2:8; // 23:16
uint16_t BYTE1:8; // 15:8
uint16_t BYTE0:8; // 7:0
};
/* Allow access to the bit fields or entire register */
union CANMDL_REG {
uint32_t all;
struct CANMDL_WORDS word;
struct CANMDL_BYTES byte;
};
/* eCAN Message Data Register high (MDR_H) word definitions */
struct CANMDH_WORDS { // bits description
uint16_t LOW_WORD:16; // 0:15
uint16_t HI_WORD:16; // 31:16
};
/* eCAN Message Data Register low (MDR_H) byte definitions */
struct CANMDH_BYTES { // bits description
uint16_t BYTE7:8; // 63:56
uint16_t BYTE6:8; // 55:48
uint16_t BYTE5:8; // 47:40
uint16_t BYTE4:8; // 39:32
};
/* Allow access to the bit fields or entire register */
union CANMDH_REG {
uint32_t all;
struct CANMDH_WORDS word;
struct CANMDH_BYTES byte;
};
struct MBOX {
union CANMSGID_REG MSGID;
union CANMSGCTRL_REG MSGCTRL;
union CANMDL_REG MDL;
union CANMDH_REG MDH;
};
/**************************************/
/* eCAN Mailboxes */
/**************************************/
struct ECAN_MBOXES {
struct MBOX MBOX0;
struct MBOX MBOX1;
struct MBOX MBOX2;
struct MBOX MBOX3;
struct MBOX MBOX4;
struct MBOX MBOX5;
struct MBOX MBOX6;
struct MBOX MBOX7;
struct MBOX MBOX8;
struct MBOX MBOX9;
struct MBOX MBOX10;
struct MBOX MBOX11;
struct MBOX MBOX12;
struct MBOX MBOX13;
struct MBOX MBOX14;
struct MBOX MBOX15;
struct MBOX MBOX16;
struct MBOX MBOX17;
struct MBOX MBOX18;
struct MBOX MBOX19;
struct MBOX MBOX20;
struct MBOX MBOX21;
struct MBOX MBOX22;
struct MBOX MBOX23;
struct MBOX MBOX24;
struct MBOX MBOX25;
struct MBOX MBOX26;
struct MBOX MBOX27;
struct MBOX MBOX28;
struct MBOX MBOX29;
struct MBOX MBOX30;
struct MBOX MBOX31;
};
/* eCAN Local Acceptance Mask (LAM) bit definitions */
struct CANLAM_BITS { // bits description
uint16_t LAM_L:16; // 0:15
uint16_t LAM_H:13; // 16:28
uint16_t rsvd1:2; // 29:30 reserved
uint16_t LAMI:1; // 31
};
/* Allow access to the bit fields or entire register */
union CANLAM_REG {
uint32_t all;
struct CANLAM_BITS bit;
};
/**************************************/
/* eCAN Local Acceptance Masks */
/**************************************/
/* eCAN LAM File */
struct LAM_REGS {
union CANLAM_REG LAM0;
union CANLAM_REG LAM1;
union CANLAM_REG LAM2;
union CANLAM_REG LAM3;
union CANLAM_REG LAM4;
union CANLAM_REG LAM5;
union CANLAM_REG LAM6;
union CANLAM_REG LAM7;
union CANLAM_REG LAM8;
union CANLAM_REG LAM9;
union CANLAM_REG LAM10;
union CANLAM_REG LAM11;
union CANLAM_REG LAM12;
union CANLAM_REG LAM13;
union CANLAM_REG LAM14;
union CANLAM_REG LAM15;
union CANLAM_REG LAM16;
union CANLAM_REG LAM17;
union CANLAM_REG LAM18;
union CANLAM_REG LAM19;
union CANLAM_REG LAM20;
union CANLAM_REG LAM21;
union CANLAM_REG LAM22;
union CANLAM_REG LAM23;
union CANLAM_REG LAM24;
union CANLAM_REG LAM25;
union CANLAM_REG LAM26;
union CANLAM_REG LAM27;
union CANLAM_REG LAM28;
union CANLAM_REG LAM29;
union CANLAM_REG LAM30;
union CANLAM_REG LAM31;
};
/* Mailbox MOTS File */
struct MOTS_REGS {
uint32_t MOTS0;
uint32_t MOTS1;
uint32_t MOTS2;
uint32_t MOTS3;
uint32_t MOTS4;
uint32_t MOTS5;
uint32_t MOTS6;
uint32_t MOTS7;
uint32_t MOTS8;
uint32_t MOTS9;
uint32_t MOTS10;
uint32_t MOTS11;
uint32_t MOTS12;
uint32_t MOTS13;
uint32_t MOTS14;
uint32_t MOTS15;
uint32_t MOTS16;
uint32_t MOTS17;
uint32_t MOTS18;
uint32_t MOTS19;
uint32_t MOTS20;
uint32_t MOTS21;
uint32_t MOTS22;
uint32_t MOTS23;
uint32_t MOTS24;
uint32_t MOTS25;
uint32_t MOTS26;
uint32_t MOTS27;
uint32_t MOTS28;
uint32_t MOTS29;
uint32_t MOTS30;
uint32_t MOTS31;
};
/* Mailbox MOTO File */
struct MOTO_REGS {
uint32_t MOTO0;
uint32_t MOTO1;
uint32_t MOTO2;
uint32_t MOTO3;
uint32_t MOTO4;
uint32_t MOTO5;
uint32_t MOTO6;
uint32_t MOTO7;
uint32_t MOTO8;
uint32_t MOTO9;
uint32_t MOTO10;
uint32_t MOTO11;
uint32_t MOTO12;
uint32_t MOTO13;
uint32_t MOTO14;
uint32_t MOTO15;
uint32_t MOTO16;
uint32_t MOTO17;
uint32_t MOTO18;
uint32_t MOTO19;
uint32_t MOTO20;
uint32_t MOTO21;
uint32_t MOTO22;
uint32_t MOTO23;
uint32_t MOTO24;
uint32_t MOTO25;
uint32_t MOTO26;
uint32_t MOTO27;
uint32_t MOTO28;
uint32_t MOTO29;
uint32_t MOTO30;
uint32_t MOTO31;
};
//---------------------------------------------------------------------------
// eCAN External References & Function Declarations:
//
extern volatile struct ECAN_REGS ECanaRegs;
extern volatile struct ECAN_MBOXES ECanaMboxes;
extern volatile struct LAM_REGS ECanaLAMRegs;
extern volatile struct MOTO_REGS ECanaMOTORegs;
extern volatile struct MOTS_REGS ECanaMOTSRegs;
extern volatile struct ECAN_REGS ECanbRegs;
extern volatile struct ECAN_MBOXES ECanbMboxes;
extern volatile struct LAM_REGS ECanbLAMRegs;
extern volatile struct MOTO_REGS ECanbMOTORegs;
extern volatile struct MOTS_REGS ECanbMOTSRegs;
//===========================================================================
// End of file.
//===========================================================================
//###########################################################################
//
// FILE: DSP2833x_ECap.h
//
// TITLE: DSP2833x Enhanced Capture Module Register Bit Definitions.
//
//###########################################################################
// $TI Release: 2833x/2823x Header Files and Peripheral Examples V133 $
// $Release Date: June 8, 2012 $
//###########################################################################
//----------------------------------------------------
// Capture control register 1 bit definitions */
struct ECCTL1_BITS { // bits description
uint16_t CAP1POL:1; // 0 Capture Event 1 Polarity select
uint16_t CTRRST1:1; // 1 Counter Reset on Capture Event 1
uint16_t CAP2POL:1; // 2 Capture Event 2 Polarity select
uint16_t CTRRST2:1; // 3 Counter Reset on Capture Event 2
uint16_t CAP3POL:1; // 4 Capture Event 3 Polarity select
uint16_t CTRRST3:1; // 5 Counter Reset on Capture Event 3
uint16_t CAP4POL:1; // 6 Capture Event 4 Polarity select
uint16_t CTRRST4:1; // 7 Counter Reset on Capture Event 4
uint16_t CAPLDEN:1; // 8 Enable Loading CAP1-4 regs on a Cap Event
uint16_t PRESCALE:5; // 13:9 Event Filter prescale select
uint16_t FREE_SOFT:2; // 15:14 Emulation mode
};
union ECCTL1_REG {
uint16_t all;
struct ECCTL1_BITS bit;
};
// In V1.1 the STOPVALUE bit field was changed to
// STOP_WRAP. This correlated to a silicon change from
// F2833x Rev 0 to Rev A.
//----------------------------------------------------
// Capture control register 2 bit definitions */
struct ECCTL2_BITS { // bits description
uint16_t CONT_ONESHT:1; // 0 Continuous or one-shot
uint16_t STOP_WRAP:2; // 2:1 Stop value for one-shot, Wrap for continuous
uint16_t REARM:1; // 3 One-shot re-arm
uint16_t TSCTRSTOP:1; // 4 TSCNT counter stop
uint16_t SYNCI_EN:1; // 5 Counter sync-in select
uint16_t SYNCO_SEL:2; // 7:6 Sync-out mode
uint16_t SWSYNC:1; // 8 SW forced counter sync
uint16_t CAP_APWM:1; // 9 CAP/APWM operating mode select
uint16_t APWMPOL:1; // 10 APWM output polarity select
uint16_t rsvd1:5; // 15:11
};
union ECCTL2_REG {
uint16_t all;
struct ECCTL2_BITS bit;
};
//----------------------------------------------------
// ECAP interrupt enable register bit definitions */
struct ECEINT_BITS { // bits description
uint16_t rsvd1:1; // 0 reserved
uint16_t CEVT1:1; // 1 Capture Event 1 Interrupt Enable
uint16_t CEVT2:1; // 2 Capture Event 2 Interrupt Enable
uint16_t CEVT3:1; // 3 Capture Event 3 Interrupt Enable
uint16_t CEVT4:1; // 4 Capture Event 4 Interrupt Enable
uint16_t CTROVF:1; // 5 Counter Overflow Interrupt Enable
uint16_t CTR_EQ_PRD:1; // 6 Period Equal Interrupt Enable
uint16_t CTR_EQ_CMP:1; // 7 Compare Equal Interrupt Enable
uint16_t rsvd2:8; // 15:8 reserved
};
union ECEINT_REG {
uint16_t all;
struct ECEINT_BITS bit;
};
//----------------------------------------------------
// ECAP interrupt flag register bit definitions */
struct ECFLG_BITS { // bits description
uint16_t INT:1; // 0 Global Flag
uint16_t CEVT1:1; // 1 Capture Event 1 Interrupt Flag
uint16_t CEVT2:1; // 2 Capture Event 2 Interrupt Flag
uint16_t CEVT3:1; // 3 Capture Event 3 Interrupt Flag
uint16_t CEVT4:1; // 4 Capture Event 4 Interrupt Flag
uint16_t CTROVF:1; // 5 Counter Overflow Interrupt Flag
uint16_t CTR_EQ_PRD:1; // 6 Period Equal Interrupt Flag
uint16_t CTR_EQ_CMP:1; // 7 Compare Equal Interrupt Flag
uint16_t rsvd2:8; // 15:8 reserved
};
union ECFLG_REG {
uint16_t all;
struct ECFLG_BITS bit;
};
//----------------------------------------------------
struct ECAP_REGS {
uint32_t TSCTR; // Time stamp counter
uint32_t CTRPHS; // Counter phase
uint32_t CAP1; // Capture 1
uint32_t CAP2; // Capture 2
uint32_t CAP3; // Capture 3
uint32_t CAP4; // Capture 4
uint16_t rsvd1[8]; // reserved
union ECCTL1_REG ECCTL1; // Capture Control Reg 1
union ECCTL2_REG ECCTL2; // Capture Control Reg 2
union ECEINT_REG ECEINT; // ECAP interrupt enable
union ECFLG_REG ECFLG; // ECAP interrupt flags
union ECFLG_REG ECCLR; // ECAP interrupt clear
union ECEINT_REG ECFRC; // ECAP interrupt force
uint16_t rsvd2[6]; // reserved
};
//---------------------------------------------------------------------------
// GPI/O External References & Function Declarations:
//
extern volatile struct ECAP_REGS ECap1Regs;
extern volatile struct ECAP_REGS ECap2Regs;
extern volatile struct ECAP_REGS ECap3Regs;
extern volatile struct ECAP_REGS ECap4Regs;
extern volatile struct ECAP_REGS ECap5Regs;
extern volatile struct ECAP_REGS ECap6Regs;
//===========================================================================
// End of file.
//===========================================================================
//###########################################################################
//
// FILE: DSP2833x_DMA.h
//
// TITLE: DSP2833x DMA Module Register Bit Definitions.
//
//###########################################################################
// $TI Release: 2833x/2823x Header Files and Peripheral Examples V133 $
// $Release Date: June 8, 2012 $
//###########################################################################
//----------------------------------------------------
// Channel MODE register bit definitions:
struct MODE_BITS { // bits description
uint16_t PERINTSEL:5; // 4:0 Peripheral Interrupt and Sync Select Bits (R/W):
// 0 no interrupt
// 1 SEQ1INT & ADCSYNC
// 2 SEQ2INT
// 3 XINT1
// 4 XINT2
// 5 XINT3
// 6 XINT4
// 7 XINT5
// 8 XINT6
// 9 XINT7
// 10 XINT13
// 11 TINT0
// 12 TINT1
// 13 TINT2
// 14 MXEVTA & MXSYNCA
// 15 MREVTA & MRSYNCA
// 16 MXEVTB & MXSYNCB
// 17 MREVTB & MRSYNCB
// 18 ePWM1SOCA
// 19 ePWM1SOCB
// 20 ePWM2SOCA
// 21 ePWM2SOCB
// 22 ePWM3SOCA
// 23 ePWM3SOCB
// 24 ePWM4SOCA
// 25 ePWM4SOCB
// 26 ePWM5SOCA
// 27 ePWM5SOCB
// 28 ePWM6SOCA
// 29 ePWM6SOCB
// 30:31 no interrupt
uint16_t rsvd1:2; // 6:5 (R=0:0)
uint16_t OVRINTE:1; // 7 Overflow Interrupt Enable (R/W):
// 0 overflow interrupt disabled
// 1 overflow interrupt enabled
uint16_t PERINTE:1; // 8 Peripheral Interrupt Enable Bit (R/W):
// 0 peripheral interrupt disabled
// 1 peripheral interrupt enabled
uint16_t CHINTMODE:1; // 9 Channel Interrupt Mode Bit (R/W):
// 0 generate interrupt at beginning of new transfer
// 1 generate interrupt at end of transfer
uint16_t ONESHOT:1; // 10 One Shot Mode Bit (R/W):
// 0 only interrupt event triggers single burst transfer
// 1 first interrupt triggers burst, continue until transfer count is zero
uint16_t CONTINUOUS:1; // 11 Continous Mode Bit (R/W):
// 0 stop when transfer count is zero
// 1 re-initialize when transfer count is zero
uint16_t SYNCE:1; // 12 Sync Enable Bit (R/W):
// 0 ignore selected interrupt sync signal
// 1 enable selected interrupt sync signal
uint16_t SYNCSEL:1; // 13 Sync Select Bit (R/W):
// 0 sync signal controls source wrap counter
// 1 sync signal controls destination wrap counter
uint16_t DATASIZE:1; // 14 Data Size Mode Bit (R/W):
// 0 16-bit data transfer size
// 1 32-bit data transfer size
uint16_t CHINTE:1; // 15 Channel Interrupt Enable Bit (R/W):
// 0 channel interrupt disabled
// 1 channel interrupt enabled
};
union MODE_REG {
uint16_t all;
struct MODE_BITS bit;
};
//----------------------------------------------------
// Channel CONTROL register bit definitions:
struct CONTROL_BITS { // bits description
uint16_t RUN:1; // 0 Run Bit (R=0/W=1)
uint16_t HALT:1; // 1 Halt Bit (R=0/W=1)
uint16_t SOFTRESET:1; // 2 Soft Reset Bit (R=0/W=1)
uint16_t PERINTFRC:1; // 3 Interrupt Force Bit (R=0/W=1)
uint16_t PERINTCLR:1; // 4 Interrupt Clear Bit (R=0/W=1)
uint16_t SYNCFRC:1; // 5 Sync Force Bit (R=0/W=1)
uint16_t SYNCCLR:1; // 6 Sync Clear Bit (R=0/W=1)
uint16_t ERRCLR:1; // 7 Error Clear Bit (R=0/W=1)
uint16_t PERINTFLG:1; // 8 Interrupt Flag Bit (R):
// 0 no interrupt pending
// 1 interrupt pending
uint16_t SYNCFLG:1; // 9 Sync Flag Bit (R):
// 0 no sync pending
// 1 sync pending
uint16_t SYNCERR:1; // 10 Sync Error Flag Bit (R):
// 0 no sync error
// 1 sync error detected
uint16_t TRANSFERSTS:1; // 11 Transfer Status Bit (R):
// 0 no transfer in progress or pending
// 1 transfer in progress or pending
uint16_t BURSTSTS:1; // 12 Burst Status Bit (R):
// 0 no burst in progress or pending
// 1 burst in progress or pending
uint16_t RUNSTS:1; // 13 Run Status Bit (R):
// 0 channel not running or halted
// 1 channel running
uint16_t OVRFLG:1; // 14 Overflow Flag Bit(R)
// 0 no overflow event
// 1 overflow event
uint16_t rsvd1:1; // 15 (R=0)
};
union CONTROL_REG {
uint16_t all;
struct CONTROL_BITS bit;
};
//----------------------------------------------------
// DMACTRL register bit definitions:
struct DMACTRL_BITS { // bits description
uint16_t HARDRESET:1; // 0 Hard Reset Bit (R=0/W=1)
uint16_t PRIORITYRESET:1; // 1 Priority Reset Bit (R=0/W=1)
uint16_t rsvd1:14; // 15:2 (R=0:0)
};
union DMACTRL_REG {
uint16_t all;
struct DMACTRL_BITS bit;
};
//----------------------------------------------------
// DEBUGCTRL register bit definitions:
struct DEBUGCTRL_BITS { // bits description
uint16_t rsvd1:15; // 14:0 (R=0:0)
uint16_t FREE:1; // 15 Debug Mode Bit (R/W):
// 0 halt after current read-write operation
// 1 continue running
};
union DEBUGCTRL_REG {
uint16_t all;
struct DEBUGCTRL_BITS bit;
};
//----------------------------------------------------
// PRIORITYCTRL1 register bit definitions:
struct PRIORITYCTRL1_BITS { // bits description
uint16_t CH1PRIORITY:1; // 0 Ch1 Priority Bit (R/W):
// 0 same priority as all other channels
// 1 highest priority channel
uint16_t rsvd1:15; // 15:1 (R=0:0)
};
union PRIORITYCTRL1_REG {
uint16_t all;
struct PRIORITYCTRL1_BITS bit;
};
//----------------------------------------------------
// PRIORITYSTAT register bit definitions:
struct PRIORITYSTAT_BITS { // bits description
uint16_t ACTIVESTS:3; // 2:0 Active Channel Status Bits (R):
// 0,0,0 no channel active
// 0,0,1 Ch1 channel active
// 0,1,0 Ch2 channel active
// 0,1,1 Ch3 channel active
// 1,0,0 Ch4 channel active
// 1,0,1 Ch5 channel active
// 1,1,0 Ch6 channel active
uint16_t rsvd1:1; // 3 (R=0)
uint16_t ACTIVESTS_SHADOW:3; // 6:4 Active Channel Status Shadow Bits (R):
// 0,0,0 no channel active and interrupted by Ch1
// 0,0,1 cannot occur
// 0,1,0 Ch2 was active and interrupted by Ch1
// 0,1,1 Ch3 was active and interrupted by Ch1
// 1,0,0 Ch4 was active and interrupted by Ch1
// 1,0,1 Ch5 was active and interrupted by Ch1
// 1,1,0 Ch6 was active and interrupted by Ch1
uint16_t rsvd2:9; // 15:7 (R=0:0)
};
union PRIORITYSTAT_REG {
uint16_t all;
struct PRIORITYSTAT_BITS bit;
};
// Burst Size
struct BURST_SIZE_BITS { // bits description
uint16_t BURSTSIZE:5; // 4:0 Burst transfer size
uint16_t rsvd1:11; // 15:5 reserved
};
union BURST_SIZE_REG {
uint16_t all;
struct BURST_SIZE_BITS bit;
};
// Burst Count
struct BURST_COUNT_BITS { // bits description
uint16_t BURSTCOUNT:5; // 4:0 Burst transfer size
uint16_t rsvd1:11; // 15:5 reserved
};
union BURST_COUNT_REG {
uint16_t all;
struct BURST_COUNT_BITS bit;
};
//----------------------------------------------------
// DMA Channel Registers:
struct CH_REGS {
union MODE_REG MODE; // Mode Register
union CONTROL_REG CONTROL; // Control Register
union BURST_SIZE_REG BURST_SIZE; // Burst Size Register
union BURST_COUNT_REG BURST_COUNT; // Burst Count Register
int16_t SRC_BURST_STEP; // Source Burst Step Register
int16_t DST_BURST_STEP; // Destination Burst Step Register
uint16_t TRANSFER_SIZE; // Transfer Size Register
uint16_t TRANSFER_COUNT; // Transfer Count Register
int16_t SRC_TRANSFER_STEP; // Source Transfer Step Register
int16_t DST_TRANSFER_STEP; // Destination Transfer Step Register
uint16_t SRC_WRAP_SIZE; // Source Wrap Size Register
uint16_t SRC_WRAP_COUNT; // Source Wrap Count Register
int16_t SRC_WRAP_STEP; // Source Wrap Step Register
uint16_t DST_WRAP_SIZE; // Destination Wrap Size Register
uint16_t DST_WRAP_COUNT; // Destination Wrap Count Register
int16_t DST_WRAP_STEP; // Destination Wrap Step Register
uint32_t SRC_BEG_ADDR_SHADOW; // Source Begin Address Shadow Register
uint32_t SRC_ADDR_SHADOW; // Source Address Shadow Register
uint32_t SRC_BEG_ADDR_ACTIVE; // Source Begin Address Active Register
uint32_t SRC_ADDR_ACTIVE; // Source Address Active Register
uint32_t DST_BEG_ADDR_SHADOW; // Destination Begin Address Shadow Register
uint32_t DST_ADDR_SHADOW; // Destination Address Shadow Register
uint32_t DST_BEG_ADDR_ACTIVE; // Destination Begin Address Active Register
uint32_t DST_ADDR_ACTIVE; // Destination Address Active Register
};
//----------------------------------------------------
// DMA Registers:
struct DMA_REGS {
union DMACTRL_REG DMACTRL; // DMA Control Register
union DEBUGCTRL_REG DEBUGCTRL; // Debug Control Register
uint16_t rsvd0; // reserved
uint16_t rsvd1; //
union PRIORITYCTRL1_REG PRIORITYCTRL1; // Priority Control 1 Register
uint16_t rsvd2; //
union PRIORITYSTAT_REG PRIORITYSTAT; // Priority Status Register
uint16_t rsvd3[25]; //
struct CH_REGS CH1; // DMA Channel 1 Registers
struct CH_REGS CH2; // DMA Channel 2 Registers
struct CH_REGS CH3; // DMA Channel 3 Registers
struct CH_REGS CH4; // DMA Channel 4 Registers
struct CH_REGS CH5; // DMA Channel 5 Registers
struct CH_REGS CH6; // DMA Channel 6 Registers
};
//---------------------------------------------------------------------------
// External References & Function Declarations:
//
extern volatile struct DMA_REGS DmaRegs;
//===========================================================================
// End of file.
//===========================================================================
//###########################################################################
//
// FILE: DSP2833x_EPwm.h
//
// TITLE: DSP2833x Enhanced PWM Module Register Bit Definitions.
//
//###########################################################################
// $TI Release: 2833x/2823x Header Files and Peripheral Examples V133 $
// $Release Date: June 8, 2012 $
//###########################################################################
//----------------------------------------------------
// Time base control register bit definitions */
struct TBCTL_BITS { // bits description
uint16_t CTRMODE:2; // 1:0 Counter Mode
uint16_t PHSEN:1; // 2 Phase load enable
uint16_t PRDLD:1; // 3 Active period load
uint16_t SYNCOSEL:2; // 5:4 Sync output select
uint16_t SWFSYNC:1; // 6 Software force sync pulse
uint16_t HSPCLKDIV:3; // 9:7 High speed time pre-scale
uint16_t CLKDIV:3; // 12:10 Timebase clock pre-scale
uint16_t PHSDIR:1; // 13 Phase Direction
uint16_t FREE_SOFT:2; // 15:14 Emulation mode
};
union TBCTL_REG {
uint16_t all;
struct TBCTL_BITS bit;
};
//----------------------------------------------------
// Time base status register bit definitions */
struct TBSTS_BITS { // bits description
uint16_t CTRDIR:1; // 0 Counter direction status
uint16_t SYNCI:1; // 1 External input sync status
uint16_t CTRMAX:1; // 2 Counter max latched status
uint16_t rsvd1:13; // 15:3 reserved
};
union TBSTS_REG {
uint16_t all;
struct TBSTS_BITS bit;
};
//----------------------------------------------------
// Compare control register bit definitions */
struct CMPCTL_BITS { // bits description
uint16_t LOADAMODE:2; // 0:1 Active compare A
uint16_t LOADBMODE:2; // 3:2 Active compare B
uint16_t SHDWAMODE:1; // 4 Compare A block operating mode
uint16_t rsvd1:1; // 5 reserved
uint16_t SHDWBMODE:1; // 6 Compare B block operating mode
uint16_t rsvd2:1; // 7 reserved
uint16_t SHDWAFULL:1; // 8 Compare A Shadow registers full Status
uint16_t SHDWBFULL:1; // 9 Compare B Shadow registers full Status
uint16_t rsvd3:6; // 15:10 reserved
};
union CMPCTL_REG {
uint16_t all;
struct CMPCTL_BITS bit;
};
//----------------------------------------------------
// Action qualifier register bit definitions */
struct AQCTL_BITS { // bits description
uint16_t ZRO:2; // 1:0 Action Counter = Zero
uint16_t PRD:2; // 3:2 Action Counter = Period
uint16_t CAU:2; // 5:4 Action Counter = Compare A up
uint16_t CAD:2; // 7:6 Action Counter = Compare A down
uint16_t CBU:2; // 9:8 Action Counter = Compare B up
uint16_t CBD:2; // 11:10 Action Counter = Compare B down
uint16_t rsvd:4; // 15:12 reserved
};
union AQCTL_REG {
uint16_t all;
struct AQCTL_BITS bit;
};
//----------------------------------------------------
// Action qualifier SW force register bit definitions */
struct AQSFRC_BITS { // bits description
uint16_t ACTSFA:2; // 1:0 Action when One-time SW Force A invoked
uint16_t OTSFA:1; // 2 One-time SW Force A output
uint16_t ACTSFB:2; // 4:3 Action when One-time SW Force B invoked
uint16_t OTSFB:1; // 5 One-time SW Force A output
uint16_t RLDCSF:2; // 7:6 Reload from Shadow options
uint16_t rsvd1:8; // 15:8 reserved
};
union AQSFRC_REG {
uint16_t all;
struct AQSFRC_BITS bit;
};
//----------------------------------------------------
// Action qualifier continuous SW force register bit definitions */
struct AQCSFRC_BITS { // bits description
uint16_t CSFA:2; // 1:0 Continuous Software Force on output A
uint16_t CSFB:2; // 3:2 Continuous Software Force on output B
uint16_t rsvd1:12; // 15:4 reserved
};
union AQCSFRC_REG {
uint16_t all;
struct AQCSFRC_BITS bit;
};
// As of version 1.1
// Changed the MODE bit-field to OUT_MODE
// Added the bit-field IN_MODE
// This corresponds to changes in silicon as of F2833x devices
// Rev A silicon.
//----------------------------------------------------
// Dead-band generator control register bit definitions
struct DBCTL_BITS { // bits description
uint16_t OUT_MODE:2; // 1:0 Dead Band Output Mode Control
uint16_t POLSEL:2; // 3:2 Polarity Select Control
uint16_t IN_MODE:2; // 5:4 Dead Band Input Select Mode Control
uint16_t rsvd1:10; // 15:4 reserved
};
union DBCTL_REG {
uint16_t all;
struct DBCTL_BITS bit;
};
//----------------------------------------------------
// Trip zone select register bit definitions
struct TZSEL_BITS { // bits description
uint16_t CBC1:1; // 0 TZ1 CBC select
uint16_t CBC2:1; // 1 TZ2 CBC select
uint16_t CBC3:1; // 2 TZ3 CBC select
uint16_t CBC4:1; // 3 TZ4 CBC select
uint16_t CBC5:1; // 4 TZ5 CBC select
uint16_t CBC6:1; // 5 TZ6 CBC select
uint16_t rsvd1:2; // 7:6 reserved
uint16_t OSHT1:1; // 8 One-shot TZ1 select
uint16_t OSHT2:1; // 9 One-shot TZ2 select
uint16_t OSHT3:1; // 10 One-shot TZ3 select
uint16_t OSHT4:1; // 11 One-shot TZ4 select
uint16_t OSHT5:1; // 12 One-shot TZ5 select
uint16_t OSHT6:1; // 13 One-shot TZ6 select
uint16_t rsvd2:2; // 15:14 reserved
};
union TZSEL_REG {
uint16_t all;
struct TZSEL_BITS bit;
};
//----------------------------------------------------
// Trip zone control register bit definitions */
struct TZCTL_BITS { // bits description
uint16_t TZA:2; // 1:0 TZ1 to TZ6 Trip Action On EPWMxA
uint16_t TZB:2; // 3:2 TZ1 to TZ6 Trip Action On EPWMxB
uint16_t rsvd:12; // 15:4 reserved
};
union TZCTL_REG {
uint16_t all;
struct TZCTL_BITS bit;
};
//----------------------------------------------------
// Trip zone control register bit definitions */
struct TZEINT_BITS { // bits description
uint16_t rsvd1:1; // 0 reserved
uint16_t CBC:1; // 1 Trip Zones Cycle By Cycle Int Enable
uint16_t OST:1; // 2 Trip Zones One Shot Int Enable
uint16_t rsvd2:13; // 15:3 reserved
};
union TZEINT_REG {
uint16_t all;
struct TZEINT_BITS bit;
};
//----------------------------------------------------
// Trip zone flag register bit definitions */
struct TZFLG_BITS { // bits description
uint16_t INT:1; // 0 Global status
uint16_t CBC:1; // 1 Trip Zones Cycle By Cycle Int
uint16_t OST:1; // 2 Trip Zones One Shot Int
uint16_t rsvd2:13; // 15:3 reserved
};
union TZFLG_REG {
uint16_t all;
struct TZFLG_BITS bit;
};
//----------------------------------------------------
// Trip zone flag clear register bit definitions */
struct TZCLR_BITS { // bits description
uint16_t INT:1; // 0 Global status
uint16_t CBC:1; // 1 Trip Zones Cycle By Cycle Int
uint16_t OST:1; // 2 Trip Zones One Shot Int
uint16_t rsvd2:13; // 15:3 reserved
};
union TZCLR_REG {
uint16_t all;
struct TZCLR_BITS bit;
};
//----------------------------------------------------
// Trip zone flag force register bit definitions */
struct TZFRC_BITS { // bits description
uint16_t rsvd1:1; // 0 reserved
uint16_t CBC:1; // 1 Trip Zones Cycle By Cycle Int
uint16_t OST:1; // 2 Trip Zones One Shot Int
uint16_t rsvd2:13; // 15:3 reserved
};
union TZFRC_REG {
uint16_t all;
struct TZFRC_BITS bit;
};
//----------------------------------------------------
// Event trigger select register bit definitions */
struct ETSEL_BITS { // bits description
uint16_t INTSEL:3; // 2:0 EPWMxINTn Select
uint16_t INTEN:1; // 3 EPWMxINTn Enable
uint16_t rsvd1:4; // 7:4 reserved
uint16_t SOCASEL:3; // 10:8 Start of conversion A Select
uint16_t SOCAEN:1; // 11 Start of conversion A Enable
uint16_t SOCBSEL:3; // 14:12 Start of conversion B Select
uint16_t SOCBEN:1; // 15 Start of conversion B Enable
};
union ETSEL_REG {
uint16_t all;
struct ETSEL_BITS bit;
};
//----------------------------------------------------
// Event trigger pre-scale register bit definitions */
struct ETPS_BITS { // bits description
uint16_t INTPRD:2; // 1:0 EPWMxINTn Period Select
uint16_t INTCNT:2; // 3:2 EPWMxINTn Counter Register
uint16_t rsvd1:4; // 7:4 reserved
uint16_t SOCAPRD:2; // 9:8 EPWMxSOCA Period Select
uint16_t SOCACNT:2; // 11:10 EPWMxSOCA Counter Register
uint16_t SOCBPRD:2; // 13:12 EPWMxSOCB Period Select
uint16_t SOCBCNT:2; // 15:14 EPWMxSOCB Counter Register
};
union ETPS_REG {
uint16_t all;
struct ETPS_BITS bit;
};
//----------------------------------------------------
// Event trigger Flag register bit definitions */
struct ETFLG_BITS { // bits description
uint16_t INT:1; // 0 EPWMxINTn Flag
uint16_t rsvd1:1; // 1 reserved
uint16_t SOCA:1; // 2 EPWMxSOCA Flag
uint16_t SOCB:1; // 3 EPWMxSOCB Flag
uint16_t rsvd2:12; // 15:4 reserved
};
union ETFLG_REG {
uint16_t all;
struct ETFLG_BITS bit;
};
//----------------------------------------------------
// Event trigger Clear register bit definitions */
struct ETCLR_BITS { // bits description
uint16_t INT:1; // 0 EPWMxINTn Clear
uint16_t rsvd1:1; // 1 reserved
uint16_t SOCA:1; // 2 EPWMxSOCA Clear
uint16_t SOCB:1; // 3 EPWMxSOCB Clear
uint16_t rsvd2:12; // 15:4 reserved
};
union ETCLR_REG {
uint16_t all;
struct ETCLR_BITS bit;
};
//----------------------------------------------------
// Event trigger Force register bit definitions */
struct ETFRC_BITS { // bits description
uint16_t INT:1; // 0 EPWMxINTn Force
uint16_t rsvd1:1; // 1 reserved
uint16_t SOCA:1; // 2 EPWMxSOCA Force
uint16_t SOCB:1; // 3 EPWMxSOCB Force
uint16_t rsvd2:12; // 15:4 reserved
};
union ETFRC_REG {
uint16_t all;
struct ETFRC_BITS bit;
};
//----------------------------------------------------
// PWM chopper control register bit definitions */
struct PCCTL_BITS { // bits description
uint16_t CHPEN:1; // 0 PWM chopping enable
uint16_t OSHTWTH:4; // 4:1 One-shot pulse width
uint16_t CHPFREQ:3; // 7:5 Chopping clock frequency
uint16_t CHPDUTY:3; // 10:8 Chopping clock Duty cycle
uint16_t rsvd1:5; // 15:11 reserved
};
union PCCTL_REG {
uint16_t all;
struct PCCTL_BITS bit;
};
struct HRCNFG_BITS { // bits description
uint16_t EDGMODE:2; // 1:0 Edge Mode select Bits
uint16_t CTLMODE:1; // 2 Control mode Select Bit
uint16_t HRLOAD:1; // 3 Shadow mode Select Bit
uint16_t rsvd1:12; // 15:4 reserved
};
union HRCNFG_REG {
uint16_t all;
struct HRCNFG_BITS bit;
};
struct TBPHS_HRPWM_REG { // bits description
uint16_t TBPHSHR; // 15:0 Extension register for HRPWM Phase (8 bits)
uint16_t TBPHS; // 31:16 Phase offset register
};
union TBPHS_HRPWM_GROUP {
uint32_t all;
struct TBPHS_HRPWM_REG half;
};
struct CMPA_HRPWM_REG { // bits description
uint16_t CMPAHR; // 15:0 Extension register for HRPWM compare (8 bits)
uint16_t CMPA; // 31:16 Compare A reg
};
union CMPA_HRPWM_GROUP {
uint32_t all;
struct CMPA_HRPWM_REG half;
};
struct EPWM_REGS {
union TBCTL_REG TBCTL; //
union TBSTS_REG TBSTS; //
union TBPHS_HRPWM_GROUP TBPHS; // Union of TBPHS:TBPHSHR
uint16_t TBCTR; // Counter
uint16_t TBPRD; // Period register set
uint16_t rsvd1; //
union CMPCTL_REG CMPCTL; // Compare control
union CMPA_HRPWM_GROUP CMPA; // Union of CMPA:CMPAHR
uint16_t CMPB; // Compare B reg
union AQCTL_REG AQCTLA; // Action qual output A
union AQCTL_REG AQCTLB; // Action qual output B
union AQSFRC_REG AQSFRC; // Action qual SW force
union AQCSFRC_REG AQCSFRC; // Action qualifier continuous SW force
union DBCTL_REG DBCTL; // Dead-band control
uint16_t DBRED; // Dead-band rising edge delay
uint16_t DBFED; // Dead-band falling edge delay
union TZSEL_REG TZSEL; // Trip zone select
uint16_t rsvd2;
union TZCTL_REG TZCTL; // Trip zone control
union TZEINT_REG TZEINT; // Trip zone interrupt enable
union TZFLG_REG TZFLG; // Trip zone interrupt flags
union TZCLR_REG TZCLR; // Trip zone clear
union TZFRC_REG TZFRC; // Trip zone force interrupt
union ETSEL_REG ETSEL; // Event trigger selection
union ETPS_REG ETPS; // Event trigger pre-scaler
union ETFLG_REG ETFLG; // Event trigger flags
union ETCLR_REG ETCLR; // Event trigger clear
union ETFRC_REG ETFRC; // Event trigger force
union PCCTL_REG PCCTL; // PWM chopper control
uint16_t rsvd3; //
union HRCNFG_REG HRCNFG; // HRPWM Config Reg
};
//---------------------------------------------------------------------------
// External References & Function Declarations:
//
extern volatile struct EPWM_REGS EPwm1Regs;
extern volatile struct EPWM_REGS EPwm2Regs;
extern volatile struct EPWM_REGS EPwm3Regs;
extern volatile struct EPWM_REGS EPwm4Regs;
extern volatile struct EPWM_REGS EPwm5Regs;
extern volatile struct EPWM_REGS EPwm6Regs;
//===========================================================================
// End of file.
//===========================================================================
//###########################################################################
//
// FILE: DSP2833x_EQep.h
//
// TITLE: DSP2833x Enhanced Quadrature Encoder Pulse Module
// Register Bit Definitions.
//
//###########################################################################
// $TI Release: 2833x/2823x Header Files and Peripheral Examples V133 $
// $Release Date: June 8, 2012 $
//###########################################################################
//----------------------------------------------------
// Capture decoder control register bit definitions */
struct QDECCTL_BITS { // bits description
uint16_t rsvd1:5; // 4:0 reserved
uint16_t QSP:1; // 5 QEPS input polarity
uint16_t QIP:1; // 6 QEPI input polarity
uint16_t QBP:1; // 7 QEPB input polarity
uint16_t QAP:1; // 8 QEPA input polarity
uint16_t IGATE:1; // 9 Index pulse gating option
uint16_t SWAP:1; // 10 CLK/DIR signal source for Position Counter
uint16_t XCR:1; // 11 External clock rate
uint16_t SPSEL:1; // 12 Sync output pin select
uint16_t SOEN:1; // 13 Enable position compare sync
uint16_t QSRC:2; // 15:14 Position counter source
};
union QDECCTL_REG {
uint16_t all;
struct QDECCTL_BITS bit;
};
//----------------------------------------------------
// QEP control register bit definitions */
struct QEPCTL_BITS { // bits description
uint16_t WDE:1; // 0 QEP watchdog enable
uint16_t UTE:1; // 1 QEP unit timer enable
uint16_t QCLM:1; // 2 QEP capture latch mode
uint16_t QPEN:1; // 3 Quadrature position counter enable
uint16_t IEL:2; // 5:4 Index event latch
uint16_t SEL:1; // 6 Strobe event latch
uint16_t SWI:1; // 7 Software init position counter
uint16_t IEI:2; // 9:8 Index event init of position count
uint16_t SEI:2; // 11:10 Strobe event init
uint16_t PCRM:2; // 13:12 Position counter reset
uint16_t FREE_SOFT:2; // 15:14 Emulation mode
};
union QEPCTL_REG {
uint16_t all;
struct QEPCTL_BITS bit;
};
//----------------------------------------------------
// Quadrature capture control register bit definitions */
struct QCAPCTL_BITS { // bits description
uint16_t UPPS:4; // 3:0 Unit position pre-scale
uint16_t CCPS:3; // 6:4 QEP capture timer pre-scale
uint16_t rsvd1:8; // 14:7 reserved
uint16_t CEN:1; // 15 Enable QEP capture
};
union QCAPCTL_REG {
uint16_t all;
struct QCAPCTL_BITS bit;
};
//----------------------------------------------------
// Position compare control register bit definitions */
struct QPOSCTL_BITS { // bits description
uint16_t PCSPW:12; // 11:0 Position compare sync pulse width
uint16_t PCE:1; // 12 Position compare enable/disable
uint16_t PCPOL:1; // 13 Polarity of sync output
uint16_t PCLOAD:1; // 14 Position compare of shadow load
uint16_t PCSHDW:1; // 15 Position compare shadow enable
};
union QPOSCTL_REG {
uint16_t all;
struct QPOSCTL_BITS bit;
};
//----------------------------------------------------
// QEP interrupt control register bit definitions */
struct QEINT_BITS { // bits description
uint16_t rsvd1:1; // 0 reserved
uint16_t PCE:1; // 1 Position counter error
uint16_t QPE:1; // 2 Quadrature phase error
uint16_t QDC:1; // 3 Quadrature dir change
uint16_t WTO:1; // 4 Watchdog timeout
uint16_t PCU:1; // 5 Position counter underflow
uint16_t PCO:1; // 6 Position counter overflow
uint16_t PCR:1; // 7 Position compare ready
uint16_t PCM:1; // 8 Position compare match
uint16_t SEL:1; // 9 Strobe event latch
uint16_t IEL:1; // 10 Event latch
uint16_t UTO:1; // 11 Unit timeout
uint16_t rsvd2:4; // 15:12 reserved
};
union QEINT_REG {
uint16_t all;
struct QEINT_BITS bit;
};
//----------------------------------------------------
// QEP interrupt status register bit definitions */
struct QFLG_BITS { // bits description
uint16_t INT:1; // 0 Global interrupt
uint16_t PCE:1; // 1 Position counter error
uint16_t PHE:1; // 2 Quadrature phase error
uint16_t QDC:1; // 3 Quadrature dir change
uint16_t WTO:1; // 4 Watchdog timeout
uint16_t PCU:1; // 5 Position counter underflow
uint16_t PCO:1; // 6 Position counter overflow
uint16_t PCR:1; // 7 Position compare ready
uint16_t PCM:1; // 8 Position compare match
uint16_t SEL:1; // 9 Strobe event latch
uint16_t IEL:1; // 10 Event latch
uint16_t UTO:1; // 11 Unit timeout
uint16_t rsvd2:4; // 15:12 reserved
};
union QFLG_REG {
uint16_t all;
struct QFLG_BITS bit;
};
//----------------------------------------------------
// QEP interrupt force register bit definitions */
struct QFRC_BITS { // bits description
uint16_t reserved:1; // 0 Reserved
uint16_t PCE:1; // 1 Position counter error
uint16_t PHE:1; // 2 Quadrature phase error
uint16_t QDC:1; // 3 Quadrature dir change
uint16_t WTO:1; // 4 Watchdog timeout
uint16_t PCU:1; // 5 Position counter underflow
uint16_t PCO:1; // 6 Position counter overflow
uint16_t PCR:1; // 7 Position compare ready
uint16_t PCM:1; // 8 Position compare match
uint16_t SEL:1; // 9 Strobe event latch
uint16_t IEL:1; // 10 Event latch
uint16_t UTO:1; // 11 Unit timeout
uint16_t rsvd2:4; // 15:12 reserved
};
union QFRC_REG {
uint16_t all;
struct QFRC_BITS bit;
};
// V1.1 Added UPEVNT (bit 7) This reflects changes
// made as of F2833x Rev A devices
//----------------------------------------------------
// QEP status register bit definitions */
struct QEPSTS_BITS { // bits description
uint16_t PCEF:1; // 0 Position counter error
uint16_t FIMF:1; // 1 First index marker
uint16_t CDEF:1; // 2 Capture direction error
uint16_t COEF:1; // 3 Capture overflow error
uint16_t QDLF:1; // 4 QEP direction latch
uint16_t QDF:1; // 5 Quadrature direction
uint16_t FIDF:1; // 6 Direction on first index marker
uint16_t UPEVNT:1; // 7 Unit position event flag
uint16_t rsvd1:8; // 15:8 reserved
};
union QEPSTS_REG {
uint16_t all;
struct QEPSTS_BITS bit;
};
//----------------------------------------------------
struct EQEP_REGS {
uint32_t QPOSCNT; // Position counter
uint32_t QPOSINIT; // Position counter init
uint32_t QPOSMAX; // Maximum position count
uint32_t QPOSCMP; // Position compare
uint32_t QPOSILAT; // Index position latch
uint32_t QPOSSLAT; // Strobe position latch
uint32_t QPOSLAT; // Position latch
uint32_t QUTMR; // Unit timer
uint32_t QUPRD; // Unit period
uint16_t QWDTMR; // QEP watchdog timer
uint16_t QWDPRD; // QEP watchdog period
union QDECCTL_REG QDECCTL; // Quadrature decoder control
union QEPCTL_REG QEPCTL; // QEP control
union QCAPCTL_REG QCAPCTL; // Quadrature capture control
union QPOSCTL_REG QPOSCTL; // Position compare control
union QEINT_REG QEINT; // QEP interrupt control
union QFLG_REG QFLG; // QEP interrupt flag
union QFLG_REG QCLR; // QEP interrupt clear
union QFRC_REG QFRC; // QEP interrupt force
union QEPSTS_REG QEPSTS; // QEP status
uint16_t QCTMR; // QEP capture timer
uint16_t QCPRD; // QEP capture period
uint16_t QCTMRLAT; // QEP capture latch
uint16_t QCPRDLAT; // QEP capture period latch
uint16_t rsvd1[30]; // reserved
};
//---------------------------------------------------------------------------
// GPI/O External References & Function Declarations:
//
extern volatile struct EQEP_REGS EQep1Regs;
extern volatile struct EQEP_REGS EQep2Regs;
//===========================================================================
// End of file.
//===========================================================================
//###########################################################################
//
// FILE: DSP2833x_Gpio.h
//
// TITLE: DSP2833x General Purpose I/O Definitions.
//
//###########################################################################
// $TI Release: 2833x/2823x Header Files and Peripheral Examples V133 $
// $Release Date: June 8, 2012 $
//###########################################################################
//----------------------------------------------------
// GPIO A control register bit definitions */
struct GPACTRL_BITS { // bits description
uint16_t QUALPRD0:8; // 7:0 Qual period
uint16_t QUALPRD1:8; // 15:8 Qual period
uint16_t QUALPRD2:8; // 23:16 Qual period
uint16_t QUALPRD3:8; // 31:24 Qual period
};
union GPACTRL_REG {
uint32_t all;
struct GPACTRL_BITS bit;
};
//----------------------------------------------------
// GPIO B control register bit definitions */
struct GPBCTRL_BITS { // bits description
uint16_t QUALPRD0:8; // 7:0 Qual period
uint16_t QUALPRD1:8; // 15:8 Qual period
uint16_t QUALPRD2:8; // 23:16 Qual period
uint16_t QUALPRD3:8; // 31:24
};
union GPBCTRL_REG {
uint32_t all;
struct GPBCTRL_BITS bit;
};
//----------------------------------------------------
// GPIO A Qual/MUX select register bit definitions */
struct GPA1_BITS { // bits description
uint16_t GPIO0:2; // 1:0 GPIO0
uint16_t GPIO1:2; // 3:2 GPIO1
uint16_t GPIO2:2; // 5:4 GPIO2
uint16_t GPIO3:2; // 7:6 GPIO3
uint16_t GPIO4:2; // 9:8 GPIO4
uint16_t GPIO5:2; // 11:10 GPIO5
uint16_t GPIO6:2; // 13:12 GPIO6
uint16_t GPIO7:2; // 15:14 GPIO7
uint16_t GPIO8:2; // 17:16 GPIO8
uint16_t GPIO9:2; // 19:18 GPIO9
uint16_t GPIO10:2; // 21:20 GPIO10
uint16_t GPIO11:2; // 23:22 GPIO11
uint16_t GPIO12:2; // 25:24 GPIO12
uint16_t GPIO13:2; // 27:26 GPIO13
uint16_t GPIO14:2; // 29:28 GPIO14
uint16_t GPIO15:2; // 31:30 GPIO15
};
struct GPA2_BITS { // bits description
uint16_t GPIO16:2; // 1:0 GPIO16
uint16_t GPIO17:2; // 3:2 GPIO17
uint16_t GPIO18:2; // 5:4 GPIO18
uint16_t GPIO19:2; // 7:6 GPIO19
uint16_t GPIO20:2; // 9:8 GPIO20
uint16_t GPIO21:2; // 11:10 GPIO21
uint16_t GPIO22:2; // 13:12 GPIO22
uint16_t GPIO23:2; // 15:14 GPIO23
uint16_t GPIO24:2; // 17:16 GPIO24
uint16_t GPIO25:2; // 19:18 GPIO25
uint16_t GPIO26:2; // 21:20 GPIO26
uint16_t GPIO27:2; // 23:22 GPIO27
uint16_t GPIO28:2; // 25:24 GPIO28
uint16_t GPIO29:2; // 27:26 GPIO29
uint16_t GPIO30:2; // 29:28 GPIO30
uint16_t GPIO31:2; // 31:30 GPIO31
};
struct GPB1_BITS { // bits description
uint16_t GPIO32:2; // 1:0 GPIO32
uint16_t GPIO33:2; // 3:2 GPIO33
uint16_t GPIO34:2; // 5:4 GPIO34
uint16_t GPIO35:2; // 7:6 GPIO35
uint16_t GPIO36:2; // 9:8 GPIO36
uint16_t GPIO37:2; // 11:10 GPIO37
uint16_t GPIO38:2; // 13:12 GPIO38
uint16_t GPIO39:2; // 15:14 GPIO39
uint16_t GPIO40:2; // 17:16 GPIO40
uint16_t GPIO41:2; // 19:16 GPIO41
uint16_t GPIO42:2; // 21:20 GPIO42
uint16_t GPIO43:2; // 23:22 GPIO43
uint16_t GPIO44:2; // 25:24 GPIO44
uint16_t GPIO45:2; // 27:26 GPIO45
uint16_t GPIO46:2; // 29:28 GPIO46
uint16_t GPIO47:2; // 31:30 GPIO47
};
struct GPB2_BITS { // bits description
uint16_t GPIO48:2; // 1:0 GPIO48
uint16_t GPIO49:2; // 3:2 GPIO49
uint16_t GPIO50:2; // 5:4 GPIO50
uint16_t GPIO51:2; // 7:6 GPIO51
uint16_t GPIO52:2; // 9:8 GPIO52
uint16_t GPIO53:2; // 11:10 GPIO53
uint16_t GPIO54:2; // 13:12 GPIO54
uint16_t GPIO55:2; // 15:14 GPIO55
uint16_t GPIO56:2; // 17:16 GPIO56
uint16_t GPIO57:2; // 19:18 GPIO57
uint16_t GPIO58:2; // 21:20 GPIO58
uint16_t GPIO59:2; // 23:22 GPIO59
uint16_t GPIO60:2; // 25:24 GPIO60
uint16_t GPIO61:2; // 27:26 GPIO61
uint16_t GPIO62:2; // 29:28 GPIO62
uint16_t GPIO63:2; // 31:30 GPIO63
};
struct GPC1_BITS { // bits description
uint16_t GPIO64:2; // 1:0 GPIO64
uint16_t GPIO65:2; // 3:2 GPIO65
uint16_t GPIO66:2; // 5:4 GPIO66
uint16_t GPIO67:2; // 7:6 GPIO67
uint16_t GPIO68:2; // 9:8 GPIO68
uint16_t GPIO69:2; // 11:10 GPIO69
uint16_t GPIO70:2; // 13:12 GPIO70
uint16_t GPIO71:2; // 15:14 GPIO71
uint16_t GPIO72:2; // 17:16 GPIO72
uint16_t GPIO73:2; // 19:18 GPIO73
uint16_t GPIO74:2; // 21:20 GPIO74
uint16_t GPIO75:2; // 23:22 GPIO75
uint16_t GPIO76:2; // 25:24 GPIO76
uint16_t GPIO77:2; // 27:26 GPIO77
uint16_t GPIO78:2; // 29:28 GPIO78
uint16_t GPIO79:2; // 31:30 GPIO79
};
struct GPC2_BITS { // bits description
uint16_t GPIO80:2; // 1:0 GPIO80
uint16_t GPIO81:2; // 3:2 GPIO81
uint16_t GPIO82:2; // 5:4 GPIO82
uint16_t GPIO83:2; // 7:6 GPIO83
uint16_t GPIO84:2; // 9:8 GPIO84
uint16_t GPIO85:2; // 11:10 GPIO85
uint16_t GPIO86:2; // 13:12 GPIO86
uint16_t GPIO87:2; // 15:14 GPIO87
uint16_t rsvd:16; // 31:16 reserved
};
union GPA1_REG {
uint32_t all;
struct GPA1_BITS bit;
};
union GPA2_REG {
uint32_t all;
struct GPA2_BITS bit;
};
union GPB1_REG {
uint32_t all;
struct GPB1_BITS bit;
};
union GPB2_REG {
uint32_t all;
struct GPB2_BITS bit;
};
union GPC1_REG {
uint32_t all;
struct GPC1_BITS bit;
};
union GPC2_REG {
uint32_t all;
struct GPC2_BITS bit;
};
//----------------------------------------------------
// GPIO A DIR/TOGGLE/SET/CLEAR register bit definitions */
struct GPADAT_BITS { // bits description
uint16_t GPIO0:1; // 0 GPIO0
uint16_t GPIO1:1; // 1 GPIO1
uint16_t GPIO2:1; // 2 GPIO2
uint16_t GPIO3:1; // 3 GPIO3
uint16_t GPIO4:1; // 4 GPIO4
uint16_t GPIO5:1; // 5 GPIO5
uint16_t GPIO6:1; // 6 GPIO6
uint16_t GPIO7:1; // 7 GPIO7
uint16_t GPIO8:1; // 8 GPIO8
uint16_t GPIO9:1; // 9 GPIO9
uint16_t GPIO10:1; // 10 GPIO10
uint16_t GPIO11:1; // 11 GPIO11
uint16_t GPIO12:1; // 12 GPIO12
uint16_t GPIO13:1; // 13 GPIO13
uint16_t GPIO14:1; // 14 GPIO14
uint16_t GPIO15:1; // 15 GPIO15
uint16_t GPIO16:1; // 16 GPIO16
uint16_t GPIO17:1; // 17 GPIO17
uint16_t GPIO18:1; // 18 GPIO18
uint16_t GPIO19:1; // 19 GPIO19
uint16_t GPIO20:1; // 20 GPIO20
uint16_t GPIO21:1; // 21 GPIO21
uint16_t GPIO22:1; // 22 GPIO22
uint16_t GPIO23:1; // 23 GPIO23
uint16_t GPIO24:1; // 24 GPIO24
uint16_t GPIO25:1; // 25 GPIO25
uint16_t GPIO26:1; // 26 GPIO26
uint16_t GPIO27:1; // 27 GPIO27
uint16_t GPIO28:1; // 28 GPIO28
uint16_t GPIO29:1; // 29 GPIO29
uint16_t GPIO30:1; // 30 GPIO30
uint16_t GPIO31:1; // 31 GPIO31
};
struct GPBDAT_BITS { // bits description
uint16_t GPIO32:1; // 0 GPIO32
uint16_t GPIO33:1; // 1 GPIO33
uint16_t GPIO34:1; // 2 GPIO34
uint16_t GPIO35:1; // 3 GPIO35
uint16_t GPIO36:1; // 4 GPIO36
uint16_t GPIO37:1; // 5 GPIO37
uint16_t GPIO38:1; // 6 GPIO38
uint16_t GPIO39:1; // 7 GPIO39
uint16_t GPIO40:1; // 8 GPIO40
uint16_t GPIO41:1; // 9 GPIO41
uint16_t GPIO42:1; // 10 GPIO42
uint16_t GPIO43:1; // 11 GPIO43
uint16_t GPIO44:1; // 12 GPIO44
uint16_t GPIO45:1; // 13 GPIO45
uint16_t GPIO46:1; // 14 GPIO46
uint16_t GPIO47:1; // 15 GPIO47
uint16_t GPIO48:1; // 16 GPIO48
uint16_t GPIO49:1; // 17 GPIO49
uint16_t GPIO50:1; // 18 GPIO50
uint16_t GPIO51:1; // 19 GPIO51
uint16_t GPIO52:1; // 20 GPIO52
uint16_t GPIO53:1; // 21 GPIO53
uint16_t GPIO54:1; // 22 GPIO54
uint16_t GPIO55:1; // 23 GPIO55
uint16_t GPIO56:1; // 24 GPIO56
uint16_t GPIO57:1; // 25 GPIO57
uint16_t GPIO58:1; // 26 GPIO58
uint16_t GPIO59:1; // 27 GPIO59
uint16_t GPIO60:1; // 28 GPIO60
uint16_t GPIO61:1; // 29 GPIO61
uint16_t GPIO62:1; // 30 GPIO62
uint16_t GPIO63:1; // 31 GPIO63
};
struct GPCDAT_BITS { // bits description
uint16_t GPIO64:1; // 0 GPIO64
uint16_t GPIO65:1; // 1 GPIO65
uint16_t GPIO66:1; // 2 GPIO66
uint16_t GPIO67:1; // 3 GPIO67
uint16_t GPIO68:1; // 4 GPIO68
uint16_t GPIO69:1; // 5 GPIO69
uint16_t GPIO70:1; // 6 GPIO70
uint16_t GPIO71:1; // 7 GPIO71
uint16_t GPIO72:1; // 8 GPIO72
uint16_t GPIO73:1; // 9 GPIO73
uint16_t GPIO74:1; // 10 GPIO74
uint16_t GPIO75:1; // 11 GPIO75
uint16_t GPIO76:1; // 12 GPIO76
uint16_t GPIO77:1; // 13 GPIO77
uint16_t GPIO78:1; // 14 GPIO78
uint16_t GPIO79:1; // 15 GPIO79
uint16_t GPIO80:1; // 16 GPIO80
uint16_t GPIO81:1; // 17 GPIO81
uint16_t GPIO82:1; // 18 GPIO82
uint16_t GPIO83:1; // 19 GPIO83
uint16_t GPIO84:1; // 20 GPIO84
uint16_t GPIO85:1; // 21 GPIO85
uint16_t GPIO86:1; // 22 GPIO86
uint16_t GPIO87:1; // 23 GPIO87
uint16_t rsvd1:8; // 31:24 reserved
};
union GPADAT_REG {
uint32_t all;
struct GPADAT_BITS bit;
};
union GPBDAT_REG {
uint32_t all;
struct GPBDAT_BITS bit;
};
union GPCDAT_REG {
uint32_t all;
struct GPCDAT_BITS bit;
};
//----------------------------------------------------
// GPIO Xint1/XINT2/XNMI select register bit definitions */
struct GPIOXINT_BITS { // bits description
uint16_t GPIOSEL:5; // 4:0 Select GPIO interrupt input source
uint16_t rsvd1:11; // 15:5 reserved
};
union GPIOXINT_REG {
uint16_t all;
struct GPIOXINT_BITS bit;
};
struct GPIO_CTRL_REGS {
union GPACTRL_REG GPACTRL; // GPIO A Control Register (GPIO0 to 31)
union GPA1_REG GPAQSEL1; // GPIO A Qualifier Select 1 Register (GPIO0 to 15)
union GPA2_REG GPAQSEL2; // GPIO A Qualifier Select 2 Register (GPIO16 to 31)
union GPA1_REG GPAMUX1; // GPIO A Mux 1 Register (GPIO0 to 15)
union GPA2_REG GPAMUX2; // GPIO A Mux 2 Register (GPIO16 to 31)
union GPADAT_REG GPADIR; // GPIO A Direction Register (GPIO0 to 31)
union GPADAT_REG GPAPUD; // GPIO A Pull Up Disable Register (GPIO0 to 31)
uint32_t rsvd1;
union GPBCTRL_REG GPBCTRL; // GPIO B Control Register (GPIO32 to 63)
union GPB1_REG GPBQSEL1; // GPIO B Qualifier Select 1 Register (GPIO32 to 47)
union GPB2_REG GPBQSEL2; // GPIO B Qualifier Select 2 Register (GPIO48 to 63)
union GPB1_REG GPBMUX1; // GPIO B Mux 1 Register (GPIO32 to 47)
union GPB2_REG GPBMUX2; // GPIO B Mux 2 Register (GPIO48 to 63)
union GPBDAT_REG GPBDIR; // GPIO B Direction Register (GPIO32 to 63)
union GPBDAT_REG GPBPUD; // GPIO B Pull Up Disable Register (GPIO32 to 63)
uint16_t rsvd2[8];
union GPC1_REG GPCMUX1; // GPIO C Mux 1 Register (GPIO64 to 79)
union GPC2_REG GPCMUX2; // GPIO C Mux 2 Register (GPIO80 to 95)
union GPCDAT_REG GPCDIR; // GPIO C Direction Register (GPIO64 to 95)
union GPCDAT_REG GPCPUD; // GPIO C Pull Up Disable Register (GPIO64 to 95)
};
struct GPIO_DATA_REGS {
union GPADAT_REG GPADAT; // GPIO Data Register (GPIO0 to 31)
union GPADAT_REG GPASET; // GPIO Data Set Register (GPIO0 to 31)
union GPADAT_REG GPACLEAR; // GPIO Data Clear Register (GPIO0 to 31)
union GPADAT_REG GPATOGGLE; // GPIO Data Toggle Register (GPIO0 to 31)
union GPBDAT_REG GPBDAT; // GPIO Data Register (GPIO32 to 63)
union GPBDAT_REG GPBSET; // GPIO Data Set Register (GPIO32 to 63)
union GPBDAT_REG GPBCLEAR; // GPIO Data Clear Register (GPIO32 to 63)
union GPBDAT_REG GPBTOGGLE; // GPIO Data Toggle Register (GPIO32 to 63)
union GPCDAT_REG GPCDAT; // GPIO Data Register (GPIO64 to 95)
union GPCDAT_REG GPCSET; // GPIO Data Set Register (GPIO64 to 95)
union GPCDAT_REG GPCCLEAR; // GPIO Data Clear Register (GPIO64 to 95)
union GPCDAT_REG GPCTOGGLE; // GPIO Data Toggle Register (GPIO64 to 95)
uint16_t rsvd1[8];
};
struct GPIO_INT_REGS {
union GPIOXINT_REG GPIOXINT1SEL; // XINT1 GPIO Input Selection
union GPIOXINT_REG GPIOXINT2SEL; // XINT2 GPIO Input Selection
union GPIOXINT_REG GPIOXNMISEL; // XNMI_Xint13 GPIO Input Selection
union GPIOXINT_REG GPIOXINT3SEL; // XINT3 GPIO Input Selection
union GPIOXINT_REG GPIOXINT4SEL; // XINT4 GPIO Input Selection
union GPIOXINT_REG GPIOXINT5SEL; // XINT5 GPIO Input Selection
union GPIOXINT_REG GPIOXINT6SEL; // XINT6 GPIO Input Selection
union GPIOXINT_REG GPIOXINT7SEL; // XINT7 GPIO Input Selection
union GPADAT_REG GPIOLPMSEL; // Low power modes GP I/O input select
};
//---------------------------------------------------------------------------
// GPI/O External References & Function Declarations:
//
extern volatile struct GPIO_CTRL_REGS GpioCtrlRegs;
extern volatile struct GPIO_DATA_REGS GpioDataRegs;
extern volatile struct GPIO_INT_REGS GpioIntRegs;
//===========================================================================
// End of file.
//===========================================================================
//###########################################################################
//
// FILE: DSP2833x_I2c.h
//
// TITLE: DSP2833x Enhanced Quadrature Encoder Pulse Module
// Register Bit Definitions.
//
//###########################################################################
// $TI Release: 2833x/2823x Header Files and Peripheral Examples V133 $
// $Release Date: June 8, 2012 $
//###########################################################################
//----------------------------------------------------
// I2C interrupt vector register bit definitions */
struct I2CISRC_BITS { // bits description
uint16_t INTCODE:3; // 2:0 Interrupt code
uint16_t rsvd1:13; // 15:3 reserved
};
union I2CISRC_REG {
uint16_t all;
struct I2CISRC_BITS bit;
};
//----------------------------------------------------
// I2C interrupt mask register bit definitions */
struct I2CIER_BITS { // bits description
uint16_t ARBL:1; // 0 Arbitration lost interrupt
uint16_t NACK:1; // 1 No ack interrupt
uint16_t ARDY:1; // 2 Register access ready interrupt
uint16_t RRDY:1; // 3 Recieve data ready interrupt
uint16_t XRDY:1; // 4 Transmit data ready interrupt
uint16_t SCD:1; // 5 Stop condition detection
uint16_t AAS:1; // 6 Address as slave
uint16_t rsvd:9; // 15:7 reserved
};
union I2CIER_REG {
uint16_t all;
struct I2CIER_BITS bit;
};
//----------------------------------------------------
// I2C status register bit definitions */
struct I2CSTR_BITS { // bits description
uint16_t ARBL:1; // 0 Arbitration lost interrupt
uint16_t NACK:1; // 1 No ack interrupt
uint16_t ARDY:1; // 2 Register access ready interrupt
uint16_t RRDY:1; // 3 Recieve data ready interrupt
uint16_t XRDY:1; // 4 Transmit data ready interrupt
uint16_t SCD:1; // 5 Stop condition detection
uint16_t rsvd1:2; // 7:6 reserved
uint16_t AD0:1; // 8 Address Zero
uint16_t AAS:1; // 9 Address as slave
uint16_t XSMT:1; // 10 XMIT shift empty
uint16_t RSFULL:1; // 11 Recieve shift full
uint16_t BB:1; // 12 Bus busy
uint16_t NACKSNT:1; // 13 A no ack sent
uint16_t SDIR:1; // 14 Slave direction
uint16_t rsvd2:1; // 15 reserved
};
union I2CSTR_REG {
uint16_t all;
struct I2CSTR_BITS bit;
};
//----------------------------------------------------
// I2C mode control register bit definitions */
struct I2CMDR_BITS { // bits description
uint16_t BC:3; // 2:0 Bit count
uint16_t FDF:1; // 3 Free data format
uint16_t STB:1; // 4 Start byte
uint16_t IRS:1; // 5 I2C Reset not
uint16_t DLB:1; // 6 Digital loopback
uint16_t RM:1; // 7 Repeat mode
uint16_t XA:1; // 8 Expand address
uint16_t TRX:1; // 9 Transmitter/reciever
uint16_t MST:1; // 10 Master/slave
uint16_t STP:1; // 11 Stop condition
uint16_t rsvd1:1; // 12 reserved
uint16_t STT:1; // 13 Start condition
uint16_t FREE:1; // 14 Emulation mode
uint16_t NACKMOD:1; // 15 No Ack mode
};
union I2CMDR_REG {
uint16_t all;
struct I2CMDR_BITS bit;
};
//----------------------------------------------------
// I2C pre-scaler register bit definitions */
struct I2CPSC_BITS { // bits description
uint16_t IPSC:8; // 7:0 pre-scaler
uint16_t rsvd1:8; // 15:8 reserved
};
union I2CPSC_REG {
uint16_t all;
struct I2CPSC_BITS bit;
};
//----------------------------------------------------
// TX FIFO control register bit definitions */
struct I2CFFTX_BITS { // bits description
uint16_t TXFFIL:5; // 4:0 FIFO interrupt level
uint16_t TXFFIENA:1; // 5 FIFO interrupt enable/disable
uint16_t TXFFINTCLR:1; // 6 FIFO clear
uint16_t TXFFINT:1; // 7 FIFO interrupt flag
uint16_t TXFFST:5; // 12:8 FIFO level status
uint16_t TXFFRST:1; // 13 FIFO reset
uint16_t I2CFFEN:1; // 14 enable/disable TX & RX FIFOs
uint16_t rsvd1:1; // 15 reserved
};
union I2CFFTX_REG {
uint16_t all;
struct I2CFFTX_BITS bit;
};
//----------------------------------------------------
// RX FIFO control register bit definitions */
struct I2CFFRX_BITS { // bits description
uint16_t RXFFIL:5; // 4:0 FIFO interrupt level
uint16_t RXFFIENA:1; // 5 FIFO interrupt enable/disable
uint16_t RXFFINTCLR:1; // 6 FIFO clear
uint16_t RXFFINT:1; // 7 FIFO interrupt flag
uint16_t RXFFST:5; // 12:8 FIFO level
uint16_t RXFFRST:1; // 13 FIFO reset
uint16_t rsvd1:2; // 15:14 reserved
};
union I2CFFRX_REG {
uint16_t all;
struct I2CFFRX_BITS bit;
};
//----------------------------------------------------
struct I2C_REGS {
uint16_t I2COAR; // Own address register
union I2CIER_REG I2CIER; // Interrupt enable
union I2CSTR_REG I2CSTR; // Interrupt status
uint16_t I2CCLKL; // Clock divider low
uint16_t I2CCLKH; // Clock divider high
uint16_t I2CCNT; // Data count
uint16_t I2CDRR; // Data recieve
uint16_t I2CSAR; // Slave address
uint16_t I2CDXR; // Data transmit
union I2CMDR_REG I2CMDR; // Mode
union I2CISRC_REG I2CISRC; // Interrupt source
uint16_t rsvd1; // reserved
union I2CPSC_REG I2CPSC; // Pre-scaler
uint16_t rsvd2[19]; // reserved
union I2CFFTX_REG I2CFFTX; // Transmit FIFO
union I2CFFRX_REG I2CFFRX; // Recieve FIFO
};
//---------------------------------------------------------------------------
// External References & Function Declarations:
//
extern volatile struct I2C_REGS I2caRegs;
//===========================================================================
// End of file.
//===========================================================================
//###########################################################################
//
// FILE: DSP2833x_Mcbsp.h
//
// TITLE: DSP2833x Device McBSP Register Definitions.
//
//###########################################################################
// $TI Release: 2833x/2823x Header Files and Peripheral Examples V133 $
// $Release Date: June 8, 2012 $
//###########################################################################
//---------------------------------------------------------------------------
// McBSP Individual Register Bit Definitions:
//
// McBSP DRR2 register bit definitions:
struct DRR2_BITS { // bit description
uint16_t HWLB:8; // 16:23 High word low byte
uint16_t HWHB:8; // 24:31 High word high byte
};
union DRR2_REG {
uint16_t all;
struct DRR2_BITS bit;
};
// McBSP DRR1 register bit definitions:
struct DRR1_BITS { // bit description
uint16_t LWLB:8; // 16:23 Low word low byte
uint16_t LWHB:8; // 24:31 low word high byte
};
union DRR1_REG {
uint16_t all;
struct DRR1_BITS bit;
};
// McBSP DXR2 register bit definitions:
struct DXR2_BITS { // bit description
uint16_t HWLB:8; // 16:23 High word low byte
uint16_t HWHB:8; // 24:31 High word high byte
};
union DXR2_REG {
uint16_t all;
struct DXR2_BITS bit;
};
// McBSP DXR1 register bit definitions:
struct DXR1_BITS { // bit description
uint16_t LWLB:8; // 16:23 Low word low byte
uint16_t LWHB:8; // 24:31 low word high byte
};
union DXR1_REG {
uint16_t all;
struct DXR1_BITS bit;
};
// SPCR2 control register bit definitions:
struct SPCR2_BITS { // bit description
uint16_t XRST:1; // 0 transmit reset
uint16_t XRDY:1; // 1 transmit ready
uint16_t XEMPTY:1; // 2 Transmit empty
uint16_t XSYNCERR:1; // 3 Transmit syn errorINT flag
uint16_t XINTM:2; // 5:4 Transmit interrupt types
uint16_t GRST:1; // 6 CLKG reset
uint16_t FRST:1; // 7 Frame sync reset
uint16_t SOFT:1; // 8 SOFT bit
uint16_t FREE:1; // 9 FREE bit
uint16_t rsvd:6; // 15:10 reserved
};
union SPCR2_REG {
uint16_t all;
struct SPCR2_BITS bit;
};
// SPCR1 control register bit definitions:
struct SPCR1_BITS { // bit description
uint16_t RRST:1; // 0 Receive reset
uint16_t RRDY:1; // 1 Receive ready
uint16_t RFULL:1; // 2 Receive full
uint16_t RSYNCERR:1; // 7 Receive syn error
uint16_t RINTM:2; // 5:4 Receive interrupt types
uint16_t ABIS:1; // 6 ABIS mode select
uint16_t DXENA:1; // 7 DX hi-z enable
uint16_t rsvd:3; // 10:8 reserved
uint16_t CLKSTP:2; // 12:11 CLKSTOP mode bit
uint16_t RJUST:2; // 13:14 Right justified
uint16_t DLB:1; // 15 Digital loop back
};
union SPCR1_REG {
uint16_t all;
struct SPCR1_BITS bit;
};
// RCR2 control register bit definitions:
struct RCR2_BITS { // bit description
uint16_t RDATDLY:2; // 1:0 Receive data delay
uint16_t RFIG:1; // 2 Receive frame sync ignore
uint16_t RCOMPAND:2; // 4:3 Receive Companding Mode selects
uint16_t RWDLEN2:3; // 7:5 Receive word length
uint16_t RFRLEN2:7; // 14:8 Receive Frame sync
uint16_t RPHASE:1; // 15 Receive Phase
};
union RCR2_REG {
uint16_t all;
struct RCR2_BITS bit;
};
// RCR1 control register bit definitions:
struct RCR1_BITS { // bit description
uint16_t rsvd1:5; // 4:0 reserved
uint16_t RWDLEN1:3; // 7:5 Receive word length
uint16_t RFRLEN1:7; // 14:8 Receive frame length
uint16_t rsvd2:1; // 15 reserved
};
union RCR1_REG {
uint16_t all;
struct RCR1_BITS bit;
};
// XCR2 control register bit definitions:
struct XCR2_BITS { // bit description
uint16_t XDATDLY:2; // 1:0 Transmit data delay
uint16_t XFIG:1; // 2 Transmit frame sync ignore
uint16_t XCOMPAND:2; // 4:3 Transmit Companding Mode selects
uint16_t XWDLEN2:3; // 7:5 Transmit word length
uint16_t XFRLEN2:7; // 14:8 Transmit Frame sync
uint16_t XPHASE:1; // 15 Transmit Phase
};
union XCR2_REG {
uint16_t all;
struct XCR2_BITS bit;
};
// XCR1 control register bit definitions:
struct XCR1_BITS { // bit description
uint16_t rsvd1:5; // 4:0 reserved
uint16_t XWDLEN1:3; // 7:5 Transmit word length
uint16_t XFRLEN1:7; // 14:8 Transmit frame length
uint16_t rsvd2:1; // 15 reserved
};
union XCR1_REG {
uint16_t all;
struct XCR1_BITS bit;
};
// SRGR2 Sample rate generator control register bit definitions:
struct SRGR2_BITS { // bit description
uint16_t FPER:12; // 11:0 Frame period
uint16_t FSGM:1; // 12 Frame sync generator mode
uint16_t CLKSM:1; // 13 Sample rate generator mode
uint16_t rsvd:1; // 14 reserved
uint16_t GSYNC:1; // 15 CLKG sync
};
union SRGR2_REG {
uint16_t all;
struct SRGR2_BITS bit;
};
// SRGR1 control register bit definitions:
struct SRGR1_BITS { // bit description
uint16_t CLKGDV:8; // 7:0 CLKG divider
uint16_t FWID:8; // 15:8 Frame width
};
union SRGR1_REG {
uint16_t all;
struct SRGR1_BITS bit;
};
// MCR2 Multichannel control register bit definitions:
struct MCR2_BITS { // bit description
uint16_t XMCM:2; // 1:0 Transmit multichannel mode
uint16_t XCBLK:3; // 2:4 Transmit current block
uint16_t XPABLK:2; // 5:6 Transmit partition A Block
uint16_t XPBBLK:2; // 7:8 Transmit partition B Block
uint16_t XMCME:1; // 9 Transmit multi-channel enhance mode
uint16_t rsvd:6; // 15:10 reserved
};
union MCR2_REG {
uint16_t all;
struct MCR2_BITS bit;
};
// MCR1 Multichannel control register bit definitions:
struct MCR1_BITS { // bit description
uint16_t RMCM:1; // 0 Receive multichannel mode
uint16_t rsvd:1; // 1 reserved
uint16_t RCBLK:3; // 4:2 Receive current block
uint16_t RPABLK:2; // 6:5 Receive partition A Block
uint16_t RPBBLK:2; // 7:8 Receive partition B Block
uint16_t RMCME:1; // 9 Receive multi-channel enhance mode
uint16_t rsvd1:6; // 15:10 reserved
};
union MCR1_REG {
uint16_t all;
struct MCR1_BITS bit;
};
// RCERA control register bit definitions:
struct RCERA_BITS { // bit description
uint16_t RCEA0:1; // 0 Receive Channel enable bit
uint16_t RCEA1:1; // 1 Receive Channel enable bit
uint16_t RCEA2:1; // 2 Receive Channel enable bit
uint16_t RCEA3:1; // 3 Receive Channel enable bit
uint16_t RCEA4:1; // 4 Receive Channel enable bit
uint16_t RCEA5:1; // 5 Receive Channel enable bit
uint16_t RCEA6:1; // 6 Receive Channel enable bit
uint16_t RCEA7:1; // 7 Receive Channel enable bit
uint16_t RCEA8:1; // 8 Receive Channel enable bit
uint16_t RCEA9:1; // 9 Receive Channel enable bit
uint16_t RCEA10:1; // 10 Receive Channel enable bit
uint16_t RCEA11:1; // 11 Receive Channel enable bit
uint16_t RCEA12:1; // 12 Receive Channel enable bit
uint16_t RCEA13:1; // 13 Receive Channel enable bit
uint16_t RCEA14:1; // 14 Receive Channel enable bit
uint16_t RCEA15:1; // 15 Receive Channel enable bit
};
union RCERA_REG {
uint16_t all;
struct RCERA_BITS bit;
};
// RCERB control register bit definitions:
struct RCERB_BITS { // bit description
uint16_t RCEB0:1; // 0 Receive Channel enable bit
uint16_t RCEB1:1; // 1 Receive Channel enable bit
uint16_t RCEB2:1; // 2 Receive Channel enable bit
uint16_t RCEB3:1; // 3 Receive Channel enable bit
uint16_t RCEB4:1; // 4 Receive Channel enable bit
uint16_t RCEB5:1; // 5 Receive Channel enable bit
uint16_t RCEB6:1; // 6 Receive Channel enable bit
uint16_t RCEB7:1; // 7 Receive Channel enable bit
uint16_t RCEB8:1; // 8 Receive Channel enable bit
uint16_t RCEB9:1; // 9 Receive Channel enable bit
uint16_t RCEB10:1; // 10 Receive Channel enable bit
uint16_t RCEB11:1; // 11 Receive Channel enable bit
uint16_t RCEB12:1; // 12 Receive Channel enable bit
uint16_t RCEB13:1; // 13 Receive Channel enable bit
uint16_t RCEB14:1; // 14 Receive Channel enable bit
uint16_t RCEB15:1; // 15 Receive Channel enable bit
};
union RCERB_REG {
uint16_t all;
struct RCERB_BITS bit;
};
// XCERA control register bit definitions:
struct XCERA_BITS { // bit description
uint16_t XCERA0:1; // 0 Receive Channel enable bit
uint16_t XCERA1:1; // 1 Receive Channel enable bit
uint16_t XCERA2:1; // 2 Receive Channel enable bit
uint16_t XCERA3:1; // 3 Receive Channel enable bit
uint16_t XCERA4:1; // 4 Receive Channel enable bit
uint16_t XCERA5:1; // 5 Receive Channel enable bit
uint16_t XCERA6:1; // 6 Receive Channel enable bit
uint16_t XCERA7:1; // 7 Receive Channel enable bit
uint16_t XCERA8:1; // 8 Receive Channel enable bit
uint16_t XCERA9:1; // 9 Receive Channel enable bit
uint16_t XCERA10:1; // 10 Receive Channel enable bit
uint16_t XCERA11:1; // 11 Receive Channel enable bit
uint16_t XCERA12:1; // 12 Receive Channel enable bit
uint16_t XCERA13:1; // 13 Receive Channel enable bit
uint16_t XCERA14:1; // 14 Receive Channel enable bit
uint16_t XCERA15:1; // 15 Receive Channel enable bit
};
union XCERA_REG {
uint16_t all;
struct XCERA_BITS bit;
};
// XCERB control register bit definitions:
struct XCERB_BITS { // bit description
uint16_t XCERB0:1; // 0 Receive Channel enable bit
uint16_t XCERB1:1; // 1 Receive Channel enable bit
uint16_t XCERB2:1; // 2 Receive Channel enable bit
uint16_t XCERB3:1; // 3 Receive Channel enable bit
uint16_t XCERB4:1; // 4 Receive Channel enable bit
uint16_t XCERB5:1; // 5 Receive Channel enable bit
uint16_t XCERB6:1; // 6 Receive Channel enable bit
uint16_t XCERB7:1; // 7 Receive Channel enable bit
uint16_t XCERB8:1; // 8 Receive Channel enable bit
uint16_t XCERB9:1; // 9 Receive Channel enable bit
uint16_t XCERB10:1; // 10 Receive Channel enable bit
uint16_t XCERB11:1; // 11 Receive Channel enable bit
uint16_t XCERB12:1; // 12 Receive Channel enable bit
uint16_t XCERB13:1; // 13 Receive Channel enable bit
uint16_t XCERB14:1; // 14 Receive Channel enable bit
uint16_t XCERB15:1; // 15 Receive Channel enable bit
};
union XCERB_REG {
uint16_t all;
struct XCERB_BITS bit;
};
// PCR control register bit definitions:
struct PCR_BITS { // bit description
uint16_t CLKRP:1; // 0 Receive Clock polarity
uint16_t CLKXP:1; // 1 Transmit clock polarity
uint16_t FSRP:1; // 2 Receive Frame synchronization polarity
uint16_t FSXP:1; // 3 Transmit Frame synchronization polarity
uint16_t DR_STAT:1; // 4 DR pin status - reserved for this McBSP
uint16_t DX_STAT:1; // 5 DX pin status - reserved for this McBSP
uint16_t CLKS_STAT:1; // 6 CLKS pin status - reserved for 28x -McBSP
uint16_t SCLKME:1; // 7 Enhanced sample clock mode selection bit.
uint16_t CLKRM:1; // 8 Receiver Clock Mode
uint16_t CLKXM:1; // 9 Transmitter Clock Mode.
uint16_t FSRM:1; // 10 Receive Frame Synchronization Mode
uint16_t FSXM:1; // 11 Transmit Frame Synchronization Mode
uint16_t RIOEN:1; // 12 General Purpose I/O Mode - reserved in this 28x-McBSP
uint16_t XIOEN:1; // 13 General Purpose I/O Mode - reserved in this 28x-McBSP
uint16_t IDEL_EN:1; // 14 reserved in this 28x-McBSP
uint16_t rsvd:1 ; // 15 reserved
};
union PCR_REG {
uint16_t all;
struct PCR_BITS bit;
};
// RCERC control register bit definitions:
struct RCERC_BITS { // bit description
uint16_t RCEC0:1; // 0 Receive Channel enable bit
uint16_t RCEC1:1; // 1 Receive Channel enable bit
uint16_t RCEC2:1; // 2 Receive Channel enable bit
uint16_t RCEC3:1; // 3 Receive Channel enable bit
uint16_t RCEC4:1; // 4 Receive Channel enable bit
uint16_t RCEC5:1; // 5 Receive Channel enable bit
uint16_t RCEC6:1; // 6 Receive Channel enable bit
uint16_t RCEC7:1; // 7 Receive Channel enable bit
uint16_t RCEC8:1; // 8 Receive Channel enable bit
uint16_t RCEC9:1; // 9 Receive Channel enable bit
uint16_t RCEC10:1; // 10 Receive Channel enable bit
uint16_t RCEC11:1; // 11 Receive Channel enable bit
uint16_t RCEC12:1; // 12 Receive Channel enable bit
uint16_t RCEC13:1; // 13 Receive Channel enable bit
uint16_t RCEC14:1; // 14 Receive Channel enable bit
uint16_t RCEC15:1; // 15 Receive Channel enable bit
};
union RCERC_REG {
uint16_t all;
struct RCERC_BITS bit;
};
// RCERD control register bit definitions:
struct RCERD_BITS { // bit description
uint16_t RCED0:1; // 0 Receive Channel enable bit
uint16_t RCED1:1; // 1 Receive Channel enable bit
uint16_t RCED2:1; // 2 Receive Channel enable bit
uint16_t RCED3:1; // 3 Receive Channel enable bit
uint16_t RCED4:1; // 4 Receive Channel enable bit
uint16_t RCED5:1; // 5 Receive Channel enable bit
uint16_t RCED6:1; // 6 Receive Channel enable bit
uint16_t RCED7:1; // 7 Receive Channel enable bit
uint16_t RCED8:1; // 8 Receive Channel enable bit
uint16_t RCED9:1; // 9 Receive Channel enable bit
uint16_t RCED10:1; // 10 Receive Channel enable bit
uint16_t RCED11:1; // 11 Receive Channel enable bit
uint16_t RCED12:1; // 12 Receive Channel enable bit
uint16_t RCED13:1; // 13 Receive Channel enable bit
uint16_t RCED14:1; // 14 Receive Channel enable bit
uint16_t RCED15:1; // 15 Receive Channel enable bit
};
union RCERD_REG {
uint16_t all;
struct RCERD_BITS bit;
};
// XCERC control register bit definitions:
struct XCERC_BITS { // bit description
uint16_t XCERC0:1; // 0 Receive Channel enable bit
uint16_t XCERC1:1; // 1 Receive Channel enable bit
uint16_t XCERC2:1; // 2 Receive Channel enable bit
uint16_t XCERC3:1; // 3 Receive Channel enable bit
uint16_t XCERC4:1; // 4 Receive Channel enable bit
uint16_t XCERC5:1; // 5 Receive Channel enable bit
uint16_t XCERC6:1; // 6 Receive Channel enable bit
uint16_t XCERC7:1; // 7 Receive Channel enable bit
uint16_t XCERC8:1; // 8 Receive Channel enable bit
uint16_t XCERC9:1; // 9 Receive Channel enable bit
uint16_t XCERC10:1; // 10 Receive Channel enable bit
uint16_t XCERC11:1; // 11 Receive Channel enable bit
uint16_t XCERC12:1; // 12 Receive Channel enable bit
uint16_t XCERC13:1; // 13 Receive Channel enable bit
uint16_t XCERC14:1; // 14 Receive Channel enable bit
uint16_t XCERC15:1; // 15 Receive Channel enable bit
};
union XCERC_REG {
uint16_t all;
struct XCERC_BITS bit;
};
// XCERD control register bit definitions:
struct XCERD_BITS { // bit description
uint16_t XCERD0:1; // 0 Receive Channel enable bit
uint16_t XCERD1:1; // 1 Receive Channel enable bit
uint16_t XCERD2:1; // 2 Receive Channel enable bit
uint16_t XCERD3:1; // 3 Receive Channel enable bit
uint16_t XCERD4:1; // 4 Receive Channel enable bit
uint16_t XCERD5:1; // 5 Receive Channel enable bit
uint16_t XCERD6:1; // 6 Receive Channel enable bit
uint16_t XCERD7:1; // 7 Receive Channel enable bit
uint16_t XCERD8:1; // 8 Receive Channel enable bit
uint16_t XCERD9:1; // 9 Receive Channel enable bit
uint16_t XCERD10:1; // 10 Receive Channel enable bit
uint16_t XCERD11:1; // 11 Receive Channel enable bit
uint16_t XCERD12:1; // 12 Receive Channel enable bit
uint16_t XCERD13:1; // 13 Receive Channel enable bit
uint16_t XCERD14:1; // 14 Receive Channel enable bit
uint16_t XCERD15:1; // 15 Receive Channel enable bit
};
union XCERD_REG {
uint16_t all;
struct XCERD_BITS bit;
};
// RCERE control register bit definitions:
struct RCERE_BITS { // bit description
uint16_t RCEE0:1; // 0 Receive Channel enable bit
uint16_t RCEE1:1; // 1 Receive Channel enable bit
uint16_t RCEE2:1; // 2 Receive Channel enable bit
uint16_t RCEE3:1; // 3 Receive Channel enable bit
uint16_t RCEE4:1; // 4 Receive Channel enable bit
uint16_t RCEE5:1; // 5 Receive Channel enable bit
uint16_t RCEE6:1; // 6 Receive Channel enable bit
uint16_t RCEE7:1; // 7 Receive Channel enable bit
uint16_t RCEE8:1; // 8 Receive Channel enable bit
uint16_t RCEE9:1; // 9 Receive Channel enable bit
uint16_t RCEE10:1; // 10 Receive Channel enable bit
uint16_t RCEE11:1; // 11 Receive Channel enable bit
uint16_t RCEE12:1; // 12 Receive Channel enable bit
uint16_t RCEE13:1; // 13 Receive Channel enable bit
uint16_t RCEE14:1; // 14 Receive Channel enable bit
uint16_t RCEE15:1; // 15 Receive Channel enable bit
};
union RCERE_REG {
uint16_t all;
struct RCERE_BITS bit;
};
// RCERF control register bit definitions:
struct RCERF_BITS { // bit description
uint16_t RCEF0:1; // 0 Receive Channel enable bit
uint16_t RCEF1:1; // 1 Receive Channel enable bit
uint16_t RCEF2:1; // 2 Receive Channel enable bit
uint16_t RCEF3:1; // 3 Receive Channel enable bit
uint16_t RCEF4:1; // 4 Receive Channel enable bit
uint16_t RCEF5:1; // 5 Receive Channel enable bit
uint16_t RCEF6:1; // 6 Receive Channel enable bit
uint16_t RCEF7:1; // 7 Receive Channel enable bit
uint16_t RCEF8:1; // 8 Receive Channel enable bit
uint16_t RCEF9:1; // 9 Receive Channel enable bit
uint16_t RCEF10:1; // 10 Receive Channel enable bit
uint16_t RCEF11:1; // 11 Receive Channel enable bit
uint16_t RCEF12:1; // 12 Receive Channel enable bit
uint16_t RCEF13:1; // 13 Receive Channel enable bit
uint16_t RCEF14:1; // 14 Receive Channel enable bit
uint16_t RCEF15:1; // 15 Receive Channel enable bit
};
union RCERF_REG {
uint16_t all;
struct RCERF_BITS bit;
};
// XCERE control register bit definitions:
struct XCERE_BITS { // bit description
uint16_t XCERE0:1; // 0 Receive Channel enable bit
uint16_t XCERE1:1; // 1 Receive Channel enable bit
uint16_t XCERE2:1; // 2 Receive Channel enable bit
uint16_t XCERE3:1; // 3 Receive Channel enable bit
uint16_t XCERE4:1; // 4 Receive Channel enable bit
uint16_t XCERE5:1; // 5 Receive Channel enable bit
uint16_t XCERE6:1; // 6 Receive Channel enable bit
uint16_t XCERE7:1; // 7 Receive Channel enable bit
uint16_t XCERE8:1; // 8 Receive Channel enable bit
uint16_t XCERE9:1; // 9 Receive Channel enable bit
uint16_t XCERE10:1; // 10 Receive Channel enable bit
uint16_t XCERE11:1; // 11 Receive Channel enable bit
uint16_t XCERE12:1; // 12 Receive Channel enable bit
uint16_t XCERE13:1; // 13 Receive Channel enable bit
uint16_t XCERE14:1; // 14 Receive Channel enable bit
uint16_t XCERE15:1; // 15 Receive Channel enable bit
};
union XCERE_REG {
uint16_t all;
struct XCERE_BITS bit;
};
// XCERF control register bit definitions:
struct XCERF_BITS { // bit description
uint16_t XCERF0:1; // 0 Receive Channel enable bit
uint16_t XCERF1:1; // 1 Receive Channel enable bit
uint16_t XCERF2:1; // 2 Receive Channel enable bit
uint16_t XCERF3:1; // 3 Receive Channel enable bit
uint16_t XCERF4:1; // 4 Receive Channel enable bit
uint16_t XCERF5:1; // 5 Receive Channel enable bit
uint16_t XCERF6:1; // 6 Receive Channel enable bit
uint16_t XCERF7:1; // 7 Receive Channel enable bit
uint16_t XCERF8:1; // 8 Receive Channel enable bit
uint16_t XCERF9:1; // 9 Receive Channel enable bit
uint16_t XCERF10:1; // 10 Receive Channel enable bit
uint16_t XCERF11:1; // 11 Receive Channel enable bit
uint16_t XCERF12:1; // 12 Receive Channel enable bit
uint16_t XCERF13:1; // 13 Receive Channel enable bit
uint16_t XCERF14:1; // 14 Receive Channel enable bit
uint16_t XCERF15:1; // 15 Receive Channel enable bit
};
union XCERF_REG {
uint16_t all;
struct XCERF_BITS bit;
};
// RCERG control register bit definitions:
struct RCERG_BITS { // bit description
uint16_t RCEG0:1; // 0 Receive Channel enable bit
uint16_t RCEG1:1; // 1 Receive Channel enable bit
uint16_t RCEG2:1; // 2 Receive Channel enable bit
uint16_t RCEG3:1; // 3 Receive Channel enable bit
uint16_t RCEG4:1; // 4 Receive Channel enable bit
uint16_t RCEG5:1; // 5 Receive Channel enable bit
uint16_t RCEG6:1; // 6 Receive Channel enable bit
uint16_t RCEG7:1; // 7 Receive Channel enable bit
uint16_t RCEG8:1; // 8 Receive Channel enable bit
uint16_t RCEG9:1; // 9 Receive Channel enable bit
uint16_t RCEG10:1; // 10 Receive Channel enable bit
uint16_t RCEG11:1; // 11 Receive Channel enable bit
uint16_t RCEG12:1; // 12 Receive Channel enable bit
uint16_t RCEG13:1; // 13 Receive Channel enable bit
uint16_t RCEG14:1; // 14 Receive Channel enable bit
uint16_t RCEG15:1; // 15 Receive Channel enable bit
};
union RCERG_REG {
uint16_t all;
struct RCERG_BITS bit;
};
// RCERH control register bit definitions:
struct RCERH_BITS { // bit description
uint16_t RCEH0:1; // 0 Receive Channel enable bit
uint16_t RCEH1:1; // 1 Receive Channel enable bit
uint16_t RCEH2:1; // 2 Receive Channel enable bit
uint16_t RCEH3:1; // 3 Receive Channel enable bit
uint16_t RCEH4:1; // 4 Receive Channel enable bit
uint16_t RCEH5:1; // 5 Receive Channel enable bit
uint16_t RCEH6:1; // 6 Receive Channel enable bit
uint16_t RCEH7:1; // 7 Receive Channel enable bit
uint16_t RCEH8:1; // 8 Receive Channel enable bit
uint16_t RCEH9:1; // 9 Receive Channel enable bit
uint16_t RCEH10:1; // 10 Receive Channel enable bit
uint16_t RCEH11:1; // 11 Receive Channel enable bit
uint16_t RCEH12:1; // 12 Receive Channel enable bit
uint16_t RCEH13:1; // 13 Receive Channel enable bit
uint16_t RCEH14:1; // 14 Receive Channel enable bit
uint16_t RCEH15:1; // 15 Receive Channel enable bit
};
union RCERH_REG {
uint16_t all;
struct RCERH_BITS bit;
};
// XCERG control register bit definitions:
struct XCERG_BITS { // bit description
uint16_t XCERG0:1; // 0 Receive Channel enable bit
uint16_t XCERG1:1; // 1 Receive Channel enable bit
uint16_t XCERG2:1; // 2 Receive Channel enable bit
uint16_t XCERG3:1; // 3 Receive Channel enable bit
uint16_t XCERG4:1; // 4 Receive Channel enable bit
uint16_t XCERG5:1; // 5 Receive Channel enable bit
uint16_t XCERG6:1; // 6 Receive Channel enable bit
uint16_t XCERG7:1; // 7 Receive Channel enable bit
uint16_t XCERG8:1; // 8 Receive Channel enable bit
uint16_t XCERG9:1; // 9 Receive Channel enable bit
uint16_t XCERG10:1; // 10 Receive Channel enable bit
uint16_t XCERG11:1; // 11 Receive Channel enable bit
uint16_t XCERG12:1; // 12 Receive Channel enable bit
uint16_t XCERG13:1; // 13 Receive Channel enable bit
uint16_t XCERG14:1; // 14 Receive Channel enable bit
uint16_t XCERG15:1; // 15 Receive Channel enable bit
};
union XCERG_REG {
uint16_t all;
struct XCERG_BITS bit;
};
// XCERH control register bit definitions:
struct XCERH_BITS { // bit description
uint16_t XCEH0:1; // 0 Receive Channel enable bit
uint16_t XCEH1:1; // 1 Receive Channel enable bit
uint16_t XCEH2:1; // 2 Receive Channel enable bit
uint16_t XCEH3:1; // 3 Receive Channel enable bit
uint16_t XCEH4:1; // 4 Receive Channel enable bit
uint16_t XCEH5:1; // 5 Receive Channel enable bit
uint16_t XCEH6:1; // 6 Receive Channel enable bit
uint16_t XCEH7:1; // 7 Receive Channel enable bit
uint16_t XCEH8:1; // 8 Receive Channel enable bit
uint16_t XCEH9:1; // 9 Receive Channel enable bit
uint16_t XCEH10:1; // 10 Receive Channel enable bit
uint16_t XCEH11:1; // 11 Receive Channel enable bit
uint16_t XCEH12:1; // 12 Receive Channel enable bit
uint16_t XCEH13:1; // 13 Receive Channel enable bit
uint16_t XCEH14:1; // 14 Receive Channel enable bit
uint16_t XCEH15:1; // 15 Receive Channel enable bit
};
union XCERH_REG {
uint16_t all;
struct XCERH_BITS bit;
};
// McBSP Interrupt enable register for RINT/XINT
struct MFFINT_BITS { // bits description
uint16_t XINT:1; // 0 XINT interrupt enable
uint16_t rsvd1:1; // 1 reserved
uint16_t RINT:1; // 2 RINT interrupt enable
uint16_t rsvd2:13; // 15:3 reserved
};
union MFFINT_REG {
uint16_t all;
struct MFFINT_BITS bit;
};
//---------------------------------------------------------------------------
// McBSP Register File:
//
struct MCBSP_REGS {
union DRR2_REG DRR2; // MCBSP Data receive register bits 31-16
union DRR1_REG DRR1; // MCBSP Data receive register bits 15-0
union DXR2_REG DXR2; // MCBSP Data transmit register bits 31-16
union DXR1_REG DXR1; // MCBSP Data transmit register bits 15-0
union SPCR2_REG SPCR2; // MCBSP control register bits 31-16
union SPCR1_REG SPCR1; // MCBSP control register bits 15-0
union RCR2_REG RCR2; // MCBSP receive control register bits 31-16
union RCR1_REG RCR1; // MCBSP receive control register bits 15-0
union XCR2_REG XCR2; // MCBSP transmit control register bits 31-16
union XCR1_REG XCR1; // MCBSP transmit control register bits 15-0
union SRGR2_REG SRGR2; // MCBSP sample rate gen register bits 31-16
union SRGR1_REG SRGR1; // MCBSP sample rate gen register bits 15-0
union MCR2_REG MCR2; // MCBSP multichannel register bits 31-16
union MCR1_REG MCR1; // MCBSP multichannel register bits 15-0
union RCERA_REG RCERA; // MCBSP Receive channel enable partition A
union RCERB_REG RCERB; // MCBSP Receive channel enable partition B
union XCERA_REG XCERA; // MCBSP Transmit channel enable partition A
union XCERB_REG XCERB; // MCBSP Transmit channel enable partition B
union PCR_REG PCR; // MCBSP Pin control register bits 15-0
union RCERC_REG RCERC; // MCBSP Receive channel enable partition C
union RCERD_REG RCERD; // MCBSP Receive channel enable partition D
union XCERC_REG XCERC; // MCBSP Transmit channel enable partition C
union XCERD_REG XCERD; // MCBSP Transmit channel enable partition D
union RCERE_REG RCERE; // MCBSP Receive channel enable partition E
union RCERF_REG RCERF; // MCBSP Receive channel enable partition F
union XCERE_REG XCERE; // MCBSP Transmit channel enable partition E
union XCERF_REG XCERF; // MCBSP Transmit channel enable partition F
union RCERG_REG RCERG; // MCBSP Receive channel enable partition G
union RCERH_REG RCERH; // MCBSP Receive channel enable partition H
union XCERG_REG XCERG; // MCBSP Transmit channel enable partition G
union XCERH_REG XCERH; // MCBSP Transmit channel enable partition H
uint16_t rsvd1[4]; // reserved
union MFFINT_REG MFFINT; // MCBSP Interrupt enable register for RINT/XINT
uint16_t rsvd2; // reserved
};
//---------------------------------------------------------------------------
// McBSP External References & Function Declarations:
//
extern volatile struct MCBSP_REGS McbspaRegs;
extern volatile struct MCBSP_REGS McbspbRegs;
//===========================================================================
// No more.
//===========================================================================
/*--------------------------------------------------------------------------------------*/
/* Copyright (c) 2015...2015 Baker Hughes, Inc.
* All Rights Reserved.
* The information contained herein is confidential property of Baker Hughes, Inc.
* The use, copying, transfer or disclosure of such information is prohibited except
* by express written agreement with Baker Hughes, Inc. */
/*--------------------------------------------------------------------------------------*/
//###########################################################################
//
// FILE: DSP2833x_PieCtrl.h
//
// TITLE: DSP2833x Device PIE Control Register Definitions.
//
//###########################################################################
// $TI Release: 2833x/2823x Header Files and Peripheral Examples V133 $
// $Release Date: June 8, 2012 $
// 25.02.2015 added "u" suffix (LINT)
//###########################################################################
//---------------------------------------------------------------------------
// PIE Control Register Bit Definitions:
//
// PIECTRL: Register bit definitions:
struct PIECTRL_BITS { // bits description
uint16_t ENPIE:1; // 0 Enable PIE block
uint16_t PIEVECT:15; // 15:1 Fetched vector address
};
union PIECTRL_REG {
uint16_t all;
struct PIECTRL_BITS bit;
};
// PIEIER: Register bit definitions:
struct PIEIER_BITS { // bits description
uint16_t INTx1:1; // 0 INTx.1
uint16_t INTx2:1; // 1 INTx.2
uint16_t INTx3:1; // 2 INTx.3
uint16_t INTx4:1; // 3 INTx.4
uint16_t INTx5:1; // 4 INTx.5
uint16_t INTx6:1; // 5 INTx.6
uint16_t INTx7:1; // 6 INTx.7
uint16_t INTx8:1; // 7 INTx.8
uint16_t rsvd:8; // 15:8 reserved
};
union PIEIER_REG {
uint16_t all;
struct PIEIER_BITS bit;
};
// PIEIFR: Register bit definitions:
struct PIEIFR_BITS { // bits description
uint16_t INTx1:1; // 0 INTx.1
uint16_t INTx2:1; // 1 INTx.2
uint16_t INTx3:1; // 2 INTx.3
uint16_t INTx4:1; // 3 INTx.4
uint16_t INTx5:1; // 4 INTx.5
uint16_t INTx6:1; // 5 INTx.6
uint16_t INTx7:1; // 6 INTx.7
uint16_t INTx8:1; // 7 INTx.8
uint16_t rsvd:8; // 15:8 reserved
};
union PIEIFR_REG {
uint16_t all;
struct PIEIFR_BITS bit;
};
// PIEACK: Register bit definitions:
struct PIEACK_BITS { // bits description
uint16_t ACK1:1; // 0 Acknowledge PIE interrupt group 1
uint16_t ACK2:1; // 1 Acknowledge PIE interrupt group 2
uint16_t ACK3:1; // 2 Acknowledge PIE interrupt group 3
uint16_t ACK4:1; // 3 Acknowledge PIE interrupt group 4
uint16_t ACK5:1; // 4 Acknowledge PIE interrupt group 5
uint16_t ACK6:1; // 5 Acknowledge PIE interrupt group 6
uint16_t ACK7:1; // 6 Acknowledge PIE interrupt group 7
uint16_t ACK8:1; // 7 Acknowledge PIE interrupt group 8
uint16_t ACK9:1; // 8 Acknowledge PIE interrupt group 9
uint16_t ACK10:1; // 9 Acknowledge PIE interrupt group 10
uint16_t ACK11:1; // 10 Acknowledge PIE interrupt group 11
uint16_t ACK12:1; // 11 Acknowledge PIE interrupt group 12
uint16_t rsvd:4; // 15:12 reserved
};
union PIEACK_REG {
uint16_t all;
struct PIEACK_BITS bit;
};
//---------------------------------------------------------------------------
// PIE Control Register File:
//
struct PIE_CTRL_REGS {
union PIECTRL_REG PIECTRL; // PIE control register
union PIEACK_REG PIEACK; // PIE acknowledge
union PIEIER_REG PIEIER1; // PIE int1 IER register
union PIEIFR_REG PIEIFR1; // PIE int1 IFR register
union PIEIER_REG PIEIER2; // PIE INT2 IER register
union PIEIFR_REG PIEIFR2; // PIE INT2 IFR register
union PIEIER_REG PIEIER3; // PIE INT3 IER register
union PIEIFR_REG PIEIFR3; // PIE INT3 IFR register
union PIEIER_REG PIEIER4; // PIE INT4 IER register
union PIEIFR_REG PIEIFR4; // PIE INT4 IFR register
union PIEIER_REG PIEIER5; // PIE INT5 IER register
union PIEIFR_REG PIEIFR5; // PIE INT5 IFR register
union PIEIER_REG PIEIER6; // PIE INT6 IER register
union PIEIFR_REG PIEIFR6; // PIE INT6 IFR register
union PIEIER_REG PIEIER7; // PIE INT7 IER register
union PIEIFR_REG PIEIFR7; // PIE INT7 IFR register
union PIEIER_REG PIEIER8; // PIE INT8 IER register
union PIEIFR_REG PIEIFR8; // PIE INT8 IFR register
union PIEIER_REG PIEIER9; // PIE INT9 IER register
union PIEIFR_REG PIEIFR9; // PIE INT9 IFR register
union PIEIER_REG PIEIER10; // PIE int10 IER register
union PIEIFR_REG PIEIFR10; // PIE int10 IFR register
union PIEIER_REG PIEIER11; // PIE int11 IER register
union PIEIFR_REG PIEIFR11; // PIE int11 IFR register
union PIEIER_REG PIEIER12; // PIE int12 IER register
union PIEIFR_REG PIEIFR12; // PIE int12 IFR register
};
//---------------------------------------------------------------------------
// PIE Control Registers External References & Function Declarations:
//
extern volatile struct PIE_CTRL_REGS PieCtrlRegs;
//===========================================================================
// End of file.
//===========================================================================
//###########################################################################
//
// FILE: DSP2833x_PieVect.h
//
// TITLE: DSP2833x Devices PIE Vector Table Definitions.
//
//###########################################################################
// $TI Release: 2833x/2823x Header Files and Peripheral Examples V133 $
// $Release Date: June 8, 2012 $
//###########################################################################
//---------------------------------------------------------------------------
// PIE Interrupt Vector Table Definition:
//
// Create a user type called PINT (pointer to interrupt):
typedef interrupt void(*PINT)(void);
// Define Vector Table:
struct PIE_VECT_TABLE {
// Reset is never fetched from this table.
// It will always be fetched from 0x3FFFC0 in
// boot ROM
PINT PIE1_RESERVED;
PINT PIE2_RESERVED;
PINT PIE3_RESERVED;
PINT PIE4_RESERVED;
PINT PIE5_RESERVED;
PINT PIE6_RESERVED;
PINT PIE7_RESERVED;
PINT PIE8_RESERVED;
PINT PIE9_RESERVED;
PINT PIE10_RESERVED;
PINT PIE11_RESERVED;
PINT PIE12_RESERVED;
PINT PIE13_RESERVED;
// Non-Peripheral Interrupts:
PINT XINT13; // XINT13 / CPU-Timer1
PINT TINT2; // CPU-Timer2
PINT DATALOG; // Datalogging interrupt
PINT RTOSINT; // RTOS interrupt
PINT EMUINT; // Emulation interrupt
PINT XNMI; // Non-maskable interrupt
PINT ILLEGAL; // Illegal operation TRAP
PINT USER1; // User Defined trap 1
PINT USER2; // User Defined trap 2
PINT USER3; // User Defined trap 3
PINT USER4; // User Defined trap 4
PINT USER5; // User Defined trap 5
PINT USER6; // User Defined trap 6
PINT USER7; // User Defined trap 7
PINT USER8; // User Defined trap 8
PINT USER9; // User Defined trap 9
PINT USER10; // User Defined trap 10
PINT USER11; // User Defined trap 11
PINT USER12; // User Defined trap 12
// Group 1 PIE Peripheral Vectors:
PINT SEQ1INT;
PINT SEQ2INT;
PINT rsvd1_3;
PINT XINT1;
PINT XINT2;
PINT ADCINT; // ADC
PINT TINT0; // Timer 0
PINT WAKEINT; // WD
// Group 2 PIE Peripheral Vectors:
PINT EPWM1_TZINT; // EPWM-1
PINT EPWM2_TZINT; // EPWM-2
PINT EPWM3_TZINT; // EPWM-3
PINT EPWM4_TZINT; // EPWM-4
PINT EPWM5_TZINT; // EPWM-5
PINT EPWM6_TZINT; // EPWM-6
PINT rsvd2_7;
PINT rsvd2_8;
// Group 3 PIE Peripheral Vectors:
PINT EPWM1_INT; // EPWM-1
PINT EPWM2_INT; // EPWM-2
PINT EPWM3_INT; // EPWM-3
PINT EPWM4_INT; // EPWM-4
PINT EPWM5_INT; // EPWM-5
PINT EPWM6_INT; // EPWM-6
PINT rsvd3_7;
PINT rsvd3_8;
// Group 4 PIE Peripheral Vectors:
PINT ECAP1_INT; // ECAP-1
PINT ECAP2_INT; // ECAP-2
PINT ECAP3_INT; // ECAP-3
PINT ECAP4_INT; // ECAP-4
PINT ECAP5_INT; // ECAP-5
PINT ECAP6_INT; // ECAP-6
PINT rsvd4_7;
PINT rsvd4_8;
// Group 5 PIE Peripheral Vectors:
PINT EQEP1_INT; // EQEP-1
PINT EQEP2_INT; // EQEP-2
PINT rsvd5_3;
PINT rsvd5_4;
PINT rsvd5_5;
PINT rsvd5_6;
PINT rsvd5_7;
PINT rsvd5_8;
// Group 6 PIE Peripheral Vectors:
PINT SPIRXINTA; // SPI-A
PINT SPITXINTA; // SPI-A
PINT MRINTB; // McBSP-B
PINT MXINTB; // McBSP-B
PINT MRINTA; // McBSP-A
PINT MXINTA; // McBSP-A
PINT rsvd6_7;
PINT rsvd6_8;
// Group 7 PIE Peripheral Vectors:
PINT DINTCH1; // DMA
PINT DINTCH2; // DMA
PINT DINTCH3; // DMA
PINT DINTCH4; // DMA
PINT DINTCH5; // DMA
PINT DINTCH6; // DMA
PINT rsvd7_7;
PINT rsvd7_8;
// Group 8 PIE Peripheral Vectors:
PINT I2CINT1A; // I2C-A
PINT I2CINT2A; // I2C-A
PINT rsvd8_3;
PINT rsvd8_4;
PINT SCIRXINTC; // SCI-C
PINT SCITXINTC; // SCI-C
PINT rsvd8_7;
PINT rsvd8_8;
// Group 9 PIE Peripheral Vectors:
PINT SCIRXINTA; // SCI-A
PINT SCITXINTA; // SCI-A
PINT SCIRXINTB; // SCI-B
PINT SCITXINTB; // SCI-B
PINT ECAN0INTA; // eCAN-A
PINT ECAN1INTA; // eCAN-A
PINT ECAN0INTB; // eCAN-B
PINT ECAN1INTB; // eCAN-B
// Group 10 PIE Peripheral Vectors:
PINT rsvd10_1;
PINT rsvd10_2;
PINT rsvd10_3;
PINT rsvd10_4;
PINT rsvd10_5;
PINT rsvd10_6;
PINT rsvd10_7;
PINT rsvd10_8;
// Group 11 PIE Peripheral Vectors:
PINT rsvd11_1;
PINT rsvd11_2;
PINT rsvd11_3;
PINT rsvd11_4;
PINT rsvd11_5;
PINT rsvd11_6;
PINT rsvd11_7;
PINT rsvd11_8;
// Group 12 PIE Peripheral Vectors:
PINT XINT3; // External interrupt
PINT XINT4;
PINT XINT5;
PINT XINT6;
PINT XINT7;
PINT rsvd12_6;
PINT LVF; // Latched overflow
PINT LUF; // Latched underflow
};
//---------------------------------------------------------------------------
// PIE Interrupt Vector Table External References & Function Declarations:
//
extern struct PIE_VECT_TABLE PieVectTable;
//===========================================================================
// End of file.
//===========================================================================
//###########################################################################
//
// FILE: DSP2833x_Spi.h
//
// TITLE: DSP2833x Device SPI Register Definitions.
//
//###########################################################################
// $TI Release: 2833x/2823x Header Files and Peripheral Examples V133 $
// $Release Date: June 8, 2012 $
//###########################################################################
//---------------------------------------------------------------------------
// SPI Individual Register Bit Definitions:
//
// SPI FIFO Transmit register bit definitions:
struct SPIFFTX_BITS { // bit description
uint16_t TXFFIL:5; // 4:0 Interrupt level
uint16_t TXFFIENA:1; // 5 Interrupt enable
uint16_t TXFFINTCLR:1; // 6 Clear INT flag
uint16_t TXFFINT:1; // 7 INT flag
uint16_t TXFFST:5; // 12:8 FIFO status
uint16_t TXFIFO:1; // 13 FIFO reset
uint16_t SPIFFENA:1; // 14 Enhancement enable
uint16_t SPIRST:1; // 15 Reset SPI
};
union SPIFFTX_REG {
uint16_t all;
struct SPIFFTX_BITS bit;
};
//--------------------------------------------
// SPI FIFO recieve register bit definitions:
//
//
struct SPIFFRX_BITS { // bits description
uint16_t RXFFIL:5; // 4:0 Interrupt level
uint16_t RXFFIENA:1; // 5 Interrupt enable
uint16_t RXFFINTCLR:1; // 6 Clear INT flag
uint16_t RXFFINT:1; // 7 INT flag
uint16_t RXFFST:5; // 12:8 FIFO status
uint16_t RXFIFORESET:1; // 13 FIFO reset
uint16_t RXFFOVFCLR:1; // 14 Clear overflow
uint16_t RXFFOVF:1; // 15 FIFO overflow
};
union SPIFFRX_REG {
uint16_t all;
struct SPIFFRX_BITS bit;
};
//--------------------------------------------
// SPI FIFO control register bit definitions:
//
//
struct SPIFFCT_BITS { // bits description
uint16_t TXDLY:8; // 7:0 FIFO transmit delay
uint16_t rsvd:8; // 15:8 reserved
};
union SPIFFCT_REG {
uint16_t all;
struct SPIFFCT_BITS bit;
};
//---------------------------------------------
// SPI configuration register bit definitions:
//
//
struct SPICCR_BITS { // bits description
uint16_t SPICHAR:4; // 3:0 Character length control
uint16_t SPILBK:1; // 4 Loop-back enable/disable
uint16_t rsvd1:1; // 5 reserved
uint16_t CLKPOLARITY:1; // 6 Clock polarity
uint16_t SPISWRESET:1; // 7 SPI SW Reset
uint16_t rsvd2:8; // 15:8 reserved
};
union SPICCR_REG {
uint16_t all;
struct SPICCR_BITS bit;
};
//-------------------------------------------------
// SPI operation control register bit definitions:
//
//
struct SPICTL_BITS { // bits description
uint16_t SPIINTENA:1; // 0 Interrupt enable
uint16_t TALK:1; // 1 Master/Slave transmit enable
uint16_t MASTER_SLAVE:1; // 2 Network control mode
uint16_t CLK_PHASE:1; // 3 Clock phase select
uint16_t OVERRUNINTENA:1; // 4 Overrun interrupt enable
uint16_t rsvd:11; // 15:5 reserved
};
union SPICTL_REG {
uint16_t all;
struct SPICTL_BITS bit;
};
//--------------------------------------
// SPI status register bit definitions:
//
//
struct SPISTS_BITS { // bits description
uint16_t rsvd1:5; // 4:0 reserved
uint16_t BUFFULL_FLAG:1; // 5 SPI transmit buffer full flag
uint16_t INT_FLAG:1; // 6 SPI interrupt flag
uint16_t OVERRUN_FLAG:1; // 7 SPI reciever overrun flag
uint16_t rsvd2:8; // 15:8 reserved
};
union SPISTS_REG {
uint16_t all;
struct SPISTS_BITS bit;
};
//------------------------------------------------
// SPI priority control register bit definitions:
//
//
struct SPIPRI_BITS { // bits description
uint16_t rsvd1:4; // 3:0 reserved
uint16_t FREE:1; // 4 Free emulation mode control
uint16_t SOFT:1; // 5 Soft emulation mode control
uint16_t rsvd2:1; // 6 reserved
uint16_t rsvd3:9; // 15:7 reserved
};
union SPIPRI_REG {
uint16_t all;
struct SPIPRI_BITS bit;
};
//---------------------------------------------------------------------------
// SPI Register File:
//
struct SPI_REGS {
union SPICCR_REG SPICCR; // Configuration register
union SPICTL_REG SPICTL; // Operation control register
union SPISTS_REG SPISTS; // Status register
uint16_t rsvd1; // reserved
uint16_t SPIBRR; // Baud Rate
uint16_t rsvd2; // reserved
uint16_t SPIRXEMU; // Emulation buffer
uint16_t SPIRXBUF; // Serial input buffer
uint16_t SPITXBUF; // Serial output buffer
uint16_t SPIDAT; // Serial data
union SPIFFTX_REG SPIFFTX; // FIFO transmit register
union SPIFFRX_REG SPIFFRX; // FIFO recieve register
union SPIFFCT_REG SPIFFCT; // FIFO control register
uint16_t rsvd3[2]; // reserved
union SPIPRI_REG SPIPRI; // FIFO Priority control
};
//---------------------------------------------------------------------------
// SPI External References & Function Declarations:
//
extern volatile struct SPI_REGS SpiaRegs;
//===========================================================================
// End of file.
//===========================================================================
//###########################################################################
//
// FILE: DSP2833x_Sci.h
//
// TITLE: DSP2833x Device SCI Register Definitions.
//
//###########################################################################
// $TI Release: 2833x/2823x Header Files and Peripheral Examples V133 $
// $Release Date: June 8, 2012 $
//###########################################################################
//---------------------------------------------------------------------------
// SCI Individual Register Bit Definitions
//----------------------------------------------------------
// SCICCR communication control register bit definitions:
//
struct SCICCR_BITS { // bit description
uint16_t SCICHAR:3; // 2:0 Character length control
uint16_t ADDRIDLE_MODE:1; // 3 ADDR/IDLE Mode control
uint16_t LOOPBKENA:1; // 4 Loop Back enable
uint16_t PARITYENA:1; // 5 Parity enable
uint16_t PARITY:1; // 6 Even or Odd Parity
uint16_t STOPBITS:1; // 7 Number of Stop Bits
uint16_t rsvd1:8; // 15:8 reserved
};
union SCICCR_REG {
uint16_t all;
struct SCICCR_BITS bit;
};
//-------------------------------------------
// SCICTL1 control register 1 bit definitions:
//
struct SCICTL1_BITS { // bit description
uint16_t RXENA:1; // 0 SCI receiver enable
uint16_t TXENA:1; // 1 SCI transmitter enable
uint16_t SLEEP:1; // 2 SCI sleep
uint16_t TXWAKE:1; // 3 Transmitter wakeup method
uint16_t rsvd:1; // 4 reserved
uint16_t SWRESET:1; // 5 Software reset
uint16_t RXERRINTENA:1; // 6 Recieve interrupt enable
uint16_t rsvd1:9; // 15:7 reserved
};
union SCICTL1_REG {
uint16_t all;
struct SCICTL1_BITS bit;
};
//---------------------------------------------
// SCICTL2 control register 2 bit definitions:
//
struct SCICTL2_BITS { // bit description
uint16_t TXINTENA:1; // 0 Transmit interrupt enable
uint16_t RXBKINTENA:1; // 1 Receiver-buffer break enable
uint16_t rsvd:4; // 5:2 reserved
uint16_t TXEMPTY:1; // 6 Transmitter empty flag
uint16_t TXRDY:1; // 7 Transmitter ready flag
uint16_t rsvd1:8; // 15:8 reserved
};
union SCICTL2_REG {
uint16_t all;
struct SCICTL2_BITS bit;
};
//---------------------------------------------------
// SCIRXST Receiver status register bit definitions:
//
struct SCIRXST_BITS { // bit description
uint16_t rsvd:1; // 0 reserved
uint16_t RXWAKE:1; // 1 Receiver wakeup detect flag
uint16_t PE:1; // 2 Parity error flag
uint16_t OE:1; // 3 Overrun error flag
uint16_t FE:1; // 4 Framing error flag
uint16_t BRKDT:1; // 5 Break-detect flag
uint16_t RXRDY:1; // 6 Receiver ready flag
uint16_t RXERROR:1; // 7 Receiver error flag
};
union SCIRXST_REG {
uint16_t all;
struct SCIRXST_BITS bit;
};
//----------------------------------------------------
// SCIRXBUF Receiver Data Buffer with FIFO bit definitions:
//
struct SCIRXBUF_BITS { // bits description
uint16_t RXDT:8; // 7:0 Receive word
uint16_t rsvd:6; // 13:8 reserved
uint16_t SCIFFPE:1; // 14 SCI PE error in FIFO mode
uint16_t SCIFFFE:1; // 15 SCI FE error in FIFO mode
};
union SCIRXBUF_REG {
uint16_t all;
struct SCIRXBUF_BITS bit;
};
//--------------------------------------------------
// SCIPRI Priority control register bit definitions:
//
//
struct SCIPRI_BITS { // bit description
uint16_t rsvd:3; // 2:0 reserved
uint16_t FREE:1; // 3 Free emulation suspend mode
uint16_t SOFT:1; // 4 Soft emulation suspend mode
uint16_t rsvd1:3; // 7:5 reserved
};
union SCIPRI_REG {
uint16_t all;
struct SCIPRI_BITS bit;
};
//-------------------------------------------------
// SCI FIFO Transmit register bit definitions:
//
//
struct SCIFFTX_BITS { // bit description
uint16_t TXFFIL:5; // 4:0 Interrupt level
uint16_t TXFFIENA:1; // 5 Interrupt enable
uint16_t TXFFINTCLR:1; // 6 Clear INT flag
uint16_t TXFFINT:1; // 7 INT flag
uint16_t TXFFST:5; // 12:8 FIFO status
uint16_t TXFIFOXRESET:1; // 13 FIFO reset
uint16_t SCIFFENA:1; // 14 Enhancement enable
uint16_t SCIRST:1; // 15 SCI reset rx/tx channels
};
union SCIFFTX_REG {
uint16_t all;
struct SCIFFTX_BITS bit;
};
//------------------------------------------------
// SCI FIFO recieve register bit definitions:
//
//
struct SCIFFRX_BITS { // bits description
uint16_t RXFFIL:5; // 4:0 Interrupt level
uint16_t RXFFIENA:1; // 5 Interrupt enable
uint16_t RXFFINTCLR:1; // 6 Clear INT flag
uint16_t RXFFINT:1; // 7 INT flag
uint16_t RXFFST:5; // 12:8 FIFO status
uint16_t RXFIFORESET:1; // 13 FIFO reset
uint16_t RXFFOVRCLR:1; // 14 Clear overflow
uint16_t RXFFOVF:1; // 15 FIFO overflow
};
union SCIFFRX_REG {
uint16_t all;
struct SCIFFRX_BITS bit;
};
// SCI FIFO control register bit definitions:
struct SCIFFCT_BITS { // bits description
uint16_t FFTXDLY:8; // 7:0 FIFO transmit delay
uint16_t rsvd:5; // 12:8 reserved
uint16_t CDC:1; // 13 Auto baud mode enable
uint16_t ABDCLR:1; // 14 Auto baud clear
uint16_t ABD:1; // 15 Auto baud detect
};
union SCIFFCT_REG {
uint16_t all;
struct SCIFFCT_BITS bit;
};
//---------------------------------------------------------------------------
// SCI Register File:
//
struct SCI_REGS {
union SCICCR_REG SCICCR; // Communications control register
union SCICTL1_REG SCICTL1; // Control register 1
uint16_t SCIHBAUD; // Baud rate (high) register
uint16_t SCILBAUD; // Baud rate (low) register
union SCICTL2_REG SCICTL2; // Control register 2
union SCIRXST_REG SCIRXST; // Recieve status register
uint16_t SCIRXEMU; // Recieve emulation buffer register
union SCIRXBUF_REG SCIRXBUF; // Recieve data buffer
uint16_t rsvd1; // reserved
uint16_t SCITXBUF; // Transmit data buffer
union SCIFFTX_REG SCIFFTX; // FIFO transmit register
union SCIFFRX_REG SCIFFRX; // FIFO recieve register
union SCIFFCT_REG SCIFFCT; // FIFO control register
uint16_t rsvd2; // reserved
uint16_t rsvd3; // reserved
union SCIPRI_REG SCIPRI; // FIFO Priority control
};
//---------------------------------------------------------------------------
// SCI External References & Function Declarations:
//
extern volatile struct SCI_REGS SciaRegs;
extern volatile struct SCI_REGS ScibRegs;
extern volatile struct SCI_REGS ScicRegs;
//===========================================================================
// End of file.
//===========================================================================
//###########################################################################
//
// FILE: DSP2833x_SysCtrl.h
//
// TITLE: DSP2833x Device System Control Register Definitions.
//
//###########################################################################
// $TI Release: 2833x/2823x Header Files and Peripheral Examples V133 $
// $Release Date: June 8, 2012 $
//###########################################################################
//---------------------------------------------------------------------------
// System Control Individual Register Bit Definitions:
//
// PLL Status Register
struct PLLSTS_BITS { // bits description
uint16_t PLLLOCKS:1; // 0 PLL lock status
uint16_t rsvd1:1; // 1 reserved
uint16_t PLLOFF:1; // 2 PLL off bit
uint16_t MCLKSTS:1; // 3 Missing clock status bit
uint16_t MCLKCLR:1; // 4 Missing clock clear bit
uint16_t OSCOFF:1; // 5 Oscillator clock off
uint16_t MCLKOFF:1; // 6 Missing clock detect
uint16_t DIVSEL:2; // 7 Divide Select
uint16_t rsvd2:7; // 15:7 reserved
};
union PLLSTS_REG {
uint16_t all;
struct PLLSTS_BITS bit;
};
// High speed peripheral clock register bit definitions:
struct HISPCP_BITS { // bits description
uint16_t HSPCLK:3; // 2:0 Rate relative to SYSCLKOUT
uint16_t rsvd1:13; // 15:3 reserved
};
union HISPCP_REG {
uint16_t all;
struct HISPCP_BITS bit;
};
// Low speed peripheral clock register bit definitions:
struct LOSPCP_BITS { // bits description
uint16_t LSPCLK:3; // 2:0 Rate relative to SYSCLKOUT
uint16_t rsvd1:13; // 15:3 reserved
};
union LOSPCP_REG {
uint16_t all;
struct LOSPCP_BITS bit;
};
// Peripheral clock control register 0 bit definitions:
struct PCLKCR0_BITS { // bits description
uint16_t rsvd1:2; // 1:0 reserved
uint16_t TBCLKSYNC:1; // 2 EWPM Module TBCLK enable/sync
uint16_t ADCENCLK:1; // 3 Enable high speed clk to ADC
uint16_t I2CAENCLK:1; // 4 Enable SYSCLKOUT to I2C-A
uint16_t SCICENCLK:1; // 5 Enalbe low speed clk to SCI-C
uint16_t rsvd2:2; // 7:6 reserved
uint16_t SPIAENCLK:1; // 8 Enable low speed clk to SPI-A
uint16_t rsvd3:1; // 9 reserved
uint16_t SCIAENCLK:1; // 10 Enable low speed clk to SCI-A
uint16_t SCIBENCLK:1; // 11 Enable low speed clk to SCI-B
uint16_t MCBSPAENCLK:1; // 12 Enable low speed clk to McBSP-A
uint16_t MCBSPBENCLK:1; // 13 Enable low speed clk to McBSP-B
uint16_t ECANAENCLK:1; // 14 Enable system clk to eCAN-A
uint16_t ECANBENCLK:1; // 15 Enable system clk to eCAN-B
};
union PCLKCR0_REG {
uint16_t all;
struct PCLKCR0_BITS bit;
};
// Peripheral clock control register 1 bit definitions:
struct PCLKCR1_BITS { // bits description
uint16_t EPWM1ENCLK:1; // 0 Enable SYSCLKOUT to EPWM1
uint16_t EPWM2ENCLK:1; // 1 Enable SYSCLKOUT to EPWM2
uint16_t EPWM3ENCLK:1; // 2 Enable SYSCLKOUT to EPWM3
uint16_t EPWM4ENCLK:1; // 3 Enable SYSCLKOUT to EPWM4
uint16_t EPWM5ENCLK:1; // 4 Enable SYSCLKOUT to EPWM5
uint16_t EPWM6ENCLK:1; // 5 Enable SYSCLKOUT to EPWM6
uint16_t rsvd1:2; // 7:6 reserved
uint16_t ECAP1ENCLK:1; // 8 Enable SYSCLKOUT to ECAP1
uint16_t ECAP2ENCLK:1; // 9 Enable SYSCLKOUT to ECAP2
uint16_t ECAP3ENCLK:1; // 10 Enable SYSCLKOUT to ECAP3
uint16_t ECAP4ENCLK:1; // 11 Enable SYSCLKOUT to ECAP4
uint16_t ECAP5ENCLK:1; // 12 Enable SYSCLKOUT to ECAP5
uint16_t ECAP6ENCLK:1; // 13 Enable SYSCLKOUT to ECAP6
uint16_t EQEP1ENCLK:1; // 14 Enable SYSCLKOUT to EQEP1
uint16_t EQEP2ENCLK:1; // 15 Enable SYSCLKOUT to EQEP2
};
union PCLKCR1_REG {
uint16_t all;
struct PCLKCR1_BITS bit;
};
// Peripheral clock control register 2 bit definitions:
struct PCLKCR3_BITS { // bits description
uint16_t rsvd1:8; // 7:0 reserved
uint16_t CPUTIMER0ENCLK:1; // 8 Enable SYSCLKOUT to CPU-Timer 0
uint16_t CPUTIMER1ENCLK:1; // 9 Enable SYSCLKOUT to CPU-Timer 1
uint16_t CPUTIMER2ENCLK:1; // 10 Enable SYSCLKOUT to CPU-Timer 2
uint16_t DMAENCLK:1; // 11 Enable the DMA clock
uint16_t XINTFENCLK:1; // 12 Enable SYSCLKOUT to XINTF
uint16_t GPIOINENCLK:1; // Enable GPIO input clock
uint16_t rsvd2:2; // 15:14 reserved
};
union PCLKCR3_REG {
uint16_t all;
struct PCLKCR3_BITS bit;
};
// PLL control register bit definitions:
struct PLLCR_BITS { // bits description
uint16_t DIV:4; // 3:0 Set clock ratio for the PLL
uint16_t rsvd1:12; // 15:4 reserved
};
union PLLCR_REG {
uint16_t all;
struct PLLCR_BITS bit;
};
// Low Power Mode 0 control register bit definitions:
struct LPMCR0_BITS { // bits description
uint16_t LPM:2; // 1:0 Set the low power mode
uint16_t QUALSTDBY:6; // 7:2 Qualification
uint16_t rsvd1:7; // 14:8 reserved
uint16_t WDINTE:1; // 15 Enables WD to wake the device from STANDBY
};
union LPMCR0_REG {
uint16_t all;
struct LPMCR0_BITS bit;
};
// Dual-mapping configuration register bit definitions:
struct MAPCNF_BITS { // bits description
uint16_t MAPEPWM:1; // 0 EPWM dual-map enable
uint16_t rsvd1:15; // 15:1 reserved
};
union MAPCNF_REG {
uint16_t all;
struct MAPCNF_BITS bit;
};
//---------------------------------------------------------------------------
// System Control Register File:
//
struct SYS_CTRL_REGS {
uint16_t rsvd1; // 0
union PLLSTS_REG PLLSTS; // 1
uint16_t rsvd2[8]; // 2-9
union HISPCP_REG HISPCP; // 10: High-speed peripheral clock pre-scaler
union LOSPCP_REG LOSPCP; // 11: Low-speed peripheral clock pre-scaler
union PCLKCR0_REG PCLKCR0; // 12: Peripheral clock control register
union PCLKCR1_REG PCLKCR1; // 13: Peripheral clock control register
union LPMCR0_REG LPMCR0; // 14: Low-power mode control register 0
uint16_t rsvd3; // 15: reserved
union PCLKCR3_REG PCLKCR3; // 16: Peripheral clock control register
union PLLCR_REG PLLCR; // 17: PLL control register
// No bit definitions are defined for SCSR because
// a read-modify-write instruction can clear the WDOVERRIDE bit
uint16_t SCSR; // 18: System control and status register
uint16_t WDCNTR; // 19: WD counter register
uint16_t rsvd4; // 20
uint16_t WDKEY; // 21: WD reset key register
uint16_t rsvd5[3]; // 22-24
// No bit definitions are defined for WDCR because
// the proper value must be written to the WDCHK field
// whenever writing to this register.
uint16_t WDCR; // 25: WD timer control register
uint16_t rsvd6[4]; // 26-29
union MAPCNF_REG MAPCNF; // 30: Dual-mapping configuration register
uint16_t rsvd7[1]; // 31
};
/* --------------------------------------------------- */
/* CSM Registers */
/* */
/* ----------------------------------------------------*/
/* CSM Status & Control register bit definitions */
struct CSMSCR_BITS { // bit description
uint16_t SECURE:1; // 0 Secure flag
uint16_t rsvd1:14; // 14-1 reserved
uint16_t FORCESEC:1; // 15 Force Secure control bit
};
/* Allow access to the bit fields or entire register */
union CSMSCR_REG {
uint16_t all;
struct CSMSCR_BITS bit;
};
/* CSM Register File */
struct CSM_REGS {
uint16_t KEY0; // KEY reg bits 15-0
uint16_t KEY1; // KEY reg bits 31-16
uint16_t KEY2; // KEY reg bits 47-32
uint16_t KEY3; // KEY reg bits 63-48
uint16_t KEY4; // KEY reg bits 79-64
uint16_t KEY5; // KEY reg bits 95-80
uint16_t KEY6; // KEY reg bits 111-96
uint16_t KEY7; // KEY reg bits 127-112
uint16_t rsvd1; // reserved
uint16_t rsvd2; // reserved
uint16_t rsvd3; // reserved
uint16_t rsvd4; // reserved
uint16_t rsvd5; // reserved
uint16_t rsvd6; // reserved
uint16_t rsvd7; // reserved
union CSMSCR_REG CSMSCR; // CSM Status & Control register
};
/* Password locations */
struct CSM_PWL {
uint16_t PSWD0; // PSWD bits 15-0
uint16_t PSWD1; // PSWD bits 31-16
uint16_t PSWD2; // PSWD bits 47-32
uint16_t PSWD3; // PSWD bits 63-48
uint16_t PSWD4; // PSWD bits 79-64
uint16_t PSWD5; // PSWD bits 95-80
uint16_t PSWD6; // PSWD bits 111-96
uint16_t PSWD7; // PSWD bits 127-112
};
/* Flash Registers */
/* Flash Option Register bit definitions */
struct FOPT_BITS { // bit description
uint16_t ENPIPE:1; // 0 Enable Pipeline Mode
uint16_t rsvd:15; // 1-15 reserved
};
/* Allow access to the bit fields or entire register */
union FOPT_REG {
uint16_t all;
struct FOPT_BITS bit;
};
/* Flash Power Modes Register bit definitions */
struct FPWR_BITS { // bit description
uint16_t PWR:2; // 0-1 Power Mode bits
uint16_t rsvd:14; // 2-15 reserved
};
/* Allow access to the bit fields or entire register */
union FPWR_REG {
uint16_t all;
struct FPWR_BITS bit;
};
/* Flash Status Register bit definitions */
struct FSTATUS_BITS { // bit description
uint16_t PWRS:2; // 0-1 Power Mode Status bits
uint16_t STDBYWAITS:1; // 2 Bank/Pump Sleep to Standby Wait Counter Status bits
uint16_t ACTIVEWAITS:1; // 3 Bank/Pump Standby to Active Wait Counter Status bits
uint16_t rsvd1:4; // 4-7 reserved
uint16_t V3STAT:1; // 8 VDD3V Status Latch bit
uint16_t rsvd2:7; // 9-15 reserved
};
/* Allow access to the bit fields or entire register */
union FSTATUS_REG {
uint16_t all;
struct FSTATUS_BITS bit;
};
/* Flash Sleep to Standby Wait Counter Register bit definitions */
struct FSTDBYWAIT_BITS { // bit description
uint16_t STDBYWAIT:9; // 0-8 Bank/Pump Sleep to Standby Wait Count bits
uint16_t rsvd:7; // 9-15 reserved
};
/* Allow access to the bit fields or entire register */
union FSTDBYWAIT_REG {
uint16_t all;
struct FSTDBYWAIT_BITS bit;
};
/* Flash Standby to Active Wait Counter Register bit definitions */
struct FACTIVEWAIT_BITS { // bit description
uint16_t ACTIVEWAIT:9; // 0-8 Bank/Pump Standby to Active Wait Count bits
uint16_t rsvd:7; // 9-15 reserved
};
/* Allow access to the bit fields or entire register */
union FACTIVEWAIT_REG {
uint16_t all;
struct FACTIVEWAIT_BITS bit;
};
/* Bank Read Access Wait State Register bit definitions */
struct FBANKWAIT_BITS { // bit description
uint16_t RANDWAIT:4; // 0-3 Flash Random Read Wait State bits
uint16_t rsvd1:4; // 4-7 reserved
uint16_t PAGEWAIT:4; // 8-11 Flash Paged Read Wait State bits
uint16_t rsvd2:4; // 12-15 reserved
};
/* Allow access to the bit fields or entire register */
union FBANKWAIT_REG {
uint16_t all;
struct FBANKWAIT_BITS bit;
};
/* OTP Read Access Wait State Register bit definitions */
struct FOTPWAIT_BITS { // bit description
uint16_t OTPWAIT:5; // 0-4 OTP Read Wait State bits
uint16_t rsvd:11; // 5-15 reserved
};
/* Allow access to the bit fields or entire register */
union FOTPWAIT_REG {
uint16_t all;
struct FOTPWAIT_BITS bit;
};
struct FLASH_REGS {
union FOPT_REG FOPT; // Option Register
uint16_t rsvd1; // reserved
union FPWR_REG FPWR; // Power Modes Register
union FSTATUS_REG FSTATUS; // Status Register
union FSTDBYWAIT_REG FSTDBYWAIT; // Pump/Bank Sleep to Standby Wait State Register
union FACTIVEWAIT_REG FACTIVEWAIT; // Pump/Bank Standby to Active Wait State Register
union FBANKWAIT_REG FBANKWAIT; // Bank Read Access Wait State Register
union FOTPWAIT_REG FOTPWAIT; // OTP Read Access Wait State Register
};
//---------------------------------------------------------------------------
// System Control External References & Function Declarations:
//
extern volatile struct SYS_CTRL_REGS SysCtrlRegs;
extern volatile struct CSM_REGS CsmRegs;
extern volatile struct CSM_PWL CsmPwl;
extern volatile struct FLASH_REGS FlashRegs;
//===========================================================================
// End of file.
//===========================================================================
//###########################################################################
//
// FILE: DSP2833x_XIntrupt.h
//
// TITLE: DSP2833x Device External Interrupt Register Definitions.
//
//###########################################################################
// $TI Release: 2833x/2823x Header Files and Peripheral Examples V133 $
// $Release Date: June 8, 2012 $
//###########################################################################
//---------------------------------------------------------------------------
struct XINTCR_BITS {
uint16_t ENABLE:1; // 0 enable/disable
uint16_t rsvd1:1; // 1 reserved
uint16_t POLARITY:2; // 3:2 pos/neg, both triggered
uint16_t rsvd2:12; //15:4 reserved
};
union XINTCR_REG {
uint16_t all;
struct XINTCR_BITS bit;
};
struct XNMICR_BITS {
uint16_t ENABLE:1; // 0 enable/disable
uint16_t SELECT:1; // 1 Timer 1 or XNMI connected to int13
uint16_t POLARITY:2; // 3:2 pos/neg, or both triggered
uint16_t rsvd2:12; // 15:4 reserved
};
union XNMICR_REG {
uint16_t all;
struct XNMICR_BITS bit;
};
//---------------------------------------------------------------------------
// External Interrupt Register File:
//
struct XINTRUPT_REGS {
union XINTCR_REG XINT1CR;
union XINTCR_REG XINT2CR;
union XINTCR_REG XINT3CR;
union XINTCR_REG XINT4CR;
union XINTCR_REG XINT5CR;
union XINTCR_REG XINT6CR;
union XINTCR_REG XINT7CR;
union XNMICR_REG XNMICR;
uint16_t XINT1CTR;
uint16_t XINT2CTR;
uint16_t rsvd[5];
uint16_t XNMICTR;
};
//---------------------------------------------------------------------------
// External Interrupt References & Function Declarations:
//
extern volatile struct XINTRUPT_REGS XIntruptRegs;
//===========================================================================
// End of file.
//===========================================================================
//###########################################################################
//
// FILE: DSP2833x_Xintf.h
//
// TITLE: DSP2833x Device External Interface Register Definitions.
//
//###########################################################################
// $TI Release: 2833x/2823x Header Files and Peripheral Examples V133 $
// $Release Date: June 8, 2012 $
//###########################################################################
// XINTF timing register bit definitions:
struct XTIMING_BITS { // bits description
uint16_t XWRTRAIL:2; // 1:0 Write access trail timing
uint16_t XWRACTIVE:3; // 4:2 Write access active timing
uint16_t XWRLEAD:2; // 6:5 Write access lead timing
uint16_t XRDTRAIL:2; // 8:7 Read access trail timing
uint16_t XRDACTIVE:3; // 11:9 Read access active timing
uint16_t XRDLEAD:2; // 13:12 Read access lead timing
uint16_t USEREADY:1; // 14 Extend access using HW waitstates
uint16_t READYMODE:1; // 15 Ready mode
uint16_t XSIZE:2; // 17:16 XINTF bus width - must be written as 11b
uint16_t rsvd1:4; // 21:18 reserved
uint16_t X2TIMING:1; // 22 Double lead/active/trail timing
uint16_t rsvd3:9; // 31:23 reserved
};
union XTIMING_REG {
uint32_t all;
struct XTIMING_BITS bit;
};
// XINTF control register bit definitions:
struct XINTCNF2_BITS { // bits description
uint16_t WRBUFF:2; // 1:0 Write buffer depth
uint16_t CLKMODE:1; // 2 Ratio for XCLKOUT with respect to XTIMCLK
uint16_t CLKOFF:1; // 3 Disable XCLKOUT
uint16_t rsvd1:2; // 5:4 reserved
uint16_t WLEVEL:2; // 7:6 Current level of the write buffer
uint16_t rsvd2:1; // 8 reserved
uint16_t HOLD:1; // 9 Hold enable/disable
uint16_t HOLDS:1; // 10 Current state of HOLDn input
uint16_t HOLDAS:1; // 11 Current state of HOLDAn output
uint16_t rsvd3:4; // 15:12 reserved
uint16_t XTIMCLK:3; // 18:16 Ratio for XTIMCLK
uint16_t rsvd4:13; // 31:19 reserved
};
union XINTCNF2_REG {
uint32_t all;
struct XINTCNF2_BITS bit;
};
// XINTF bank switching register bit definitions:
struct XBANK_BITS { // bits description
uint16_t BANK:3; // 2:0 Zone for which banking is enabled
uint16_t BCYC:3; // 5:3 XTIMCLK cycles to add
uint16_t rsvd:10; // 15:6 reserved
};
union XBANK_REG {
uint16_t all;
struct XBANK_BITS bit;
};
struct XRESET_BITS {
uint16_t XHARDRESET:1;
uint16_t rsvd1:15;
};
union XRESET_REG {
uint16_t all;
struct XRESET_BITS bit;
};
//---------------------------------------------------------------------------
// XINTF Register File:
//
struct XINTF_REGS {
union XTIMING_REG XTIMING0;
uint32_t rsvd1[5];
union XTIMING_REG XTIMING6;
union XTIMING_REG XTIMING7;
uint32_t rsvd2[2];
union XINTCNF2_REG XINTCNF2;
uint32_t rsvd3;
union XBANK_REG XBANK;
uint16_t rsvd4;
uint16_t XREVISION;
uint16_t rsvd5[2];
union XRESET_REG XRESET;
};
//---------------------------------------------------------------------------
// XINTF External References & Function Declarations:
//
extern volatile struct XINTF_REGS XintfRegs;
//===========================================================================
// No more.
//===========================================================================
//===========================================================================
// End of file.
//===========================================================================
/****************************************************************************************/
/* Global constant defines: */
/****************************************************************************************/
/* Global function like macro defines (to be avoided): */
/****************************************************************************************/
/* Global type definitions (enum, struct, union): */
/****************************************************************************************/
/* Global data allusions (allows type checking, definition in c file): */
/****************************************************************************************/
/* Global function prototypes: */
/****************************************************************************************/
/****************************************************************************************/
/**@file bioscfg.h
* @brief This module includes the project specific generated config header file
* For detailed description, see the corresponding c file or the doxygen
* generated documents.
* @author Eli Adetola
* @date 10. Jan. 2011
*/
/*--------------------------------------------------------------------------------------*/
/* Copyright (c) 2001...2018 Baker Hughes, a GE company, LLC ("BHGE") (unpublished work).
* All rights reserved. The information contained in this document is confidential and
* proprietary property of BHGE and its affiliates. It is to be used only for the benefit
* of BHGE and may not be distributed, transmitted, reproduced, altered or used for any
* purpose without the express written consent of BHGE. */
/*--------------------------------------------------------------------------------------*/
/****************************************************************************/
/* Imported include interfaces: */
// Include project specific DSP/BIOS config generated header file
/*
* Copyright (c) 2008 Texas Instruments and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Texas Instruments - initial implementation
*
* */
/*
* ======== global.h ========
* This header is used by C/C++ sources that want to "portably" include a
* configuration-specific generated header (which contains extern
* declarations of configuration specified global variables).
*
* To use this header you must define the symbol xdc_cfg__header__ to be
* the package-qualified name of the configuration header.
*
* For example, to compile sources that reference config values
* for a TI C6x target with a generated
* configuration header named "package/cfg/mycfg_p62.h" in a package
* named "local.examples" the following command line is sufficient:
*
* cl6x -Dxdc_cfg__header__=local/examples/package/cfg/mycfg_p62.h ...
*/
/* support old compiler option for naming config include file */
/* if specified, include configuration generated header */
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* Copyright (c) 2008 Texas Instruments. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 and Eclipse Distribution License
* v. 1.0 which accompanies this distribution. The Eclipse Public License is
* available at http://www.eclipse.org/legal/epl-v10.html and the Eclipse
* Distribution License is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* Contributors:
* Texas Instruments - initial implementation
* */
/*****************************************************************************/
/* stdarg.h v6.4.11 */
/* */
/* Copyright (c) 1996-2016 Texas Instruments Incorporated */
/* http://www.ti.com/ */
/* */
/* Redistribution and use in source and binary forms, with or without */
/* modification, are permitted provided that the following conditions */
/* are met: */
/* */
/* Redistributions of source code must retain the above copyright */
/* notice, this list of conditions and the following disclaimer. */
/* */
/* Redistributions in binary form must reproduce the above copyright */
/* notice, this list of conditions and the following disclaimer in */
/* the documentation and/or other materials provided with the */
/* distribution. */
/* */
/* Neither the name of Texas Instruments Incorporated nor the names */
/* of its contributors may be used to endorse or promote products */
/* derived from this software without specific prior written */
/* permission. */
/* */
/* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS */
/* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT */
/* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR */
/* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT */
/* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, */
/* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT */
/* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, */
/* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY */
/* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT */
/* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE */
/* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
/* */
/*****************************************************************************/
#pragma diag_push
#pragma CHECK_MISRA("-20.1") /* standard headers must define standard names */
#pragma CHECK_MISRA("-20.2") /* standard headers must define standard names */
#pragma CHECK_MISRA("-19.7") /* macros required for implementation */
#pragma CHECK_MISRA("-19.10") /* need types as macro arguments */
typedef char *va_list;
/****************************************************************************/
/* RETURN THE NEXT VALUE ON THE STACK ... */
/* */
/* (, ) BECOMES ... */
/* */
/* ap -= 1 (stack grows toward high addresses) */
/* ap -= 1 more if type is long or float */
/* ap -= 1 more if type is long or float and to account for alignment */
/* if necessary */
/* */
/* if () return **ap; */
/* else if () return *ap; */
/* */
/* LONG/FLOATS ARE ALWAYS ALIGNED ON AN EVEN WORD BOUNDARY, EVEN WHEN */
/* PASSED AS PARAMETERS, THUS ap MUST BE ALIGNED FOR THOSE ACCESSES. */
/****************************************************************************/
#pragma diag_pop
#pragma diag_push
/* using declarations must occur outside header guard to support including both
C and C++-wrapped version of header; see _CPP_STYLE_HEADER check */
/* this code is for C++ mode only and thus also not relevant for MISRA */
#pragma CHECK_MISRA("-19.15")
#pragma diag_pop
/*****************************************************************************/
/* stddef.h v6.4.11 */
/* */
/* Copyright (c) 1993-2016 Texas Instruments Incorporated */
/* http://www.ti.com/ */
/* */
/* Redistribution and use in source and binary forms, with or without */
/* modification, are permitted provided that the following conditions */
/* are met: */
/* */
/* Redistributions of source code must retain the above copyright */
/* notice, this list of conditions and the following disclaimer. */
/* */
/* Redistributions in binary form must reproduce the above copyright */
/* notice, this list of conditions and the following disclaimer in */
/* the documentation and/or other materials provided with the */
/* distribution. */
/* */
/* Neither the name of Texas Instruments Incorporated nor the names */
/* of its contributors may be used to endorse or promote products */
/* derived from this software without specific prior written */
/* permission. */
/* */
/* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS */
/* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT */
/* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR */
/* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT */
/* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, */
/* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT */
/* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, */
/* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY */
/* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT */
/* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE */
/* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
/* */
/*****************************************************************************/
#pragma diag_push
#pragma CHECK_MISRA("-19.7") /* macros required for implementation */
#pragma CHECK_MISRA("-20.1") /* standard headers must define standard names */
#pragma CHECK_MISRA("-20.2") /* standard headers must define standard names */
typedef long ptrdiff_t;
typedef unsigned int wchar_t;
#pragma diag_push
#pragma CHECK_MISRA("-19.10") /* need types as macro arguments */
#pragma diag_pop
#pragma diag_push
#pragma CHECK_MISRA("-19.15") /* code outside guard; see below comment */
/*-----------------------------------------------------------------------*/
/* Define _win_t, for compiling GCC libraries with the TI compiler. */
/* GCC's library (newlib) expects wint_t to be defined here, in stddef.h,*/
/* which is arguably incorrect, but we go along for compatibility. */
/* This is outside the _STDDEF guard in case this file has already */
/* been included without __need_wint_t. */
/*-----------------------------------------------------------------------*/
#pragma diag_pop
/* macros to simplify "stringification" and computed includes */
/* TitleCase standard types */
typedef char xdc_Char;
typedef unsigned char xdc_UChar;
typedef short xdc_Short;
typedef unsigned short xdc_UShort;
typedef int xdc_Int;
typedef unsigned int xdc_UInt;
typedef long xdc_Long;
typedef unsigned long xdc_ULong;
typedef float xdc_Float;
typedef double xdc_Double;
typedef long double xdc_LDouble;
typedef size_t xdc_SizeT;
typedef va_list xdc_VaList;
/* Generic Extended Types */
typedef unsigned short xdc_Bool; /* boolean flag */
typedef void *xdc_Ptr; /* data pointer */
typedef const void *xdc_CPtr; /* data pointer */
typedef char *xdc_String; /* null terminated string */
typedef const char *xdc_CString; /* null terminated immutable string */
/* we intentionally omit arguments from Fxn to indicate that it can have
* any (or none). Unfortunately this causes gcc to emit warnings when
* -Wstrict-prototypes is used. Newer gcc's (4.6 or later) support a pragma
* that works around this:
*
* #pragma GCC diagnostic ignored "-Wstrict-prototypes"
*/
typedef int (*xdc_Fxn)(); /* function pointer */
/*
* Import the target-specific std.h
*/
/*
* Copyright (c) 2008 Texas Instruments and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Texas Instruments - initial implementation
*
* */
/*
* ======== ti/targets/std.h ========
* Standard types for supported TI compilers
*
*/
/* allow _TI_STD_TYPES like 'Uns' and 'Uint8' */
/* include target-specific "portable" macros */
/*
* Copyright 2016 by Texas Instruments Incorporated.
*
*/
/*
* ======== C28_float.h ========
* DO NOT MODIFY: This header is generated from stddef.xdt
*
* This header contains target-specific definitions of target-independent
* macros required by the ITarget interface. These definitions allow C/C++
* sources to portably compile for multiple targets (using #ifdef ...).
*/
/*
* ======== ti_targets_C28_float ========
* This macro identifies the specific target being used. This macro should
* probably be avoided in portable sources.
*/
/*
* ======== xdc_target__arraytype_VaList ========
* The following macro specifies whether or not a VaList is an
* array type; e.g., struct __va_list_tag (*)[1] verses a simple char *.
* This affects how va_list variables are passed to functions (by value
* or by address).
*/
/*
* ======== xdc_target__isaCompatible_* macros ========
* The following definitions enable clients to conditionally compile for any
* compatible subset of the actual target ISA.
*/
/*
* ======== xdc_target__isa_28FP ========
* This macro identifies the specific target ISA for which we are being
* compiled.
*/
/*
* ======== xdc_target__{big|little}Endian ========
* The following macro enables clients to portably compile for big or little
* endian targets.
*/
/*
* ======== xdc_target__{...}Data ========
* The following macro enables clients to portably compile for target specific
* data models; e.g., near, far, ...
*/
/*
* ======== xdc_target__os_undefined ========
* The following macro enables clients to portably compile for target specific
* OS; e.g., Linux, Solaris, Windows, undefined.
*/
/*
* ======== xdc_target__sizeof_ ========
* The following macros enable clients to portably determine type sizes
* within #ifdef blocks; sizeof() can't be used and the definitions in
* stdint.h are not available to C++ clients (unless the special macro
* __STDC_LIMIT_MACROS is defined).
*/
/*
* ======== xdc_target__alignof_ ========
* The following macros enable clients to portably determine type alignment
* within #ifdef blocks; even if provided by the compiler, alignof() can't
* be used in pre-processor statements.
*/
/*
* ======== xdc_target__bitsPerChar ========
* The number of bits in a char. This macro allow one to determine the
* precise number of bits in any of the standard types (whose sizes are
* expressed as a number of chars).
*/
/*
* @(#) ti.targets; 1, 0, 3,0; 1-29-2016 16:37:06; /db/ztree/library/trees/xdctargets/xdctargets-k09/src/ xlibrary
*/
typedef void *xdc_Arg; /* deprecated, but compatible with BIOS 5.x */
/*
* xdc__LONGLONG__ indicates if compiler supports 'long long' type
* xdc__BITS __ indicates if compiler supports 'uint_t' type
*/
/*
* ======== [U]Int ========
*/
typedef int_least8_t xdc_Int8;
typedef uint_least8_t xdc_UInt8;
typedef int_least16_t xdc_Int16;
typedef uint_least16_t xdc_UInt16;
typedef int_least32_t xdc_Int32;
typedef uint_least32_t xdc_UInt32;
typedef int_least64_t xdc_Int64;
typedef uint_least64_t xdc_UInt64;
/*
* ======== Bits ========
*/
typedef uint16_t xdc_Bits16;
typedef uint32_t xdc_Bits32;
typedef uint64_t xdc_Bits64;
/*
* ======== [UI]Arg ========
*/
typedef intptr_t xdc_IArg;
typedef uintptr_t xdc_UArg;
/*
* ======== restrict ========
*/
/*
* ======== ti_targets_mkPragma ========
*/
/*
* ======== xdc__META ========
*/
/*
* ======== __ti__ ========
* These symbols are used by RTSC tools to indicate presence/absence of
* assorted #pragma options in TI compiler.
*/
/*
* @(#) ti.targets; 1, 0, 3,0; 1-29-2016 16:37:07; /db/ztree/library/trees/xdctargets/xdctargets-k09/src/ xlibrary
*/
/* Each modules' internal header file defines 'module' as
* xdc__MODOBJADDR__(Module__state__V), where Module__state__V is the actual
* object where the module state is kept. For most targets, the default macro
* given here results in the construct '(&Module__state__V)->field', when the
* expression 'module->field' is used. Compilers then generate the code that
* doesn't dereference a pointer, but puts the address of the field in the
* code.
* The targets that need to do something different can define
* xdc__MODOBJADDR__ in std.h for their target package.
*/
/* Long Long Types */
typedef long long xdc_LLong;
typedef unsigned long long xdc_ULLong;
/* Arg to Ptr and Fxn conversion operators
*
* Individual targets may override these definitions in the event
* that compilers issue warnings about shortening of an Arg to a pointer,
* for example.
*/
static xdc_Ptr xdc_iargToPtr(xdc_IArg a);
static xdc_Ptr xdc_uargToPtr(xdc_UArg a);
static inline xdc_Ptr xdc_iargToPtr(xdc_IArg a) { return ((xdc_Ptr)a); }
static inline xdc_Ptr xdc_uargToPtr(xdc_UArg a) { return ((xdc_Ptr)a); }
static xdc_Fxn xdc_iargToFxn(xdc_IArg a);
static xdc_Fxn xdc_uargToFxn(xdc_UArg a);
static inline xdc_Fxn xdc_iargToFxn(xdc_IArg a) { return ((xdc_Fxn)a); }
static inline xdc_Fxn xdc_uargToFxn(xdc_UArg a) { return ((xdc_Fxn)a); }
/*
* functions to efficiently convert a single precision float to an IArg
* and vice-versa while maintaining client type safety
*
* Here the assumption is that sizeof(Float) <= sizeof(IArg);
*/
typedef union {
xdc_Float f;
xdc_IArg a;
} xdc_FloatData;
static xdc_IArg xdc_floatToArg(xdc_Float f);
static inline xdc_IArg xdc_floatToArg(xdc_Float f)
{
xdc_FloatData u;
u.f = f;
return (u.a);
}
static xdc_Float xdc_argToFloat(xdc_IArg a);
static inline xdc_Float xdc_argToFloat(xdc_IArg a)
{
xdc_FloatData u;
u.a = a;
return (u.f);
}
/* restrict keyword */
/* Unprefixed Aliases */
typedef xdc_Char Char;
typedef xdc_UChar UChar;
typedef xdc_Short Short;
typedef xdc_UShort UShort;
typedef xdc_Int Int;
typedef xdc_UInt UInt;
typedef xdc_Long Long;
typedef xdc_ULong ULong;
typedef xdc_LLong LLong;
typedef xdc_ULLong ULLong;
typedef xdc_Float Float;
typedef xdc_Double Double;
typedef xdc_LDouble LDouble;
typedef xdc_SizeT SizeT;
typedef xdc_VaList VaList;
typedef xdc_IArg IArg;
typedef xdc_UArg UArg;
typedef xdc_Bool Bool;
typedef xdc_Int8 Int8;
typedef xdc_Int16 Int16;
typedef xdc_Int32 Int32;
typedef xdc_Fxn Fxn;
typedef xdc_Ptr Ptr;
typedef xdc_CPtr CPtr;
typedef xdc_String String;
typedef xdc_CString CString;
typedef xdc_UInt8 UInt8;
typedef xdc_UInt16 UInt16;
typedef xdc_UInt32 UInt32;
/* DEPRECATED Aliases */
/* xdc_Arg is defined only in ti/targets/std.h; use IArg and UArg instead */
typedef xdc_Arg Arg;
typedef xdc_UInt8 Uint8;
typedef xdc_UInt16 Uint16;
typedef xdc_UInt32 Uint32;
typedef xdc_UInt Uns;
/*
* ======== optional types ========
* The following types are not always defined for all targets
*/
typedef xdc_Int64 Int64;
typedef xdc_UInt64 UInt64;
/* The following exact size types are not required by C99 and may not be
* supported by some compiler/processor environments. For greater
* portability, use the IntN or UIntN types above.
*/
typedef xdc_Bits16 Bits16;
typedef xdc_Bits32 Bits32;
typedef xdc_Bits64 Bits64;
/* Standard Constants */
/* NULL must be 0 for C++ and is set to 0 in C to allow legacy code to
* compile without warnings.
*
* If xdc__strict is defined, NULL is defined to be a pointer to allow
* maximal type checking in "modern" C sources
*/
/* Declaration Qualifiers */
/*
* ======== xdc__CODESECT ========
* Code-Section Directive
*
* Targets can optionally #define xdc__CODESECT in their specific
* std.h files. This directive is placed in front of all
* "extern" function declarations, and specifies a section-name in
* which to place this function. This approach
* provides more control on combining/organizing groups of
* related functions into a single named sub-section (e.g.,
* "init-code") If this macro is not defined by the target, an
* empty definition is used instead.
*/
/*
* ======== xdc__META ========
* Embed unreferenced string in the current file
*
* Strings emebdded via xdc__META can be placed in a section that is
* _not_ loaded on the target but are, nevertheless, part of the
* executable and available to loaders.
*
* Different targets may define this macro in a way that places these
* strings in an output section that is not loaded (and therefore does
* not takeup space on the target). Unless the target provides a
* definition of xdc__META, the definition below simply defines
* as string constant in the current file.
*/
/*
* @(#) xdc; 1, 1, 1,0; 5-1-2017 10:27:29; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-A71
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* CREATE ARGS
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* PER-INSTANCE TYPES
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== INCLUDES ========
*/
/*
* Copyright (c) 2008 Texas Instruments. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 and Eclipse Distribution License
* v. 1.0 which accompanies this distribution. The Eclipse Public License is
* available at http://www.eclipse.org/legal/epl-v10.html and the Eclipse
* Distribution License is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* Contributors:
* Texas Instruments - initial implementation
* */
/*
* ======== xdc.h ========
* All generated public module headers include this file
*/
/*
* ======== __CONC__ ========
* Concatenate the specified tokens to create a new single token
*/
/*
* ======== __STR__ ========
* Stringify the specified arguement
*/
/*
* ======== xdc_FILE__ ========
* Alternative to __FILE__ which defaults to NULL
*
* We define our own symbol in lieu of the standard __FILE__
* so we can avoid embedding lots of static strings in applications
* that use Error and Assert.
*
* Both Error and Assert use xdc_FILE__ and ALL module internal headers
* redefine xdc_FILE__ to be NULL, unless xdc_FILE is defined. If xdc_FILE
* is defined, xdc-FILE__ has the same value assigned to xdc_FILE. So, by
* default, Error and Asserts in modules do *not* provide a file name.
*
* Since this header in included in all module public headers, "non-module"
* clients of Error and Assert *will*, by default, provide a file name
* string. To eliminate these embedded strings, add the following line
* before all module headers:
* #define xdc_FILE NULL
*
* Module creators may opt to define xdc_FILE as the string to use in
* Error and Assert messages. For example, adding the following line
* to a module's implementation (before the inclusion of the module's
* internal header) will cause the standard __FILE__ to be
* used in lieu of NULL in Error and Assert calls:
* #define xdc_FILE __FILE__
*
*/
/*
* ======== xdc_LINE ========
* Standard file-line-number string for identifying a call site
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:03; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== INCLUDES ========
*/
/*
* Copyright (c) 2008 Texas Instruments. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 and Eclipse Distribution License
* v. 1.0 which accompanies this distribution. The Eclipse Public License is
* available at http://www.eclipse.org/legal/epl-v10.html and the Eclipse
* Distribution License is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* Contributors:
* Texas Instruments - initial implementation
* */
/*
* ======== Types__prologue.h ========
* Hand crafted definitions for Types.xdc
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:03; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== interface xdc.runtime.IModule ========
*/
typedef struct xdc_runtime_IModule_Fxns__ xdc_runtime_IModule_Fxns__;
typedef const struct xdc_runtime_IModule_Fxns__* xdc_runtime_IModule_Module;
/*
* ======== module xdc.runtime.Assert ========
*/
/*
* ======== module xdc.runtime.Core ========
*/
typedef struct xdc_runtime_Core_ObjDesc xdc_runtime_Core_ObjDesc;
/*
* ======== module xdc.runtime.Defaults ========
*/
/*
* ======== module xdc.runtime.Diags ========
*/
typedef struct xdc_runtime_Diags_DictElem xdc_runtime_Diags_DictElem;
/*
* ======== module xdc.runtime.Error ========
*/
typedef struct xdc_runtime_Error_Data xdc_runtime_Error_Data;
typedef struct xdc_runtime_Error_Block xdc_runtime_Error_Block;
typedef struct xdc_runtime_Error_Module_State xdc_runtime_Error_Module_State;
/*
* ======== module xdc.runtime.Gate ========
*/
/*
* ======== interface xdc.runtime.IGateProvider ========
*/
typedef struct xdc_runtime_IGateProvider_Fxns__ xdc_runtime_IGateProvider_Fxns__;
typedef const struct xdc_runtime_IGateProvider_Fxns__* xdc_runtime_IGateProvider_Module;
typedef struct xdc_runtime_IGateProvider_Params xdc_runtime_IGateProvider_Params;
typedef struct xdc_runtime_IGateProvider___Object { xdc_runtime_IGateProvider_Fxns__* __fxns; xdc_Bits32 __label; } *xdc_runtime_IGateProvider_Handle;
/*
* ======== module xdc.runtime.GateNull ========
*/
typedef struct xdc_runtime_GateNull_Fxns__ xdc_runtime_GateNull_Fxns__;
typedef const struct xdc_runtime_GateNull_Fxns__* xdc_runtime_GateNull_Module;
typedef struct xdc_runtime_GateNull_Params xdc_runtime_GateNull_Params;
typedef struct xdc_runtime_GateNull_Object xdc_runtime_GateNull_Object;
typedef struct xdc_runtime_GateNull_Struct xdc_runtime_GateNull_Struct;
typedef xdc_runtime_GateNull_Object* xdc_runtime_GateNull_Handle;
typedef struct xdc_runtime_GateNull_Object__ xdc_runtime_GateNull_Instance_State;
typedef xdc_runtime_GateNull_Object* xdc_runtime_GateNull_Instance;
/*
* ======== module xdc.runtime.Log ========
*/
typedef struct xdc_runtime_Log_EventRec xdc_runtime_Log_EventRec;
/*
* ======== interface xdc.runtime.ILogger ========
*/
typedef struct xdc_runtime_ILogger_Fxns__ xdc_runtime_ILogger_Fxns__;
typedef const struct xdc_runtime_ILogger_Fxns__* xdc_runtime_ILogger_Module;
typedef struct xdc_runtime_ILogger_Params xdc_runtime_ILogger_Params;
typedef struct xdc_runtime_ILogger___Object { xdc_runtime_ILogger_Fxns__* __fxns; xdc_Bits32 __label; } *xdc_runtime_ILogger_Handle;
/*
* ======== interface xdc.runtime.IFilterLogger ========
*/
typedef struct xdc_runtime_IFilterLogger_Fxns__ xdc_runtime_IFilterLogger_Fxns__;
typedef const struct xdc_runtime_IFilterLogger_Fxns__* xdc_runtime_IFilterLogger_Module;
typedef struct xdc_runtime_IFilterLogger_Params xdc_runtime_IFilterLogger_Params;
typedef struct xdc_runtime_IFilterLogger___Object { xdc_runtime_IFilterLogger_Fxns__* __fxns; xdc_Bits32 __label; } *xdc_runtime_IFilterLogger_Handle;
/*
* ======== module xdc.runtime.LoggerBuf ========
*/
typedef struct xdc_runtime_LoggerBuf_Entry xdc_runtime_LoggerBuf_Entry;
typedef struct xdc_runtime_LoggerBuf_Module_State xdc_runtime_LoggerBuf_Module_State;
typedef struct xdc_runtime_LoggerBuf_Fxns__ xdc_runtime_LoggerBuf_Fxns__;
typedef const struct xdc_runtime_LoggerBuf_Fxns__* xdc_runtime_LoggerBuf_Module;
typedef struct xdc_runtime_LoggerBuf_Params xdc_runtime_LoggerBuf_Params;
typedef struct xdc_runtime_LoggerBuf_Object xdc_runtime_LoggerBuf_Object;
typedef struct xdc_runtime_LoggerBuf_Struct xdc_runtime_LoggerBuf_Struct;
typedef xdc_runtime_LoggerBuf_Object* xdc_runtime_LoggerBuf_Handle;
typedef struct xdc_runtime_LoggerBuf_Object__ xdc_runtime_LoggerBuf_Instance_State;
typedef xdc_runtime_LoggerBuf_Object* xdc_runtime_LoggerBuf_Instance;
/*
* ======== module xdc.runtime.LoggerCallback ========
*/
typedef struct xdc_runtime_LoggerCallback_Fxns__ xdc_runtime_LoggerCallback_Fxns__;
typedef const struct xdc_runtime_LoggerCallback_Fxns__* xdc_runtime_LoggerCallback_Module;
typedef struct xdc_runtime_LoggerCallback_Params xdc_runtime_LoggerCallback_Params;
typedef struct xdc_runtime_LoggerCallback_Object xdc_runtime_LoggerCallback_Object;
typedef struct xdc_runtime_LoggerCallback_Struct xdc_runtime_LoggerCallback_Struct;
typedef xdc_runtime_LoggerCallback_Object* xdc_runtime_LoggerCallback_Handle;
typedef struct xdc_runtime_LoggerCallback_Object__ xdc_runtime_LoggerCallback_Instance_State;
typedef xdc_runtime_LoggerCallback_Object* xdc_runtime_LoggerCallback_Instance;
/*
* ======== module xdc.runtime.LoggerSys ========
*/
typedef struct xdc_runtime_LoggerSys_Fxns__ xdc_runtime_LoggerSys_Fxns__;
typedef const struct xdc_runtime_LoggerSys_Fxns__* xdc_runtime_LoggerSys_Module;
typedef struct xdc_runtime_LoggerSys_Params xdc_runtime_LoggerSys_Params;
typedef struct xdc_runtime_LoggerSys_Object xdc_runtime_LoggerSys_Object;
typedef struct xdc_runtime_LoggerSys_Struct xdc_runtime_LoggerSys_Struct;
typedef xdc_runtime_LoggerSys_Object* xdc_runtime_LoggerSys_Handle;
typedef struct xdc_runtime_LoggerSys_Object__ xdc_runtime_LoggerSys_Instance_State;
typedef xdc_runtime_LoggerSys_Object* xdc_runtime_LoggerSys_Instance;
/*
* ======== module xdc.runtime.Main ========
*/
/*
* ======== module xdc.runtime.Memory ========
*/
typedef struct xdc_runtime_Memory_Stats xdc_runtime_Memory_Stats;
typedef struct xdc_runtime_Memory_Module_State xdc_runtime_Memory_Module_State;
/*
* ======== interface xdc.runtime.IHeap ========
*/
typedef struct xdc_runtime_IHeap_Fxns__ xdc_runtime_IHeap_Fxns__;
typedef const struct xdc_runtime_IHeap_Fxns__* xdc_runtime_IHeap_Module;
typedef struct xdc_runtime_IHeap_Params xdc_runtime_IHeap_Params;
typedef struct xdc_runtime_IHeap___Object { xdc_runtime_IHeap_Fxns__* __fxns; xdc_Bits32 __label; } *xdc_runtime_IHeap_Handle;
/*
* ======== module xdc.runtime.HeapMin ========
*/
typedef struct xdc_runtime_HeapMin_Fxns__ xdc_runtime_HeapMin_Fxns__;
typedef const struct xdc_runtime_HeapMin_Fxns__* xdc_runtime_HeapMin_Module;
typedef struct xdc_runtime_HeapMin_Params xdc_runtime_HeapMin_Params;
typedef struct xdc_runtime_HeapMin_Object xdc_runtime_HeapMin_Object;
typedef struct xdc_runtime_HeapMin_Struct xdc_runtime_HeapMin_Struct;
typedef xdc_runtime_HeapMin_Object* xdc_runtime_HeapMin_Handle;
typedef struct xdc_runtime_HeapMin_Object__ xdc_runtime_HeapMin_Instance_State;
typedef xdc_runtime_HeapMin_Object* xdc_runtime_HeapMin_Instance;
/*
* ======== module xdc.runtime.HeapStd ========
*/
typedef struct xdc_runtime_HeapStd_Module_State xdc_runtime_HeapStd_Module_State;
typedef struct xdc_runtime_HeapStd_Fxns__ xdc_runtime_HeapStd_Fxns__;
typedef const struct xdc_runtime_HeapStd_Fxns__* xdc_runtime_HeapStd_Module;
typedef struct xdc_runtime_HeapStd_Params xdc_runtime_HeapStd_Params;
typedef struct xdc_runtime_HeapStd_Object xdc_runtime_HeapStd_Object;
typedef struct xdc_runtime_HeapStd_Struct xdc_runtime_HeapStd_Struct;
typedef xdc_runtime_HeapStd_Object* xdc_runtime_HeapStd_Handle;
typedef struct xdc_runtime_HeapStd_Object__ xdc_runtime_HeapStd_Instance_State;
typedef xdc_runtime_HeapStd_Object* xdc_runtime_HeapStd_Instance;
/*
* ======== module xdc.runtime.Registry ========
*/
typedef struct xdc_runtime_Registry_Module_State xdc_runtime_Registry_Module_State;
/*
* ======== module xdc.runtime.Rta ========
*/
typedef struct xdc_runtime_Rta_CommandPacket xdc_runtime_Rta_CommandPacket;
typedef struct xdc_runtime_Rta_ResponsePacket xdc_runtime_Rta_ResponsePacket;
/*
* ======== module xdc.runtime.Startup ========
*/
typedef struct xdc_runtime_Startup_IdMap xdc_runtime_Startup_IdMap;
typedef struct xdc_runtime_Startup_Module_State xdc_runtime_Startup_Module_State;
/*
* ======== module xdc.runtime.System ========
*/
typedef struct xdc_runtime_System_ParseData xdc_runtime_System_ParseData;
typedef struct xdc_runtime_System_Module_State xdc_runtime_System_Module_State;
/*
* ======== interface xdc.runtime.ISystemSupport ========
*/
typedef struct xdc_runtime_ISystemSupport_Fxns__ xdc_runtime_ISystemSupport_Fxns__;
typedef const struct xdc_runtime_ISystemSupport_Fxns__* xdc_runtime_ISystemSupport_Module;
/*
* ======== module xdc.runtime.SysCallback ========
*/
typedef struct xdc_runtime_SysCallback_Fxns__ xdc_runtime_SysCallback_Fxns__;
typedef const struct xdc_runtime_SysCallback_Fxns__* xdc_runtime_SysCallback_Module;
/*
* ======== module xdc.runtime.SysMin ========
*/
typedef struct xdc_runtime_SysMin_Module_State xdc_runtime_SysMin_Module_State;
typedef struct xdc_runtime_SysMin_Fxns__ xdc_runtime_SysMin_Fxns__;
typedef const struct xdc_runtime_SysMin_Fxns__* xdc_runtime_SysMin_Module;
/*
* ======== module xdc.runtime.SysStd ========
*/
typedef struct xdc_runtime_SysStd_Fxns__ xdc_runtime_SysStd_Fxns__;
typedef const struct xdc_runtime_SysStd_Fxns__* xdc_runtime_SysStd_Module;
/*
* ======== module xdc.runtime.Text ========
*/
typedef struct xdc_runtime_Text_Node xdc_runtime_Text_Node;
typedef struct xdc_runtime_Text_MatchVisState xdc_runtime_Text_MatchVisState;
typedef struct xdc_runtime_Text_PrintVisState xdc_runtime_Text_PrintVisState;
typedef struct xdc_runtime_Text_Module_State xdc_runtime_Text_Module_State;
/*
* ======== interface xdc.runtime.ITimestampClient ========
*/
typedef struct xdc_runtime_ITimestampClient_Fxns__ xdc_runtime_ITimestampClient_Fxns__;
typedef const struct xdc_runtime_ITimestampClient_Fxns__* xdc_runtime_ITimestampClient_Module;
/*
* ======== module xdc.runtime.Timestamp ========
*/
typedef struct xdc_runtime_Timestamp_Fxns__ xdc_runtime_Timestamp_Fxns__;
typedef const struct xdc_runtime_Timestamp_Fxns__* xdc_runtime_Timestamp_Module;
/*
* ======== interface xdc.runtime.ITimestampProvider ========
*/
typedef struct xdc_runtime_ITimestampProvider_Fxns__ xdc_runtime_ITimestampProvider_Fxns__;
typedef const struct xdc_runtime_ITimestampProvider_Fxns__* xdc_runtime_ITimestampProvider_Module;
/*
* ======== module xdc.runtime.TimestampNull ========
*/
typedef struct xdc_runtime_TimestampNull_Fxns__ xdc_runtime_TimestampNull_Fxns__;
typedef const struct xdc_runtime_TimestampNull_Fxns__* xdc_runtime_TimestampNull_Module;
/*
* ======== module xdc.runtime.TimestampStd ========
*/
typedef struct xdc_runtime_TimestampStd_Fxns__ xdc_runtime_TimestampStd_Fxns__;
typedef const struct xdc_runtime_TimestampStd_Fxns__* xdc_runtime_TimestampStd_Module;
/*
* ======== module xdc.runtime.Types ========
*/
typedef struct xdc_runtime_Types_CordAddr__ xdc_runtime_Types_CordAddr__;
typedef struct xdc_runtime_Types_GateRef__ xdc_runtime_Types_GateRef__;
typedef struct xdc_runtime_Types_Label xdc_runtime_Types_Label;
typedef struct xdc_runtime_Types_Site xdc_runtime_Types_Site;
typedef struct xdc_runtime_Types_Timestamp64 xdc_runtime_Types_Timestamp64;
typedef struct xdc_runtime_Types_FreqHz xdc_runtime_Types_FreqHz;
typedef struct xdc_runtime_Types_RegDesc xdc_runtime_Types_RegDesc;
typedef struct xdc_runtime_Types_Vec xdc_runtime_Types_Vec;
typedef struct xdc_runtime_Types_Link xdc_runtime_Types_Link;
typedef struct xdc_runtime_Types_InstHdr xdc_runtime_Types_InstHdr;
typedef struct xdc_runtime_Types_PrmsHdr xdc_runtime_Types_PrmsHdr;
typedef struct xdc_runtime_Types_Base xdc_runtime_Types_Base;
typedef struct xdc_runtime_Types_SysFxns xdc_runtime_Types_SysFxns;
typedef struct xdc_runtime_Types_SysFxns2 xdc_runtime_Types_SysFxns2;
/*
* ======== interface xdc.runtime.IInstance ========
*/
typedef struct xdc_runtime_IInstance_Fxns__ xdc_runtime_IInstance_Fxns__;
typedef const struct xdc_runtime_IInstance_Fxns__* xdc_runtime_IInstance_Module;
typedef struct xdc_runtime_IInstance_Params xdc_runtime_IInstance_Params;
typedef struct xdc_runtime_IInstance___Object { xdc_runtime_IInstance_Fxns__* __fxns; xdc_Bits32 __label; } *xdc_runtime_IInstance_Handle;
/*
* ======== module xdc.runtime.LoggerBuf_TimestampProxy ========
*/
typedef struct xdc_runtime_LoggerBuf_TimestampProxy_Fxns__ xdc_runtime_LoggerBuf_TimestampProxy_Fxns__;
typedef const struct xdc_runtime_LoggerBuf_TimestampProxy_Fxns__* xdc_runtime_LoggerBuf_TimestampProxy_Module;
/*
* ======== module xdc.runtime.LoggerBuf_Module_GateProxy ========
*/
typedef struct xdc_runtime_LoggerBuf_Module_GateProxy_Fxns__ xdc_runtime_LoggerBuf_Module_GateProxy_Fxns__;
typedef const struct xdc_runtime_LoggerBuf_Module_GateProxy_Fxns__* xdc_runtime_LoggerBuf_Module_GateProxy_Module;
typedef struct xdc_runtime_LoggerBuf_Module_GateProxy_Params xdc_runtime_LoggerBuf_Module_GateProxy_Params;
typedef struct xdc_runtime_IGateProvider___Object *xdc_runtime_LoggerBuf_Module_GateProxy_Handle;
/*
* ======== module xdc.runtime.LoggerSys_TimestampProxy ========
*/
typedef struct xdc_runtime_LoggerSys_TimestampProxy_Fxns__ xdc_runtime_LoggerSys_TimestampProxy_Fxns__;
typedef const struct xdc_runtime_LoggerSys_TimestampProxy_Fxns__* xdc_runtime_LoggerSys_TimestampProxy_Module;
/*
* ======== module xdc.runtime.Main_Module_GateProxy ========
*/
typedef struct xdc_runtime_Main_Module_GateProxy_Fxns__ xdc_runtime_Main_Module_GateProxy_Fxns__;
typedef const struct xdc_runtime_Main_Module_GateProxy_Fxns__* xdc_runtime_Main_Module_GateProxy_Module;
typedef struct xdc_runtime_Main_Module_GateProxy_Params xdc_runtime_Main_Module_GateProxy_Params;
typedef struct xdc_runtime_IGateProvider___Object *xdc_runtime_Main_Module_GateProxy_Handle;
/*
* ======== module xdc.runtime.Memory_HeapProxy ========
*/
typedef struct xdc_runtime_Memory_HeapProxy_Fxns__ xdc_runtime_Memory_HeapProxy_Fxns__;
typedef const struct xdc_runtime_Memory_HeapProxy_Fxns__* xdc_runtime_Memory_HeapProxy_Module;
typedef struct xdc_runtime_Memory_HeapProxy_Params xdc_runtime_Memory_HeapProxy_Params;
typedef struct xdc_runtime_IHeap___Object *xdc_runtime_Memory_HeapProxy_Handle;
/*
* ======== module xdc.runtime.System_SupportProxy ========
*/
typedef struct xdc_runtime_System_SupportProxy_Fxns__ xdc_runtime_System_SupportProxy_Fxns__;
typedef const struct xdc_runtime_System_SupportProxy_Fxns__* xdc_runtime_System_SupportProxy_Module;
/*
* ======== module xdc.runtime.System_Module_GateProxy ========
*/
typedef struct xdc_runtime_System_Module_GateProxy_Fxns__ xdc_runtime_System_Module_GateProxy_Fxns__;
typedef const struct xdc_runtime_System_Module_GateProxy_Fxns__* xdc_runtime_System_Module_GateProxy_Module;
typedef struct xdc_runtime_System_Module_GateProxy_Params xdc_runtime_System_Module_GateProxy_Params;
typedef struct xdc_runtime_IGateProvider___Object *xdc_runtime_System_Module_GateProxy_Handle;
/*
* ======== module xdc.runtime.Timestamp_SupportProxy ========
*/
typedef struct xdc_runtime_Timestamp_SupportProxy_Fxns__ xdc_runtime_Timestamp_SupportProxy_Fxns__;
typedef const struct xdc_runtime_Timestamp_SupportProxy_Fxns__* xdc_runtime_Timestamp_SupportProxy_Module;
/*
* ======== AUXILIARY DEFINITIONS ========
*/
/* ModuleId */
typedef xdc_Bits16 xdc_runtime_Types_ModuleId;
/* DiagsMask */
typedef xdc_Bits16 xdc_runtime_Types_DiagsMask;
/* Event */
typedef xdc_Bits32 xdc_runtime_Types_Event;
/* EventId */
typedef xdc_runtime_Types_Event xdc_runtime_Types_EventId;
/* CordAddr__ */
struct xdc_runtime_Types_CordAddr__;
/* CordAddr */
typedef xdc_runtime_Types_CordAddr__ *xdc_runtime_Types_CordAddr;
/* GateRef__ */
struct xdc_runtime_Types_GateRef__;
/* GateRef */
typedef xdc_runtime_Types_GateRef__ *xdc_runtime_Types_GateRef;
/* RopeId */
typedef xdc_Bits16 xdc_runtime_Types_RopeId;
/* CreatePolicy */
enum xdc_runtime_Types_CreatePolicy {
xdc_runtime_Types_STATIC_POLICY,
xdc_runtime_Types_CREATE_POLICY,
xdc_runtime_Types_DELETE_POLICY
};
typedef enum xdc_runtime_Types_CreatePolicy xdc_runtime_Types_CreatePolicy;
/* OutputPolicy */
enum xdc_runtime_Types_OutputPolicy {
xdc_runtime_Types_COMMON_FILE,
xdc_runtime_Types_SEPARATE_FILE,
xdc_runtime_Types_NO_FILE
};
typedef enum xdc_runtime_Types_OutputPolicy xdc_runtime_Types_OutputPolicy;
/* Label */
struct xdc_runtime_Types_Label {
xdc_Ptr handle;
xdc_runtime_Types_ModuleId modId;
xdc_String iname;
xdc_Bool named;
};
/* Site */
struct xdc_runtime_Types_Site {
xdc_runtime_Types_ModuleId mod;
xdc_CString file;
xdc_Int line;
};
/* Timestamp64 */
struct xdc_runtime_Types_Timestamp64 {
xdc_Bits32 hi;
xdc_Bits32 lo;
};
/* FreqHz */
struct xdc_runtime_Types_FreqHz {
xdc_Bits32 hi;
xdc_Bits32 lo;
};
/* RegDesc */
struct xdc_runtime_Types_RegDesc {
xdc_runtime_Types_RegDesc *next;
xdc_CString modName;
xdc_runtime_Types_ModuleId id;
xdc_runtime_Types_DiagsMask mask;
};
/*
* ======== INTERNAL DEFINITIONS ========
*/
/* LogEvent */
typedef xdc_Bits32 xdc_runtime_Types_LogEvent;
/* LoggerFxn0 */
typedef void (*xdc_runtime_Types_LoggerFxn0)(xdc_Ptr, xdc_runtime_Types_LogEvent, xdc_runtime_Types_ModuleId);
/* LoggerFxn1 */
typedef void (*xdc_runtime_Types_LoggerFxn1)(xdc_Ptr, xdc_runtime_Types_LogEvent, xdc_runtime_Types_ModuleId, xdc_IArg);
/* LoggerFxn2 */
typedef void (*xdc_runtime_Types_LoggerFxn2)(xdc_Ptr, xdc_runtime_Types_LogEvent, xdc_runtime_Types_ModuleId, xdc_IArg, xdc_IArg);
/* LoggerFxn4 */
typedef void (*xdc_runtime_Types_LoggerFxn4)(xdc_Ptr, xdc_runtime_Types_LogEvent, xdc_runtime_Types_ModuleId, xdc_IArg, xdc_IArg, xdc_IArg, xdc_IArg);
/* LoggerFxn8 */
typedef void (*xdc_runtime_Types_LoggerFxn8)(xdc_Ptr, xdc_runtime_Types_LogEvent, xdc_runtime_Types_ModuleId, xdc_IArg, xdc_IArg, xdc_IArg, xdc_IArg, xdc_IArg, xdc_IArg, xdc_IArg, xdc_IArg);
/* Vec */
struct xdc_runtime_Types_Vec {
xdc_Int len;
xdc_Ptr arr;
};
/* Link */
struct xdc_runtime_Types_Link {
xdc_runtime_Types_Link *next;
xdc_runtime_Types_Link *prev;
};
/* InstHdr */
struct xdc_runtime_Types_InstHdr {
xdc_runtime_Types_Link link;
};
/* PrmsHdr */
struct xdc_runtime_Types_PrmsHdr {
xdc_SizeT size;
xdc_Ptr self;
xdc_Ptr modFxns;
xdc_Ptr instPrms;
};
/* Base */
struct xdc_runtime_Types_Base {
xdc_runtime_Types_Base *base;
};
/* SysFxns */
struct xdc_runtime_Types_SysFxns {
xdc_Ptr (*__create)(xdc_Ptr, xdc_SizeT, xdc_Ptr, const xdc_Ptr, xdc_SizeT, xdc_runtime_Error_Block*);
void (*__delete)(xdc_Ptr);
xdc_runtime_Types_Label *(*__label)(xdc_Ptr, xdc_runtime_Types_Label*);
xdc_runtime_Types_ModuleId __mid;
};
/* SysFxns2 */
struct xdc_runtime_Types_SysFxns2 {
xdc_Ptr (*__create)(xdc_Ptr, xdc_SizeT, xdc_Ptr, const xdc_UChar*, xdc_SizeT, xdc_runtime_Error_Block*);
void (*__delete)(xdc_Ptr);
xdc_runtime_Types_Label *(*__label)(xdc_Ptr, xdc_runtime_Types_Label*);
xdc_runtime_Types_ModuleId __mid;
};
/*
* ======== MODULE-WIDE CONFIGS ========
*/
/* Module__diagsEnabled */
typedef xdc_Bits32 CT__xdc_runtime_Types_Module__diagsEnabled;
extern const CT__xdc_runtime_Types_Module__diagsEnabled xdc_runtime_Types_Module__diagsEnabled__C;
/* Module__diagsIncluded */
typedef xdc_Bits32 CT__xdc_runtime_Types_Module__diagsIncluded;
extern const CT__xdc_runtime_Types_Module__diagsIncluded xdc_runtime_Types_Module__diagsIncluded__C;
/* Module__diagsMask */
typedef xdc_Bits16 *CT__xdc_runtime_Types_Module__diagsMask;
extern const CT__xdc_runtime_Types_Module__diagsMask xdc_runtime_Types_Module__diagsMask__C;
/* Module__gateObj */
typedef xdc_Ptr CT__xdc_runtime_Types_Module__gateObj;
extern const CT__xdc_runtime_Types_Module__gateObj xdc_runtime_Types_Module__gateObj__C;
/* Module__gatePrms */
typedef xdc_Ptr CT__xdc_runtime_Types_Module__gatePrms;
extern const CT__xdc_runtime_Types_Module__gatePrms xdc_runtime_Types_Module__gatePrms__C;
/* Module__id */
typedef xdc_runtime_Types_ModuleId CT__xdc_runtime_Types_Module__id;
extern const CT__xdc_runtime_Types_Module__id xdc_runtime_Types_Module__id__C;
/* Module__loggerDefined */
typedef xdc_Bool CT__xdc_runtime_Types_Module__loggerDefined;
extern const CT__xdc_runtime_Types_Module__loggerDefined xdc_runtime_Types_Module__loggerDefined__C;
/* Module__loggerObj */
typedef xdc_Ptr CT__xdc_runtime_Types_Module__loggerObj;
extern const CT__xdc_runtime_Types_Module__loggerObj xdc_runtime_Types_Module__loggerObj__C;
/* Module__loggerFxn0 */
typedef xdc_runtime_Types_LoggerFxn0 CT__xdc_runtime_Types_Module__loggerFxn0;
extern const CT__xdc_runtime_Types_Module__loggerFxn0 xdc_runtime_Types_Module__loggerFxn0__C;
/* Module__loggerFxn1 */
typedef xdc_runtime_Types_LoggerFxn1 CT__xdc_runtime_Types_Module__loggerFxn1;
extern const CT__xdc_runtime_Types_Module__loggerFxn1 xdc_runtime_Types_Module__loggerFxn1__C;
/* Module__loggerFxn2 */
typedef xdc_runtime_Types_LoggerFxn2 CT__xdc_runtime_Types_Module__loggerFxn2;
extern const CT__xdc_runtime_Types_Module__loggerFxn2 xdc_runtime_Types_Module__loggerFxn2__C;
/* Module__loggerFxn4 */
typedef xdc_runtime_Types_LoggerFxn4 CT__xdc_runtime_Types_Module__loggerFxn4;
extern const CT__xdc_runtime_Types_Module__loggerFxn4 xdc_runtime_Types_Module__loggerFxn4__C;
/* Module__loggerFxn8 */
typedef xdc_runtime_Types_LoggerFxn8 CT__xdc_runtime_Types_Module__loggerFxn8;
extern const CT__xdc_runtime_Types_Module__loggerFxn8 xdc_runtime_Types_Module__loggerFxn8__C;
/* Module__startupDoneFxn */
typedef xdc_Bool (*CT__xdc_runtime_Types_Module__startupDoneFxn)(void);
extern const CT__xdc_runtime_Types_Module__startupDoneFxn xdc_runtime_Types_Module__startupDoneFxn__C;
/* Object__count */
typedef xdc_Int CT__xdc_runtime_Types_Object__count;
extern const CT__xdc_runtime_Types_Object__count xdc_runtime_Types_Object__count__C;
/* Object__heap */
typedef xdc_runtime_IHeap_Handle CT__xdc_runtime_Types_Object__heap;
extern const CT__xdc_runtime_Types_Object__heap xdc_runtime_Types_Object__heap__C;
/* Object__sizeof */
typedef xdc_SizeT CT__xdc_runtime_Types_Object__sizeof;
extern const CT__xdc_runtime_Types_Object__sizeof xdc_runtime_Types_Object__sizeof__C;
/* Object__table */
typedef xdc_Ptr CT__xdc_runtime_Types_Object__table;
extern const CT__xdc_runtime_Types_Object__table xdc_runtime_Types_Object__table__C;
/*
* ======== FUNCTION DECLARATIONS ========
*/
/* Module_startup */
/* Module__startupDone__S */
extern xdc_Bool xdc_runtime_Types_Module__startupDone__S( void );
/*
* ======== SYSTEM FUNCTIONS ========
*/
/* Module_startupDone */
/* Object_heap */
/* Module_heap */
/* Module_id */
static inline CT__xdc_runtime_Types_Module__id xdc_runtime_Types_Module_id( void )
{
return xdc_runtime_Types_Module__id__C;
}
/* Module_hasMask */
static inline xdc_Bool xdc_runtime_Types_Module_hasMask( void )
{
return (xdc_Bool)(xdc_runtime_Types_Module__diagsMask__C != 0);
}
/* Module_getMask */
static inline xdc_Bits16 xdc_runtime_Types_Module_getMask( void )
{
return xdc_runtime_Types_Module__diagsMask__C != 0 ? *xdc_runtime_Types_Module__diagsMask__C : (xdc_Bits16)0;
}
/* Module_setMask */
static inline void xdc_runtime_Types_Module_setMask( xdc_Bits16 mask )
{
if (xdc_runtime_Types_Module__diagsMask__C != 0) {
*xdc_runtime_Types_Module__diagsMask__C = mask;
}
}
/*
* ======== EPILOGUE ========
*/
/*
* Copyright (c) 2008 Texas Instruments. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 and Eclipse Distribution License
* v. 1.0 which accompanies this distribution. The Eclipse Public License is
* available at http://www.eclipse.org/legal/epl-v10.html and the Eclipse
* Distribution License is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* Contributors:
* Texas Instruments - initial implementation
* */
/*
* ======== Types__epilogue.h ========
* Hand crafted macros for Types.xdc
*/
/*
* ======== xdc_runtime_Types_getEventId ========
*/
/*
* ======== xdc_runtime_Types_makeEvent ========
*/
/*
* ======== xdc_runtime_Types_getModuleId ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:03; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:03; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* PER-INSTANCE TYPES
* VIRTUAL FUNCTIONS
* FUNCTION STUBS
* FUNCTION SELECTORS
*
* EPILOGUE
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== INCLUDES ========
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:03; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* ======== AUXILIARY DEFINITIONS ========
*/
/*
* ======== PER-INSTANCE TYPES ========
*/
/* Params */
struct xdc_runtime_IInstance_Params {
size_t __size;
xdc_String name;
};
/*
* ======== VIRTUAL FUNCTIONS ========
*/
/* Fxns__ */
struct xdc_runtime_IInstance_Fxns__ {
xdc_runtime_Types_Base* __base;
const xdc_runtime_Types_SysFxns2* __sysp;
xdc_runtime_Types_SysFxns2 __sfxns;
};
/* Interface__BASE__C */
extern const xdc_runtime_Types_Base xdc_runtime_IInstance_Interface__BASE__C;
/*
* ======== FUNCTION STUBS ========
*/
/* create */
extern xdc_runtime_IInstance_Handle xdc_runtime_IInstance_create(xdc_runtime_IInstance_Module, const xdc_runtime_IInstance_Params *, xdc_runtime_Error_Block *__eb);
/* delete */
extern void xdc_runtime_IInstance_delete(xdc_runtime_IInstance_Handle *);
/* Handle_to_Module */
static inline xdc_runtime_IInstance_Module xdc_runtime_IInstance_Handle_to_Module( xdc_runtime_IInstance_Handle inst )
{
return inst->__fxns;
}
/* Handle_label */
static inline xdc_runtime_Types_Label *xdc_runtime_IInstance_Handle_label( xdc_runtime_IInstance_Handle inst, xdc_runtime_Types_Label *lab )
{
return inst->__fxns->__sysp->__label(inst, lab);
}
/* Module_id */
static inline xdc_runtime_Types_ModuleId xdc_runtime_IInstance_Module_id( xdc_runtime_IInstance_Module mod )
{
return mod->__sysp->__mid;
}
/*
* ======== FUNCTION SELECTORS ========
*/
/*
* ======== EPILOGUE ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:01; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Copyright (c) 2012, Texas Instruments Incorporated
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of Texas Instruments Incorporated nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-A71
*/
/*
* ======== module ti.sysbios.knl.Clock ========
*/
typedef struct ti_sysbios_knl_Clock_Module_State ti_sysbios_knl_Clock_Module_State;
typedef struct ti_sysbios_knl_Clock_Params ti_sysbios_knl_Clock_Params;
typedef struct ti_sysbios_knl_Clock_Object ti_sysbios_knl_Clock_Object;
typedef struct ti_sysbios_knl_Clock_Struct ti_sysbios_knl_Clock_Struct;
typedef ti_sysbios_knl_Clock_Object* ti_sysbios_knl_Clock_Handle;
typedef struct ti_sysbios_knl_Clock_Object__ ti_sysbios_knl_Clock_Instance_State;
typedef ti_sysbios_knl_Clock_Object* ti_sysbios_knl_Clock_Instance;
/*
* ======== module ti.sysbios.knl.Idle ========
*/
/*
* ======== module ti.sysbios.knl.Intrinsics ========
*/
typedef struct ti_sysbios_knl_Intrinsics_Fxns__ ti_sysbios_knl_Intrinsics_Fxns__;
typedef const ti_sysbios_knl_Intrinsics_Fxns__* ti_sysbios_knl_Intrinsics_Module;
/*
* ======== module ti.sysbios.knl.Event ========
*/
typedef struct ti_sysbios_knl_Event_PendElem ti_sysbios_knl_Event_PendElem;
typedef struct ti_sysbios_knl_Event_Params ti_sysbios_knl_Event_Params;
typedef struct ti_sysbios_knl_Event_Object ti_sysbios_knl_Event_Object;
typedef struct ti_sysbios_knl_Event_Struct ti_sysbios_knl_Event_Struct;
typedef ti_sysbios_knl_Event_Object* ti_sysbios_knl_Event_Handle;
typedef struct ti_sysbios_knl_Event_Object__ ti_sysbios_knl_Event_Instance_State;
typedef ti_sysbios_knl_Event_Object* ti_sysbios_knl_Event_Instance;
/*
* ======== module ti.sysbios.knl.Mailbox ========
*/
typedef struct ti_sysbios_knl_Mailbox_MbxElem ti_sysbios_knl_Mailbox_MbxElem;
typedef struct ti_sysbios_knl_Mailbox_Params ti_sysbios_knl_Mailbox_Params;
typedef struct ti_sysbios_knl_Mailbox_Object ti_sysbios_knl_Mailbox_Object;
typedef struct ti_sysbios_knl_Mailbox_Struct ti_sysbios_knl_Mailbox_Struct;
typedef ti_sysbios_knl_Mailbox_Object* ti_sysbios_knl_Mailbox_Handle;
typedef struct ti_sysbios_knl_Mailbox_Object__ ti_sysbios_knl_Mailbox_Instance_State;
typedef ti_sysbios_knl_Mailbox_Object* ti_sysbios_knl_Mailbox_Instance;
/*
* ======== module ti.sysbios.knl.Queue ========
*/
typedef struct ti_sysbios_knl_Queue_Elem ti_sysbios_knl_Queue_Elem;
typedef struct ti_sysbios_knl_Queue_Params ti_sysbios_knl_Queue_Params;
typedef struct ti_sysbios_knl_Queue_Object ti_sysbios_knl_Queue_Object;
typedef struct ti_sysbios_knl_Queue_Struct ti_sysbios_knl_Queue_Struct;
typedef ti_sysbios_knl_Queue_Object* ti_sysbios_knl_Queue_Handle;
typedef struct ti_sysbios_knl_Queue_Object__ ti_sysbios_knl_Queue_Instance_State;
typedef ti_sysbios_knl_Queue_Object* ti_sysbios_knl_Queue_Instance;
/*
* ======== module ti.sysbios.knl.Semaphore ========
*/
typedef struct ti_sysbios_knl_Semaphore_PendElem ti_sysbios_knl_Semaphore_PendElem;
typedef struct ti_sysbios_knl_Semaphore_Params ti_sysbios_knl_Semaphore_Params;
typedef struct ti_sysbios_knl_Semaphore_Object ti_sysbios_knl_Semaphore_Object;
typedef struct ti_sysbios_knl_Semaphore_Struct ti_sysbios_knl_Semaphore_Struct;
typedef ti_sysbios_knl_Semaphore_Object* ti_sysbios_knl_Semaphore_Handle;
typedef struct ti_sysbios_knl_Semaphore_Object__ ti_sysbios_knl_Semaphore_Instance_State;
typedef ti_sysbios_knl_Semaphore_Object* ti_sysbios_knl_Semaphore_Instance;
/*
* ======== module ti.sysbios.knl.Swi ========
*/
typedef struct ti_sysbios_knl_Swi_HookSet ti_sysbios_knl_Swi_HookSet;
typedef struct ti_sysbios_knl_Swi_Module_State ti_sysbios_knl_Swi_Module_State;
typedef struct ti_sysbios_knl_Swi_Params ti_sysbios_knl_Swi_Params;
typedef struct ti_sysbios_knl_Swi_Object ti_sysbios_knl_Swi_Object;
typedef struct ti_sysbios_knl_Swi_Struct ti_sysbios_knl_Swi_Struct;
typedef ti_sysbios_knl_Swi_Object* ti_sysbios_knl_Swi_Handle;
typedef struct ti_sysbios_knl_Swi_Object__ ti_sysbios_knl_Swi_Instance_State;
typedef ti_sysbios_knl_Swi_Object* ti_sysbios_knl_Swi_Instance;
/*
* ======== module ti.sysbios.knl.Task ========
*/
typedef struct ti_sysbios_knl_Task_Stat ti_sysbios_knl_Task_Stat;
typedef struct ti_sysbios_knl_Task_HookSet ti_sysbios_knl_Task_HookSet;
typedef struct ti_sysbios_knl_Task_PendElem ti_sysbios_knl_Task_PendElem;
typedef struct ti_sysbios_knl_Task_Module_State ti_sysbios_knl_Task_Module_State;
typedef struct ti_sysbios_knl_Task_RunQEntry ti_sysbios_knl_Task_RunQEntry;
typedef struct ti_sysbios_knl_Task_Module_StateSmp ti_sysbios_knl_Task_Module_StateSmp;
typedef struct ti_sysbios_knl_Task_Params ti_sysbios_knl_Task_Params;
typedef struct ti_sysbios_knl_Task_Object ti_sysbios_knl_Task_Object;
typedef struct ti_sysbios_knl_Task_Struct ti_sysbios_knl_Task_Struct;
typedef ti_sysbios_knl_Task_Object* ti_sysbios_knl_Task_Handle;
typedef struct ti_sysbios_knl_Task_Object__ ti_sysbios_knl_Task_Instance_State;
typedef ti_sysbios_knl_Task_Object* ti_sysbios_knl_Task_Instance;
/*
* ======== module ti.sysbios.knl.Clock_TimerProxy ========
*/
typedef struct ti_sysbios_knl_Clock_TimerProxy_Fxns__ ti_sysbios_knl_Clock_TimerProxy_Fxns__;
typedef const ti_sysbios_knl_Clock_TimerProxy_Fxns__* ti_sysbios_knl_Clock_TimerProxy_Module;
typedef struct ti_sysbios_knl_Clock_TimerProxy_Params ti_sysbios_knl_Clock_TimerProxy_Params;
typedef struct ti_sysbios_interfaces_ITimer___Object *ti_sysbios_knl_Clock_TimerProxy_Handle;
/*
* ======== module ti.sysbios.knl.Intrinsics_SupportProxy ========
*/
typedef struct ti_sysbios_knl_Intrinsics_SupportProxy_Fxns__ ti_sysbios_knl_Intrinsics_SupportProxy_Fxns__;
typedef const ti_sysbios_knl_Intrinsics_SupportProxy_Fxns__* ti_sysbios_knl_Intrinsics_SupportProxy_Module;
/*
* ======== module ti.sysbios.knl.Task_SupportProxy ========
*/
typedef struct ti_sysbios_knl_Task_SupportProxy_Fxns__ ti_sysbios_knl_Task_SupportProxy_Fxns__;
typedef const ti_sysbios_knl_Task_SupportProxy_Fxns__* ti_sysbios_knl_Task_SupportProxy_Module;
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== INCLUDES ========
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:03; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Copyright (c) 2008 Texas Instruments. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 and Eclipse Distribution License
* v. 1.0 which accompanies this distribution. The Eclipse Public License is
* available at http://www.eclipse.org/legal/epl-v10.html and the Eclipse
* Distribution License is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* Contributors:
* Texas Instruments - initial implementation
* */
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== INCLUDES ========
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:03; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* VIRTUAL FUNCTIONS
* FUNCTION STUBS
* FUNCTION SELECTORS
*
* EPILOGUE
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== INCLUDES ========
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:03; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:03; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* PER-INSTANCE TYPES
* VIRTUAL FUNCTIONS
* FUNCTION STUBS
* FUNCTION SELECTORS
*
* EPILOGUE
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== INCLUDES ========
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:03; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* PER-INSTANCE TYPES
* VIRTUAL FUNCTIONS
* FUNCTION STUBS
* FUNCTION SELECTORS
*
* EPILOGUE
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:01; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* VIRTUAL FUNCTIONS
* FUNCTION STUBS
* FUNCTION SELECTORS
*
* EPILOGUE
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:01; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:00; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== INCLUDES ========
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:03; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* VIRTUAL FUNCTIONS
* FUNCTION STUBS
* FUNCTION SELECTORS
*
* EPILOGUE
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:01; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* PER-INSTANCE TYPES
* VIRTUAL FUNCTIONS
* FUNCTION STUBS
* FUNCTION SELECTORS
*
* EPILOGUE
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:01; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:00; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* MODULE-WIDE CONFIGS
* PER-INSTANCE TYPES
* VIRTUAL FUNCTIONS
* FUNCTION DECLARATIONS
* CONVERTORS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== INCLUDES ========
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:03; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* PER-INSTANCE TYPES
* VIRTUAL FUNCTIONS
* FUNCTION STUBS
* FUNCTION SELECTORS
*
* EPILOGUE
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:01; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* PER-INSTANCE TYPES
* VIRTUAL FUNCTIONS
* FUNCTION STUBS
* FUNCTION SELECTORS
*
* EPILOGUE
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:01; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* ======== AUXILIARY DEFINITIONS ========
*/
/*
* ======== MODULE-WIDE CONFIGS ========
*/
/* Module__diagsEnabled */
typedef xdc_Bits32 CT__xdc_runtime_Memory_HeapProxy_Module__diagsEnabled;
extern const CT__xdc_runtime_Memory_HeapProxy_Module__diagsEnabled xdc_runtime_Memory_HeapProxy_Module__diagsEnabled__C;
/* Module__diagsIncluded */
typedef xdc_Bits32 CT__xdc_runtime_Memory_HeapProxy_Module__diagsIncluded;
extern const CT__xdc_runtime_Memory_HeapProxy_Module__diagsIncluded xdc_runtime_Memory_HeapProxy_Module__diagsIncluded__C;
/* Module__diagsMask */
typedef xdc_Bits16 *CT__xdc_runtime_Memory_HeapProxy_Module__diagsMask;
extern const CT__xdc_runtime_Memory_HeapProxy_Module__diagsMask xdc_runtime_Memory_HeapProxy_Module__diagsMask__C;
/* Module__gateObj */
typedef xdc_Ptr CT__xdc_runtime_Memory_HeapProxy_Module__gateObj;
extern const CT__xdc_runtime_Memory_HeapProxy_Module__gateObj xdc_runtime_Memory_HeapProxy_Module__gateObj__C;
/* Module__gatePrms */
typedef xdc_Ptr CT__xdc_runtime_Memory_HeapProxy_Module__gatePrms;
extern const CT__xdc_runtime_Memory_HeapProxy_Module__gatePrms xdc_runtime_Memory_HeapProxy_Module__gatePrms__C;
/* Module__id */
typedef xdc_runtime_Types_ModuleId CT__xdc_runtime_Memory_HeapProxy_Module__id;
extern const CT__xdc_runtime_Memory_HeapProxy_Module__id xdc_runtime_Memory_HeapProxy_Module__id__C;
/* Module__loggerDefined */
typedef xdc_Bool CT__xdc_runtime_Memory_HeapProxy_Module__loggerDefined;
extern const CT__xdc_runtime_Memory_HeapProxy_Module__loggerDefined xdc_runtime_Memory_HeapProxy_Module__loggerDefined__C;
/* Module__loggerObj */
typedef xdc_Ptr CT__xdc_runtime_Memory_HeapProxy_Module__loggerObj;
extern const CT__xdc_runtime_Memory_HeapProxy_Module__loggerObj xdc_runtime_Memory_HeapProxy_Module__loggerObj__C;
/* Module__loggerFxn0 */
typedef xdc_runtime_Types_LoggerFxn0 CT__xdc_runtime_Memory_HeapProxy_Module__loggerFxn0;
extern const CT__xdc_runtime_Memory_HeapProxy_Module__loggerFxn0 xdc_runtime_Memory_HeapProxy_Module__loggerFxn0__C;
/* Module__loggerFxn1 */
typedef xdc_runtime_Types_LoggerFxn1 CT__xdc_runtime_Memory_HeapProxy_Module__loggerFxn1;
extern const CT__xdc_runtime_Memory_HeapProxy_Module__loggerFxn1 xdc_runtime_Memory_HeapProxy_Module__loggerFxn1__C;
/* Module__loggerFxn2 */
typedef xdc_runtime_Types_LoggerFxn2 CT__xdc_runtime_Memory_HeapProxy_Module__loggerFxn2;
extern const CT__xdc_runtime_Memory_HeapProxy_Module__loggerFxn2 xdc_runtime_Memory_HeapProxy_Module__loggerFxn2__C;
/* Module__loggerFxn4 */
typedef xdc_runtime_Types_LoggerFxn4 CT__xdc_runtime_Memory_HeapProxy_Module__loggerFxn4;
extern const CT__xdc_runtime_Memory_HeapProxy_Module__loggerFxn4 xdc_runtime_Memory_HeapProxy_Module__loggerFxn4__C;
/* Module__loggerFxn8 */
typedef xdc_runtime_Types_LoggerFxn8 CT__xdc_runtime_Memory_HeapProxy_Module__loggerFxn8;
extern const CT__xdc_runtime_Memory_HeapProxy_Module__loggerFxn8 xdc_runtime_Memory_HeapProxy_Module__loggerFxn8__C;
/* Module__startupDoneFxn */
typedef xdc_Bool (*CT__xdc_runtime_Memory_HeapProxy_Module__startupDoneFxn)(void);
extern const CT__xdc_runtime_Memory_HeapProxy_Module__startupDoneFxn xdc_runtime_Memory_HeapProxy_Module__startupDoneFxn__C;
/* Object__count */
typedef xdc_Int CT__xdc_runtime_Memory_HeapProxy_Object__count;
extern const CT__xdc_runtime_Memory_HeapProxy_Object__count xdc_runtime_Memory_HeapProxy_Object__count__C;
/* Object__heap */
typedef xdc_runtime_IHeap_Handle CT__xdc_runtime_Memory_HeapProxy_Object__heap;
extern const CT__xdc_runtime_Memory_HeapProxy_Object__heap xdc_runtime_Memory_HeapProxy_Object__heap__C;
/* Object__sizeof */
typedef xdc_SizeT CT__xdc_runtime_Memory_HeapProxy_Object__sizeof;
extern const CT__xdc_runtime_Memory_HeapProxy_Object__sizeof xdc_runtime_Memory_HeapProxy_Object__sizeof__C;
/* Object__table */
typedef xdc_Ptr CT__xdc_runtime_Memory_HeapProxy_Object__table;
extern const CT__xdc_runtime_Memory_HeapProxy_Object__table xdc_runtime_Memory_HeapProxy_Object__table__C;
/*
* ======== PER-INSTANCE TYPES ========
*/
/* Params */
struct xdc_runtime_Memory_HeapProxy_Params {
size_t __size;
const void *__self;
void *__fxns;
xdc_runtime_IInstance_Params *instance;
xdc_runtime_IInstance_Params __iprms;
};
/* Struct */
struct xdc_runtime_Memory_HeapProxy_Struct {
const xdc_runtime_Memory_HeapProxy_Fxns__ *__fxns;
xdc_runtime_Types_CordAddr __name;
};
/*
* ======== VIRTUAL FUNCTIONS ========
*/
/* Fxns__ */
struct xdc_runtime_Memory_HeapProxy_Fxns__ {
xdc_runtime_Types_Base* __base;
const xdc_runtime_Types_SysFxns2* __sysp;
xdc_Ptr (*alloc)(xdc_runtime_Memory_HeapProxy_Handle, xdc_SizeT, xdc_SizeT, xdc_runtime_Error_Block*);
void (*free)(xdc_runtime_Memory_HeapProxy_Handle, xdc_Ptr, xdc_SizeT);
xdc_Bool (*isBlocking)(xdc_runtime_Memory_HeapProxy_Handle);
void (*getStats)(xdc_runtime_Memory_HeapProxy_Handle, xdc_runtime_Memory_Stats*);
xdc_runtime_Types_SysFxns2 __sfxns;
};
/* Module__FXNS__C */
extern const xdc_runtime_Memory_HeapProxy_Fxns__ xdc_runtime_Memory_HeapProxy_Module__FXNS__C;
/*
* ======== FUNCTION DECLARATIONS ========
*/
/* Module_startup */
/* Handle__label__S */
extern xdc_runtime_Types_Label *xdc_runtime_Memory_HeapProxy_Handle__label__S( xdc_Ptr obj, xdc_runtime_Types_Label *lab );
/* Module__startupDone__S */
extern xdc_Bool xdc_runtime_Memory_HeapProxy_Module__startupDone__S( void );
/* Object__create__S */
extern xdc_Ptr xdc_runtime_Memory_HeapProxy_Object__create__S( xdc_Ptr __oa, xdc_SizeT __osz, xdc_Ptr __aa, const xdc_UChar *__pa, xdc_SizeT __psz, xdc_runtime_Error_Block *__eb );
/* create */
extern xdc_runtime_Memory_HeapProxy_Handle xdc_runtime_Memory_HeapProxy_create( const xdc_runtime_Memory_HeapProxy_Params *__prms, xdc_runtime_Error_Block *__eb );
/* Object__delete__S */
extern void xdc_runtime_Memory_HeapProxy_Object__delete__S( xdc_Ptr instp );
/* delete */
extern void xdc_runtime_Memory_HeapProxy_delete(xdc_runtime_Memory_HeapProxy_Handle *instp);
/* Object__destruct__S */
extern void xdc_runtime_Memory_HeapProxy_Object__destruct__S( xdc_Ptr objp );
/* Object__get__S */
extern xdc_Ptr xdc_runtime_Memory_HeapProxy_Object__get__S( xdc_Ptr oarr, xdc_Int i );
/* Object__first__S */
extern xdc_Ptr xdc_runtime_Memory_HeapProxy_Object__first__S( void );
/* Object__next__S */
extern xdc_Ptr xdc_runtime_Memory_HeapProxy_Object__next__S( xdc_Ptr obj );
/* Params__init__S */
extern void xdc_runtime_Memory_HeapProxy_Params__init__S( xdc_Ptr dst, const void *src, xdc_SizeT psz, xdc_SizeT isz );
/* Proxy__abstract__S */
extern xdc_Bool xdc_runtime_Memory_HeapProxy_Proxy__abstract__S( void );
/* Proxy__delegate__S */
extern xdc_Ptr xdc_runtime_Memory_HeapProxy_Proxy__delegate__S( void );
/* alloc__E */
extern xdc_Ptr xdc_runtime_Memory_HeapProxy_alloc__E( xdc_runtime_Memory_HeapProxy_Handle __inst, xdc_SizeT size, xdc_SizeT align, xdc_runtime_Error_Block *eb );
/* free__E */
extern void xdc_runtime_Memory_HeapProxy_free__E( xdc_runtime_Memory_HeapProxy_Handle __inst, xdc_Ptr block, xdc_SizeT size );
/* isBlocking__E */
extern xdc_Bool xdc_runtime_Memory_HeapProxy_isBlocking__E( xdc_runtime_Memory_HeapProxy_Handle __inst );
/* getStats__E */
extern void xdc_runtime_Memory_HeapProxy_getStats__E( xdc_runtime_Memory_HeapProxy_Handle __inst, xdc_runtime_Memory_Stats *stats );
/*
* ======== CONVERTORS ========
*/
/* Module_upCast */
static inline xdc_runtime_IHeap_Module xdc_runtime_Memory_HeapProxy_Module_upCast( void )
{
return (xdc_runtime_IHeap_Module)xdc_runtime_Memory_HeapProxy_Proxy__delegate__S();
}
/* Module_to_xdc_runtime_IHeap */
/* Handle_upCast */
static inline xdc_runtime_IHeap_Handle xdc_runtime_Memory_HeapProxy_Handle_upCast( xdc_runtime_Memory_HeapProxy_Handle i )
{
return (xdc_runtime_IHeap_Handle)i;
}
/* Handle_to_xdc_runtime_IHeap */
/* Handle_downCast */
static inline xdc_runtime_Memory_HeapProxy_Handle xdc_runtime_Memory_HeapProxy_Handle_downCast( xdc_runtime_IHeap_Handle i )
{
xdc_runtime_IHeap_Handle i2 = (xdc_runtime_IHeap_Handle)i;
if (xdc_runtime_Memory_HeapProxy_Proxy__abstract__S()) {
return (xdc_runtime_Memory_HeapProxy_Handle)i;
}
return (const void*)i2->__fxns == (const void*)xdc_runtime_Memory_HeapProxy_Proxy__delegate__S() ? (xdc_runtime_Memory_HeapProxy_Handle)i : (xdc_runtime_Memory_HeapProxy_Handle)0;
}
/* Handle_from_xdc_runtime_IHeap */
/*
* ======== SYSTEM FUNCTIONS ========
*/
/* Module_startupDone */
/* Object_heap */
/* Module_heap */
/* Module_id */
static inline CT__xdc_runtime_Memory_HeapProxy_Module__id xdc_runtime_Memory_HeapProxy_Module_id( void )
{
return xdc_runtime_Memory_HeapProxy_Module__id__C;
}
/* Proxy_abstract */
/* Proxy_delegate */
/* Params_init */
static inline void xdc_runtime_Memory_HeapProxy_Params_init( xdc_runtime_Memory_HeapProxy_Params *prms )
{
if (prms) {
xdc_runtime_Memory_HeapProxy_Params__init__S(prms, 0, sizeof(xdc_runtime_Memory_HeapProxy_Params), sizeof(xdc_runtime_IInstance_Params));
}
}
/* Params_copy */
static inline void xdc_runtime_Memory_HeapProxy_Params_copy(xdc_runtime_Memory_HeapProxy_Params *dst, const xdc_runtime_Memory_HeapProxy_Params *src)
{
if (dst) {
xdc_runtime_Memory_HeapProxy_Params__init__S(dst, (const void *)src, sizeof(xdc_runtime_Memory_HeapProxy_Params), sizeof(xdc_runtime_IInstance_Params));
}
}
/*
* ======== EPILOGUE ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* ======== AUXILIARY DEFINITIONS ========
*/
/* Q_BLOCKING */
/* Size */
typedef xdc_UArg xdc_runtime_Memory_Size;
/* Stats */
struct xdc_runtime_Memory_Stats {
xdc_runtime_Memory_Size totalSize;
xdc_runtime_Memory_Size totalFreeSize;
xdc_runtime_Memory_Size largestFreeSize;
};
/*
* ======== INTERNAL DEFINITIONS ========
*/
/*
* ======== MODULE-WIDE CONFIGS ========
*/
/* Module__diagsEnabled */
typedef xdc_Bits32 CT__xdc_runtime_Memory_Module__diagsEnabled;
extern const CT__xdc_runtime_Memory_Module__diagsEnabled xdc_runtime_Memory_Module__diagsEnabled__C;
/* Module__diagsIncluded */
typedef xdc_Bits32 CT__xdc_runtime_Memory_Module__diagsIncluded;
extern const CT__xdc_runtime_Memory_Module__diagsIncluded xdc_runtime_Memory_Module__diagsIncluded__C;
/* Module__diagsMask */
typedef xdc_Bits16 *CT__xdc_runtime_Memory_Module__diagsMask;
extern const CT__xdc_runtime_Memory_Module__diagsMask xdc_runtime_Memory_Module__diagsMask__C;
/* Module__gateObj */
typedef xdc_Ptr CT__xdc_runtime_Memory_Module__gateObj;
extern const CT__xdc_runtime_Memory_Module__gateObj xdc_runtime_Memory_Module__gateObj__C;
/* Module__gatePrms */
typedef xdc_Ptr CT__xdc_runtime_Memory_Module__gatePrms;
extern const CT__xdc_runtime_Memory_Module__gatePrms xdc_runtime_Memory_Module__gatePrms__C;
/* Module__id */
typedef xdc_runtime_Types_ModuleId CT__xdc_runtime_Memory_Module__id;
extern const CT__xdc_runtime_Memory_Module__id xdc_runtime_Memory_Module__id__C;
/* Module__loggerDefined */
typedef xdc_Bool CT__xdc_runtime_Memory_Module__loggerDefined;
extern const CT__xdc_runtime_Memory_Module__loggerDefined xdc_runtime_Memory_Module__loggerDefined__C;
/* Module__loggerObj */
typedef xdc_Ptr CT__xdc_runtime_Memory_Module__loggerObj;
extern const CT__xdc_runtime_Memory_Module__loggerObj xdc_runtime_Memory_Module__loggerObj__C;
/* Module__loggerFxn0 */
typedef xdc_runtime_Types_LoggerFxn0 CT__xdc_runtime_Memory_Module__loggerFxn0;
extern const CT__xdc_runtime_Memory_Module__loggerFxn0 xdc_runtime_Memory_Module__loggerFxn0__C;
/* Module__loggerFxn1 */
typedef xdc_runtime_Types_LoggerFxn1 CT__xdc_runtime_Memory_Module__loggerFxn1;
extern const CT__xdc_runtime_Memory_Module__loggerFxn1 xdc_runtime_Memory_Module__loggerFxn1__C;
/* Module__loggerFxn2 */
typedef xdc_runtime_Types_LoggerFxn2 CT__xdc_runtime_Memory_Module__loggerFxn2;
extern const CT__xdc_runtime_Memory_Module__loggerFxn2 xdc_runtime_Memory_Module__loggerFxn2__C;
/* Module__loggerFxn4 */
typedef xdc_runtime_Types_LoggerFxn4 CT__xdc_runtime_Memory_Module__loggerFxn4;
extern const CT__xdc_runtime_Memory_Module__loggerFxn4 xdc_runtime_Memory_Module__loggerFxn4__C;
/* Module__loggerFxn8 */
typedef xdc_runtime_Types_LoggerFxn8 CT__xdc_runtime_Memory_Module__loggerFxn8;
extern const CT__xdc_runtime_Memory_Module__loggerFxn8 xdc_runtime_Memory_Module__loggerFxn8__C;
/* Module__startupDoneFxn */
typedef xdc_Bool (*CT__xdc_runtime_Memory_Module__startupDoneFxn)(void);
extern const CT__xdc_runtime_Memory_Module__startupDoneFxn xdc_runtime_Memory_Module__startupDoneFxn__C;
/* Object__count */
typedef xdc_Int CT__xdc_runtime_Memory_Object__count;
extern const CT__xdc_runtime_Memory_Object__count xdc_runtime_Memory_Object__count__C;
/* Object__heap */
typedef xdc_runtime_IHeap_Handle CT__xdc_runtime_Memory_Object__heap;
extern const CT__xdc_runtime_Memory_Object__heap xdc_runtime_Memory_Object__heap__C;
/* Object__sizeof */
typedef xdc_SizeT CT__xdc_runtime_Memory_Object__sizeof;
extern const CT__xdc_runtime_Memory_Object__sizeof xdc_runtime_Memory_Object__sizeof__C;
/* Object__table */
typedef xdc_Ptr CT__xdc_runtime_Memory_Object__table;
extern const CT__xdc_runtime_Memory_Object__table xdc_runtime_Memory_Object__table__C;
/* defaultHeapInstance */
typedef xdc_runtime_IHeap_Handle CT__xdc_runtime_Memory_defaultHeapInstance;
extern const CT__xdc_runtime_Memory_defaultHeapInstance xdc_runtime_Memory_defaultHeapInstance__C;
/*
* ======== FUNCTION DECLARATIONS ========
*/
/* Module_startup */
/* Module__startupDone__S */
extern xdc_Bool xdc_runtime_Memory_Module__startupDone__S( void );
/* alloc__E */
extern xdc_Ptr xdc_runtime_Memory_alloc__E( xdc_runtime_IHeap_Handle heap, xdc_SizeT size, xdc_SizeT align, xdc_runtime_Error_Block *eb );
/* calloc__E */
extern xdc_Ptr xdc_runtime_Memory_calloc__E( xdc_runtime_IHeap_Handle heap, xdc_SizeT size, xdc_SizeT align, xdc_runtime_Error_Block *eb );
/* free__E */
extern void xdc_runtime_Memory_free__E( xdc_runtime_IHeap_Handle heap, xdc_Ptr block, xdc_SizeT size );
/* getStats__E */
extern void xdc_runtime_Memory_getStats__E( xdc_runtime_IHeap_Handle heap, xdc_runtime_Memory_Stats *stats );
/* query__E */
extern xdc_Bool xdc_runtime_Memory_query__E( xdc_runtime_IHeap_Handle heap, xdc_Int qual );
/* getMaxDefaultTypeAlign__E */
extern xdc_SizeT xdc_runtime_Memory_getMaxDefaultTypeAlign__E( void );
/* valloc__E */
extern xdc_Ptr xdc_runtime_Memory_valloc__E( xdc_runtime_IHeap_Handle heap, xdc_SizeT size, xdc_SizeT align, xdc_Char value, xdc_runtime_Error_Block *eb );
/*
* ======== SYSTEM FUNCTIONS ========
*/
/* Module_startupDone */
/* Object_heap */
/* Module_heap */
/* Module_id */
static inline CT__xdc_runtime_Memory_Module__id xdc_runtime_Memory_Module_id( void )
{
return xdc_runtime_Memory_Module__id__C;
}
/* Module_hasMask */
static inline xdc_Bool xdc_runtime_Memory_Module_hasMask( void )
{
return (xdc_Bool)(xdc_runtime_Memory_Module__diagsMask__C != 0);
}
/* Module_getMask */
static inline xdc_Bits16 xdc_runtime_Memory_Module_getMask( void )
{
return xdc_runtime_Memory_Module__diagsMask__C != 0 ? *xdc_runtime_Memory_Module__diagsMask__C : (xdc_Bits16)0;
}
/* Module_setMask */
static inline void xdc_runtime_Memory_Module_setMask( xdc_Bits16 mask )
{
if (xdc_runtime_Memory_Module__diagsMask__C != 0) {
*xdc_runtime_Memory_Module__diagsMask__C = mask;
}
}
/*
* ======== EPILOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:02; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* ======== AUXILIARY DEFINITIONS ========
*/
/*
* ======== PER-INSTANCE TYPES ========
*/
/* Params */
struct xdc_runtime_IHeap_Params {
size_t __size;
const void *__self;
void *__fxns;
xdc_runtime_IInstance_Params *instance;
};
/*
* ======== VIRTUAL FUNCTIONS ========
*/
/* Fxns__ */
struct xdc_runtime_IHeap_Fxns__ {
xdc_runtime_Types_Base* __base;
const xdc_runtime_Types_SysFxns2* __sysp;
xdc_Ptr (*alloc)(void*, xdc_SizeT, xdc_SizeT, xdc_runtime_Error_Block*);
void (*free)(void*, xdc_Ptr, xdc_SizeT);
xdc_Bool (*isBlocking)(void*);
void (*getStats)(void*, xdc_runtime_Memory_Stats*);
xdc_runtime_Types_SysFxns2 __sfxns;
};
/* Interface__BASE__C */
extern const xdc_runtime_Types_Base xdc_runtime_IHeap_Interface__BASE__C;
/*
* ======== FUNCTION STUBS ========
*/
/* create */
extern xdc_runtime_IHeap_Handle xdc_runtime_IHeap_create(xdc_runtime_IHeap_Module, const xdc_runtime_IHeap_Params *, xdc_runtime_Error_Block *__eb);
/* delete */
extern void xdc_runtime_IHeap_delete(xdc_runtime_IHeap_Handle *);
/* Handle_to_Module */
static inline xdc_runtime_IHeap_Module xdc_runtime_IHeap_Handle_to_Module( xdc_runtime_IHeap_Handle inst )
{
return inst->__fxns;
}
/* Handle_label */
static inline xdc_runtime_Types_Label *xdc_runtime_IHeap_Handle_label( xdc_runtime_IHeap_Handle inst, xdc_runtime_Types_Label *lab )
{
return inst->__fxns->__sysp->__label(inst, lab);
}
/* Module_id */
static inline xdc_runtime_Types_ModuleId xdc_runtime_IHeap_Module_id( xdc_runtime_IHeap_Module mod )
{
return mod->__sysp->__mid;
}
/* alloc */
static inline xdc_Ptr xdc_runtime_IHeap_alloc( xdc_runtime_IHeap_Handle __inst, xdc_SizeT size, xdc_SizeT align, xdc_runtime_Error_Block *eb )
{
return __inst->__fxns->alloc((void*)__inst, size, align, eb);
}
/* free */
static inline void xdc_runtime_IHeap_free( xdc_runtime_IHeap_Handle __inst, xdc_Ptr block, xdc_SizeT size )
{
__inst->__fxns->free((void*)__inst, block, size);
}
/* isBlocking */
static inline xdc_Bool xdc_runtime_IHeap_isBlocking( xdc_runtime_IHeap_Handle __inst )
{
return __inst->__fxns->isBlocking((void*)__inst);
}
/* getStats */
static inline void xdc_runtime_IHeap_getStats( xdc_runtime_IHeap_Handle __inst, xdc_runtime_Memory_Stats *stats )
{
__inst->__fxns->getStats((void*)__inst, stats);
}
/*
* ======== FUNCTION SELECTORS ========
*/
/* These functions return function pointers for module and instance functions.
* The functions accept modules and instances declared as types defined in this
* interface, but they return functions defined for the actual objects passed
* as parameters. These functions are not invoked by any generated code or
* XDCtools internal code.
*/
/* alloc_{FxnT,fxnP} */
typedef xdc_Ptr (*xdc_runtime_IHeap_alloc_FxnT)(void *, xdc_SizeT, xdc_SizeT, xdc_runtime_Error_Block*);
static inline xdc_runtime_IHeap_alloc_FxnT xdc_runtime_IHeap_alloc_fxnP( xdc_runtime_IHeap_Handle __inst )
{
return (xdc_runtime_IHeap_alloc_FxnT)__inst->__fxns->alloc;
}
/* free_{FxnT,fxnP} */
typedef void (*xdc_runtime_IHeap_free_FxnT)(void *, xdc_Ptr, xdc_SizeT);
static inline xdc_runtime_IHeap_free_FxnT xdc_runtime_IHeap_free_fxnP( xdc_runtime_IHeap_Handle __inst )
{
return (xdc_runtime_IHeap_free_FxnT)__inst->__fxns->free;
}
/* isBlocking_{FxnT,fxnP} */
typedef xdc_Bool (*xdc_runtime_IHeap_isBlocking_FxnT)(void *);
static inline xdc_runtime_IHeap_isBlocking_FxnT xdc_runtime_IHeap_isBlocking_fxnP( xdc_runtime_IHeap_Handle __inst )
{
return (xdc_runtime_IHeap_isBlocking_FxnT)__inst->__fxns->isBlocking;
}
/* getStats_{FxnT,fxnP} */
typedef void (*xdc_runtime_IHeap_getStats_FxnT)(void *, xdc_runtime_Memory_Stats*);
static inline xdc_runtime_IHeap_getStats_FxnT xdc_runtime_IHeap_getStats_fxnP( xdc_runtime_IHeap_Handle __inst )
{
return (xdc_runtime_IHeap_getStats_FxnT)__inst->__fxns->getStats;
}
/*
* ======== EPILOGUE ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:01; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:00; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* ======== AUXILIARY DEFINITIONS ========
*/
/*
* ======== VIRTUAL FUNCTIONS ========
*/
/* Fxns__ */
struct xdc_runtime_IModule_Fxns__ {
xdc_runtime_Types_Base* __base;
const xdc_runtime_Types_SysFxns2* __sysp;
xdc_runtime_Types_SysFxns2 __sfxns;
};
/* Interface__BASE__C */
extern const xdc_runtime_Types_Base xdc_runtime_IModule_Interface__BASE__C;
/*
* ======== FUNCTION STUBS ========
*/
/* Module_id */
static inline xdc_runtime_Types_ModuleId xdc_runtime_IModule_Module_id( xdc_runtime_IModule_Module mod )
{
return mod->__sysp->__mid;
}
/*
* ======== FUNCTION SELECTORS ========
*/
/*
* ======== EPILOGUE ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:01; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* PER-INSTANCE TYPES
* VIRTUAL FUNCTIONS
* FUNCTION STUBS
* FUNCTION SELECTORS
*
* EPILOGUE
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== INCLUDES ========
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:03; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* PER-INSTANCE TYPES
* VIRTUAL FUNCTIONS
* FUNCTION STUBS
* FUNCTION SELECTORS
*
* EPILOGUE
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:01; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* VIRTUAL FUNCTIONS
* FUNCTION STUBS
* FUNCTION SELECTORS
*
* EPILOGUE
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:01; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* ======== AUXILIARY DEFINITIONS ========
*/
/* Q_BLOCKING */
/* Q_PREEMPTING */
/*
* ======== PER-INSTANCE TYPES ========
*/
/* Params */
struct xdc_runtime_IGateProvider_Params {
size_t __size;
const void *__self;
void *__fxns;
xdc_runtime_IInstance_Params *instance;
};
/*
* ======== VIRTUAL FUNCTIONS ========
*/
/* Fxns__ */
struct xdc_runtime_IGateProvider_Fxns__ {
xdc_runtime_Types_Base* __base;
const xdc_runtime_Types_SysFxns2* __sysp;
xdc_Bool (*query)(xdc_Int);
xdc_IArg (*enter)(void*);
void (*leave)(void*, xdc_IArg);
xdc_runtime_Types_SysFxns2 __sfxns;
};
/* Interface__BASE__C */
extern const xdc_runtime_Types_Base xdc_runtime_IGateProvider_Interface__BASE__C;
/*
* ======== FUNCTION STUBS ========
*/
/* create */
extern xdc_runtime_IGateProvider_Handle xdc_runtime_IGateProvider_create(xdc_runtime_IGateProvider_Module, const xdc_runtime_IGateProvider_Params *, xdc_runtime_Error_Block *__eb);
/* delete */
extern void xdc_runtime_IGateProvider_delete(xdc_runtime_IGateProvider_Handle *);
/* Handle_to_Module */
static inline xdc_runtime_IGateProvider_Module xdc_runtime_IGateProvider_Handle_to_Module( xdc_runtime_IGateProvider_Handle inst )
{
return inst->__fxns;
}
/* Handle_label */
static inline xdc_runtime_Types_Label *xdc_runtime_IGateProvider_Handle_label( xdc_runtime_IGateProvider_Handle inst, xdc_runtime_Types_Label *lab )
{
return inst->__fxns->__sysp->__label(inst, lab);
}
/* Module_id */
static inline xdc_runtime_Types_ModuleId xdc_runtime_IGateProvider_Module_id( xdc_runtime_IGateProvider_Module mod )
{
return mod->__sysp->__mid;
}
/* query */
static inline xdc_Bool xdc_runtime_IGateProvider_query( xdc_runtime_IGateProvider_Module __inst, xdc_Int qual )
{
return __inst->query(qual);
}
/* enter */
static inline xdc_IArg xdc_runtime_IGateProvider_enter( xdc_runtime_IGateProvider_Handle __inst )
{
return __inst->__fxns->enter((void*)__inst);
}
/* leave */
static inline void xdc_runtime_IGateProvider_leave( xdc_runtime_IGateProvider_Handle __inst, xdc_IArg key )
{
__inst->__fxns->leave((void*)__inst, key);
}
/*
* ======== FUNCTION SELECTORS ========
*/
/* These functions return function pointers for module and instance functions.
* The functions accept modules and instances declared as types defined in this
* interface, but they return functions defined for the actual objects passed
* as parameters. These functions are not invoked by any generated code or
* XDCtools internal code.
*/
/* query_{FxnT,fxnP} */
typedef xdc_Bool (*xdc_runtime_IGateProvider_query_FxnT)(xdc_Int);
static inline xdc_runtime_IGateProvider_query_FxnT xdc_runtime_IGateProvider_query_fxnP( xdc_runtime_IGateProvider_Module __inst )
{
return (xdc_runtime_IGateProvider_query_FxnT)__inst->query;
}
/* enter_{FxnT,fxnP} */
typedef xdc_IArg (*xdc_runtime_IGateProvider_enter_FxnT)(void *);
static inline xdc_runtime_IGateProvider_enter_FxnT xdc_runtime_IGateProvider_enter_fxnP( xdc_runtime_IGateProvider_Handle __inst )
{
return (xdc_runtime_IGateProvider_enter_FxnT)__inst->__fxns->enter;
}
/* leave_{FxnT,fxnP} */
typedef void (*xdc_runtime_IGateProvider_leave_FxnT)(void *, xdc_IArg);
static inline xdc_runtime_IGateProvider_leave_FxnT xdc_runtime_IGateProvider_leave_fxnP( xdc_runtime_IGateProvider_Handle __inst )
{
return (xdc_runtime_IGateProvider_leave_FxnT)__inst->__fxns->leave;
}
/*
* ======== EPILOGUE ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:01; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* MODULE-WIDE CONFIGS
* PER-INSTANCE TYPES
* VIRTUAL FUNCTIONS
* FUNCTION DECLARATIONS
* CONVERTORS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== INCLUDES ========
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:03; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* PER-INSTANCE TYPES
* VIRTUAL FUNCTIONS
* FUNCTION STUBS
* FUNCTION SELECTORS
*
* EPILOGUE
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:01; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* PER-INSTANCE TYPES
* VIRTUAL FUNCTIONS
* FUNCTION STUBS
* FUNCTION SELECTORS
*
* EPILOGUE
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:01; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* ======== AUXILIARY DEFINITIONS ========
*/
/* Q_BLOCKING */
/* Q_PREEMPTING */
/*
* ======== MODULE-WIDE CONFIGS ========
*/
/* Module__diagsEnabled */
typedef xdc_Bits32 CT__xdc_runtime_Main_Module_GateProxy_Module__diagsEnabled;
extern const CT__xdc_runtime_Main_Module_GateProxy_Module__diagsEnabled xdc_runtime_Main_Module_GateProxy_Module__diagsEnabled__C;
/* Module__diagsIncluded */
typedef xdc_Bits32 CT__xdc_runtime_Main_Module_GateProxy_Module__diagsIncluded;
extern const CT__xdc_runtime_Main_Module_GateProxy_Module__diagsIncluded xdc_runtime_Main_Module_GateProxy_Module__diagsIncluded__C;
/* Module__diagsMask */
typedef xdc_Bits16 *CT__xdc_runtime_Main_Module_GateProxy_Module__diagsMask;
extern const CT__xdc_runtime_Main_Module_GateProxy_Module__diagsMask xdc_runtime_Main_Module_GateProxy_Module__diagsMask__C;
/* Module__gateObj */
typedef xdc_Ptr CT__xdc_runtime_Main_Module_GateProxy_Module__gateObj;
extern const CT__xdc_runtime_Main_Module_GateProxy_Module__gateObj xdc_runtime_Main_Module_GateProxy_Module__gateObj__C;
/* Module__gatePrms */
typedef xdc_Ptr CT__xdc_runtime_Main_Module_GateProxy_Module__gatePrms;
extern const CT__xdc_runtime_Main_Module_GateProxy_Module__gatePrms xdc_runtime_Main_Module_GateProxy_Module__gatePrms__C;
/* Module__id */
typedef xdc_runtime_Types_ModuleId CT__xdc_runtime_Main_Module_GateProxy_Module__id;
extern const CT__xdc_runtime_Main_Module_GateProxy_Module__id xdc_runtime_Main_Module_GateProxy_Module__id__C;
/* Module__loggerDefined */
typedef xdc_Bool CT__xdc_runtime_Main_Module_GateProxy_Module__loggerDefined;
extern const CT__xdc_runtime_Main_Module_GateProxy_Module__loggerDefined xdc_runtime_Main_Module_GateProxy_Module__loggerDefined__C;
/* Module__loggerObj */
typedef xdc_Ptr CT__xdc_runtime_Main_Module_GateProxy_Module__loggerObj;
extern const CT__xdc_runtime_Main_Module_GateProxy_Module__loggerObj xdc_runtime_Main_Module_GateProxy_Module__loggerObj__C;
/* Module__loggerFxn0 */
typedef xdc_runtime_Types_LoggerFxn0 CT__xdc_runtime_Main_Module_GateProxy_Module__loggerFxn0;
extern const CT__xdc_runtime_Main_Module_GateProxy_Module__loggerFxn0 xdc_runtime_Main_Module_GateProxy_Module__loggerFxn0__C;
/* Module__loggerFxn1 */
typedef xdc_runtime_Types_LoggerFxn1 CT__xdc_runtime_Main_Module_GateProxy_Module__loggerFxn1;
extern const CT__xdc_runtime_Main_Module_GateProxy_Module__loggerFxn1 xdc_runtime_Main_Module_GateProxy_Module__loggerFxn1__C;
/* Module__loggerFxn2 */
typedef xdc_runtime_Types_LoggerFxn2 CT__xdc_runtime_Main_Module_GateProxy_Module__loggerFxn2;
extern const CT__xdc_runtime_Main_Module_GateProxy_Module__loggerFxn2 xdc_runtime_Main_Module_GateProxy_Module__loggerFxn2__C;
/* Module__loggerFxn4 */
typedef xdc_runtime_Types_LoggerFxn4 CT__xdc_runtime_Main_Module_GateProxy_Module__loggerFxn4;
extern const CT__xdc_runtime_Main_Module_GateProxy_Module__loggerFxn4 xdc_runtime_Main_Module_GateProxy_Module__loggerFxn4__C;
/* Module__loggerFxn8 */
typedef xdc_runtime_Types_LoggerFxn8 CT__xdc_runtime_Main_Module_GateProxy_Module__loggerFxn8;
extern const CT__xdc_runtime_Main_Module_GateProxy_Module__loggerFxn8 xdc_runtime_Main_Module_GateProxy_Module__loggerFxn8__C;
/* Module__startupDoneFxn */
typedef xdc_Bool (*CT__xdc_runtime_Main_Module_GateProxy_Module__startupDoneFxn)(void);
extern const CT__xdc_runtime_Main_Module_GateProxy_Module__startupDoneFxn xdc_runtime_Main_Module_GateProxy_Module__startupDoneFxn__C;
/* Object__count */
typedef xdc_Int CT__xdc_runtime_Main_Module_GateProxy_Object__count;
extern const CT__xdc_runtime_Main_Module_GateProxy_Object__count xdc_runtime_Main_Module_GateProxy_Object__count__C;
/* Object__heap */
typedef xdc_runtime_IHeap_Handle CT__xdc_runtime_Main_Module_GateProxy_Object__heap;
extern const CT__xdc_runtime_Main_Module_GateProxy_Object__heap xdc_runtime_Main_Module_GateProxy_Object__heap__C;
/* Object__sizeof */
typedef xdc_SizeT CT__xdc_runtime_Main_Module_GateProxy_Object__sizeof;
extern const CT__xdc_runtime_Main_Module_GateProxy_Object__sizeof xdc_runtime_Main_Module_GateProxy_Object__sizeof__C;
/* Object__table */
typedef xdc_Ptr CT__xdc_runtime_Main_Module_GateProxy_Object__table;
extern const CT__xdc_runtime_Main_Module_GateProxy_Object__table xdc_runtime_Main_Module_GateProxy_Object__table__C;
/*
* ======== PER-INSTANCE TYPES ========
*/
/* Params */
struct xdc_runtime_Main_Module_GateProxy_Params {
size_t __size;
const void *__self;
void *__fxns;
xdc_runtime_IInstance_Params *instance;
xdc_runtime_IInstance_Params __iprms;
};
/* Struct */
struct xdc_runtime_Main_Module_GateProxy_Struct {
const xdc_runtime_Main_Module_GateProxy_Fxns__ *__fxns;
xdc_runtime_Types_CordAddr __name;
};
/*
* ======== VIRTUAL FUNCTIONS ========
*/
/* Fxns__ */
struct xdc_runtime_Main_Module_GateProxy_Fxns__ {
xdc_runtime_Types_Base* __base;
const xdc_runtime_Types_SysFxns2* __sysp;
xdc_Bool (*query)(xdc_Int);
xdc_IArg (*enter)(xdc_runtime_Main_Module_GateProxy_Handle);
void (*leave)(xdc_runtime_Main_Module_GateProxy_Handle, xdc_IArg);
xdc_runtime_Types_SysFxns2 __sfxns;
};
/* Module__FXNS__C */
extern const xdc_runtime_Main_Module_GateProxy_Fxns__ xdc_runtime_Main_Module_GateProxy_Module__FXNS__C;
/*
* ======== FUNCTION DECLARATIONS ========
*/
/* Module_startup */
/* Handle__label__S */
extern xdc_runtime_Types_Label *xdc_runtime_Main_Module_GateProxy_Handle__label__S( xdc_Ptr obj, xdc_runtime_Types_Label *lab );
/* Module__startupDone__S */
extern xdc_Bool xdc_runtime_Main_Module_GateProxy_Module__startupDone__S( void );
/* Object__create__S */
extern xdc_Ptr xdc_runtime_Main_Module_GateProxy_Object__create__S( xdc_Ptr __oa, xdc_SizeT __osz, xdc_Ptr __aa, const xdc_UChar *__pa, xdc_SizeT __psz, xdc_runtime_Error_Block *__eb );
/* create */
extern xdc_runtime_Main_Module_GateProxy_Handle xdc_runtime_Main_Module_GateProxy_create( const xdc_runtime_Main_Module_GateProxy_Params *__prms, xdc_runtime_Error_Block *__eb );
/* Object__delete__S */
extern void xdc_runtime_Main_Module_GateProxy_Object__delete__S( xdc_Ptr instp );
/* delete */
extern void xdc_runtime_Main_Module_GateProxy_delete(xdc_runtime_Main_Module_GateProxy_Handle *instp);
/* Object__destruct__S */
extern void xdc_runtime_Main_Module_GateProxy_Object__destruct__S( xdc_Ptr objp );
/* Object__get__S */
extern xdc_Ptr xdc_runtime_Main_Module_GateProxy_Object__get__S( xdc_Ptr oarr, xdc_Int i );
/* Object__first__S */
extern xdc_Ptr xdc_runtime_Main_Module_GateProxy_Object__first__S( void );
/* Object__next__S */
extern xdc_Ptr xdc_runtime_Main_Module_GateProxy_Object__next__S( xdc_Ptr obj );
/* Params__init__S */
extern void xdc_runtime_Main_Module_GateProxy_Params__init__S( xdc_Ptr dst, const void *src, xdc_SizeT psz, xdc_SizeT isz );
/* Proxy__abstract__S */
extern xdc_Bool xdc_runtime_Main_Module_GateProxy_Proxy__abstract__S( void );
/* Proxy__delegate__S */
extern xdc_Ptr xdc_runtime_Main_Module_GateProxy_Proxy__delegate__S( void );
/* query__E */
extern xdc_Bool xdc_runtime_Main_Module_GateProxy_query__E( xdc_Int qual );
/* enter__E */
extern xdc_IArg xdc_runtime_Main_Module_GateProxy_enter__E( xdc_runtime_Main_Module_GateProxy_Handle __inst );
/* leave__E */
extern void xdc_runtime_Main_Module_GateProxy_leave__E( xdc_runtime_Main_Module_GateProxy_Handle __inst, xdc_IArg key );
/*
* ======== CONVERTORS ========
*/
/* Module_upCast */
static inline xdc_runtime_IGateProvider_Module xdc_runtime_Main_Module_GateProxy_Module_upCast( void )
{
return (xdc_runtime_IGateProvider_Module)xdc_runtime_Main_Module_GateProxy_Proxy__delegate__S();
}
/* Module_to_xdc_runtime_IGateProvider */
/* Handle_upCast */
static inline xdc_runtime_IGateProvider_Handle xdc_runtime_Main_Module_GateProxy_Handle_upCast( xdc_runtime_Main_Module_GateProxy_Handle i )
{
return (xdc_runtime_IGateProvider_Handle)i;
}
/* Handle_to_xdc_runtime_IGateProvider */
/* Handle_downCast */
static inline xdc_runtime_Main_Module_GateProxy_Handle xdc_runtime_Main_Module_GateProxy_Handle_downCast( xdc_runtime_IGateProvider_Handle i )
{
xdc_runtime_IGateProvider_Handle i2 = (xdc_runtime_IGateProvider_Handle)i;
if (xdc_runtime_Main_Module_GateProxy_Proxy__abstract__S()) {
return (xdc_runtime_Main_Module_GateProxy_Handle)i;
}
return (const void*)i2->__fxns == (const void*)xdc_runtime_Main_Module_GateProxy_Proxy__delegate__S() ? (xdc_runtime_Main_Module_GateProxy_Handle)i : (xdc_runtime_Main_Module_GateProxy_Handle)0;
}
/* Handle_from_xdc_runtime_IGateProvider */
/*
* ======== SYSTEM FUNCTIONS ========
*/
/* Module_startupDone */
/* Object_heap */
/* Module_heap */
/* Module_id */
static inline CT__xdc_runtime_Main_Module_GateProxy_Module__id xdc_runtime_Main_Module_GateProxy_Module_id( void )
{
return xdc_runtime_Main_Module_GateProxy_Module__id__C;
}
/* Proxy_abstract */
/* Proxy_delegate */
/* Params_init */
static inline void xdc_runtime_Main_Module_GateProxy_Params_init( xdc_runtime_Main_Module_GateProxy_Params *prms )
{
if (prms) {
xdc_runtime_Main_Module_GateProxy_Params__init__S(prms, 0, sizeof(xdc_runtime_Main_Module_GateProxy_Params), sizeof(xdc_runtime_IInstance_Params));
}
}
/* Params_copy */
static inline void xdc_runtime_Main_Module_GateProxy_Params_copy(xdc_runtime_Main_Module_GateProxy_Params *dst, const xdc_runtime_Main_Module_GateProxy_Params *src)
{
if (dst) {
xdc_runtime_Main_Module_GateProxy_Params__init__S(dst, (const void *)src, sizeof(xdc_runtime_Main_Module_GateProxy_Params), sizeof(xdc_runtime_IInstance_Params));
}
}
/*
* ======== EPILOGUE ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* ======== AUXILIARY DEFINITIONS ========
*/
/*
* ======== INTERNAL DEFINITIONS ========
*/
/*
* ======== MODULE-WIDE CONFIGS ========
*/
/* Module__diagsEnabled */
typedef xdc_Bits32 CT__xdc_runtime_Main_Module__diagsEnabled;
extern const CT__xdc_runtime_Main_Module__diagsEnabled xdc_runtime_Main_Module__diagsEnabled__C;
/* Module__diagsIncluded */
typedef xdc_Bits32 CT__xdc_runtime_Main_Module__diagsIncluded;
extern const CT__xdc_runtime_Main_Module__diagsIncluded xdc_runtime_Main_Module__diagsIncluded__C;
/* Module__diagsMask */
typedef xdc_Bits16 *CT__xdc_runtime_Main_Module__diagsMask;
extern const CT__xdc_runtime_Main_Module__diagsMask xdc_runtime_Main_Module__diagsMask__C;
/* Module__gateObj */
typedef xdc_Ptr CT__xdc_runtime_Main_Module__gateObj;
extern const CT__xdc_runtime_Main_Module__gateObj xdc_runtime_Main_Module__gateObj__C;
/* Module__gatePrms */
typedef xdc_Ptr CT__xdc_runtime_Main_Module__gatePrms;
extern const CT__xdc_runtime_Main_Module__gatePrms xdc_runtime_Main_Module__gatePrms__C;
/* Module__id */
typedef xdc_runtime_Types_ModuleId CT__xdc_runtime_Main_Module__id;
extern const CT__xdc_runtime_Main_Module__id xdc_runtime_Main_Module__id__C;
/* Module__loggerDefined */
typedef xdc_Bool CT__xdc_runtime_Main_Module__loggerDefined;
extern const CT__xdc_runtime_Main_Module__loggerDefined xdc_runtime_Main_Module__loggerDefined__C;
/* Module__loggerObj */
typedef xdc_Ptr CT__xdc_runtime_Main_Module__loggerObj;
extern const CT__xdc_runtime_Main_Module__loggerObj xdc_runtime_Main_Module__loggerObj__C;
/* Module__loggerFxn0 */
typedef xdc_runtime_Types_LoggerFxn0 CT__xdc_runtime_Main_Module__loggerFxn0;
extern const CT__xdc_runtime_Main_Module__loggerFxn0 xdc_runtime_Main_Module__loggerFxn0__C;
/* Module__loggerFxn1 */
typedef xdc_runtime_Types_LoggerFxn1 CT__xdc_runtime_Main_Module__loggerFxn1;
extern const CT__xdc_runtime_Main_Module__loggerFxn1 xdc_runtime_Main_Module__loggerFxn1__C;
/* Module__loggerFxn2 */
typedef xdc_runtime_Types_LoggerFxn2 CT__xdc_runtime_Main_Module__loggerFxn2;
extern const CT__xdc_runtime_Main_Module__loggerFxn2 xdc_runtime_Main_Module__loggerFxn2__C;
/* Module__loggerFxn4 */
typedef xdc_runtime_Types_LoggerFxn4 CT__xdc_runtime_Main_Module__loggerFxn4;
extern const CT__xdc_runtime_Main_Module__loggerFxn4 xdc_runtime_Main_Module__loggerFxn4__C;
/* Module__loggerFxn8 */
typedef xdc_runtime_Types_LoggerFxn8 CT__xdc_runtime_Main_Module__loggerFxn8;
extern const CT__xdc_runtime_Main_Module__loggerFxn8 xdc_runtime_Main_Module__loggerFxn8__C;
/* Module__startupDoneFxn */
typedef xdc_Bool (*CT__xdc_runtime_Main_Module__startupDoneFxn)(void);
extern const CT__xdc_runtime_Main_Module__startupDoneFxn xdc_runtime_Main_Module__startupDoneFxn__C;
/* Object__count */
typedef xdc_Int CT__xdc_runtime_Main_Object__count;
extern const CT__xdc_runtime_Main_Object__count xdc_runtime_Main_Object__count__C;
/* Object__heap */
typedef xdc_runtime_IHeap_Handle CT__xdc_runtime_Main_Object__heap;
extern const CT__xdc_runtime_Main_Object__heap xdc_runtime_Main_Object__heap__C;
/* Object__sizeof */
typedef xdc_SizeT CT__xdc_runtime_Main_Object__sizeof;
extern const CT__xdc_runtime_Main_Object__sizeof xdc_runtime_Main_Object__sizeof__C;
/* Object__table */
typedef xdc_Ptr CT__xdc_runtime_Main_Object__table;
extern const CT__xdc_runtime_Main_Object__table xdc_runtime_Main_Object__table__C;
/*
* ======== FUNCTION DECLARATIONS ========
*/
/* Module_startup */
/* Module__startupDone__S */
extern xdc_Bool xdc_runtime_Main_Module__startupDone__S( void );
/*
* ======== SYSTEM FUNCTIONS ========
*/
/* Module_startupDone */
/* Object_heap */
/* Module_heap */
/* Module_id */
static inline CT__xdc_runtime_Main_Module__id xdc_runtime_Main_Module_id( void )
{
return xdc_runtime_Main_Module__id__C;
}
/* Module_hasMask */
static inline xdc_Bool xdc_runtime_Main_Module_hasMask( void )
{
return (xdc_Bool)(xdc_runtime_Main_Module__diagsMask__C != 0);
}
/* Module_getMask */
static inline xdc_Bits16 xdc_runtime_Main_Module_getMask( void )
{
return xdc_runtime_Main_Module__diagsMask__C != 0 ? *xdc_runtime_Main_Module__diagsMask__C : (xdc_Bits16)0;
}
/* Module_setMask */
static inline void xdc_runtime_Main_Module_setMask( xdc_Bits16 mask )
{
if (xdc_runtime_Main_Module__diagsMask__C != 0) {
*xdc_runtime_Main_Module__diagsMask__C = mask;
}
}
/*
* ======== EPILOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:02; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* ======== xdc_runtime_Error_Id ========
*/
typedef xdc_Bits32 xdc_runtime_Error_Id;
/*
* ======== Module__MID ========
* This definition allows non-module code to
* use the Error module. This symbol is normally defined in each
* module internal header (i.e., package/internal/.xdc.h).
*
* Only do this if this file is not one that will be included in the Registry.
* This check ensures that Registry.h (which similarly defines these Module__*
* symbols) can be included in any order relative to other xdc.runtime
* headers.
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:00; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* VIRTUAL FUNCTIONS
* FUNCTION STUBS
* FUNCTION SELECTORS
*
* EPILOGUE
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:01; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:03; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* ======== AUXILIARY DEFINITIONS ========
*/
/* Policy */
enum xdc_runtime_Error_Policy {
xdc_runtime_Error_TERMINATE,
xdc_runtime_Error_UNWIND
};
typedef enum xdc_runtime_Error_Policy xdc_runtime_Error_Policy;
/* Id */
/* HookFxn */
typedef void (*xdc_runtime_Error_HookFxn)(xdc_runtime_Error_Block*);
/* NUMARGS */
/* Data */
typedef xdc_IArg __T1_xdc_runtime_Error_Data__arg;
typedef xdc_IArg __ARRAY1_xdc_runtime_Error_Data__arg[2];
typedef __ARRAY1_xdc_runtime_Error_Data__arg __TA_xdc_runtime_Error_Data__arg;
struct xdc_runtime_Error_Data {
__TA_xdc_runtime_Error_Data__arg arg;
};
/* Block */
typedef xdc_IArg __T1_xdc_runtime_Error_Block__xtra;
typedef xdc_IArg __ARRAY1_xdc_runtime_Error_Block__xtra[4];
typedef __ARRAY1_xdc_runtime_Error_Block__xtra __TA_xdc_runtime_Error_Block__xtra;
struct xdc_runtime_Error_Block {
xdc_UInt16 unused;
xdc_runtime_Error_Data data;
xdc_runtime_Error_Id id;
xdc_String msg;
xdc_runtime_Types_Site site;
__TA_xdc_runtime_Error_Block__xtra xtra;
};
/* PolicyFxn */
typedef void (*xdc_runtime_Error_PolicyFxn)(xdc_runtime_Error_Block*, xdc_runtime_Types_ModuleId, xdc_CString, xdc_Int, xdc_runtime_Error_Id, xdc_IArg, xdc_IArg);
/*
* ======== INTERNAL DEFINITIONS ========
*/
/*
* ======== MODULE-WIDE CONFIGS ========
*/
/* Module__diagsEnabled */
typedef xdc_Bits32 CT__xdc_runtime_Error_Module__diagsEnabled;
extern const CT__xdc_runtime_Error_Module__diagsEnabled xdc_runtime_Error_Module__diagsEnabled__C;
/* Module__diagsIncluded */
typedef xdc_Bits32 CT__xdc_runtime_Error_Module__diagsIncluded;
extern const CT__xdc_runtime_Error_Module__diagsIncluded xdc_runtime_Error_Module__diagsIncluded__C;
/* Module__diagsMask */
typedef xdc_Bits16 *CT__xdc_runtime_Error_Module__diagsMask;
extern const CT__xdc_runtime_Error_Module__diagsMask xdc_runtime_Error_Module__diagsMask__C;
/* Module__gateObj */
typedef xdc_Ptr CT__xdc_runtime_Error_Module__gateObj;
extern const CT__xdc_runtime_Error_Module__gateObj xdc_runtime_Error_Module__gateObj__C;
/* Module__gatePrms */
typedef xdc_Ptr CT__xdc_runtime_Error_Module__gatePrms;
extern const CT__xdc_runtime_Error_Module__gatePrms xdc_runtime_Error_Module__gatePrms__C;
/* Module__id */
typedef xdc_runtime_Types_ModuleId CT__xdc_runtime_Error_Module__id;
extern const CT__xdc_runtime_Error_Module__id xdc_runtime_Error_Module__id__C;
/* Module__loggerDefined */
typedef xdc_Bool CT__xdc_runtime_Error_Module__loggerDefined;
extern const CT__xdc_runtime_Error_Module__loggerDefined xdc_runtime_Error_Module__loggerDefined__C;
/* Module__loggerObj */
typedef xdc_Ptr CT__xdc_runtime_Error_Module__loggerObj;
extern const CT__xdc_runtime_Error_Module__loggerObj xdc_runtime_Error_Module__loggerObj__C;
/* Module__loggerFxn0 */
typedef xdc_runtime_Types_LoggerFxn0 CT__xdc_runtime_Error_Module__loggerFxn0;
extern const CT__xdc_runtime_Error_Module__loggerFxn0 xdc_runtime_Error_Module__loggerFxn0__C;
/* Module__loggerFxn1 */
typedef xdc_runtime_Types_LoggerFxn1 CT__xdc_runtime_Error_Module__loggerFxn1;
extern const CT__xdc_runtime_Error_Module__loggerFxn1 xdc_runtime_Error_Module__loggerFxn1__C;
/* Module__loggerFxn2 */
typedef xdc_runtime_Types_LoggerFxn2 CT__xdc_runtime_Error_Module__loggerFxn2;
extern const CT__xdc_runtime_Error_Module__loggerFxn2 xdc_runtime_Error_Module__loggerFxn2__C;
/* Module__loggerFxn4 */
typedef xdc_runtime_Types_LoggerFxn4 CT__xdc_runtime_Error_Module__loggerFxn4;
extern const CT__xdc_runtime_Error_Module__loggerFxn4 xdc_runtime_Error_Module__loggerFxn4__C;
/* Module__loggerFxn8 */
typedef xdc_runtime_Types_LoggerFxn8 CT__xdc_runtime_Error_Module__loggerFxn8;
extern const CT__xdc_runtime_Error_Module__loggerFxn8 xdc_runtime_Error_Module__loggerFxn8__C;
/* Module__startupDoneFxn */
typedef xdc_Bool (*CT__xdc_runtime_Error_Module__startupDoneFxn)(void);
extern const CT__xdc_runtime_Error_Module__startupDoneFxn xdc_runtime_Error_Module__startupDoneFxn__C;
/* Object__count */
typedef xdc_Int CT__xdc_runtime_Error_Object__count;
extern const CT__xdc_runtime_Error_Object__count xdc_runtime_Error_Object__count__C;
/* Object__heap */
typedef xdc_runtime_IHeap_Handle CT__xdc_runtime_Error_Object__heap;
extern const CT__xdc_runtime_Error_Object__heap xdc_runtime_Error_Object__heap__C;
/* Object__sizeof */
typedef xdc_SizeT CT__xdc_runtime_Error_Object__sizeof;
extern const CT__xdc_runtime_Error_Object__sizeof xdc_runtime_Error_Object__sizeof__C;
/* Object__table */
typedef xdc_Ptr CT__xdc_runtime_Error_Object__table;
extern const CT__xdc_runtime_Error_Object__table xdc_runtime_Error_Object__table__C;
/* policyFxn */
typedef xdc_runtime_Error_PolicyFxn CT__xdc_runtime_Error_policyFxn;
extern const CT__xdc_runtime_Error_policyFxn xdc_runtime_Error_policyFxn__C;
/* E_generic */
typedef xdc_runtime_Error_Id CT__xdc_runtime_Error_E_generic;
extern const CT__xdc_runtime_Error_E_generic xdc_runtime_Error_E_generic__C;
/* E_memory */
typedef xdc_runtime_Error_Id CT__xdc_runtime_Error_E_memory;
extern const CT__xdc_runtime_Error_E_memory xdc_runtime_Error_E_memory__C;
/* E_msgCode */
typedef xdc_runtime_Error_Id CT__xdc_runtime_Error_E_msgCode;
extern const CT__xdc_runtime_Error_E_msgCode xdc_runtime_Error_E_msgCode__C;
/* policy */
typedef xdc_runtime_Error_Policy CT__xdc_runtime_Error_policy;
extern const CT__xdc_runtime_Error_policy xdc_runtime_Error_policy__C;
/* raiseHook */
typedef xdc_runtime_Error_HookFxn CT__xdc_runtime_Error_raiseHook;
extern const CT__xdc_runtime_Error_raiseHook xdc_runtime_Error_raiseHook__C;
/* maxDepth */
typedef xdc_UInt16 CT__xdc_runtime_Error_maxDepth;
extern const CT__xdc_runtime_Error_maxDepth xdc_runtime_Error_maxDepth__C;
/*
* ======== FUNCTION DECLARATIONS ========
*/
/* Module_startup */
/* Module__startupDone__S */
extern xdc_Bool xdc_runtime_Error_Module__startupDone__S( void );
/* check__E */
extern xdc_Bool xdc_runtime_Error_check__E( xdc_runtime_Error_Block *eb );
/* getData__E */
extern xdc_runtime_Error_Data *xdc_runtime_Error_getData__E( xdc_runtime_Error_Block *eb );
/* getCode__E */
extern xdc_UInt16 xdc_runtime_Error_getCode__E( xdc_runtime_Error_Block *eb );
/* getId__E */
extern xdc_runtime_Error_Id xdc_runtime_Error_getId__E( xdc_runtime_Error_Block *eb );
/* getMsg__E */
extern xdc_String xdc_runtime_Error_getMsg__E( xdc_runtime_Error_Block *eb );
/* getSite__E */
extern xdc_runtime_Types_Site *xdc_runtime_Error_getSite__E( xdc_runtime_Error_Block *eb );
/* init__E */
extern void xdc_runtime_Error_init__E( xdc_runtime_Error_Block *eb );
/* print__E */
extern void xdc_runtime_Error_print__E( xdc_runtime_Error_Block *eb );
/* policyDefault__E */
extern void xdc_runtime_Error_policyDefault__E( xdc_runtime_Error_Block *eb, xdc_runtime_Types_ModuleId mod, xdc_CString file, xdc_Int line, xdc_runtime_Error_Id id, xdc_IArg arg1, xdc_IArg arg2 );
/* policySpin__E */
extern void xdc_runtime_Error_policySpin__E( xdc_runtime_Error_Block *eb, xdc_runtime_Types_ModuleId mod, xdc_CString file, xdc_Int line, xdc_runtime_Error_Id id, xdc_IArg arg1, xdc_IArg arg2 );
/* raiseX__E */
extern void xdc_runtime_Error_raiseX__E( xdc_runtime_Error_Block *eb, xdc_runtime_Types_ModuleId mod, xdc_CString file, xdc_Int line, xdc_runtime_Error_Id id, xdc_IArg arg1, xdc_IArg arg2 );
/* setX__E */
extern void xdc_runtime_Error_setX__E( xdc_runtime_Error_Block *eb, xdc_runtime_Types_ModuleId mod, xdc_CString file, xdc_Int line, xdc_runtime_Error_Id id, xdc_IArg arg1, xdc_IArg arg2 );
/*
* ======== SYSTEM FUNCTIONS ========
*/
/* Module_startupDone */
/* Object_heap */
/* Module_heap */
/* Module_id */
static inline CT__xdc_runtime_Error_Module__id xdc_runtime_Error_Module_id( void )
{
return xdc_runtime_Error_Module__id__C;
}
/* Module_hasMask */
static inline xdc_Bool xdc_runtime_Error_Module_hasMask( void )
{
return (xdc_Bool)(xdc_runtime_Error_Module__diagsMask__C != 0);
}
/* Module_getMask */
static inline xdc_Bits16 xdc_runtime_Error_Module_getMask( void )
{
return xdc_runtime_Error_Module__diagsMask__C != 0 ? *xdc_runtime_Error_Module__diagsMask__C : (xdc_Bits16)0;
}
/* Module_setMask */
static inline void xdc_runtime_Error_Module_setMask( xdc_Bits16 mask )
{
if (xdc_runtime_Error_Module__diagsMask__C != 0) {
*xdc_runtime_Error_Module__diagsMask__C = mask;
}
}
/*
* ======== EPILOGUE ========
*/
/*
* Copyright (c) 2008 Texas Instruments. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 and Eclipse Distribution License
* v. 1.0 which accompanies this distribution. The Eclipse Public License is
* available at http://www.eclipse.org/legal/epl-v10.html and the Eclipse
* Distribution License is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* Contributors:
* Texas Instruments - initial implementation
* */
/*
* ======== xdc_runtime_Error_raise ========
* Call underlying error handler with current module ID, file name, and
* line number.
*
* Note use of xdc_FILE__ in lieu of __FILE__; this is done
* to prevent accumulation of file name strings in the application. See
* xdc.h for details.
*/
/*
* ======== xdc_runtime_Error_idToCode ========
*/
/*
* ======== xdc_runtime_Error_idToUid ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:00; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:00; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== INCLUDES ========
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:03; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Copyright (c) 2008 Texas Instruments. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 and Eclipse Distribution License
* v. 1.0 which accompanies this distribution. The Eclipse Public License is
* available at http://www.eclipse.org/legal/epl-v10.html and the Eclipse
* Distribution License is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* Contributors:
* Texas Instruments - initial implementation
* */
/*
* ======== Assert__prologue.h ========
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:02; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== INCLUDES ========
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:03; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Copyright (c) 2008 Texas Instruments. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 and Eclipse Distribution License
* v. 1.0 which accompanies this distribution. The Eclipse Public License is
* available at http://www.eclipse.org/legal/epl-v10.html and the Eclipse
* Distribution License is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* Contributors:
* Texas Instruments - initial implementation
* */
/*
* ======== Diags__prologue.h ========
*
* This header defines Module__* symbols for every Module__* value used
* by the Diags module's headers. This allows non-module code to
* use the Diags module. These symbols are normally defined in
* module internal headers (i.e., package/internal/.xdc.h) and they
* define a "current module context".
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:02; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Only define these symbols for xdc.runtime.Main if this file is not one that
* will be included in the Registry. This check ensures that Registry.h (which
* similarly defines these Module__* symbols) can be included in any order
* relative to other xdc.runtime headers.
*/
/*
* ======== Module__DGSINCL ========
* The set of diags categories that are runtime controllable _or_ always on
*
* This costant is computed at config time and enables us to eliminate
* expensive runtime time checks and unnecessary data (the module's diags
* mask) when whole program optimization is used.
*/
/*
* ======== Module__DGSENAB ========
* The set of diags categories that are _always_ enabled
*
* This costant is computed at config time and enables us to eliminate
* expensive runtime time checks and unnecessary data (the module's diags
* mask) when whole program optimization is used.
*/
/*
* ======== Module__DGSMASK ========
* Pointer to the set of diags categories that are runtime controllable
*/
/*
* ======== Module__MID ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:00; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* VIRTUAL FUNCTIONS
* FUNCTION STUBS
* FUNCTION SELECTORS
*
* EPILOGUE
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:01; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:03; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* ======== AUXILIARY DEFINITIONS ========
*/
/* Mask */
typedef xdc_runtime_Types_DiagsMask xdc_runtime_Diags_Mask;
/* ENTRY */
/* EXIT */
/* LIFECYCLE */
/* INTERNAL */
/* ASSERT */
/* STATUS */
/* LEVEL */
/* USER1 */
/* USER2 */
/* USER3 */
/* USER4 */
/* USER5 */
/* USER6 */
/* USER7 */
/* INFO */
/* USER8 */
/* ANALYSIS */
/* ALL */
/* ALL_LOGGING */
/* 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 */
/* CRITICAL */
/* ERROR */
/* WARNING */
/*
* ======== 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 const CT__xdc_runtime_Diags_Module__diagsEnabled xdc_runtime_Diags_Module__diagsEnabled__C;
/* Module__diagsIncluded */
typedef xdc_Bits32 CT__xdc_runtime_Diags_Module__diagsIncluded;
extern const CT__xdc_runtime_Diags_Module__diagsIncluded xdc_runtime_Diags_Module__diagsIncluded__C;
/* Module__diagsMask */
typedef xdc_Bits16 *CT__xdc_runtime_Diags_Module__diagsMask;
extern const CT__xdc_runtime_Diags_Module__diagsMask xdc_runtime_Diags_Module__diagsMask__C;
/* Module__gateObj */
typedef xdc_Ptr CT__xdc_runtime_Diags_Module__gateObj;
extern const CT__xdc_runtime_Diags_Module__gateObj xdc_runtime_Diags_Module__gateObj__C;
/* Module__gatePrms */
typedef xdc_Ptr CT__xdc_runtime_Diags_Module__gatePrms;
extern const CT__xdc_runtime_Diags_Module__gatePrms xdc_runtime_Diags_Module__gatePrms__C;
/* Module__id */
typedef xdc_runtime_Types_ModuleId CT__xdc_runtime_Diags_Module__id;
extern const CT__xdc_runtime_Diags_Module__id xdc_runtime_Diags_Module__id__C;
/* Module__loggerDefined */
typedef xdc_Bool CT__xdc_runtime_Diags_Module__loggerDefined;
extern const CT__xdc_runtime_Diags_Module__loggerDefined xdc_runtime_Diags_Module__loggerDefined__C;
/* Module__loggerObj */
typedef xdc_Ptr CT__xdc_runtime_Diags_Module__loggerObj;
extern const CT__xdc_runtime_Diags_Module__loggerObj xdc_runtime_Diags_Module__loggerObj__C;
/* Module__loggerFxn0 */
typedef xdc_runtime_Types_LoggerFxn0 CT__xdc_runtime_Diags_Module__loggerFxn0;
extern const CT__xdc_runtime_Diags_Module__loggerFxn0 xdc_runtime_Diags_Module__loggerFxn0__C;
/* Module__loggerFxn1 */
typedef xdc_runtime_Types_LoggerFxn1 CT__xdc_runtime_Diags_Module__loggerFxn1;
extern const CT__xdc_runtime_Diags_Module__loggerFxn1 xdc_runtime_Diags_Module__loggerFxn1__C;
/* Module__loggerFxn2 */
typedef xdc_runtime_Types_LoggerFxn2 CT__xdc_runtime_Diags_Module__loggerFxn2;
extern const CT__xdc_runtime_Diags_Module__loggerFxn2 xdc_runtime_Diags_Module__loggerFxn2__C;
/* Module__loggerFxn4 */
typedef xdc_runtime_Types_LoggerFxn4 CT__xdc_runtime_Diags_Module__loggerFxn4;
extern const CT__xdc_runtime_Diags_Module__loggerFxn4 xdc_runtime_Diags_Module__loggerFxn4__C;
/* Module__loggerFxn8 */
typedef xdc_runtime_Types_LoggerFxn8 CT__xdc_runtime_Diags_Module__loggerFxn8;
extern const CT__xdc_runtime_Diags_Module__loggerFxn8 xdc_runtime_Diags_Module__loggerFxn8__C;
/* Module__startupDoneFxn */
typedef xdc_Bool (*CT__xdc_runtime_Diags_Module__startupDoneFxn)(void);
extern const CT__xdc_runtime_Diags_Module__startupDoneFxn xdc_runtime_Diags_Module__startupDoneFxn__C;
/* Object__count */
typedef xdc_Int CT__xdc_runtime_Diags_Object__count;
extern const CT__xdc_runtime_Diags_Object__count xdc_runtime_Diags_Object__count__C;
/* Object__heap */
typedef xdc_runtime_IHeap_Handle CT__xdc_runtime_Diags_Object__heap;
extern const CT__xdc_runtime_Diags_Object__heap xdc_runtime_Diags_Object__heap__C;
/* Object__sizeof */
typedef xdc_SizeT CT__xdc_runtime_Diags_Object__sizeof;
extern const CT__xdc_runtime_Diags_Object__sizeof xdc_runtime_Diags_Object__sizeof__C;
/* Object__table */
typedef xdc_Ptr CT__xdc_runtime_Diags_Object__table;
extern const CT__xdc_runtime_Diags_Object__table xdc_runtime_Diags_Object__table__C;
/* setMaskEnabled */
typedef xdc_Bool CT__xdc_runtime_Diags_setMaskEnabled;
extern const CT__xdc_runtime_Diags_setMaskEnabled xdc_runtime_Diags_setMaskEnabled__C;
/* dictBase */
typedef xdc_runtime_Diags_DictElem *CT__xdc_runtime_Diags_dictBase;
extern const CT__xdc_runtime_Diags_dictBase xdc_runtime_Diags_dictBase__C;
/*
* ======== FUNCTION DECLARATIONS ========
*/
/* Module_startup */
/* Module__startupDone__S */
extern xdc_Bool xdc_runtime_Diags_Module__startupDone__S( void );
/* setMask__E */
extern void xdc_runtime_Diags_setMask__E( xdc_CString control );
/*
* ======== SYSTEM FUNCTIONS ========
*/
/* Module_startupDone */
/* Object_heap */
/* Module_heap */
/* Module_id */
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 )
{
return (xdc_Bool)(xdc_runtime_Diags_Module__diagsMask__C != 0);
}
/* Module_getMask */
static inline xdc_Bits16 xdc_runtime_Diags_Module_getMask( void )
{
return xdc_runtime_Diags_Module__diagsMask__C != 0 ? *xdc_runtime_Diags_Module__diagsMask__C : (xdc_Bits16)0;
}
/* Module_setMask */
static inline void xdc_runtime_Diags_Module_setMask( xdc_Bits16 mask )
{
if (xdc_runtime_Diags_Module__diagsMask__C != 0) {
*xdc_runtime_Diags_Module__diagsMask__C = mask;
}
}
/*
* ======== EPILOGUE ========
*/
/*
* Copyright (c) 2008 Texas Instruments. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 and Eclipse Distribution License
* v. 1.0 which accompanies this distribution. The Eclipse Public License is
* available at http://www.eclipse.org/legal/epl-v10.html and the Eclipse
* Distribution License is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* Contributors:
* Texas Instruments - initial implementation
* */
/*
* ======== xdc_runtime_Diags_query ========
* Returns true iff:
* 1. the current module's included diags intersect evt's mask, and
* 2. either the permanently enabled diags intersect evt's mask or
* the runtime controllable diags intersect evt's mask.
*
* This macro relies on three "internal" macros which are defined in each
* module's internal header (e.g., package/internal/System.xdc.h):
* Module__DGSINCL - a const bit mask of bits that are _not_ ALWAYS_OFF
* Module__DGSENAB - a const bit mask of bits that are ALWAYS_ON
* Module__DGSMASK - a const pointer to a bit mask of currently enabled
* diagnostics
* These macros reference module-specific variables generated at config
* time, when we know the value of these constants.
*
*/
/*
* ======== xdc_runtime_Diags_getLevel ========
* Returns the event level set in the given diags mask. The level is a value
* stored using two bits of the diags mask.
*/
/*
* ======== xdc_runtime_Diags_compareLevels ========
* The definition of the diags levels assigns the value '0' to the highest
* priority events and '3' to the lowest, so the comparison is done backwards.
* For example, for (LEVEL4 (0), LEVEL1 (3)) this must return false.
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:00; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:28:59; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* ======== xdc_runtime_Assert_Id ========
*/
typedef xdc_Bits32 xdc_runtime_Assert_Id;
/*
* ======== Module__MID ========
* This definition allows non-module code to
* use the Assert module. This symbol is normally defined in each
* module internal header (i.e., package/internal/.xdc.h).
*
* Only do this if this file is not one that will be included in the Registry.
* This check ensures that Registry.h (which similarly defines these Module__*
* symbols) can be included in any order relative to other xdc.runtime
* headers.
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:28:59; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* VIRTUAL FUNCTIONS
* FUNCTION STUBS
* FUNCTION SELECTORS
*
* EPILOGUE
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:01; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:28:59; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:00; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:03; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* ======== AUXILIARY DEFINITIONS ========
*/
/* Id */
/*
* ======== INTERNAL DEFINITIONS ========
*/
/*
* ======== MODULE-WIDE CONFIGS ========
*/
/* Module__diagsEnabled */
typedef xdc_Bits32 CT__xdc_runtime_Assert_Module__diagsEnabled;
extern const CT__xdc_runtime_Assert_Module__diagsEnabled xdc_runtime_Assert_Module__diagsEnabled__C;
/* Module__diagsIncluded */
typedef xdc_Bits32 CT__xdc_runtime_Assert_Module__diagsIncluded;
extern const CT__xdc_runtime_Assert_Module__diagsIncluded xdc_runtime_Assert_Module__diagsIncluded__C;
/* Module__diagsMask */
typedef xdc_Bits16 *CT__xdc_runtime_Assert_Module__diagsMask;
extern const CT__xdc_runtime_Assert_Module__diagsMask xdc_runtime_Assert_Module__diagsMask__C;
/* Module__gateObj */
typedef xdc_Ptr CT__xdc_runtime_Assert_Module__gateObj;
extern const CT__xdc_runtime_Assert_Module__gateObj xdc_runtime_Assert_Module__gateObj__C;
/* Module__gatePrms */
typedef xdc_Ptr CT__xdc_runtime_Assert_Module__gatePrms;
extern const CT__xdc_runtime_Assert_Module__gatePrms xdc_runtime_Assert_Module__gatePrms__C;
/* Module__id */
typedef xdc_runtime_Types_ModuleId CT__xdc_runtime_Assert_Module__id;
extern const CT__xdc_runtime_Assert_Module__id xdc_runtime_Assert_Module__id__C;
/* Module__loggerDefined */
typedef xdc_Bool CT__xdc_runtime_Assert_Module__loggerDefined;
extern const CT__xdc_runtime_Assert_Module__loggerDefined xdc_runtime_Assert_Module__loggerDefined__C;
/* Module__loggerObj */
typedef xdc_Ptr CT__xdc_runtime_Assert_Module__loggerObj;
extern const CT__xdc_runtime_Assert_Module__loggerObj xdc_runtime_Assert_Module__loggerObj__C;
/* Module__loggerFxn0 */
typedef xdc_runtime_Types_LoggerFxn0 CT__xdc_runtime_Assert_Module__loggerFxn0;
extern const CT__xdc_runtime_Assert_Module__loggerFxn0 xdc_runtime_Assert_Module__loggerFxn0__C;
/* Module__loggerFxn1 */
typedef xdc_runtime_Types_LoggerFxn1 CT__xdc_runtime_Assert_Module__loggerFxn1;
extern const CT__xdc_runtime_Assert_Module__loggerFxn1 xdc_runtime_Assert_Module__loggerFxn1__C;
/* Module__loggerFxn2 */
typedef xdc_runtime_Types_LoggerFxn2 CT__xdc_runtime_Assert_Module__loggerFxn2;
extern const CT__xdc_runtime_Assert_Module__loggerFxn2 xdc_runtime_Assert_Module__loggerFxn2__C;
/* Module__loggerFxn4 */
typedef xdc_runtime_Types_LoggerFxn4 CT__xdc_runtime_Assert_Module__loggerFxn4;
extern const CT__xdc_runtime_Assert_Module__loggerFxn4 xdc_runtime_Assert_Module__loggerFxn4__C;
/* Module__loggerFxn8 */
typedef xdc_runtime_Types_LoggerFxn8 CT__xdc_runtime_Assert_Module__loggerFxn8;
extern const CT__xdc_runtime_Assert_Module__loggerFxn8 xdc_runtime_Assert_Module__loggerFxn8__C;
/* Module__startupDoneFxn */
typedef xdc_Bool (*CT__xdc_runtime_Assert_Module__startupDoneFxn)(void);
extern const CT__xdc_runtime_Assert_Module__startupDoneFxn xdc_runtime_Assert_Module__startupDoneFxn__C;
/* Object__count */
typedef xdc_Int CT__xdc_runtime_Assert_Object__count;
extern const CT__xdc_runtime_Assert_Object__count xdc_runtime_Assert_Object__count__C;
/* Object__heap */
typedef xdc_runtime_IHeap_Handle CT__xdc_runtime_Assert_Object__heap;
extern const CT__xdc_runtime_Assert_Object__heap xdc_runtime_Assert_Object__heap__C;
/* Object__sizeof */
typedef xdc_SizeT CT__xdc_runtime_Assert_Object__sizeof;
extern const CT__xdc_runtime_Assert_Object__sizeof xdc_runtime_Assert_Object__sizeof__C;
/* Object__table */
typedef xdc_Ptr CT__xdc_runtime_Assert_Object__table;
extern const CT__xdc_runtime_Assert_Object__table xdc_runtime_Assert_Object__table__C;
/* E_assertFailed */
typedef xdc_runtime_Error_Id CT__xdc_runtime_Assert_E_assertFailed;
extern const CT__xdc_runtime_Assert_E_assertFailed xdc_runtime_Assert_E_assertFailed__C;
/*
* ======== FUNCTION DECLARATIONS ========
*/
/* Module_startup */
/* Module__startupDone__S */
extern xdc_Bool xdc_runtime_Assert_Module__startupDone__S( void );
/* raise__I */
extern void xdc_runtime_Assert_raise__I( xdc_runtime_Types_ModuleId mod, xdc_CString file, xdc_Int line, xdc_runtime_Assert_Id id );
/*
* ======== SYSTEM FUNCTIONS ========
*/
/* Module_startupDone */
/* Object_heap */
/* Module_heap */
/* Module_id */
static inline CT__xdc_runtime_Assert_Module__id xdc_runtime_Assert_Module_id( void )
{
return xdc_runtime_Assert_Module__id__C;
}
/* Module_hasMask */
static inline xdc_Bool xdc_runtime_Assert_Module_hasMask( void )
{
return (xdc_Bool)(xdc_runtime_Assert_Module__diagsMask__C != 0);
}
/* Module_getMask */
static inline xdc_Bits16 xdc_runtime_Assert_Module_getMask( void )
{
return xdc_runtime_Assert_Module__diagsMask__C != 0 ? *xdc_runtime_Assert_Module__diagsMask__C : (xdc_Bits16)0;
}
/* Module_setMask */
static inline void xdc_runtime_Assert_Module_setMask( xdc_Bits16 mask )
{
if (xdc_runtime_Assert_Module__diagsMask__C != 0) {
*xdc_runtime_Assert_Module__diagsMask__C = mask;
}
}
/*
* ======== EPILOGUE ========
*/
/*
* Copyright (c) 2008 Texas Instruments. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 and Eclipse Distribution License
* v. 1.0 which accompanies this distribution. The Eclipse Public License is
* available at http://www.eclipse.org/legal/epl-v10.html and the Eclipse
* Distribution License is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* Contributors:
* Texas Instruments - initial implementation
* */
/*
* ======== xdc_runtime_Assert_getMask ========
* Convert an id into a mask
*/
/*
* ======== xdc_runtime_Assert_isTrue ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:28:59; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:28:59; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:28:59; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== INCLUDES ========
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:03; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Copyright (c) 2008 Texas Instruments. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 and Eclipse Distribution License
* v. 1.0 which accompanies this distribution. The Eclipse Public License is
* available at http://www.eclipse.org/legal/epl-v10.html and the Eclipse
* Distribution License is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* Contributors:
* Texas Instruments - initial implementation
* */
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:00; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:02; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:28:59; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* ======== xdc_runtime_Log_Event ========
* Log_Event is an encoded type. Log Events are encoded on the target as
* a 32-bit value:
*
* | format rope | module ID or mask |
* | 31 ----- 16 | 15 ------------ 0 |
*
* The lower 16-bits contain either a mask or a module ID; when the event
* is statically declared this field has a mask, when the event is passed
* to an ILogger this field is the module ID of the module that generated
* the event.
*
* The upper 16-bits are an ID (rope) that that identifies the format
* string to use to render the event (and its arguments).
*/
typedef xdc_Bits32 xdc_runtime_Log_Event;
/*
* The following macros establish xdc.runtime.Main as the "default"
* module for all sources files not part of a module.
*
* Module__MID - the module's ID (see Text.xs)
* Module__LOGOBJ - the module's logger object
* Module__LOGFXN0 - the module's logger's write0 function
* Module__LOGFXN1 - the module's logger's write1 function
* Module__LOGFXN2 - the module's logger's write2 function
* Module__LOGFXN4 - the module's logger's write4 function
* Module__LOGFXN8 - the module's logger's write8 function
* Module__LOGDEF - 0 if the module has a logger, non-zero otherwise
*
* Only define these symbols for xdc.runtime.Main if this file is not one that
* will be included in the Registry. This check ensures that Registry.h (which
* similarly defines these Module__* symbols) can be included in any order
* relative to other xdc.runtime headers.
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:01; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* VIRTUAL FUNCTIONS
* FUNCTION STUBS
* FUNCTION SELECTORS
*
* EPILOGUE
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:01; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:28:59; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:03; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== INCLUDES ========
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:03; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* VIRTUAL FUNCTIONS
* FUNCTION STUBS
* FUNCTION SELECTORS
*
* EPILOGUE
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:01; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:03; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* ======== AUXILIARY DEFINITIONS ========
*/
/* CordAddr */
typedef xdc_runtime_Types_CordAddr xdc_runtime_Text_CordAddr;
/* Label */
typedef xdc_runtime_Types_Label xdc_runtime_Text_Label;
/* RopeId */
typedef xdc_runtime_Types_RopeId xdc_runtime_Text_RopeId;
/*
* ======== INTERNAL DEFINITIONS ========
*/
/* Node */
struct xdc_runtime_Text_Node {
xdc_runtime_Types_RopeId left;
xdc_runtime_Types_RopeId right;
};
/* RopeVisitor */
typedef xdc_Bool (*xdc_runtime_Text_RopeVisitor)(xdc_Ptr, xdc_String);
/* MatchVisState */
struct xdc_runtime_Text_MatchVisState {
xdc_CString pat;
xdc_Int *lenp;
xdc_Int res;
};
/* PrintVisState */
struct xdc_runtime_Text_PrintVisState {
xdc_Char **bufp;
xdc_Int len;
xdc_Int res;
};
/* VisitRopeFxn */
typedef void (*xdc_runtime_Text_VisitRopeFxn)(xdc_runtime_Text_RopeId, xdc_Fxn, xdc_Ptr);
/* VisitRopeFxn2 */
typedef void (*xdc_runtime_Text_VisitRopeFxn2)(xdc_runtime_Text_RopeId, xdc_Fxn, xdc_Ptr, xdc_String[]);
/*
* ======== MODULE-WIDE CONFIGS ========
*/
/* Module__diagsEnabled */
typedef xdc_Bits32 CT__xdc_runtime_Text_Module__diagsEnabled;
extern const CT__xdc_runtime_Text_Module__diagsEnabled xdc_runtime_Text_Module__diagsEnabled__C;
/* Module__diagsIncluded */
typedef xdc_Bits32 CT__xdc_runtime_Text_Module__diagsIncluded;
extern const CT__xdc_runtime_Text_Module__diagsIncluded xdc_runtime_Text_Module__diagsIncluded__C;
/* Module__diagsMask */
typedef xdc_Bits16 *CT__xdc_runtime_Text_Module__diagsMask;
extern const CT__xdc_runtime_Text_Module__diagsMask xdc_runtime_Text_Module__diagsMask__C;
/* Module__gateObj */
typedef xdc_Ptr CT__xdc_runtime_Text_Module__gateObj;
extern const CT__xdc_runtime_Text_Module__gateObj xdc_runtime_Text_Module__gateObj__C;
/* Module__gatePrms */
typedef xdc_Ptr CT__xdc_runtime_Text_Module__gatePrms;
extern const CT__xdc_runtime_Text_Module__gatePrms xdc_runtime_Text_Module__gatePrms__C;
/* Module__id */
typedef xdc_runtime_Types_ModuleId CT__xdc_runtime_Text_Module__id;
extern const CT__xdc_runtime_Text_Module__id xdc_runtime_Text_Module__id__C;
/* Module__loggerDefined */
typedef xdc_Bool CT__xdc_runtime_Text_Module__loggerDefined;
extern const CT__xdc_runtime_Text_Module__loggerDefined xdc_runtime_Text_Module__loggerDefined__C;
/* Module__loggerObj */
typedef xdc_Ptr CT__xdc_runtime_Text_Module__loggerObj;
extern const CT__xdc_runtime_Text_Module__loggerObj xdc_runtime_Text_Module__loggerObj__C;
/* Module__loggerFxn0 */
typedef xdc_runtime_Types_LoggerFxn0 CT__xdc_runtime_Text_Module__loggerFxn0;
extern const CT__xdc_runtime_Text_Module__loggerFxn0 xdc_runtime_Text_Module__loggerFxn0__C;
/* Module__loggerFxn1 */
typedef xdc_runtime_Types_LoggerFxn1 CT__xdc_runtime_Text_Module__loggerFxn1;
extern const CT__xdc_runtime_Text_Module__loggerFxn1 xdc_runtime_Text_Module__loggerFxn1__C;
/* Module__loggerFxn2 */
typedef xdc_runtime_Types_LoggerFxn2 CT__xdc_runtime_Text_Module__loggerFxn2;
extern const CT__xdc_runtime_Text_Module__loggerFxn2 xdc_runtime_Text_Module__loggerFxn2__C;
/* Module__loggerFxn4 */
typedef xdc_runtime_Types_LoggerFxn4 CT__xdc_runtime_Text_Module__loggerFxn4;
extern const CT__xdc_runtime_Text_Module__loggerFxn4 xdc_runtime_Text_Module__loggerFxn4__C;
/* Module__loggerFxn8 */
typedef xdc_runtime_Types_LoggerFxn8 CT__xdc_runtime_Text_Module__loggerFxn8;
extern const CT__xdc_runtime_Text_Module__loggerFxn8 xdc_runtime_Text_Module__loggerFxn8__C;
/* Module__startupDoneFxn */
typedef xdc_Bool (*CT__xdc_runtime_Text_Module__startupDoneFxn)(void);
extern const CT__xdc_runtime_Text_Module__startupDoneFxn xdc_runtime_Text_Module__startupDoneFxn__C;
/* Object__count */
typedef xdc_Int CT__xdc_runtime_Text_Object__count;
extern const CT__xdc_runtime_Text_Object__count xdc_runtime_Text_Object__count__C;
/* Object__heap */
typedef xdc_runtime_IHeap_Handle CT__xdc_runtime_Text_Object__heap;
extern const CT__xdc_runtime_Text_Object__heap xdc_runtime_Text_Object__heap__C;
/* Object__sizeof */
typedef xdc_SizeT CT__xdc_runtime_Text_Object__sizeof;
extern const CT__xdc_runtime_Text_Object__sizeof xdc_runtime_Text_Object__sizeof__C;
/* Object__table */
typedef xdc_Ptr CT__xdc_runtime_Text_Object__table;
extern const CT__xdc_runtime_Text_Object__table xdc_runtime_Text_Object__table__C;
/* nameUnknown */
typedef xdc_String CT__xdc_runtime_Text_nameUnknown;
extern const CT__xdc_runtime_Text_nameUnknown xdc_runtime_Text_nameUnknown__C;
/* nameEmpty */
typedef xdc_String CT__xdc_runtime_Text_nameEmpty;
extern const CT__xdc_runtime_Text_nameEmpty xdc_runtime_Text_nameEmpty__C;
/* nameStatic */
typedef xdc_String CT__xdc_runtime_Text_nameStatic;
extern const CT__xdc_runtime_Text_nameStatic xdc_runtime_Text_nameStatic__C;
/* isLoaded */
typedef xdc_Bool CT__xdc_runtime_Text_isLoaded;
extern const CT__xdc_runtime_Text_isLoaded xdc_runtime_Text_isLoaded__C;
/* charTab */
typedef xdc_Char __T1_xdc_runtime_Text_charTab;
typedef xdc_Char *__ARRAY1_xdc_runtime_Text_charTab;
typedef __ARRAY1_xdc_runtime_Text_charTab __TA_xdc_runtime_Text_charTab;
typedef __TA_xdc_runtime_Text_charTab CT__xdc_runtime_Text_charTab;
extern const CT__xdc_runtime_Text_charTab xdc_runtime_Text_charTab__C;
/* nodeTab */
typedef xdc_runtime_Text_Node __T1_xdc_runtime_Text_nodeTab;
typedef xdc_runtime_Text_Node *__ARRAY1_xdc_runtime_Text_nodeTab;
typedef __ARRAY1_xdc_runtime_Text_nodeTab __TA_xdc_runtime_Text_nodeTab;
typedef __TA_xdc_runtime_Text_nodeTab CT__xdc_runtime_Text_nodeTab;
extern const CT__xdc_runtime_Text_nodeTab xdc_runtime_Text_nodeTab__C;
/* charCnt */
typedef xdc_Int16 CT__xdc_runtime_Text_charCnt;
extern const CT__xdc_runtime_Text_charCnt xdc_runtime_Text_charCnt__C;
/* nodeCnt */
typedef xdc_Int16 CT__xdc_runtime_Text_nodeCnt;
extern const CT__xdc_runtime_Text_nodeCnt xdc_runtime_Text_nodeCnt__C;
/* unnamedModsLastId */
typedef xdc_UInt16 CT__xdc_runtime_Text_unnamedModsLastId;
extern const CT__xdc_runtime_Text_unnamedModsLastId xdc_runtime_Text_unnamedModsLastId__C;
/* registryModsLastId */
typedef xdc_UInt16 CT__xdc_runtime_Text_registryModsLastId;
extern const CT__xdc_runtime_Text_registryModsLastId xdc_runtime_Text_registryModsLastId__C;
/* visitRopeFxn */
typedef xdc_runtime_Text_VisitRopeFxn CT__xdc_runtime_Text_visitRopeFxn;
extern const CT__xdc_runtime_Text_visitRopeFxn xdc_runtime_Text_visitRopeFxn__C;
/* visitRopeFxn2 */
typedef xdc_runtime_Text_VisitRopeFxn2 CT__xdc_runtime_Text_visitRopeFxn2;
extern const CT__xdc_runtime_Text_visitRopeFxn2 xdc_runtime_Text_visitRopeFxn2__C;
/*
* ======== FUNCTION DECLARATIONS ========
*/
/* Module_startup */
/* Module__startupDone__S */
extern xdc_Bool xdc_runtime_Text_Module__startupDone__S( void );
/* cordText__E */
extern xdc_String xdc_runtime_Text_cordText__E( xdc_runtime_Text_CordAddr cord );
/* ropeText__E */
extern xdc_String xdc_runtime_Text_ropeText__E( xdc_runtime_Text_RopeId rope );
/* matchRope__E */
extern xdc_Int xdc_runtime_Text_matchRope__E( xdc_runtime_Text_RopeId rope, xdc_CString pat, xdc_Int *lenp );
/* putLab__E */
extern xdc_Int xdc_runtime_Text_putLab__E( xdc_runtime_Types_Label *lab, xdc_Char **bufp, xdc_Int len );
/* putMod__E */
extern xdc_Int xdc_runtime_Text_putMod__E( xdc_runtime_Types_ModuleId mid, xdc_Char **bufp, xdc_Int len );
/* putSite__E */
extern xdc_Int xdc_runtime_Text_putSite__E( xdc_runtime_Types_Site *site, xdc_Char **bufp, xdc_Int len );
/* matchVisFxn__I */
extern xdc_Bool xdc_runtime_Text_matchVisFxn__I( xdc_Ptr p, xdc_CString s );
/* printVisFxn__I */
extern xdc_Bool xdc_runtime_Text_printVisFxn__I( xdc_Ptr p, xdc_CString s );
/* visitRope__I */
extern void xdc_runtime_Text_visitRope__I( xdc_runtime_Text_RopeId rope, xdc_Fxn visFxn, xdc_Ptr visState );
/* visitRope2__I */
extern void xdc_runtime_Text_visitRope2__I( xdc_runtime_Text_RopeId rope, xdc_Fxn visFxn, xdc_Ptr visState, xdc_String stack[] );
/* xprintf__I */
extern xdc_Int xdc_runtime_Text_xprintf__I( xdc_Char **bufp, xdc_SizeT len, xdc_CString fmt, ... );
/*
* ======== SYSTEM FUNCTIONS ========
*/
/* Module_startupDone */
/* Object_heap */
/* Module_heap */
/* Module_id */
static inline CT__xdc_runtime_Text_Module__id xdc_runtime_Text_Module_id( void )
{
return xdc_runtime_Text_Module__id__C;
}
/* Module_hasMask */
static inline xdc_Bool xdc_runtime_Text_Module_hasMask( void )
{
return (xdc_Bool)(xdc_runtime_Text_Module__diagsMask__C != 0);
}
/* Module_getMask */
static inline xdc_Bits16 xdc_runtime_Text_Module_getMask( void )
{
return xdc_runtime_Text_Module__diagsMask__C != 0 ? *xdc_runtime_Text_Module__diagsMask__C : (xdc_Bits16)0;
}
/* Module_setMask */
static inline void xdc_runtime_Text_Module_setMask( xdc_Bits16 mask )
{
if (xdc_runtime_Text_Module__diagsMask__C != 0) {
*xdc_runtime_Text_Module__diagsMask__C = mask;
}
}
/*
* ======== EPILOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:03; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* ======== AUXILIARY DEFINITIONS ========
*/
/* NUMARGS */
/* PRINTFID */
/* EventRec */
typedef xdc_IArg __T1_xdc_runtime_Log_EventRec__arg;
typedef xdc_IArg __ARRAY1_xdc_runtime_Log_EventRec__arg[8];
typedef __ARRAY1_xdc_runtime_Log_EventRec__arg __TA_xdc_runtime_Log_EventRec__arg;
struct xdc_runtime_Log_EventRec {
xdc_runtime_Types_Timestamp64 tstamp;
xdc_Bits32 serial;
xdc_runtime_Types_Event evt;
__TA_xdc_runtime_Log_EventRec__arg arg;
};
/* Event */
/* EventId */
typedef xdc_runtime_Types_RopeId xdc_runtime_Log_EventId;
/*
* ======== INTERNAL DEFINITIONS ========
*/
/*
* ======== MODULE-WIDE CONFIGS ========
*/
/* Module__diagsEnabled */
typedef xdc_Bits32 CT__xdc_runtime_Log_Module__diagsEnabled;
extern const CT__xdc_runtime_Log_Module__diagsEnabled xdc_runtime_Log_Module__diagsEnabled__C;
/* Module__diagsIncluded */
typedef xdc_Bits32 CT__xdc_runtime_Log_Module__diagsIncluded;
extern const CT__xdc_runtime_Log_Module__diagsIncluded xdc_runtime_Log_Module__diagsIncluded__C;
/* Module__diagsMask */
typedef xdc_Bits16 *CT__xdc_runtime_Log_Module__diagsMask;
extern const CT__xdc_runtime_Log_Module__diagsMask xdc_runtime_Log_Module__diagsMask__C;
/* Module__gateObj */
typedef xdc_Ptr CT__xdc_runtime_Log_Module__gateObj;
extern const CT__xdc_runtime_Log_Module__gateObj xdc_runtime_Log_Module__gateObj__C;
/* Module__gatePrms */
typedef xdc_Ptr CT__xdc_runtime_Log_Module__gatePrms;
extern const CT__xdc_runtime_Log_Module__gatePrms xdc_runtime_Log_Module__gatePrms__C;
/* Module__id */
typedef xdc_runtime_Types_ModuleId CT__xdc_runtime_Log_Module__id;
extern const CT__xdc_runtime_Log_Module__id xdc_runtime_Log_Module__id__C;
/* Module__loggerDefined */
typedef xdc_Bool CT__xdc_runtime_Log_Module__loggerDefined;
extern const CT__xdc_runtime_Log_Module__loggerDefined xdc_runtime_Log_Module__loggerDefined__C;
/* Module__loggerObj */
typedef xdc_Ptr CT__xdc_runtime_Log_Module__loggerObj;
extern const CT__xdc_runtime_Log_Module__loggerObj xdc_runtime_Log_Module__loggerObj__C;
/* Module__loggerFxn0 */
typedef xdc_runtime_Types_LoggerFxn0 CT__xdc_runtime_Log_Module__loggerFxn0;
extern const CT__xdc_runtime_Log_Module__loggerFxn0 xdc_runtime_Log_Module__loggerFxn0__C;
/* Module__loggerFxn1 */
typedef xdc_runtime_Types_LoggerFxn1 CT__xdc_runtime_Log_Module__loggerFxn1;
extern const CT__xdc_runtime_Log_Module__loggerFxn1 xdc_runtime_Log_Module__loggerFxn1__C;
/* Module__loggerFxn2 */
typedef xdc_runtime_Types_LoggerFxn2 CT__xdc_runtime_Log_Module__loggerFxn2;
extern const CT__xdc_runtime_Log_Module__loggerFxn2 xdc_runtime_Log_Module__loggerFxn2__C;
/* Module__loggerFxn4 */
typedef xdc_runtime_Types_LoggerFxn4 CT__xdc_runtime_Log_Module__loggerFxn4;
extern const CT__xdc_runtime_Log_Module__loggerFxn4 xdc_runtime_Log_Module__loggerFxn4__C;
/* Module__loggerFxn8 */
typedef xdc_runtime_Types_LoggerFxn8 CT__xdc_runtime_Log_Module__loggerFxn8;
extern const CT__xdc_runtime_Log_Module__loggerFxn8 xdc_runtime_Log_Module__loggerFxn8__C;
/* Module__startupDoneFxn */
typedef xdc_Bool (*CT__xdc_runtime_Log_Module__startupDoneFxn)(void);
extern const CT__xdc_runtime_Log_Module__startupDoneFxn xdc_runtime_Log_Module__startupDoneFxn__C;
/* Object__count */
typedef xdc_Int CT__xdc_runtime_Log_Object__count;
extern const CT__xdc_runtime_Log_Object__count xdc_runtime_Log_Object__count__C;
/* Object__heap */
typedef xdc_runtime_IHeap_Handle CT__xdc_runtime_Log_Object__heap;
extern const CT__xdc_runtime_Log_Object__heap xdc_runtime_Log_Object__heap__C;
/* Object__sizeof */
typedef xdc_SizeT CT__xdc_runtime_Log_Object__sizeof;
extern const CT__xdc_runtime_Log_Object__sizeof xdc_runtime_Log_Object__sizeof__C;
/* Object__table */
typedef xdc_Ptr CT__xdc_runtime_Log_Object__table;
extern const CT__xdc_runtime_Log_Object__table xdc_runtime_Log_Object__table__C;
/* L_construct */
typedef xdc_runtime_Log_Event CT__xdc_runtime_Log_L_construct;
extern const CT__xdc_runtime_Log_L_construct xdc_runtime_Log_L_construct__C;
/* L_create */
typedef xdc_runtime_Log_Event CT__xdc_runtime_Log_L_create;
extern const CT__xdc_runtime_Log_L_create xdc_runtime_Log_L_create__C;
/* L_destruct */
typedef xdc_runtime_Log_Event CT__xdc_runtime_Log_L_destruct;
extern const CT__xdc_runtime_Log_L_destruct xdc_runtime_Log_L_destruct__C;
/* L_delete */
typedef xdc_runtime_Log_Event CT__xdc_runtime_Log_L_delete;
extern const CT__xdc_runtime_Log_L_delete xdc_runtime_Log_L_delete__C;
/* L_error */
typedef xdc_runtime_Log_Event CT__xdc_runtime_Log_L_error;
extern const CT__xdc_runtime_Log_L_error xdc_runtime_Log_L_error__C;
/* L_warning */
typedef xdc_runtime_Log_Event CT__xdc_runtime_Log_L_warning;
extern const CT__xdc_runtime_Log_L_warning xdc_runtime_Log_L_warning__C;
/* L_info */
typedef xdc_runtime_Log_Event CT__xdc_runtime_Log_L_info;
extern const CT__xdc_runtime_Log_L_info xdc_runtime_Log_L_info__C;
/* L_start */
typedef xdc_runtime_Log_Event CT__xdc_runtime_Log_L_start;
extern const CT__xdc_runtime_Log_L_start xdc_runtime_Log_L_start__C;
/* L_stop */
typedef xdc_runtime_Log_Event CT__xdc_runtime_Log_L_stop;
extern const CT__xdc_runtime_Log_L_stop xdc_runtime_Log_L_stop__C;
/* L_startInstance */
typedef xdc_runtime_Log_Event CT__xdc_runtime_Log_L_startInstance;
extern const CT__xdc_runtime_Log_L_startInstance xdc_runtime_Log_L_startInstance__C;
/* L_stopInstance */
typedef xdc_runtime_Log_Event CT__xdc_runtime_Log_L_stopInstance;
extern const CT__xdc_runtime_Log_L_stopInstance xdc_runtime_Log_L_stopInstance__C;
/*
* ======== FUNCTION DECLARATIONS ========
*/
/* Module_startup */
/* Module__startupDone__S */
extern xdc_Bool xdc_runtime_Log_Module__startupDone__S( void );
/* doPrint__E */
extern void xdc_runtime_Log_doPrint__E( xdc_runtime_Log_EventRec *evRec );
/*
* ======== SYSTEM FUNCTIONS ========
*/
/* Module_startupDone */
/* Object_heap */
/* Module_heap */
/* Module_id */
static inline CT__xdc_runtime_Log_Module__id xdc_runtime_Log_Module_id( void )
{
return xdc_runtime_Log_Module__id__C;
}
/* Module_hasMask */
static inline xdc_Bool xdc_runtime_Log_Module_hasMask( void )
{
return (xdc_Bool)(xdc_runtime_Log_Module__diagsMask__C != 0);
}
/* Module_getMask */
static inline xdc_Bits16 xdc_runtime_Log_Module_getMask( void )
{
return xdc_runtime_Log_Module__diagsMask__C != 0 ? *xdc_runtime_Log_Module__diagsMask__C : (xdc_Bits16)0;
}
/* Module_setMask */
static inline void xdc_runtime_Log_Module_setMask( xdc_Bits16 mask )
{
if (xdc_runtime_Log_Module__diagsMask__C != 0) {
*xdc_runtime_Log_Module__diagsMask__C = mask;
}
}
/*
* ======== EPILOGUE ========
*/
/*
* Copyright (c) 2008 Texas Instruments. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 and Eclipse Distribution License
* v. 1.0 which accompanies this distribution. The Eclipse Public License is
* available at http://www.eclipse.org/legal/epl-v10.html and the Eclipse
* Distribution License is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* Contributors:
* Texas Instruments - initial implementation
* */
/*
* ======== Log__epilogue.h ========
* Implementation of the Log_* macros
*
* The implementation below relies on eight symbols defined by every module
* header. Each of these symbols is a reference to a constant defined in a
* separate compilation unit. The values of these constants are as follows:
*
* Module__MID - the module's ID (see Text.xs)
* Module__LOGOBJ - the module's logger instance object
* Module__LOGFXN0 - the module's logger's write0 function
* Module__LOGFXN1 - the module's logger's write1 function
* Module__LOGFXN2 - the module's logger's write2 function
* Module__LOGFXN4 - the module's logger's write4 function
* Module__LOGFXN8 - the module's logger's write8 function
* Module__LOGDEF - 0 if the module has a logger, non-zero otherwise
*/
/*
* Define flags for compiling out all Log calls
*
* The intent of these flags is to allow users to completely optimize logging
* out of their code even when not using whole program optimization. This is
* implemented by controlling the definitions of the Log macros. This will
* only affect code compiled with the flag(s) set, so it will not disable
* logging in any precompiled libraries.
*
* The DISABLE_ALL flag will have the effect of disabling all Log put, write,
* print, error, warning, and info log calls. The flag just has to be defined,
* we give it a value of zero or one to use in the macros.
*
* There are additional flags which can be used to disable all log calls
* "except for". We use the presence of the DISABLE_ALL flag and the presence
* of any ENABLE_ERROR, ENABLE_INFO, or ENABLE_WARNING flags to compute the
* value of ENABLE_ERROR, etc., as zero or one.
*
* We ensure that all of the flags are ultimately defined and given a zero or
* one value. Then the macro definitions are conditional on the value of the
* appropriate flag.
*/
/*
* If DISABLE_ALL is defined, give it the value 1, and assign values to all
* of the ENABLE flags based on whether they've been defined or not.
*/
/*
* ======== xdc_runtime_Log_getMask ========
*/
/*
* ======== xdc_runtime_Log_getRope ========
*/
/*
* ======== xdc_runtime_Log_getEventId ========
*/
/*
* ======== xdc_runtime_Log_doPut* ========
* The 'doPut' macros are the real implementation of the Log_put* APIs.
* The Log_put* macros are just stubs which point to these definitions. We do
* this so that we can disable the Log_put* APIs but still leave their
* functionality available for any other Log macros which use them.
*
* For example, if the flags DISABLE_ALL and ENABLE_ERROR are set, we want
* to disable the Log_put* macros, but not the Log_error* macros which are
* also built on top of these 'doPut' macros.
*/
/*
* ======== xdc_runtime_Log_put* ========
* See Log_doPut*
*/
/*
* ======== xdc_runtime_Log_doWrite* ========
* The real implementations of the Log_write* APIs. See Log_doPut* for an
* explanation of why we stub-out the Log_put* and Log_write* APIs.
*/
/*
* ======== xdc_runtime_Log_write* ========
* See Log_doWrite*
*/
/*
* ======== xdc_runtime_Log_print* ========
* Since "print" events do not have a rope, we use 0 (an invalid rope value)
* as the event Id and construct a Log_Event to pass to Log_put. This has the
* benefit that the Log_Event is equal to just the mask: (0 | mask). For this
* reason, we simply pass the 'mask' as the first argument to 'put'.
*
* Each print function is mapped to a call to appropriate 'put' function.
* print0 -> put1
* print1 -> put2
* print2 -> print3 -> put4
* print3 -> put4
* print4 -> print6 -> put8
* print5 -> print6 -> put8
* print6 -> put8
*/
/*
* ======== xdc_runtime_Log_error* ========
* Log an error event
*/
/*
* ======== xdc_runtime_Log_warning* ========
* Log a warning event
*/
/*
* ======== xdc_runtime_Log_info* ========
* Log an informational event
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:01; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:01; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* PER-INSTANCE TYPES
* VIRTUAL FUNCTIONS
* FUNCTION STUBS
* FUNCTION SELECTORS
*
* EPILOGUE
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:01; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-A71
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* PER-INSTANCE TYPES
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== INCLUDES ========
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:03; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* PER-INSTANCE TYPES
* VIRTUAL FUNCTIONS
* FUNCTION STUBS
* FUNCTION SELECTORS
*
* EPILOGUE
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:01; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* VIRTUAL FUNCTIONS
* FUNCTION STUBS
* FUNCTION SELECTORS
*
* EPILOGUE
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:01; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* ======== AUXILIARY DEFINITIONS ========
*/
/* Elem */
struct ti_sysbios_knl_Queue_Elem {
ti_sysbios_knl_Queue_Elem *volatile next;
ti_sysbios_knl_Queue_Elem *volatile prev;
};
/*
* ======== INTERNAL DEFINITIONS ========
*/
/*
* ======== MODULE-WIDE CONFIGS ========
*/
/* Module__diagsEnabled */
typedef xdc_Bits32 CT__ti_sysbios_knl_Queue_Module__diagsEnabled;
extern const CT__ti_sysbios_knl_Queue_Module__diagsEnabled ti_sysbios_knl_Queue_Module__diagsEnabled__C;
/* Module__diagsIncluded */
typedef xdc_Bits32 CT__ti_sysbios_knl_Queue_Module__diagsIncluded;
extern const CT__ti_sysbios_knl_Queue_Module__diagsIncluded ti_sysbios_knl_Queue_Module__diagsIncluded__C;
/* Module__diagsMask */
typedef xdc_Bits16 *CT__ti_sysbios_knl_Queue_Module__diagsMask;
extern const CT__ti_sysbios_knl_Queue_Module__diagsMask ti_sysbios_knl_Queue_Module__diagsMask__C;
/* Module__gateObj */
typedef xdc_Ptr CT__ti_sysbios_knl_Queue_Module__gateObj;
extern const CT__ti_sysbios_knl_Queue_Module__gateObj ti_sysbios_knl_Queue_Module__gateObj__C;
/* Module__gatePrms */
typedef xdc_Ptr CT__ti_sysbios_knl_Queue_Module__gatePrms;
extern const CT__ti_sysbios_knl_Queue_Module__gatePrms ti_sysbios_knl_Queue_Module__gatePrms__C;
/* Module__id */
typedef xdc_runtime_Types_ModuleId CT__ti_sysbios_knl_Queue_Module__id;
extern const CT__ti_sysbios_knl_Queue_Module__id ti_sysbios_knl_Queue_Module__id__C;
/* Module__loggerDefined */
typedef xdc_Bool CT__ti_sysbios_knl_Queue_Module__loggerDefined;
extern const CT__ti_sysbios_knl_Queue_Module__loggerDefined ti_sysbios_knl_Queue_Module__loggerDefined__C;
/* Module__loggerObj */
typedef xdc_Ptr CT__ti_sysbios_knl_Queue_Module__loggerObj;
extern const CT__ti_sysbios_knl_Queue_Module__loggerObj ti_sysbios_knl_Queue_Module__loggerObj__C;
/* Module__loggerFxn0 */
typedef xdc_runtime_Types_LoggerFxn0 CT__ti_sysbios_knl_Queue_Module__loggerFxn0;
extern const CT__ti_sysbios_knl_Queue_Module__loggerFxn0 ti_sysbios_knl_Queue_Module__loggerFxn0__C;
/* Module__loggerFxn1 */
typedef xdc_runtime_Types_LoggerFxn1 CT__ti_sysbios_knl_Queue_Module__loggerFxn1;
extern const CT__ti_sysbios_knl_Queue_Module__loggerFxn1 ti_sysbios_knl_Queue_Module__loggerFxn1__C;
/* Module__loggerFxn2 */
typedef xdc_runtime_Types_LoggerFxn2 CT__ti_sysbios_knl_Queue_Module__loggerFxn2;
extern const CT__ti_sysbios_knl_Queue_Module__loggerFxn2 ti_sysbios_knl_Queue_Module__loggerFxn2__C;
/* Module__loggerFxn4 */
typedef xdc_runtime_Types_LoggerFxn4 CT__ti_sysbios_knl_Queue_Module__loggerFxn4;
extern const CT__ti_sysbios_knl_Queue_Module__loggerFxn4 ti_sysbios_knl_Queue_Module__loggerFxn4__C;
/* Module__loggerFxn8 */
typedef xdc_runtime_Types_LoggerFxn8 CT__ti_sysbios_knl_Queue_Module__loggerFxn8;
extern const CT__ti_sysbios_knl_Queue_Module__loggerFxn8 ti_sysbios_knl_Queue_Module__loggerFxn8__C;
/* Module__startupDoneFxn */
typedef xdc_Bool (*CT__ti_sysbios_knl_Queue_Module__startupDoneFxn)(void);
extern const CT__ti_sysbios_knl_Queue_Module__startupDoneFxn ti_sysbios_knl_Queue_Module__startupDoneFxn__C;
/* Object__count */
typedef xdc_Int CT__ti_sysbios_knl_Queue_Object__count;
extern const CT__ti_sysbios_knl_Queue_Object__count ti_sysbios_knl_Queue_Object__count__C;
/* Object__heap */
typedef xdc_runtime_IHeap_Handle CT__ti_sysbios_knl_Queue_Object__heap;
extern const CT__ti_sysbios_knl_Queue_Object__heap ti_sysbios_knl_Queue_Object__heap__C;
/* Object__sizeof */
typedef xdc_SizeT CT__ti_sysbios_knl_Queue_Object__sizeof;
extern const CT__ti_sysbios_knl_Queue_Object__sizeof ti_sysbios_knl_Queue_Object__sizeof__C;
/* Object__table */
typedef xdc_Ptr CT__ti_sysbios_knl_Queue_Object__table;
extern const CT__ti_sysbios_knl_Queue_Object__table ti_sysbios_knl_Queue_Object__table__C;
/*
* ======== PER-INSTANCE TYPES ========
*/
/* Params */
struct ti_sysbios_knl_Queue_Params {
size_t __size;
const void *__self;
void *__fxns;
xdc_runtime_IInstance_Params *instance;
xdc_runtime_IInstance_Params __iprms;
};
/* Struct */
struct ti_sysbios_knl_Queue_Struct {
ti_sysbios_knl_Queue_Elem __f0;
xdc_runtime_Types_CordAddr __name;
};
/*
* ======== FUNCTION DECLARATIONS ========
*/
/* Module_startup */
/* Instance_init__E */
extern void ti_sysbios_knl_Queue_Instance_init__E(ti_sysbios_knl_Queue_Object *, const ti_sysbios_knl_Queue_Params *);
/* Handle__label__S */
extern xdc_runtime_Types_Label *ti_sysbios_knl_Queue_Handle__label__S( xdc_Ptr obj, xdc_runtime_Types_Label *lab );
/* Module__startupDone__S */
extern xdc_Bool ti_sysbios_knl_Queue_Module__startupDone__S( void );
/* Object__create__S */
extern xdc_Ptr ti_sysbios_knl_Queue_Object__create__S( xdc_Ptr __oa, xdc_SizeT __osz, xdc_Ptr __aa, const xdc_UChar *__pa, xdc_SizeT __psz, xdc_runtime_Error_Block *__eb );
/* create */
extern ti_sysbios_knl_Queue_Handle ti_sysbios_knl_Queue_create( const ti_sysbios_knl_Queue_Params *__prms, xdc_runtime_Error_Block *__eb );
/* construct */
extern void ti_sysbios_knl_Queue_construct( ti_sysbios_knl_Queue_Struct *__obj, const ti_sysbios_knl_Queue_Params *__prms );
/* Object__delete__S */
extern void ti_sysbios_knl_Queue_Object__delete__S( xdc_Ptr instp );
/* delete */
extern void ti_sysbios_knl_Queue_delete(ti_sysbios_knl_Queue_Handle *instp);
/* Object__destruct__S */
extern void ti_sysbios_knl_Queue_Object__destruct__S( xdc_Ptr objp );
/* destruct */
extern void ti_sysbios_knl_Queue_destruct(ti_sysbios_knl_Queue_Struct *obj);
/* Object__get__S */
extern xdc_Ptr ti_sysbios_knl_Queue_Object__get__S( xdc_Ptr oarr, xdc_Int i );
/* Object__first__S */
extern xdc_Ptr ti_sysbios_knl_Queue_Object__first__S( void );
/* Object__next__S */
extern xdc_Ptr ti_sysbios_knl_Queue_Object__next__S( xdc_Ptr obj );
/* Params__init__S */
extern void ti_sysbios_knl_Queue_Params__init__S( xdc_Ptr dst, const void *src, xdc_SizeT psz, xdc_SizeT isz );
/* elemClear__E */
extern void ti_sysbios_knl_Queue_elemClear__E( ti_sysbios_knl_Queue_Elem *qelem );
/* insert__E */
extern void ti_sysbios_knl_Queue_insert__E( ti_sysbios_knl_Queue_Elem *qelem, ti_sysbios_knl_Queue_Elem *elem );
/* next__E */
extern xdc_Ptr ti_sysbios_knl_Queue_next__E( ti_sysbios_knl_Queue_Elem *qelem );
/* prev__E */
extern xdc_Ptr ti_sysbios_knl_Queue_prev__E( ti_sysbios_knl_Queue_Elem *qelem );
/* remove__E */
extern void ti_sysbios_knl_Queue_remove__E( ti_sysbios_knl_Queue_Elem *qelem );
/* isQueued__E */
extern xdc_Bool ti_sysbios_knl_Queue_isQueued__E( ti_sysbios_knl_Queue_Elem *qelem );
/* dequeue__E */
extern xdc_Ptr ti_sysbios_knl_Queue_dequeue__E( ti_sysbios_knl_Queue_Handle __inst );
/* empty__E */
extern xdc_Bool ti_sysbios_knl_Queue_empty__E( ti_sysbios_knl_Queue_Handle __inst );
/* enqueue__E */
extern void ti_sysbios_knl_Queue_enqueue__E( ti_sysbios_knl_Queue_Handle __inst, ti_sysbios_knl_Queue_Elem *elem );
/* get__E */
extern xdc_Ptr ti_sysbios_knl_Queue_get__E( ti_sysbios_knl_Queue_Handle __inst );
/* getTail__E */
extern xdc_Ptr ti_sysbios_knl_Queue_getTail__E( ti_sysbios_knl_Queue_Handle __inst );
/* head__E */
extern xdc_Ptr ti_sysbios_knl_Queue_head__E( ti_sysbios_knl_Queue_Handle __inst );
/* put__E */
extern void ti_sysbios_knl_Queue_put__E( ti_sysbios_knl_Queue_Handle __inst, ti_sysbios_knl_Queue_Elem *elem );
/* putHead__E */
extern void ti_sysbios_knl_Queue_putHead__E( ti_sysbios_knl_Queue_Handle __inst, ti_sysbios_knl_Queue_Elem *elem );
/*
* ======== SYSTEM FUNCTIONS ========
*/
/* Module_startupDone */
/* Object_heap */
/* Module_heap */
/* Module_id */
static inline CT__ti_sysbios_knl_Queue_Module__id ti_sysbios_knl_Queue_Module_id( void )
{
return ti_sysbios_knl_Queue_Module__id__C;
}
/* Module_hasMask */
static inline xdc_Bool ti_sysbios_knl_Queue_Module_hasMask( void )
{
return ti_sysbios_knl_Queue_Module__diagsMask__C != 0;
}
/* Module_getMask */
static inline xdc_Bits16 ti_sysbios_knl_Queue_Module_getMask( void )
{
return ti_sysbios_knl_Queue_Module__diagsMask__C != 0 ? *ti_sysbios_knl_Queue_Module__diagsMask__C : 0;
}
/* Module_setMask */
static inline void ti_sysbios_knl_Queue_Module_setMask( xdc_Bits16 mask )
{
if (ti_sysbios_knl_Queue_Module__diagsMask__C != 0) *ti_sysbios_knl_Queue_Module__diagsMask__C = mask;
}
/* Params_init */
static inline void ti_sysbios_knl_Queue_Params_init( ti_sysbios_knl_Queue_Params *prms )
{
if (prms) {
ti_sysbios_knl_Queue_Params__init__S(prms, 0, sizeof(ti_sysbios_knl_Queue_Params), sizeof(xdc_runtime_IInstance_Params));
}
}
/* Params_copy */
static inline void ti_sysbios_knl_Queue_Params_copy(ti_sysbios_knl_Queue_Params *dst, const ti_sysbios_knl_Queue_Params *src)
{
if (dst) {
ti_sysbios_knl_Queue_Params__init__S(dst, (const void *)src, sizeof(ti_sysbios_knl_Queue_Params), sizeof(xdc_runtime_IInstance_Params));
}
}
/* Object_count */
/* Object_sizeof */
/* Object_get */
static inline ti_sysbios_knl_Queue_Handle ti_sysbios_knl_Queue_Object_get(ti_sysbios_knl_Queue_Instance_State *oarr, int i)
{
return (ti_sysbios_knl_Queue_Handle)ti_sysbios_knl_Queue_Object__get__S(oarr, i);
}
/* Object_first */
static inline ti_sysbios_knl_Queue_Handle ti_sysbios_knl_Queue_Object_first( void )
{
return (ti_sysbios_knl_Queue_Handle)ti_sysbios_knl_Queue_Object__first__S();
}
/* Object_next */
static inline ti_sysbios_knl_Queue_Handle ti_sysbios_knl_Queue_Object_next( ti_sysbios_knl_Queue_Object *obj )
{
return (ti_sysbios_knl_Queue_Handle)ti_sysbios_knl_Queue_Object__next__S(obj);
}
/* Handle_label */
static inline xdc_runtime_Types_Label *ti_sysbios_knl_Queue_Handle_label( ti_sysbios_knl_Queue_Handle inst, xdc_runtime_Types_Label *lab )
{
return ti_sysbios_knl_Queue_Handle__label__S(inst, lab);
}
/* Handle_name */
static inline xdc_String ti_sysbios_knl_Queue_Handle_name( ti_sysbios_knl_Queue_Handle inst )
{
xdc_runtime_Types_Label lab;
return ti_sysbios_knl_Queue_Handle__label__S(inst, &lab)->iname;
}
/* handle */
static inline ti_sysbios_knl_Queue_Handle ti_sysbios_knl_Queue_handle( ti_sysbios_knl_Queue_Struct *str )
{
return (ti_sysbios_knl_Queue_Handle)str;
}
/* struct */
static inline ti_sysbios_knl_Queue_Struct *ti_sysbios_knl_Queue_struct( ti_sysbios_knl_Queue_Handle inst )
{
return (ti_sysbios_knl_Queue_Struct*)inst;
}
/*
* ======== EPILOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* VIRTUAL FUNCTIONS
* FUNCTION STUBS
* FUNCTION SELECTORS
*
* EPILOGUE
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:01; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-A71
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* VIRTUAL FUNCTIONS
* FUNCTION STUBS
* FUNCTION SELECTORS
*
* EPILOGUE
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== INCLUDES ========
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:03; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-A71
*/
/*
* ======== interface ti.sysbios.interfaces.ICore ========
*/
typedef struct ti_sysbios_interfaces_ICore_Fxns__ ti_sysbios_interfaces_ICore_Fxns__;
typedef const ti_sysbios_interfaces_ICore_Fxns__* ti_sysbios_interfaces_ICore_Module;
/*
* ======== interface ti.sysbios.interfaces.IHwi ========
*/
typedef struct ti_sysbios_interfaces_IHwi_HookSet ti_sysbios_interfaces_IHwi_HookSet;
typedef struct ti_sysbios_interfaces_IHwi_StackInfo ti_sysbios_interfaces_IHwi_StackInfo;
typedef struct ti_sysbios_interfaces_IHwi_Fxns__ ti_sysbios_interfaces_IHwi_Fxns__;
typedef const ti_sysbios_interfaces_IHwi_Fxns__* ti_sysbios_interfaces_IHwi_Module;
typedef struct ti_sysbios_interfaces_IHwi_Params ti_sysbios_interfaces_IHwi_Params;
typedef struct ti_sysbios_interfaces_IHwi___Object { ti_sysbios_interfaces_IHwi_Fxns__* __fxns; xdc_Bits32 __label; } *ti_sysbios_interfaces_IHwi_Handle;
/*
* ======== interface ti.sysbios.interfaces.ITaskSupport ========
*/
typedef struct ti_sysbios_interfaces_ITaskSupport_Fxns__ ti_sysbios_interfaces_ITaskSupport_Fxns__;
typedef const ti_sysbios_interfaces_ITaskSupport_Fxns__* ti_sysbios_interfaces_ITaskSupport_Module;
/*
* ======== interface ti.sysbios.interfaces.ITimer ========
*/
typedef struct ti_sysbios_interfaces_ITimer_Fxns__ ti_sysbios_interfaces_ITimer_Fxns__;
typedef const ti_sysbios_interfaces_ITimer_Fxns__* ti_sysbios_interfaces_ITimer_Module;
typedef struct ti_sysbios_interfaces_ITimer_Params ti_sysbios_interfaces_ITimer_Params;
typedef struct ti_sysbios_interfaces_ITimer___Object { ti_sysbios_interfaces_ITimer_Fxns__* __fxns; xdc_Bits32 __label; } *ti_sysbios_interfaces_ITimer_Handle;
/*
* ======== interface ti.sysbios.interfaces.ITimerSupport ========
*/
typedef struct ti_sysbios_interfaces_ITimerSupport_Fxns__ ti_sysbios_interfaces_ITimerSupport_Fxns__;
typedef const ti_sysbios_interfaces_ITimerSupport_Fxns__* ti_sysbios_interfaces_ITimerSupport_Module;
/*
* ======== interface ti.sysbios.interfaces.ITimestamp ========
*/
typedef struct ti_sysbios_interfaces_ITimestamp_Fxns__ ti_sysbios_interfaces_ITimestamp_Fxns__;
typedef const ti_sysbios_interfaces_ITimestamp_Fxns__* ti_sysbios_interfaces_ITimestamp_Module;
/*
* ======== interface ti.sysbios.interfaces.IIntrinsicsSupport ========
*/
typedef struct ti_sysbios_interfaces_IIntrinsicsSupport_Fxns__ ti_sysbios_interfaces_IIntrinsicsSupport_Fxns__;
typedef const ti_sysbios_interfaces_IIntrinsicsSupport_Fxns__* ti_sysbios_interfaces_IIntrinsicsSupport_Module;
/*
* ======== interface ti.sysbios.interfaces.ICache ========
*/
typedef struct ti_sysbios_interfaces_ICache_Fxns__ ti_sysbios_interfaces_ICache_Fxns__;
typedef const ti_sysbios_interfaces_ICache_Fxns__* ti_sysbios_interfaces_ICache_Module;
/*
* ======== interface ti.sysbios.interfaces.IPower ========
*/
typedef struct ti_sysbios_interfaces_IPower_Fxns__ ti_sysbios_interfaces_IPower_Fxns__;
typedef const ti_sysbios_interfaces_IPower_Fxns__* ti_sysbios_interfaces_IPower_Module;
/*
* ======== interface ti.sysbios.interfaces.IRomDevice ========
*/
typedef struct ti_sysbios_interfaces_IRomDevice_Fxns__ ti_sysbios_interfaces_IRomDevice_Fxns__;
typedef const ti_sysbios_interfaces_IRomDevice_Fxns__* ti_sysbios_interfaces_IRomDevice_Module;
/*
* ======== interface ti.sysbios.interfaces.ISeconds ========
*/
typedef struct ti_sysbios_interfaces_ISeconds_Time ti_sysbios_interfaces_ISeconds_Time;
typedef struct ti_sysbios_interfaces_ISeconds_Fxns__ ti_sysbios_interfaces_ISeconds_Fxns__;
typedef const ti_sysbios_interfaces_ISeconds_Fxns__* ti_sysbios_interfaces_ISeconds_Module;
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:00; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* VIRTUAL FUNCTIONS
* FUNCTION STUBS
* FUNCTION SELECTORS
*
* EPILOGUE
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:01; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* ======== AUXILIARY DEFINITIONS ========
*/
/* FuncPtr */
typedef void (*ti_sysbios_interfaces_ITaskSupport_FuncPtr)(void);
/*
* ======== VIRTUAL FUNCTIONS ========
*/
/* Fxns__ */
struct ti_sysbios_interfaces_ITaskSupport_Fxns__ {
xdc_runtime_Types_Base* __base;
const xdc_runtime_Types_SysFxns2 *__sysp;
xdc_Ptr (*start)(xdc_Ptr, ti_sysbios_interfaces_ITaskSupport_FuncPtr, ti_sysbios_interfaces_ITaskSupport_FuncPtr, xdc_runtime_Error_Block*);
void (*swap)(xdc_Ptr*, xdc_Ptr*);
xdc_Bool (*checkStack)(xdc_Char*, xdc_SizeT);
xdc_SizeT (*stackUsed)(xdc_Char*, xdc_SizeT);
xdc_UInt (*getStackAlignment)(void);
xdc_SizeT (*getDefaultStackSize)(void);
xdc_runtime_Types_SysFxns2 __sfxns;
};
/* Interface__BASE__C */
extern const xdc_runtime_Types_Base ti_sysbios_interfaces_ITaskSupport_Interface__BASE__C;
/*
* ======== FUNCTION STUBS ========
*/
/* Module_id */
static inline xdc_runtime_Types_ModuleId ti_sysbios_interfaces_ITaskSupport_Module_id( ti_sysbios_interfaces_ITaskSupport_Module mod )
{
return mod->__sysp->__mid;
}
/* start */
static inline xdc_Ptr ti_sysbios_interfaces_ITaskSupport_start( ti_sysbios_interfaces_ITaskSupport_Module __inst, xdc_Ptr curTask, ti_sysbios_interfaces_ITaskSupport_FuncPtr enter, ti_sysbios_interfaces_ITaskSupport_FuncPtr exit, xdc_runtime_Error_Block *eb )
{
return __inst->start(curTask, enter, exit, eb);
}
/* swap */
static inline void ti_sysbios_interfaces_ITaskSupport_swap( ti_sysbios_interfaces_ITaskSupport_Module __inst, xdc_Ptr *oldtskContext, xdc_Ptr *newtskContext )
{
__inst->swap(oldtskContext, newtskContext);
}
/* checkStack */
static inline xdc_Bool ti_sysbios_interfaces_ITaskSupport_checkStack( ti_sysbios_interfaces_ITaskSupport_Module __inst, xdc_Char *stack, xdc_SizeT size )
{
return __inst->checkStack(stack, size);
}
/* stackUsed */
static inline xdc_SizeT ti_sysbios_interfaces_ITaskSupport_stackUsed( ti_sysbios_interfaces_ITaskSupport_Module __inst, xdc_Char *stack, xdc_SizeT size )
{
return __inst->stackUsed(stack, size);
}
/* getStackAlignment */
static inline xdc_UInt ti_sysbios_interfaces_ITaskSupport_getStackAlignment( ti_sysbios_interfaces_ITaskSupport_Module __inst )
{
return __inst->getStackAlignment();
}
/* getDefaultStackSize */
static inline xdc_SizeT ti_sysbios_interfaces_ITaskSupport_getDefaultStackSize( ti_sysbios_interfaces_ITaskSupport_Module __inst )
{
return __inst->getDefaultStackSize();
}
/*
* ======== FUNCTION SELECTORS ========
*/
/* These functions return function pointers for module and instance functions.
* The functions accept modules and instances declared as types defined in this
* interface, but they return functions defined for the actual objects passed
* as parameters. These functions are not invoked by any generated code or
* XDCtools internal code.
*/
/* start_{FxnT,fxnP} */
typedef xdc_Ptr (*ti_sysbios_interfaces_ITaskSupport_start_FxnT)(xdc_Ptr, ti_sysbios_interfaces_ITaskSupport_FuncPtr, ti_sysbios_interfaces_ITaskSupport_FuncPtr, xdc_runtime_Error_Block*);
static inline ti_sysbios_interfaces_ITaskSupport_start_FxnT ti_sysbios_interfaces_ITaskSupport_start_fxnP( ti_sysbios_interfaces_ITaskSupport_Module __inst )
{
return (ti_sysbios_interfaces_ITaskSupport_start_FxnT)__inst->start;
}
/* swap_{FxnT,fxnP} */
typedef void (*ti_sysbios_interfaces_ITaskSupport_swap_FxnT)(xdc_Ptr*, xdc_Ptr*);
static inline ti_sysbios_interfaces_ITaskSupport_swap_FxnT ti_sysbios_interfaces_ITaskSupport_swap_fxnP( ti_sysbios_interfaces_ITaskSupport_Module __inst )
{
return (ti_sysbios_interfaces_ITaskSupport_swap_FxnT)__inst->swap;
}
/* checkStack_{FxnT,fxnP} */
typedef xdc_Bool (*ti_sysbios_interfaces_ITaskSupport_checkStack_FxnT)(xdc_Char*, xdc_SizeT);
static inline ti_sysbios_interfaces_ITaskSupport_checkStack_FxnT ti_sysbios_interfaces_ITaskSupport_checkStack_fxnP( ti_sysbios_interfaces_ITaskSupport_Module __inst )
{
return (ti_sysbios_interfaces_ITaskSupport_checkStack_FxnT)__inst->checkStack;
}
/* stackUsed_{FxnT,fxnP} */
typedef xdc_SizeT (*ti_sysbios_interfaces_ITaskSupport_stackUsed_FxnT)(xdc_Char*, xdc_SizeT);
static inline ti_sysbios_interfaces_ITaskSupport_stackUsed_FxnT ti_sysbios_interfaces_ITaskSupport_stackUsed_fxnP( ti_sysbios_interfaces_ITaskSupport_Module __inst )
{
return (ti_sysbios_interfaces_ITaskSupport_stackUsed_FxnT)__inst->stackUsed;
}
/* getStackAlignment_{FxnT,fxnP} */
typedef xdc_UInt (*ti_sysbios_interfaces_ITaskSupport_getStackAlignment_FxnT)(void);
static inline ti_sysbios_interfaces_ITaskSupport_getStackAlignment_FxnT ti_sysbios_interfaces_ITaskSupport_getStackAlignment_fxnP( ti_sysbios_interfaces_ITaskSupport_Module __inst )
{
return (ti_sysbios_interfaces_ITaskSupport_getStackAlignment_FxnT)__inst->getStackAlignment;
}
/* getDefaultStackSize_{FxnT,fxnP} */
typedef xdc_SizeT (*ti_sysbios_interfaces_ITaskSupport_getDefaultStackSize_FxnT)(void);
static inline ti_sysbios_interfaces_ITaskSupport_getDefaultStackSize_FxnT ti_sysbios_interfaces_ITaskSupport_getDefaultStackSize_fxnP( ti_sysbios_interfaces_ITaskSupport_Module __inst )
{
return (ti_sysbios_interfaces_ITaskSupport_getDefaultStackSize_FxnT)__inst->getDefaultStackSize;
}
/*
* ======== EPILOGUE ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-A71
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* CREATE ARGS
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* PER-INSTANCE TYPES
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== INCLUDES ========
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:03; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* PER-INSTANCE TYPES
* VIRTUAL FUNCTIONS
* FUNCTION STUBS
* FUNCTION SELECTORS
*
* EPILOGUE
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:01; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:28:59; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:28:59; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:01; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* VIRTUAL FUNCTIONS
* FUNCTION STUBS
* FUNCTION SELECTORS
*
* EPILOGUE
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:01; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-A71
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* CREATE ARGS
* PER-INSTANCE TYPES
* VIRTUAL FUNCTIONS
* FUNCTION STUBS
* FUNCTION SELECTORS
*
* EPILOGUE
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== INCLUDES ========
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:03; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* PER-INSTANCE TYPES
* VIRTUAL FUNCTIONS
* FUNCTION STUBS
* FUNCTION SELECTORS
*
* EPILOGUE
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:01; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:03; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* VIRTUAL FUNCTIONS
* FUNCTION STUBS
* FUNCTION SELECTORS
*
* EPILOGUE
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:01; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* ======== AUXILIARY DEFINITIONS ========
*/
/* FuncPtr */
typedef void (*ti_sysbios_interfaces_ITimer_FuncPtr)(xdc_UArg);
/* ANY */
/* StartMode */
enum ti_sysbios_interfaces_ITimer_StartMode {
ti_sysbios_interfaces_ITimer_StartMode_AUTO,
ti_sysbios_interfaces_ITimer_StartMode_USER
};
typedef enum ti_sysbios_interfaces_ITimer_StartMode ti_sysbios_interfaces_ITimer_StartMode;
/* RunMode */
enum ti_sysbios_interfaces_ITimer_RunMode {
ti_sysbios_interfaces_ITimer_RunMode_CONTINUOUS,
ti_sysbios_interfaces_ITimer_RunMode_ONESHOT,
ti_sysbios_interfaces_ITimer_RunMode_DYNAMIC
};
typedef enum ti_sysbios_interfaces_ITimer_RunMode ti_sysbios_interfaces_ITimer_RunMode;
/* Status */
enum ti_sysbios_interfaces_ITimer_Status {
ti_sysbios_interfaces_ITimer_Status_INUSE,
ti_sysbios_interfaces_ITimer_Status_FREE
};
typedef enum ti_sysbios_interfaces_ITimer_Status ti_sysbios_interfaces_ITimer_Status;
/* PeriodType */
enum ti_sysbios_interfaces_ITimer_PeriodType {
ti_sysbios_interfaces_ITimer_PeriodType_MICROSECS,
ti_sysbios_interfaces_ITimer_PeriodType_COUNTS
};
typedef enum ti_sysbios_interfaces_ITimer_PeriodType ti_sysbios_interfaces_ITimer_PeriodType;
/*
* ======== CREATE ARGS ========
*/
/* Args__create */
typedef struct ti_sysbios_interfaces_ITimer_Args__create {
xdc_Int id;
ti_sysbios_interfaces_ITimer_FuncPtr tickFxn;
} ti_sysbios_interfaces_ITimer_Args__create;
/*
* ======== PER-INSTANCE TYPES ========
*/
/* Params */
struct ti_sysbios_interfaces_ITimer_Params {
size_t __size;
const void *__self;
void *__fxns;
xdc_runtime_IInstance_Params *instance;
ti_sysbios_interfaces_ITimer_RunMode runMode;
ti_sysbios_interfaces_ITimer_StartMode startMode;
xdc_UArg arg;
xdc_UInt32 period;
ti_sysbios_interfaces_ITimer_PeriodType periodType;
xdc_runtime_Types_FreqHz extFreq;
};
/*
* ======== VIRTUAL FUNCTIONS ========
*/
/* Fxns__ */
struct ti_sysbios_interfaces_ITimer_Fxns__ {
xdc_runtime_Types_Base* __base;
const xdc_runtime_Types_SysFxns2 *__sysp;
xdc_UInt (*getNumTimers)(void);
ti_sysbios_interfaces_ITimer_Status (*getStatus)(xdc_UInt);
void (*startup)(void);
xdc_UInt32 (*getMaxTicks)(void*);
void (*setNextTick)(void*, xdc_UInt32);
void (*start)(void*);
void (*stop)(void*);
void (*setPeriod)(void*, xdc_UInt32);
xdc_Bool (*setPeriodMicroSecs)(void*, xdc_UInt32);
xdc_UInt32 (*getPeriod)(void*);
xdc_UInt32 (*getCount)(void*);
void (*getFreq)(void*, xdc_runtime_Types_FreqHz*);
ti_sysbios_interfaces_ITimer_FuncPtr (*getFunc)(void*, xdc_UArg*);
void (*setFunc)(void*, ti_sysbios_interfaces_ITimer_FuncPtr, xdc_UArg);
void (*trigger)(void*, xdc_UInt32);
xdc_UInt32 (*getExpiredCounts)(void*);
xdc_UInt32 (*getExpiredTicks)(void*, xdc_UInt32);
xdc_UInt32 (*getCurrentTick)(void*, xdc_Bool);
xdc_runtime_Types_SysFxns2 __sfxns;
};
/* Interface__BASE__C */
extern const xdc_runtime_Types_Base ti_sysbios_interfaces_ITimer_Interface__BASE__C;
/*
* ======== FUNCTION STUBS ========
*/
/* create */
extern ti_sysbios_interfaces_ITimer_Handle ti_sysbios_interfaces_ITimer_create(ti_sysbios_interfaces_ITimer_Module, xdc_Int id, ti_sysbios_interfaces_ITimer_FuncPtr tickFxn, const ti_sysbios_interfaces_ITimer_Params *, xdc_runtime_Error_Block *__eb);
/* delete */
extern void ti_sysbios_interfaces_ITimer_delete(ti_sysbios_interfaces_ITimer_Handle *);
/* Handle_to_Module */
static inline ti_sysbios_interfaces_ITimer_Module ti_sysbios_interfaces_ITimer_Handle_to_Module( ti_sysbios_interfaces_ITimer_Handle inst )
{
return inst->__fxns;
}
/* Handle_label */
static inline xdc_runtime_Types_Label *ti_sysbios_interfaces_ITimer_Handle_label( ti_sysbios_interfaces_ITimer_Handle inst, xdc_runtime_Types_Label *lab )
{
return inst->__fxns->__sysp->__label(inst, lab);
}
/* Module_id */
static inline xdc_runtime_Types_ModuleId ti_sysbios_interfaces_ITimer_Module_id( ti_sysbios_interfaces_ITimer_Module mod )
{
return mod->__sysp->__mid;
}
/* getNumTimers */
static inline xdc_UInt ti_sysbios_interfaces_ITimer_getNumTimers( ti_sysbios_interfaces_ITimer_Module __inst )
{
return __inst->getNumTimers();
}
/* getStatus */
static inline ti_sysbios_interfaces_ITimer_Status ti_sysbios_interfaces_ITimer_getStatus( ti_sysbios_interfaces_ITimer_Module __inst, xdc_UInt id )
{
return __inst->getStatus(id);
}
/* startup */
static inline void ti_sysbios_interfaces_ITimer_startup( ti_sysbios_interfaces_ITimer_Module __inst )
{
__inst->startup();
}
/* getMaxTicks */
static inline xdc_UInt32 ti_sysbios_interfaces_ITimer_getMaxTicks( ti_sysbios_interfaces_ITimer_Handle __inst )
{
return __inst->__fxns->getMaxTicks((void*)__inst);
}
/* setNextTick */
static inline void ti_sysbios_interfaces_ITimer_setNextTick( ti_sysbios_interfaces_ITimer_Handle __inst, xdc_UInt32 ticks )
{
__inst->__fxns->setNextTick((void*)__inst, ticks);
}
/* start */
static inline void ti_sysbios_interfaces_ITimer_start( ti_sysbios_interfaces_ITimer_Handle __inst )
{
__inst->__fxns->start((void*)__inst);
}
/* stop */
static inline void ti_sysbios_interfaces_ITimer_stop( ti_sysbios_interfaces_ITimer_Handle __inst )
{
__inst->__fxns->stop((void*)__inst);
}
/* setPeriod */
static inline void ti_sysbios_interfaces_ITimer_setPeriod( ti_sysbios_interfaces_ITimer_Handle __inst, xdc_UInt32 period )
{
__inst->__fxns->setPeriod((void*)__inst, period);
}
/* setPeriodMicroSecs */
static inline xdc_Bool ti_sysbios_interfaces_ITimer_setPeriodMicroSecs( ti_sysbios_interfaces_ITimer_Handle __inst, xdc_UInt32 microsecs )
{
return __inst->__fxns->setPeriodMicroSecs((void*)__inst, microsecs);
}
/* getPeriod */
static inline xdc_UInt32 ti_sysbios_interfaces_ITimer_getPeriod( ti_sysbios_interfaces_ITimer_Handle __inst )
{
return __inst->__fxns->getPeriod((void*)__inst);
}
/* getCount */
static inline xdc_UInt32 ti_sysbios_interfaces_ITimer_getCount( ti_sysbios_interfaces_ITimer_Handle __inst )
{
return __inst->__fxns->getCount((void*)__inst);
}
/* getFreq */
static inline void ti_sysbios_interfaces_ITimer_getFreq( ti_sysbios_interfaces_ITimer_Handle __inst, xdc_runtime_Types_FreqHz *freq )
{
__inst->__fxns->getFreq((void*)__inst, freq);
}
/* getFunc */
static inline ti_sysbios_interfaces_ITimer_FuncPtr ti_sysbios_interfaces_ITimer_getFunc( ti_sysbios_interfaces_ITimer_Handle __inst, xdc_UArg *arg )
{
return __inst->__fxns->getFunc((void*)__inst, arg);
}
/* setFunc */
static inline void ti_sysbios_interfaces_ITimer_setFunc( ti_sysbios_interfaces_ITimer_Handle __inst, ti_sysbios_interfaces_ITimer_FuncPtr fxn, xdc_UArg arg )
{
__inst->__fxns->setFunc((void*)__inst, fxn, arg);
}
/* trigger */
static inline void ti_sysbios_interfaces_ITimer_trigger( ti_sysbios_interfaces_ITimer_Handle __inst, xdc_UInt32 cycles )
{
__inst->__fxns->trigger((void*)__inst, cycles);
}
/* getExpiredCounts */
static inline xdc_UInt32 ti_sysbios_interfaces_ITimer_getExpiredCounts( ti_sysbios_interfaces_ITimer_Handle __inst )
{
return __inst->__fxns->getExpiredCounts((void*)__inst);
}
/* getExpiredTicks */
static inline xdc_UInt32 ti_sysbios_interfaces_ITimer_getExpiredTicks( ti_sysbios_interfaces_ITimer_Handle __inst, xdc_UInt32 tickPeriod )
{
return __inst->__fxns->getExpiredTicks((void*)__inst, tickPeriod);
}
/* getCurrentTick */
static inline xdc_UInt32 ti_sysbios_interfaces_ITimer_getCurrentTick( ti_sysbios_interfaces_ITimer_Handle __inst, xdc_Bool save )
{
return __inst->__fxns->getCurrentTick((void*)__inst, save);
}
/*
* ======== FUNCTION SELECTORS ========
*/
/* These functions return function pointers for module and instance functions.
* The functions accept modules and instances declared as types defined in this
* interface, but they return functions defined for the actual objects passed
* as parameters. These functions are not invoked by any generated code or
* XDCtools internal code.
*/
/* getNumTimers_{FxnT,fxnP} */
typedef xdc_UInt (*ti_sysbios_interfaces_ITimer_getNumTimers_FxnT)(void);
static inline ti_sysbios_interfaces_ITimer_getNumTimers_FxnT ti_sysbios_interfaces_ITimer_getNumTimers_fxnP( ti_sysbios_interfaces_ITimer_Module __inst )
{
return (ti_sysbios_interfaces_ITimer_getNumTimers_FxnT)__inst->getNumTimers;
}
/* getStatus_{FxnT,fxnP} */
typedef ti_sysbios_interfaces_ITimer_Status (*ti_sysbios_interfaces_ITimer_getStatus_FxnT)(xdc_UInt);
static inline ti_sysbios_interfaces_ITimer_getStatus_FxnT ti_sysbios_interfaces_ITimer_getStatus_fxnP( ti_sysbios_interfaces_ITimer_Module __inst )
{
return (ti_sysbios_interfaces_ITimer_getStatus_FxnT)__inst->getStatus;
}
/* startup_{FxnT,fxnP} */
typedef void (*ti_sysbios_interfaces_ITimer_startup_FxnT)(void);
static inline ti_sysbios_interfaces_ITimer_startup_FxnT ti_sysbios_interfaces_ITimer_startup_fxnP( ti_sysbios_interfaces_ITimer_Module __inst )
{
return (ti_sysbios_interfaces_ITimer_startup_FxnT)__inst->startup;
}
/* getMaxTicks_{FxnT,fxnP} */
typedef xdc_UInt32 (*ti_sysbios_interfaces_ITimer_getMaxTicks_FxnT)(void *);
static inline ti_sysbios_interfaces_ITimer_getMaxTicks_FxnT ti_sysbios_interfaces_ITimer_getMaxTicks_fxnP( ti_sysbios_interfaces_ITimer_Handle __inst )
{
return (ti_sysbios_interfaces_ITimer_getMaxTicks_FxnT)__inst->__fxns->getMaxTicks;
}
/* setNextTick_{FxnT,fxnP} */
typedef void (*ti_sysbios_interfaces_ITimer_setNextTick_FxnT)(void *, xdc_UInt32);
static inline ti_sysbios_interfaces_ITimer_setNextTick_FxnT ti_sysbios_interfaces_ITimer_setNextTick_fxnP( ti_sysbios_interfaces_ITimer_Handle __inst )
{
return (ti_sysbios_interfaces_ITimer_setNextTick_FxnT)__inst->__fxns->setNextTick;
}
/* start_{FxnT,fxnP} */
typedef void (*ti_sysbios_interfaces_ITimer_start_FxnT)(void *);
static inline ti_sysbios_interfaces_ITimer_start_FxnT ti_sysbios_interfaces_ITimer_start_fxnP( ti_sysbios_interfaces_ITimer_Handle __inst )
{
return (ti_sysbios_interfaces_ITimer_start_FxnT)__inst->__fxns->start;
}
/* stop_{FxnT,fxnP} */
typedef void (*ti_sysbios_interfaces_ITimer_stop_FxnT)(void *);
static inline ti_sysbios_interfaces_ITimer_stop_FxnT ti_sysbios_interfaces_ITimer_stop_fxnP( ti_sysbios_interfaces_ITimer_Handle __inst )
{
return (ti_sysbios_interfaces_ITimer_stop_FxnT)__inst->__fxns->stop;
}
/* setPeriod_{FxnT,fxnP} */
typedef void (*ti_sysbios_interfaces_ITimer_setPeriod_FxnT)(void *, xdc_UInt32);
static inline ti_sysbios_interfaces_ITimer_setPeriod_FxnT ti_sysbios_interfaces_ITimer_setPeriod_fxnP( ti_sysbios_interfaces_ITimer_Handle __inst )
{
return (ti_sysbios_interfaces_ITimer_setPeriod_FxnT)__inst->__fxns->setPeriod;
}
/* setPeriodMicroSecs_{FxnT,fxnP} */
typedef xdc_Bool (*ti_sysbios_interfaces_ITimer_setPeriodMicroSecs_FxnT)(void *, xdc_UInt32);
static inline ti_sysbios_interfaces_ITimer_setPeriodMicroSecs_FxnT ti_sysbios_interfaces_ITimer_setPeriodMicroSecs_fxnP( ti_sysbios_interfaces_ITimer_Handle __inst )
{
return (ti_sysbios_interfaces_ITimer_setPeriodMicroSecs_FxnT)__inst->__fxns->setPeriodMicroSecs;
}
/* getPeriod_{FxnT,fxnP} */
typedef xdc_UInt32 (*ti_sysbios_interfaces_ITimer_getPeriod_FxnT)(void *);
static inline ti_sysbios_interfaces_ITimer_getPeriod_FxnT ti_sysbios_interfaces_ITimer_getPeriod_fxnP( ti_sysbios_interfaces_ITimer_Handle __inst )
{
return (ti_sysbios_interfaces_ITimer_getPeriod_FxnT)__inst->__fxns->getPeriod;
}
/* getCount_{FxnT,fxnP} */
typedef xdc_UInt32 (*ti_sysbios_interfaces_ITimer_getCount_FxnT)(void *);
static inline ti_sysbios_interfaces_ITimer_getCount_FxnT ti_sysbios_interfaces_ITimer_getCount_fxnP( ti_sysbios_interfaces_ITimer_Handle __inst )
{
return (ti_sysbios_interfaces_ITimer_getCount_FxnT)__inst->__fxns->getCount;
}
/* getFreq_{FxnT,fxnP} */
typedef void (*ti_sysbios_interfaces_ITimer_getFreq_FxnT)(void *, xdc_runtime_Types_FreqHz*);
static inline ti_sysbios_interfaces_ITimer_getFreq_FxnT ti_sysbios_interfaces_ITimer_getFreq_fxnP( ti_sysbios_interfaces_ITimer_Handle __inst )
{
return (ti_sysbios_interfaces_ITimer_getFreq_FxnT)__inst->__fxns->getFreq;
}
/* getFunc_{FxnT,fxnP} */
typedef ti_sysbios_interfaces_ITimer_FuncPtr (*ti_sysbios_interfaces_ITimer_getFunc_FxnT)(void *, xdc_UArg*);
static inline ti_sysbios_interfaces_ITimer_getFunc_FxnT ti_sysbios_interfaces_ITimer_getFunc_fxnP( ti_sysbios_interfaces_ITimer_Handle __inst )
{
return (ti_sysbios_interfaces_ITimer_getFunc_FxnT)__inst->__fxns->getFunc;
}
/* setFunc_{FxnT,fxnP} */
typedef void (*ti_sysbios_interfaces_ITimer_setFunc_FxnT)(void *, ti_sysbios_interfaces_ITimer_FuncPtr, xdc_UArg);
static inline ti_sysbios_interfaces_ITimer_setFunc_FxnT ti_sysbios_interfaces_ITimer_setFunc_fxnP( ti_sysbios_interfaces_ITimer_Handle __inst )
{
return (ti_sysbios_interfaces_ITimer_setFunc_FxnT)__inst->__fxns->setFunc;
}
/* trigger_{FxnT,fxnP} */
typedef void (*ti_sysbios_interfaces_ITimer_trigger_FxnT)(void *, xdc_UInt32);
static inline ti_sysbios_interfaces_ITimer_trigger_FxnT ti_sysbios_interfaces_ITimer_trigger_fxnP( ti_sysbios_interfaces_ITimer_Handle __inst )
{
return (ti_sysbios_interfaces_ITimer_trigger_FxnT)__inst->__fxns->trigger;
}
/* getExpiredCounts_{FxnT,fxnP} */
typedef xdc_UInt32 (*ti_sysbios_interfaces_ITimer_getExpiredCounts_FxnT)(void *);
static inline ti_sysbios_interfaces_ITimer_getExpiredCounts_FxnT ti_sysbios_interfaces_ITimer_getExpiredCounts_fxnP( ti_sysbios_interfaces_ITimer_Handle __inst )
{
return (ti_sysbios_interfaces_ITimer_getExpiredCounts_FxnT)__inst->__fxns->getExpiredCounts;
}
/* getExpiredTicks_{FxnT,fxnP} */
typedef xdc_UInt32 (*ti_sysbios_interfaces_ITimer_getExpiredTicks_FxnT)(void *, xdc_UInt32);
static inline ti_sysbios_interfaces_ITimer_getExpiredTicks_FxnT ti_sysbios_interfaces_ITimer_getExpiredTicks_fxnP( ti_sysbios_interfaces_ITimer_Handle __inst )
{
return (ti_sysbios_interfaces_ITimer_getExpiredTicks_FxnT)__inst->__fxns->getExpiredTicks;
}
/* getCurrentTick_{FxnT,fxnP} */
typedef xdc_UInt32 (*ti_sysbios_interfaces_ITimer_getCurrentTick_FxnT)(void *, xdc_Bool);
static inline ti_sysbios_interfaces_ITimer_getCurrentTick_FxnT ti_sysbios_interfaces_ITimer_getCurrentTick_fxnP( ti_sysbios_interfaces_ITimer_Handle __inst )
{
return (ti_sysbios_interfaces_ITimer_getCurrentTick_FxnT)__inst->__fxns->getCurrentTick;
}
/*
* ======== EPILOGUE ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-A71
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* PER-INSTANCE TYPES
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-A71
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* CREATE ARGS
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* PER-INSTANCE TYPES
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== INCLUDES ========
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:03; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* PER-INSTANCE TYPES
* VIRTUAL FUNCTIONS
* FUNCTION STUBS
* FUNCTION SELECTORS
*
* EPILOGUE
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:01; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:00; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:28:59; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:28:59; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:01; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-A71
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* PER-INSTANCE TYPES
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* VIRTUAL FUNCTIONS
* FUNCTION STUBS
* FUNCTION SELECTORS
*
* EPILOGUE
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:01; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* ======== AUXILIARY DEFINITIONS ========
*/
/* FuncPtr */
typedef void (*ti_sysbios_knl_Swi_FuncPtr)(xdc_UArg, xdc_UArg);
/* HookSet */
struct ti_sysbios_knl_Swi_HookSet {
void (*registerFxn)(xdc_Int);
void (*createFxn)(ti_sysbios_knl_Swi_Handle, xdc_runtime_Error_Block*);
void (*readyFxn)(ti_sysbios_knl_Swi_Handle);
void (*beginFxn)(ti_sysbios_knl_Swi_Handle);
void (*endFxn)(ti_sysbios_knl_Swi_Handle);
void (*deleteFxn)(ti_sysbios_knl_Swi_Handle);
};
/*
* ======== CREATE ARGS ========
*/
/* Args__create */
typedef struct ti_sysbios_knl_Swi_Args__create {
ti_sysbios_knl_Swi_FuncPtr swiFxn;
} ti_sysbios_knl_Swi_Args__create;
/*
* ======== INTERNAL DEFINITIONS ========
*/
/* Instance_State */
typedef xdc_Ptr __T1_ti_sysbios_knl_Swi_Instance_State__hookEnv;
typedef xdc_Ptr *__ARRAY1_ti_sysbios_knl_Swi_Instance_State__hookEnv;
typedef __ARRAY1_ti_sysbios_knl_Swi_Instance_State__hookEnv __TA_ti_sysbios_knl_Swi_Instance_State__hookEnv;
/* Module_State */
typedef ti_sysbios_knl_Queue_Instance_State __T1_ti_sysbios_knl_Swi_Module_State__readyQ;
typedef ti_sysbios_knl_Queue_Instance_State *__ARRAY1_ti_sysbios_knl_Swi_Module_State__readyQ;
typedef __ARRAY1_ti_sysbios_knl_Swi_Module_State__readyQ __TA_ti_sysbios_knl_Swi_Module_State__readyQ;
typedef ti_sysbios_knl_Swi_Handle __T1_ti_sysbios_knl_Swi_Module_State__constructedSwis;
typedef ti_sysbios_knl_Swi_Handle *__ARRAY1_ti_sysbios_knl_Swi_Module_State__constructedSwis;
typedef __ARRAY1_ti_sysbios_knl_Swi_Module_State__constructedSwis __TA_ti_sysbios_knl_Swi_Module_State__constructedSwis;
/*
* ======== MODULE-WIDE CONFIGS ========
*/
/* Module__diagsEnabled */
typedef xdc_Bits32 CT__ti_sysbios_knl_Swi_Module__diagsEnabled;
extern const CT__ti_sysbios_knl_Swi_Module__diagsEnabled ti_sysbios_knl_Swi_Module__diagsEnabled__C;
/* Module__diagsIncluded */
typedef xdc_Bits32 CT__ti_sysbios_knl_Swi_Module__diagsIncluded;
extern const CT__ti_sysbios_knl_Swi_Module__diagsIncluded ti_sysbios_knl_Swi_Module__diagsIncluded__C;
/* Module__diagsMask */
typedef xdc_Bits16 *CT__ti_sysbios_knl_Swi_Module__diagsMask;
extern const CT__ti_sysbios_knl_Swi_Module__diagsMask ti_sysbios_knl_Swi_Module__diagsMask__C;
/* Module__gateObj */
typedef xdc_Ptr CT__ti_sysbios_knl_Swi_Module__gateObj;
extern const CT__ti_sysbios_knl_Swi_Module__gateObj ti_sysbios_knl_Swi_Module__gateObj__C;
/* Module__gatePrms */
typedef xdc_Ptr CT__ti_sysbios_knl_Swi_Module__gatePrms;
extern const CT__ti_sysbios_knl_Swi_Module__gatePrms ti_sysbios_knl_Swi_Module__gatePrms__C;
/* Module__id */
typedef xdc_runtime_Types_ModuleId CT__ti_sysbios_knl_Swi_Module__id;
extern const CT__ti_sysbios_knl_Swi_Module__id ti_sysbios_knl_Swi_Module__id__C;
/* Module__loggerDefined */
typedef xdc_Bool CT__ti_sysbios_knl_Swi_Module__loggerDefined;
extern const CT__ti_sysbios_knl_Swi_Module__loggerDefined ti_sysbios_knl_Swi_Module__loggerDefined__C;
/* Module__loggerObj */
typedef xdc_Ptr CT__ti_sysbios_knl_Swi_Module__loggerObj;
extern const CT__ti_sysbios_knl_Swi_Module__loggerObj ti_sysbios_knl_Swi_Module__loggerObj__C;
/* Module__loggerFxn0 */
typedef xdc_runtime_Types_LoggerFxn0 CT__ti_sysbios_knl_Swi_Module__loggerFxn0;
extern const CT__ti_sysbios_knl_Swi_Module__loggerFxn0 ti_sysbios_knl_Swi_Module__loggerFxn0__C;
/* Module__loggerFxn1 */
typedef xdc_runtime_Types_LoggerFxn1 CT__ti_sysbios_knl_Swi_Module__loggerFxn1;
extern const CT__ti_sysbios_knl_Swi_Module__loggerFxn1 ti_sysbios_knl_Swi_Module__loggerFxn1__C;
/* Module__loggerFxn2 */
typedef xdc_runtime_Types_LoggerFxn2 CT__ti_sysbios_knl_Swi_Module__loggerFxn2;
extern const CT__ti_sysbios_knl_Swi_Module__loggerFxn2 ti_sysbios_knl_Swi_Module__loggerFxn2__C;
/* Module__loggerFxn4 */
typedef xdc_runtime_Types_LoggerFxn4 CT__ti_sysbios_knl_Swi_Module__loggerFxn4;
extern const CT__ti_sysbios_knl_Swi_Module__loggerFxn4 ti_sysbios_knl_Swi_Module__loggerFxn4__C;
/* Module__loggerFxn8 */
typedef xdc_runtime_Types_LoggerFxn8 CT__ti_sysbios_knl_Swi_Module__loggerFxn8;
extern const CT__ti_sysbios_knl_Swi_Module__loggerFxn8 ti_sysbios_knl_Swi_Module__loggerFxn8__C;
/* Module__startupDoneFxn */
typedef xdc_Bool (*CT__ti_sysbios_knl_Swi_Module__startupDoneFxn)(void);
extern const CT__ti_sysbios_knl_Swi_Module__startupDoneFxn ti_sysbios_knl_Swi_Module__startupDoneFxn__C;
/* Object__count */
typedef xdc_Int CT__ti_sysbios_knl_Swi_Object__count;
extern const CT__ti_sysbios_knl_Swi_Object__count ti_sysbios_knl_Swi_Object__count__C;
/* Object__heap */
typedef xdc_runtime_IHeap_Handle CT__ti_sysbios_knl_Swi_Object__heap;
extern const CT__ti_sysbios_knl_Swi_Object__heap ti_sysbios_knl_Swi_Object__heap__C;
/* Object__sizeof */
typedef xdc_SizeT CT__ti_sysbios_knl_Swi_Object__sizeof;
extern const CT__ti_sysbios_knl_Swi_Object__sizeof ti_sysbios_knl_Swi_Object__sizeof__C;
/* Object__table */
typedef xdc_Ptr CT__ti_sysbios_knl_Swi_Object__table;
extern const CT__ti_sysbios_knl_Swi_Object__table ti_sysbios_knl_Swi_Object__table__C;
/* LM_begin */
typedef xdc_runtime_Log_Event CT__ti_sysbios_knl_Swi_LM_begin;
extern const CT__ti_sysbios_knl_Swi_LM_begin ti_sysbios_knl_Swi_LM_begin__C;
/* LD_end */
typedef xdc_runtime_Log_Event CT__ti_sysbios_knl_Swi_LD_end;
extern const CT__ti_sysbios_knl_Swi_LD_end ti_sysbios_knl_Swi_LD_end__C;
/* LM_post */
typedef xdc_runtime_Log_Event CT__ti_sysbios_knl_Swi_LM_post;
extern const CT__ti_sysbios_knl_Swi_LM_post ti_sysbios_knl_Swi_LM_post__C;
/* A_swiDisabled */
typedef xdc_runtime_Assert_Id CT__ti_sysbios_knl_Swi_A_swiDisabled;
extern const CT__ti_sysbios_knl_Swi_A_swiDisabled ti_sysbios_knl_Swi_A_swiDisabled__C;
/* A_badPriority */
typedef xdc_runtime_Assert_Id CT__ti_sysbios_knl_Swi_A_badPriority;
extern const CT__ti_sysbios_knl_Swi_A_badPriority ti_sysbios_knl_Swi_A_badPriority__C;
/* numPriorities */
typedef xdc_UInt CT__ti_sysbios_knl_Swi_numPriorities;
extern const CT__ti_sysbios_knl_Swi_numPriorities ti_sysbios_knl_Swi_numPriorities__C;
/* hooks */
typedef ti_sysbios_knl_Swi_HookSet __T1_ti_sysbios_knl_Swi_hooks;
typedef struct { int length; ti_sysbios_knl_Swi_HookSet *elem; } __ARRAY1_ti_sysbios_knl_Swi_hooks;
typedef __ARRAY1_ti_sysbios_knl_Swi_hooks __TA_ti_sysbios_knl_Swi_hooks;
typedef __TA_ti_sysbios_knl_Swi_hooks CT__ti_sysbios_knl_Swi_hooks;
extern const CT__ti_sysbios_knl_Swi_hooks ti_sysbios_knl_Swi_hooks__C;
/* taskDisable */
typedef xdc_UInt (*CT__ti_sysbios_knl_Swi_taskDisable)(void);
extern const CT__ti_sysbios_knl_Swi_taskDisable ti_sysbios_knl_Swi_taskDisable__C;
/* taskRestore */
typedef void (*CT__ti_sysbios_knl_Swi_taskRestore)(xdc_UInt);
extern const CT__ti_sysbios_knl_Swi_taskRestore ti_sysbios_knl_Swi_taskRestore__C;
/* numConstructedSwis */
typedef xdc_UInt CT__ti_sysbios_knl_Swi_numConstructedSwis;
extern const CT__ti_sysbios_knl_Swi_numConstructedSwis ti_sysbios_knl_Swi_numConstructedSwis__C;
/*
* ======== PER-INSTANCE TYPES ========
*/
/* Params */
struct ti_sysbios_knl_Swi_Params {
size_t __size;
const void *__self;
void *__fxns;
xdc_runtime_IInstance_Params *instance;
xdc_UArg arg0;
xdc_UArg arg1;
xdc_UInt priority;
xdc_UInt trigger;
xdc_runtime_IInstance_Params __iprms;
};
/* Struct */
struct ti_sysbios_knl_Swi_Struct {
ti_sysbios_knl_Queue_Elem __f0;
ti_sysbios_knl_Swi_FuncPtr __f1;
xdc_UArg __f2;
xdc_UArg __f3;
xdc_UInt __f4;
xdc_UInt __f5;
xdc_Bool __f6;
xdc_UInt __f7;
xdc_UInt __f8;
ti_sysbios_knl_Queue_Handle __f9;
__TA_ti_sysbios_knl_Swi_Instance_State__hookEnv __f10;
xdc_runtime_Types_CordAddr __name;
};
/*
* ======== FUNCTION DECLARATIONS ========
*/
/* Module_startup */
extern xdc_Int ti_sysbios_knl_Swi_Module_startup__E( xdc_Int state );
extern xdc_Int ti_sysbios_knl_Swi_Module_startup__F( xdc_Int state );
/* Instance_init__E */
extern xdc_Int ti_sysbios_knl_Swi_Instance_init__E(ti_sysbios_knl_Swi_Object *, ti_sysbios_knl_Swi_FuncPtr swiFxn, const ti_sysbios_knl_Swi_Params *, xdc_runtime_Error_Block *);
/* Instance_finalize__E */
extern void ti_sysbios_knl_Swi_Instance_finalize__E( ti_sysbios_knl_Swi_Object* , int );
/* Handle__label__S */
extern xdc_runtime_Types_Label *ti_sysbios_knl_Swi_Handle__label__S( xdc_Ptr obj, xdc_runtime_Types_Label *lab );
/* Module__startupDone__S */
extern xdc_Bool ti_sysbios_knl_Swi_Module__startupDone__S( void );
/* Object__create__S */
extern xdc_Ptr ti_sysbios_knl_Swi_Object__create__S( xdc_Ptr __oa, xdc_SizeT __osz, xdc_Ptr __aa, const xdc_UChar *__pa, xdc_SizeT __psz, xdc_runtime_Error_Block *__eb );
/* create */
extern ti_sysbios_knl_Swi_Handle ti_sysbios_knl_Swi_create( ti_sysbios_knl_Swi_FuncPtr swiFxn, const ti_sysbios_knl_Swi_Params *__prms, xdc_runtime_Error_Block *__eb );
/* construct */
extern void ti_sysbios_knl_Swi_construct( ti_sysbios_knl_Swi_Struct *__obj, ti_sysbios_knl_Swi_FuncPtr swiFxn, const ti_sysbios_knl_Swi_Params *__prms, xdc_runtime_Error_Block *__eb );
/* Object__delete__S */
extern void ti_sysbios_knl_Swi_Object__delete__S( xdc_Ptr instp );
/* delete */
extern void ti_sysbios_knl_Swi_delete(ti_sysbios_knl_Swi_Handle *instp);
/* Object__destruct__S */
extern void ti_sysbios_knl_Swi_Object__destruct__S( xdc_Ptr objp );
/* destruct */
extern void ti_sysbios_knl_Swi_destruct(ti_sysbios_knl_Swi_Struct *obj);
/* Object__get__S */
extern xdc_Ptr ti_sysbios_knl_Swi_Object__get__S( xdc_Ptr oarr, xdc_Int i );
/* Object__first__S */
extern xdc_Ptr ti_sysbios_knl_Swi_Object__first__S( void );
/* Object__next__S */
extern xdc_Ptr ti_sysbios_knl_Swi_Object__next__S( xdc_Ptr obj );
/* Params__init__S */
extern void ti_sysbios_knl_Swi_Params__init__S( xdc_Ptr dst, const void *src, xdc_SizeT psz, xdc_SizeT isz );
/* startup__E */
extern void ti_sysbios_knl_Swi_startup__E( void );
/* enabled__E */
extern xdc_Bool ti_sysbios_knl_Swi_enabled__E( void );
/* unlockSched__E */
extern void ti_sysbios_knl_Swi_unlockSched__E( void );
/* disable__E */
extern xdc_UInt ti_sysbios_knl_Swi_disable__E( void );
/* enable__E */
extern void ti_sysbios_knl_Swi_enable__E( void );
/* restore__E */
extern void ti_sysbios_knl_Swi_restore__E( xdc_UInt key );
/* restoreHwi__E */
extern void ti_sysbios_knl_Swi_restoreHwi__E( xdc_UInt key );
/* self__E */
extern ti_sysbios_knl_Swi_Handle ti_sysbios_knl_Swi_self__E( void );
/* getTrigger__E */
extern xdc_UInt ti_sysbios_knl_Swi_getTrigger__E( void );
/* raisePri__E */
extern xdc_UInt ti_sysbios_knl_Swi_raisePri__E( xdc_UInt priority );
/* restorePri__E */
extern void ti_sysbios_knl_Swi_restorePri__E( xdc_UInt key );
/* andn__E */
extern void ti_sysbios_knl_Swi_andn__E( ti_sysbios_knl_Swi_Handle __inst, xdc_UInt mask );
/* dec__E */
extern void ti_sysbios_knl_Swi_dec__E( ti_sysbios_knl_Swi_Handle __inst );
/* getHookContext__E */
extern xdc_Ptr ti_sysbios_knl_Swi_getHookContext__E( ti_sysbios_knl_Swi_Handle __inst, xdc_Int id );
/* setHookContext__E */
extern void ti_sysbios_knl_Swi_setHookContext__E( ti_sysbios_knl_Swi_Handle __inst, xdc_Int id, xdc_Ptr hookContext );
/* getPri__E */
extern xdc_UInt ti_sysbios_knl_Swi_getPri__E( ti_sysbios_knl_Swi_Handle __inst );
/* getFunc__E */
extern ti_sysbios_knl_Swi_FuncPtr ti_sysbios_knl_Swi_getFunc__E( ti_sysbios_knl_Swi_Handle __inst, xdc_UArg *arg0, xdc_UArg *arg1 );
/* getAttrs__E */
extern void ti_sysbios_knl_Swi_getAttrs__E( ti_sysbios_knl_Swi_Handle __inst, ti_sysbios_knl_Swi_FuncPtr *swiFxn, ti_sysbios_knl_Swi_Params *params );
/* setAttrs__E */
extern void ti_sysbios_knl_Swi_setAttrs__E( ti_sysbios_knl_Swi_Handle __inst, ti_sysbios_knl_Swi_FuncPtr swiFxn, ti_sysbios_knl_Swi_Params *params );
/* inc__E */
extern void ti_sysbios_knl_Swi_inc__E( ti_sysbios_knl_Swi_Handle __inst );
/* or__E */
extern void ti_sysbios_knl_Swi_or__E( ti_sysbios_knl_Swi_Handle __inst, xdc_UInt mask );
/* post__E */
extern void ti_sysbios_knl_Swi_post__E( ti_sysbios_knl_Swi_Handle __inst );
/* schedule__I */
extern void ti_sysbios_knl_Swi_schedule__I( void );
/* runLoop__I */
extern void ti_sysbios_knl_Swi_runLoop__I( void );
/* run__I */
extern void ti_sysbios_knl_Swi_run__I( ti_sysbios_knl_Swi_Object *swi );
/* postInit__I */
extern xdc_Int ti_sysbios_knl_Swi_postInit__I( ti_sysbios_knl_Swi_Object *swi, xdc_runtime_Error_Block *eb );
/* restoreSMP__I */
extern void ti_sysbios_knl_Swi_restoreSMP__I( void );
/*
* ======== SYSTEM FUNCTIONS ========
*/
/* Module_startupDone */
/* Object_heap */
/* Module_heap */
/* Module_id */
static inline CT__ti_sysbios_knl_Swi_Module__id ti_sysbios_knl_Swi_Module_id( void )
{
return ti_sysbios_knl_Swi_Module__id__C;
}
/* Module_hasMask */
static inline xdc_Bool ti_sysbios_knl_Swi_Module_hasMask( void )
{
return ti_sysbios_knl_Swi_Module__diagsMask__C != 0;
}
/* Module_getMask */
static inline xdc_Bits16 ti_sysbios_knl_Swi_Module_getMask( void )
{
return ti_sysbios_knl_Swi_Module__diagsMask__C != 0 ? *ti_sysbios_knl_Swi_Module__diagsMask__C : 0;
}
/* Module_setMask */
static inline void ti_sysbios_knl_Swi_Module_setMask( xdc_Bits16 mask )
{
if (ti_sysbios_knl_Swi_Module__diagsMask__C != 0) *ti_sysbios_knl_Swi_Module__diagsMask__C = mask;
}
/* Params_init */
static inline void ti_sysbios_knl_Swi_Params_init( ti_sysbios_knl_Swi_Params *prms )
{
if (prms) {
ti_sysbios_knl_Swi_Params__init__S(prms, 0, sizeof(ti_sysbios_knl_Swi_Params), sizeof(xdc_runtime_IInstance_Params));
}
}
/* Params_copy */
static inline void ti_sysbios_knl_Swi_Params_copy(ti_sysbios_knl_Swi_Params *dst, const ti_sysbios_knl_Swi_Params *src)
{
if (dst) {
ti_sysbios_knl_Swi_Params__init__S(dst, (const void *)src, sizeof(ti_sysbios_knl_Swi_Params), sizeof(xdc_runtime_IInstance_Params));
}
}
/* Object_count */
/* Object_sizeof */
/* Object_get */
static inline ti_sysbios_knl_Swi_Handle ti_sysbios_knl_Swi_Object_get(ti_sysbios_knl_Swi_Instance_State *oarr, int i)
{
return (ti_sysbios_knl_Swi_Handle)ti_sysbios_knl_Swi_Object__get__S(oarr, i);
}
/* Object_first */
static inline ti_sysbios_knl_Swi_Handle ti_sysbios_knl_Swi_Object_first( void )
{
return (ti_sysbios_knl_Swi_Handle)ti_sysbios_knl_Swi_Object__first__S();
}
/* Object_next */
static inline ti_sysbios_knl_Swi_Handle ti_sysbios_knl_Swi_Object_next( ti_sysbios_knl_Swi_Object *obj )
{
return (ti_sysbios_knl_Swi_Handle)ti_sysbios_knl_Swi_Object__next__S(obj);
}
/* Handle_label */
static inline xdc_runtime_Types_Label *ti_sysbios_knl_Swi_Handle_label( ti_sysbios_knl_Swi_Handle inst, xdc_runtime_Types_Label *lab )
{
return ti_sysbios_knl_Swi_Handle__label__S(inst, lab);
}
/* Handle_name */
static inline xdc_String ti_sysbios_knl_Swi_Handle_name( ti_sysbios_knl_Swi_Handle inst )
{
xdc_runtime_Types_Label lab;
return ti_sysbios_knl_Swi_Handle__label__S(inst, &lab)->iname;
}
/* handle */
static inline ti_sysbios_knl_Swi_Handle ti_sysbios_knl_Swi_handle( ti_sysbios_knl_Swi_Struct *str )
{
return (ti_sysbios_knl_Swi_Handle)str;
}
/* struct */
static inline ti_sysbios_knl_Swi_Struct *ti_sysbios_knl_Swi_struct( ti_sysbios_knl_Swi_Handle inst )
{
return (ti_sysbios_knl_Swi_Struct*)inst;
}
/*
* ======== EPILOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-A71
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* CREATE ARGS
* MODULE-WIDE CONFIGS
* PER-INSTANCE TYPES
* VIRTUAL FUNCTIONS
* FUNCTION DECLARATIONS
* CONVERTORS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== INCLUDES ========
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:03; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* PER-INSTANCE TYPES
* VIRTUAL FUNCTIONS
* FUNCTION STUBS
* FUNCTION SELECTORS
*
* EPILOGUE
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:01; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-A71
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* CREATE ARGS
* PER-INSTANCE TYPES
* VIRTUAL FUNCTIONS
* FUNCTION STUBS
* FUNCTION SELECTORS
*
* EPILOGUE
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* ======== AUXILIARY DEFINITIONS ========
*/
/* FuncPtr */
typedef ti_sysbios_interfaces_ITimer_FuncPtr ti_sysbios_knl_Clock_TimerProxy_FuncPtr;
/* ANY */
/* StartMode */
typedef ti_sysbios_interfaces_ITimer_StartMode ti_sysbios_knl_Clock_TimerProxy_StartMode;
/* RunMode */
typedef ti_sysbios_interfaces_ITimer_RunMode ti_sysbios_knl_Clock_TimerProxy_RunMode;
/* Status */
typedef ti_sysbios_interfaces_ITimer_Status ti_sysbios_knl_Clock_TimerProxy_Status;
/* PeriodType */
typedef ti_sysbios_interfaces_ITimer_PeriodType ti_sysbios_knl_Clock_TimerProxy_PeriodType;
/*
* ======== CREATE ARGS ========
*/
/* Args__create */
typedef struct ti_sysbios_knl_Clock_TimerProxy_Args__create {
xdc_Int id;
ti_sysbios_interfaces_ITimer_FuncPtr tickFxn;
} ti_sysbios_knl_Clock_TimerProxy_Args__create;
/*
* ======== MODULE-WIDE CONFIGS ========
*/
/* Module__diagsEnabled */
typedef xdc_Bits32 CT__ti_sysbios_knl_Clock_TimerProxy_Module__diagsEnabled;
extern const CT__ti_sysbios_knl_Clock_TimerProxy_Module__diagsEnabled ti_sysbios_knl_Clock_TimerProxy_Module__diagsEnabled__C;
/* Module__diagsIncluded */
typedef xdc_Bits32 CT__ti_sysbios_knl_Clock_TimerProxy_Module__diagsIncluded;
extern const CT__ti_sysbios_knl_Clock_TimerProxy_Module__diagsIncluded ti_sysbios_knl_Clock_TimerProxy_Module__diagsIncluded__C;
/* Module__diagsMask */
typedef xdc_Bits16 *CT__ti_sysbios_knl_Clock_TimerProxy_Module__diagsMask;
extern const CT__ti_sysbios_knl_Clock_TimerProxy_Module__diagsMask ti_sysbios_knl_Clock_TimerProxy_Module__diagsMask__C;
/* Module__gateObj */
typedef xdc_Ptr CT__ti_sysbios_knl_Clock_TimerProxy_Module__gateObj;
extern const CT__ti_sysbios_knl_Clock_TimerProxy_Module__gateObj ti_sysbios_knl_Clock_TimerProxy_Module__gateObj__C;
/* Module__gatePrms */
typedef xdc_Ptr CT__ti_sysbios_knl_Clock_TimerProxy_Module__gatePrms;
extern const CT__ti_sysbios_knl_Clock_TimerProxy_Module__gatePrms ti_sysbios_knl_Clock_TimerProxy_Module__gatePrms__C;
/* Module__id */
typedef xdc_runtime_Types_ModuleId CT__ti_sysbios_knl_Clock_TimerProxy_Module__id;
extern const CT__ti_sysbios_knl_Clock_TimerProxy_Module__id ti_sysbios_knl_Clock_TimerProxy_Module__id__C;
/* Module__loggerDefined */
typedef xdc_Bool CT__ti_sysbios_knl_Clock_TimerProxy_Module__loggerDefined;
extern const CT__ti_sysbios_knl_Clock_TimerProxy_Module__loggerDefined ti_sysbios_knl_Clock_TimerProxy_Module__loggerDefined__C;
/* Module__loggerObj */
typedef xdc_Ptr CT__ti_sysbios_knl_Clock_TimerProxy_Module__loggerObj;
extern const CT__ti_sysbios_knl_Clock_TimerProxy_Module__loggerObj ti_sysbios_knl_Clock_TimerProxy_Module__loggerObj__C;
/* Module__loggerFxn0 */
typedef xdc_runtime_Types_LoggerFxn0 CT__ti_sysbios_knl_Clock_TimerProxy_Module__loggerFxn0;
extern const CT__ti_sysbios_knl_Clock_TimerProxy_Module__loggerFxn0 ti_sysbios_knl_Clock_TimerProxy_Module__loggerFxn0__C;
/* Module__loggerFxn1 */
typedef xdc_runtime_Types_LoggerFxn1 CT__ti_sysbios_knl_Clock_TimerProxy_Module__loggerFxn1;
extern const CT__ti_sysbios_knl_Clock_TimerProxy_Module__loggerFxn1 ti_sysbios_knl_Clock_TimerProxy_Module__loggerFxn1__C;
/* Module__loggerFxn2 */
typedef xdc_runtime_Types_LoggerFxn2 CT__ti_sysbios_knl_Clock_TimerProxy_Module__loggerFxn2;
extern const CT__ti_sysbios_knl_Clock_TimerProxy_Module__loggerFxn2 ti_sysbios_knl_Clock_TimerProxy_Module__loggerFxn2__C;
/* Module__loggerFxn4 */
typedef xdc_runtime_Types_LoggerFxn4 CT__ti_sysbios_knl_Clock_TimerProxy_Module__loggerFxn4;
extern const CT__ti_sysbios_knl_Clock_TimerProxy_Module__loggerFxn4 ti_sysbios_knl_Clock_TimerProxy_Module__loggerFxn4__C;
/* Module__loggerFxn8 */
typedef xdc_runtime_Types_LoggerFxn8 CT__ti_sysbios_knl_Clock_TimerProxy_Module__loggerFxn8;
extern const CT__ti_sysbios_knl_Clock_TimerProxy_Module__loggerFxn8 ti_sysbios_knl_Clock_TimerProxy_Module__loggerFxn8__C;
/* Module__startupDoneFxn */
typedef xdc_Bool (*CT__ti_sysbios_knl_Clock_TimerProxy_Module__startupDoneFxn)(void);
extern const CT__ti_sysbios_knl_Clock_TimerProxy_Module__startupDoneFxn ti_sysbios_knl_Clock_TimerProxy_Module__startupDoneFxn__C;
/* Object__count */
typedef xdc_Int CT__ti_sysbios_knl_Clock_TimerProxy_Object__count;
extern const CT__ti_sysbios_knl_Clock_TimerProxy_Object__count ti_sysbios_knl_Clock_TimerProxy_Object__count__C;
/* Object__heap */
typedef xdc_runtime_IHeap_Handle CT__ti_sysbios_knl_Clock_TimerProxy_Object__heap;
extern const CT__ti_sysbios_knl_Clock_TimerProxy_Object__heap ti_sysbios_knl_Clock_TimerProxy_Object__heap__C;
/* Object__sizeof */
typedef xdc_SizeT CT__ti_sysbios_knl_Clock_TimerProxy_Object__sizeof;
extern const CT__ti_sysbios_knl_Clock_TimerProxy_Object__sizeof ti_sysbios_knl_Clock_TimerProxy_Object__sizeof__C;
/* Object__table */
typedef xdc_Ptr CT__ti_sysbios_knl_Clock_TimerProxy_Object__table;
extern const CT__ti_sysbios_knl_Clock_TimerProxy_Object__table ti_sysbios_knl_Clock_TimerProxy_Object__table__C;
/*
* ======== PER-INSTANCE TYPES ========
*/
/* Params */
struct ti_sysbios_knl_Clock_TimerProxy_Params {
size_t __size;
const void *__self;
void *__fxns;
xdc_runtime_IInstance_Params *instance;
ti_sysbios_interfaces_ITimer_RunMode runMode;
ti_sysbios_interfaces_ITimer_StartMode startMode;
xdc_UArg arg;
xdc_UInt32 period;
ti_sysbios_interfaces_ITimer_PeriodType periodType;
xdc_runtime_Types_FreqHz extFreq;
xdc_runtime_IInstance_Params __iprms;
};
/* Struct */
struct ti_sysbios_knl_Clock_TimerProxy_Struct {
const ti_sysbios_knl_Clock_TimerProxy_Fxns__ *__fxns;
xdc_runtime_Types_CordAddr __name;
};
/*
* ======== VIRTUAL FUNCTIONS ========
*/
/* Fxns__ */
struct ti_sysbios_knl_Clock_TimerProxy_Fxns__ {
xdc_runtime_Types_Base* __base;
const xdc_runtime_Types_SysFxns2 *__sysp;
xdc_UInt (*getNumTimers)(void);
ti_sysbios_interfaces_ITimer_Status (*getStatus)(xdc_UInt);
void (*startup)(void);
xdc_UInt32 (*getMaxTicks)(ti_sysbios_knl_Clock_TimerProxy_Handle);
void (*setNextTick)(ti_sysbios_knl_Clock_TimerProxy_Handle, xdc_UInt32);
void (*start)(ti_sysbios_knl_Clock_TimerProxy_Handle);
void (*stop)(ti_sysbios_knl_Clock_TimerProxy_Handle);
void (*setPeriod)(ti_sysbios_knl_Clock_TimerProxy_Handle, xdc_UInt32);
xdc_Bool (*setPeriodMicroSecs)(ti_sysbios_knl_Clock_TimerProxy_Handle, xdc_UInt32);
xdc_UInt32 (*getPeriod)(ti_sysbios_knl_Clock_TimerProxy_Handle);
xdc_UInt32 (*getCount)(ti_sysbios_knl_Clock_TimerProxy_Handle);
void (*getFreq)(ti_sysbios_knl_Clock_TimerProxy_Handle, xdc_runtime_Types_FreqHz*);
ti_sysbios_interfaces_ITimer_FuncPtr (*getFunc)(ti_sysbios_knl_Clock_TimerProxy_Handle, xdc_UArg*);
void (*setFunc)(ti_sysbios_knl_Clock_TimerProxy_Handle, ti_sysbios_interfaces_ITimer_FuncPtr, xdc_UArg);
void (*trigger)(ti_sysbios_knl_Clock_TimerProxy_Handle, xdc_UInt32);
xdc_UInt32 (*getExpiredCounts)(ti_sysbios_knl_Clock_TimerProxy_Handle);
xdc_UInt32 (*getExpiredTicks)(ti_sysbios_knl_Clock_TimerProxy_Handle, xdc_UInt32);
xdc_UInt32 (*getCurrentTick)(ti_sysbios_knl_Clock_TimerProxy_Handle, xdc_Bool);
xdc_runtime_Types_SysFxns2 __sfxns;
};
/* Module__FXNS__C */
extern const ti_sysbios_knl_Clock_TimerProxy_Fxns__ ti_sysbios_knl_Clock_TimerProxy_Module__FXNS__C;
/*
* ======== FUNCTION DECLARATIONS ========
*/
/* Module_startup */
/* Handle__label__S */
extern xdc_runtime_Types_Label *ti_sysbios_knl_Clock_TimerProxy_Handle__label__S( xdc_Ptr obj, xdc_runtime_Types_Label *lab );
/* Module__startupDone__S */
extern xdc_Bool ti_sysbios_knl_Clock_TimerProxy_Module__startupDone__S( void );
/* Object__create__S */
extern xdc_Ptr ti_sysbios_knl_Clock_TimerProxy_Object__create__S( xdc_Ptr __oa, xdc_SizeT __osz, xdc_Ptr __aa, const xdc_UChar *__pa, xdc_SizeT __psz, xdc_runtime_Error_Block *__eb );
/* create */
extern ti_sysbios_knl_Clock_TimerProxy_Handle ti_sysbios_knl_Clock_TimerProxy_create( xdc_Int id, ti_sysbios_interfaces_ITimer_FuncPtr tickFxn, const ti_sysbios_knl_Clock_TimerProxy_Params *__prms, xdc_runtime_Error_Block *__eb );
/* Object__delete__S */
extern void ti_sysbios_knl_Clock_TimerProxy_Object__delete__S( xdc_Ptr instp );
/* delete */
extern void ti_sysbios_knl_Clock_TimerProxy_delete(ti_sysbios_knl_Clock_TimerProxy_Handle *instp);
/* Object__destruct__S */
extern void ti_sysbios_knl_Clock_TimerProxy_Object__destruct__S( xdc_Ptr objp );
/* Object__get__S */
extern xdc_Ptr ti_sysbios_knl_Clock_TimerProxy_Object__get__S( xdc_Ptr oarr, xdc_Int i );
/* Object__first__S */
extern xdc_Ptr ti_sysbios_knl_Clock_TimerProxy_Object__first__S( void );
/* Object__next__S */
extern xdc_Ptr ti_sysbios_knl_Clock_TimerProxy_Object__next__S( xdc_Ptr obj );
/* Params__init__S */
extern void ti_sysbios_knl_Clock_TimerProxy_Params__init__S( xdc_Ptr dst, const void *src, xdc_SizeT psz, xdc_SizeT isz );
/* Proxy__abstract__S */
extern xdc_Bool ti_sysbios_knl_Clock_TimerProxy_Proxy__abstract__S( void );
/* Proxy__delegate__S */
extern xdc_Ptr ti_sysbios_knl_Clock_TimerProxy_Proxy__delegate__S( void );
/* getNumTimers__E */
extern xdc_UInt ti_sysbios_knl_Clock_TimerProxy_getNumTimers__E( void );
/* getStatus__E */
extern ti_sysbios_interfaces_ITimer_Status ti_sysbios_knl_Clock_TimerProxy_getStatus__E( xdc_UInt id );
/* startup__E */
extern void ti_sysbios_knl_Clock_TimerProxy_startup__E( void );
/* getMaxTicks__E */
extern xdc_UInt32 ti_sysbios_knl_Clock_TimerProxy_getMaxTicks__E( ti_sysbios_knl_Clock_TimerProxy_Handle __inst );
/* setNextTick__E */
extern void ti_sysbios_knl_Clock_TimerProxy_setNextTick__E( ti_sysbios_knl_Clock_TimerProxy_Handle __inst, xdc_UInt32 ticks );
/* start__E */
extern void ti_sysbios_knl_Clock_TimerProxy_start__E( ti_sysbios_knl_Clock_TimerProxy_Handle __inst );
/* stop__E */
extern void ti_sysbios_knl_Clock_TimerProxy_stop__E( ti_sysbios_knl_Clock_TimerProxy_Handle __inst );
/* setPeriod__E */
extern void ti_sysbios_knl_Clock_TimerProxy_setPeriod__E( ti_sysbios_knl_Clock_TimerProxy_Handle __inst, xdc_UInt32 period );
/* setPeriodMicroSecs__E */
extern xdc_Bool ti_sysbios_knl_Clock_TimerProxy_setPeriodMicroSecs__E( ti_sysbios_knl_Clock_TimerProxy_Handle __inst, xdc_UInt32 microsecs );
/* getPeriod__E */
extern xdc_UInt32 ti_sysbios_knl_Clock_TimerProxy_getPeriod__E( ti_sysbios_knl_Clock_TimerProxy_Handle __inst );
/* getCount__E */
extern xdc_UInt32 ti_sysbios_knl_Clock_TimerProxy_getCount__E( ti_sysbios_knl_Clock_TimerProxy_Handle __inst );
/* getFreq__E */
extern void ti_sysbios_knl_Clock_TimerProxy_getFreq__E( ti_sysbios_knl_Clock_TimerProxy_Handle __inst, xdc_runtime_Types_FreqHz *freq );
/* getFunc__E */
extern ti_sysbios_interfaces_ITimer_FuncPtr ti_sysbios_knl_Clock_TimerProxy_getFunc__E( ti_sysbios_knl_Clock_TimerProxy_Handle __inst, xdc_UArg *arg );
/* setFunc__E */
extern void ti_sysbios_knl_Clock_TimerProxy_setFunc__E( ti_sysbios_knl_Clock_TimerProxy_Handle __inst, ti_sysbios_interfaces_ITimer_FuncPtr fxn, xdc_UArg arg );
/* trigger__E */
extern void ti_sysbios_knl_Clock_TimerProxy_trigger__E( ti_sysbios_knl_Clock_TimerProxy_Handle __inst, xdc_UInt32 cycles );
/* getExpiredCounts__E */
extern xdc_UInt32 ti_sysbios_knl_Clock_TimerProxy_getExpiredCounts__E( ti_sysbios_knl_Clock_TimerProxy_Handle __inst );
/* getExpiredTicks__E */
extern xdc_UInt32 ti_sysbios_knl_Clock_TimerProxy_getExpiredTicks__E( ti_sysbios_knl_Clock_TimerProxy_Handle __inst, xdc_UInt32 tickPeriod );
/* getCurrentTick__E */
extern xdc_UInt32 ti_sysbios_knl_Clock_TimerProxy_getCurrentTick__E( ti_sysbios_knl_Clock_TimerProxy_Handle __inst, xdc_Bool save );
/*
* ======== CONVERTORS ========
*/
/* Module_upCast */
static inline ti_sysbios_interfaces_ITimer_Module ti_sysbios_knl_Clock_TimerProxy_Module_upCast( void )
{
return (ti_sysbios_interfaces_ITimer_Module)ti_sysbios_knl_Clock_TimerProxy_Proxy__delegate__S();
}
/* Module_to_ti_sysbios_interfaces_ITimer */
/* Handle_upCast */
static inline ti_sysbios_interfaces_ITimer_Handle ti_sysbios_knl_Clock_TimerProxy_Handle_upCast( ti_sysbios_knl_Clock_TimerProxy_Handle i )
{
return (ti_sysbios_interfaces_ITimer_Handle)i;
}
/* Handle_to_ti_sysbios_interfaces_ITimer */
/* Handle_downCast */
static inline ti_sysbios_knl_Clock_TimerProxy_Handle ti_sysbios_knl_Clock_TimerProxy_Handle_downCast( ti_sysbios_interfaces_ITimer_Handle i )
{
ti_sysbios_interfaces_ITimer_Handle i2 = (ti_sysbios_interfaces_ITimer_Handle)i;
if (ti_sysbios_knl_Clock_TimerProxy_Proxy__abstract__S()) return (ti_sysbios_knl_Clock_TimerProxy_Handle)i;
return (void*)i2->__fxns == (void*)ti_sysbios_knl_Clock_TimerProxy_Proxy__delegate__S() ? (ti_sysbios_knl_Clock_TimerProxy_Handle)i : 0;
}
/* Handle_from_ti_sysbios_interfaces_ITimer */
/*
* ======== SYSTEM FUNCTIONS ========
*/
/* Module_startupDone */
/* Object_heap */
/* Module_heap */
/* Module_id */
static inline CT__ti_sysbios_knl_Clock_TimerProxy_Module__id ti_sysbios_knl_Clock_TimerProxy_Module_id( void )
{
return ti_sysbios_knl_Clock_TimerProxy_Module__id__C;
}
/* Proxy_abstract */
/* Proxy_delegate */
/* Params_init */
static inline void ti_sysbios_knl_Clock_TimerProxy_Params_init( ti_sysbios_knl_Clock_TimerProxy_Params *prms )
{
if (prms) {
ti_sysbios_knl_Clock_TimerProxy_Params__init__S(prms, 0, sizeof(ti_sysbios_knl_Clock_TimerProxy_Params), sizeof(xdc_runtime_IInstance_Params));
}
}
/* Params_copy */
static inline void ti_sysbios_knl_Clock_TimerProxy_Params_copy(ti_sysbios_knl_Clock_TimerProxy_Params *dst, const ti_sysbios_knl_Clock_TimerProxy_Params *src)
{
if (dst) {
ti_sysbios_knl_Clock_TimerProxy_Params__init__S(dst, (const void *)src, sizeof(ti_sysbios_knl_Clock_TimerProxy_Params), sizeof(xdc_runtime_IInstance_Params));
}
}
/*
* ======== EPILOGUE ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* ======== AUXILIARY DEFINITIONS ========
*/
/* TickSource */
enum ti_sysbios_knl_Clock_TickSource {
ti_sysbios_knl_Clock_TickSource_TIMER,
ti_sysbios_knl_Clock_TickSource_USER,
ti_sysbios_knl_Clock_TickSource_NULL
};
typedef enum ti_sysbios_knl_Clock_TickSource ti_sysbios_knl_Clock_TickSource;
/* TickMode */
enum ti_sysbios_knl_Clock_TickMode {
ti_sysbios_knl_Clock_TickMode_PERIODIC,
ti_sysbios_knl_Clock_TickMode_DYNAMIC
};
typedef enum ti_sysbios_knl_Clock_TickMode ti_sysbios_knl_Clock_TickMode;
/* FuncPtr */
typedef void (*ti_sysbios_knl_Clock_FuncPtr)(xdc_UArg);
/*
* ======== CREATE ARGS ========
*/
/* Args__create */
typedef struct ti_sysbios_knl_Clock_Args__create {
ti_sysbios_knl_Clock_FuncPtr clockFxn;
xdc_UInt timeout;
} ti_sysbios_knl_Clock_Args__create;
/*
* ======== INTERNAL DEFINITIONS ========
*/
/*
* ======== MODULE-WIDE CONFIGS ========
*/
/* Module__diagsEnabled */
typedef xdc_Bits32 CT__ti_sysbios_knl_Clock_Module__diagsEnabled;
extern const CT__ti_sysbios_knl_Clock_Module__diagsEnabled ti_sysbios_knl_Clock_Module__diagsEnabled__C;
/* Module__diagsIncluded */
typedef xdc_Bits32 CT__ti_sysbios_knl_Clock_Module__diagsIncluded;
extern const CT__ti_sysbios_knl_Clock_Module__diagsIncluded ti_sysbios_knl_Clock_Module__diagsIncluded__C;
/* Module__diagsMask */
typedef xdc_Bits16 *CT__ti_sysbios_knl_Clock_Module__diagsMask;
extern const CT__ti_sysbios_knl_Clock_Module__diagsMask ti_sysbios_knl_Clock_Module__diagsMask__C;
/* Module__gateObj */
typedef xdc_Ptr CT__ti_sysbios_knl_Clock_Module__gateObj;
extern const CT__ti_sysbios_knl_Clock_Module__gateObj ti_sysbios_knl_Clock_Module__gateObj__C;
/* Module__gatePrms */
typedef xdc_Ptr CT__ti_sysbios_knl_Clock_Module__gatePrms;
extern const CT__ti_sysbios_knl_Clock_Module__gatePrms ti_sysbios_knl_Clock_Module__gatePrms__C;
/* Module__id */
typedef xdc_runtime_Types_ModuleId CT__ti_sysbios_knl_Clock_Module__id;
extern const CT__ti_sysbios_knl_Clock_Module__id ti_sysbios_knl_Clock_Module__id__C;
/* Module__loggerDefined */
typedef xdc_Bool CT__ti_sysbios_knl_Clock_Module__loggerDefined;
extern const CT__ti_sysbios_knl_Clock_Module__loggerDefined ti_sysbios_knl_Clock_Module__loggerDefined__C;
/* Module__loggerObj */
typedef xdc_Ptr CT__ti_sysbios_knl_Clock_Module__loggerObj;
extern const CT__ti_sysbios_knl_Clock_Module__loggerObj ti_sysbios_knl_Clock_Module__loggerObj__C;
/* Module__loggerFxn0 */
typedef xdc_runtime_Types_LoggerFxn0 CT__ti_sysbios_knl_Clock_Module__loggerFxn0;
extern const CT__ti_sysbios_knl_Clock_Module__loggerFxn0 ti_sysbios_knl_Clock_Module__loggerFxn0__C;
/* Module__loggerFxn1 */
typedef xdc_runtime_Types_LoggerFxn1 CT__ti_sysbios_knl_Clock_Module__loggerFxn1;
extern const CT__ti_sysbios_knl_Clock_Module__loggerFxn1 ti_sysbios_knl_Clock_Module__loggerFxn1__C;
/* Module__loggerFxn2 */
typedef xdc_runtime_Types_LoggerFxn2 CT__ti_sysbios_knl_Clock_Module__loggerFxn2;
extern const CT__ti_sysbios_knl_Clock_Module__loggerFxn2 ti_sysbios_knl_Clock_Module__loggerFxn2__C;
/* Module__loggerFxn4 */
typedef xdc_runtime_Types_LoggerFxn4 CT__ti_sysbios_knl_Clock_Module__loggerFxn4;
extern const CT__ti_sysbios_knl_Clock_Module__loggerFxn4 ti_sysbios_knl_Clock_Module__loggerFxn4__C;
/* Module__loggerFxn8 */
typedef xdc_runtime_Types_LoggerFxn8 CT__ti_sysbios_knl_Clock_Module__loggerFxn8;
extern const CT__ti_sysbios_knl_Clock_Module__loggerFxn8 ti_sysbios_knl_Clock_Module__loggerFxn8__C;
/* Module__startupDoneFxn */
typedef xdc_Bool (*CT__ti_sysbios_knl_Clock_Module__startupDoneFxn)(void);
extern const CT__ti_sysbios_knl_Clock_Module__startupDoneFxn ti_sysbios_knl_Clock_Module__startupDoneFxn__C;
/* Object__count */
typedef xdc_Int CT__ti_sysbios_knl_Clock_Object__count;
extern const CT__ti_sysbios_knl_Clock_Object__count ti_sysbios_knl_Clock_Object__count__C;
/* Object__heap */
typedef xdc_runtime_IHeap_Handle CT__ti_sysbios_knl_Clock_Object__heap;
extern const CT__ti_sysbios_knl_Clock_Object__heap ti_sysbios_knl_Clock_Object__heap__C;
/* Object__sizeof */
typedef xdc_SizeT CT__ti_sysbios_knl_Clock_Object__sizeof;
extern const CT__ti_sysbios_knl_Clock_Object__sizeof ti_sysbios_knl_Clock_Object__sizeof__C;
/* Object__table */
typedef xdc_Ptr CT__ti_sysbios_knl_Clock_Object__table;
extern const CT__ti_sysbios_knl_Clock_Object__table ti_sysbios_knl_Clock_Object__table__C;
/* LW_delayed */
typedef xdc_runtime_Log_Event CT__ti_sysbios_knl_Clock_LW_delayed;
extern const CT__ti_sysbios_knl_Clock_LW_delayed ti_sysbios_knl_Clock_LW_delayed__C;
/* LM_tick */
typedef xdc_runtime_Log_Event CT__ti_sysbios_knl_Clock_LM_tick;
extern const CT__ti_sysbios_knl_Clock_LM_tick ti_sysbios_knl_Clock_LM_tick__C;
/* LM_begin */
typedef xdc_runtime_Log_Event CT__ti_sysbios_knl_Clock_LM_begin;
extern const CT__ti_sysbios_knl_Clock_LM_begin ti_sysbios_knl_Clock_LM_begin__C;
/* A_clockDisabled */
typedef xdc_runtime_Assert_Id CT__ti_sysbios_knl_Clock_A_clockDisabled;
extern const CT__ti_sysbios_knl_Clock_A_clockDisabled ti_sysbios_knl_Clock_A_clockDisabled__C;
/* A_badThreadType */
typedef xdc_runtime_Assert_Id CT__ti_sysbios_knl_Clock_A_badThreadType;
extern const CT__ti_sysbios_knl_Clock_A_badThreadType ti_sysbios_knl_Clock_A_badThreadType__C;
/* serviceMargin */
typedef xdc_UInt32 CT__ti_sysbios_knl_Clock_serviceMargin;
extern const CT__ti_sysbios_knl_Clock_serviceMargin ti_sysbios_knl_Clock_serviceMargin__C;
/* tickSource */
typedef ti_sysbios_knl_Clock_TickSource CT__ti_sysbios_knl_Clock_tickSource;
extern const CT__ti_sysbios_knl_Clock_tickSource ti_sysbios_knl_Clock_tickSource__C;
/* tickMode */
typedef ti_sysbios_knl_Clock_TickMode CT__ti_sysbios_knl_Clock_tickMode;
extern const CT__ti_sysbios_knl_Clock_tickMode ti_sysbios_knl_Clock_tickMode__C;
/* timerId */
typedef xdc_UInt CT__ti_sysbios_knl_Clock_timerId;
extern const CT__ti_sysbios_knl_Clock_timerId ti_sysbios_knl_Clock_timerId__C;
/* tickPeriod */
typedef xdc_UInt32 CT__ti_sysbios_knl_Clock_tickPeriod;
extern const CT__ti_sysbios_knl_Clock_tickPeriod ti_sysbios_knl_Clock_tickPeriod__C;
/* doTickFunc */
typedef void (*CT__ti_sysbios_knl_Clock_doTickFunc)(xdc_UArg);
extern const CT__ti_sysbios_knl_Clock_doTickFunc ti_sysbios_knl_Clock_doTickFunc__C;
/* triggerClock */
typedef ti_sysbios_knl_Clock_Handle CT__ti_sysbios_knl_Clock_triggerClock;
extern const CT__ti_sysbios_knl_Clock_triggerClock ti_sysbios_knl_Clock_triggerClock__C;
/*
* ======== PER-INSTANCE TYPES ========
*/
/* Params */
struct ti_sysbios_knl_Clock_Params {
size_t __size;
const void *__self;
void *__fxns;
xdc_runtime_IInstance_Params *instance;
xdc_Bool startFlag;
xdc_UInt32 period;
xdc_UArg arg;
xdc_runtime_IInstance_Params __iprms;
};
/* Struct */
struct ti_sysbios_knl_Clock_Struct {
ti_sysbios_knl_Queue_Elem __f0;
xdc_UInt32 __f1;
xdc_UInt32 __f2;
xdc_UInt32 __f3;
volatile xdc_Bool __f4;
ti_sysbios_knl_Clock_FuncPtr __f5;
xdc_UArg __f6;
xdc_runtime_Types_CordAddr __name;
};
/*
* ======== FUNCTION DECLARATIONS ========
*/
/* Module_startup */
extern xdc_Int ti_sysbios_knl_Clock_Module_startup__E( xdc_Int state );
extern xdc_Int ti_sysbios_knl_Clock_Module_startup__F( xdc_Int state );
/* Instance_init__E */
extern void ti_sysbios_knl_Clock_Instance_init__E(ti_sysbios_knl_Clock_Object *, ti_sysbios_knl_Clock_FuncPtr clockFxn, xdc_UInt timeout, const ti_sysbios_knl_Clock_Params *);
/* Instance_finalize__E */
extern void ti_sysbios_knl_Clock_Instance_finalize__E( ti_sysbios_knl_Clock_Object* );
/* Handle__label__S */
extern xdc_runtime_Types_Label *ti_sysbios_knl_Clock_Handle__label__S( xdc_Ptr obj, xdc_runtime_Types_Label *lab );
/* Module__startupDone__S */
extern xdc_Bool ti_sysbios_knl_Clock_Module__startupDone__S( void );
/* Object__create__S */
extern xdc_Ptr ti_sysbios_knl_Clock_Object__create__S( xdc_Ptr __oa, xdc_SizeT __osz, xdc_Ptr __aa, const xdc_UChar *__pa, xdc_SizeT __psz, xdc_runtime_Error_Block *__eb );
/* create */
extern ti_sysbios_knl_Clock_Handle ti_sysbios_knl_Clock_create( ti_sysbios_knl_Clock_FuncPtr clockFxn, xdc_UInt timeout, const ti_sysbios_knl_Clock_Params *__prms, xdc_runtime_Error_Block *__eb );
/* construct */
extern void ti_sysbios_knl_Clock_construct( ti_sysbios_knl_Clock_Struct *__obj, ti_sysbios_knl_Clock_FuncPtr clockFxn, xdc_UInt timeout, const ti_sysbios_knl_Clock_Params *__prms );
/* Object__delete__S */
extern void ti_sysbios_knl_Clock_Object__delete__S( xdc_Ptr instp );
/* delete */
extern void ti_sysbios_knl_Clock_delete(ti_sysbios_knl_Clock_Handle *instp);
/* Object__destruct__S */
extern void ti_sysbios_knl_Clock_Object__destruct__S( xdc_Ptr objp );
/* destruct */
extern void ti_sysbios_knl_Clock_destruct(ti_sysbios_knl_Clock_Struct *obj);
/* Object__get__S */
extern xdc_Ptr ti_sysbios_knl_Clock_Object__get__S( xdc_Ptr oarr, xdc_Int i );
/* Object__first__S */
extern xdc_Ptr ti_sysbios_knl_Clock_Object__first__S( void );
/* Object__next__S */
extern xdc_Ptr ti_sysbios_knl_Clock_Object__next__S( xdc_Ptr obj );
/* Params__init__S */
extern void ti_sysbios_knl_Clock_Params__init__S( xdc_Ptr dst, const void *src, xdc_SizeT psz, xdc_SizeT isz );
/* getTicks__E */
extern xdc_UInt32 ti_sysbios_knl_Clock_getTicks__E( void );
/* getTimerHandle__E */
extern ti_sysbios_knl_Clock_TimerProxy_Handle ti_sysbios_knl_Clock_getTimerHandle__E( void );
/* setTicks__E */
extern void ti_sysbios_knl_Clock_setTicks__E( xdc_UInt32 ticks );
/* tickStop__E */
extern void ti_sysbios_knl_Clock_tickStop__E( void );
/* tickReconfig__E */
extern xdc_Bool ti_sysbios_knl_Clock_tickReconfig__E( void );
/* tickStart__E */
extern void ti_sysbios_knl_Clock_tickStart__E( void );
/* tick__E */
extern void ti_sysbios_knl_Clock_tick__E( void );
/* workFunc__E */
extern void ti_sysbios_knl_Clock_workFunc__E( xdc_UArg arg0, xdc_UArg arg1 );
/* workFuncDynamic__E */
extern void ti_sysbios_knl_Clock_workFuncDynamic__E( xdc_UArg arg0, xdc_UArg arg1 );
/* logTick__E */
extern void ti_sysbios_knl_Clock_logTick__E( void );
/* getCompletedTicks__E */
extern xdc_UInt32 ti_sysbios_knl_Clock_getCompletedTicks__E( void );
/* getTickPeriod__E */
extern xdc_UInt32 ti_sysbios_knl_Clock_getTickPeriod__E( void );
/* getTicksUntilInterrupt__E */
extern xdc_UInt32 ti_sysbios_knl_Clock_getTicksUntilInterrupt__E( void );
/* getTicksUntilTimeout__E */
extern xdc_UInt32 ti_sysbios_knl_Clock_getTicksUntilTimeout__E( void );
/* walkQueueDynamic__E */
extern xdc_UInt32 ti_sysbios_knl_Clock_walkQueueDynamic__E( xdc_Bool service, xdc_UInt32 tick );
/* walkQueuePeriodic__E */
extern xdc_UInt32 ti_sysbios_knl_Clock_walkQueuePeriodic__E( void );
/* scheduleNextTick__E */
extern void ti_sysbios_knl_Clock_scheduleNextTick__E( xdc_UInt32 deltaTicks, xdc_UInt32 absTick );
/* addI__E */
extern void ti_sysbios_knl_Clock_addI__E( ti_sysbios_knl_Clock_Handle __inst, ti_sysbios_knl_Clock_FuncPtr clockFxn, xdc_UInt32 timeout, xdc_UArg arg );
/* removeI__E */
extern void ti_sysbios_knl_Clock_removeI__E( ti_sysbios_knl_Clock_Handle __inst );
/* start__E */
extern void ti_sysbios_knl_Clock_start__E( ti_sysbios_knl_Clock_Handle __inst );
/* startI__E */
extern void ti_sysbios_knl_Clock_startI__E( ti_sysbios_knl_Clock_Handle __inst );
/* stop__E */
extern void ti_sysbios_knl_Clock_stop__E( ti_sysbios_knl_Clock_Handle __inst );
/* setPeriod__E */
extern void ti_sysbios_knl_Clock_setPeriod__E( ti_sysbios_knl_Clock_Handle __inst, xdc_UInt32 period );
/* setTimeout__E */
extern void ti_sysbios_knl_Clock_setTimeout__E( ti_sysbios_knl_Clock_Handle __inst, xdc_UInt32 timeout );
/* setFunc__E */
extern void ti_sysbios_knl_Clock_setFunc__E( ti_sysbios_knl_Clock_Handle __inst, ti_sysbios_knl_Clock_FuncPtr fxn, xdc_UArg arg );
/* getPeriod__E */
extern xdc_UInt32 ti_sysbios_knl_Clock_getPeriod__E( ti_sysbios_knl_Clock_Handle __inst );
/* getTimeout__E */
extern xdc_UInt32 ti_sysbios_knl_Clock_getTimeout__E( ti_sysbios_knl_Clock_Handle __inst );
/* isActive__E */
extern xdc_Bool ti_sysbios_knl_Clock_isActive__E( ti_sysbios_knl_Clock_Handle __inst );
/* doTick__I */
extern void ti_sysbios_knl_Clock_doTick__I( xdc_UArg arg );
/* triggerFunc__I */
extern void ti_sysbios_knl_Clock_triggerFunc__I( xdc_UArg arg );
/*
* ======== SYSTEM FUNCTIONS ========
*/
/* Module_startupDone */
/* Object_heap */
/* Module_heap */
/* Module_id */
static inline CT__ti_sysbios_knl_Clock_Module__id ti_sysbios_knl_Clock_Module_id( void )
{
return ti_sysbios_knl_Clock_Module__id__C;
}
/* Module_hasMask */
static inline xdc_Bool ti_sysbios_knl_Clock_Module_hasMask( void )
{
return ti_sysbios_knl_Clock_Module__diagsMask__C != 0;
}
/* Module_getMask */
static inline xdc_Bits16 ti_sysbios_knl_Clock_Module_getMask( void )
{
return ti_sysbios_knl_Clock_Module__diagsMask__C != 0 ? *ti_sysbios_knl_Clock_Module__diagsMask__C : 0;
}
/* Module_setMask */
static inline void ti_sysbios_knl_Clock_Module_setMask( xdc_Bits16 mask )
{
if (ti_sysbios_knl_Clock_Module__diagsMask__C != 0) *ti_sysbios_knl_Clock_Module__diagsMask__C = mask;
}
/* Params_init */
static inline void ti_sysbios_knl_Clock_Params_init( ti_sysbios_knl_Clock_Params *prms )
{
if (prms) {
ti_sysbios_knl_Clock_Params__init__S(prms, 0, sizeof(ti_sysbios_knl_Clock_Params), sizeof(xdc_runtime_IInstance_Params));
}
}
/* Params_copy */
static inline void ti_sysbios_knl_Clock_Params_copy(ti_sysbios_knl_Clock_Params *dst, const ti_sysbios_knl_Clock_Params *src)
{
if (dst) {
ti_sysbios_knl_Clock_Params__init__S(dst, (const void *)src, sizeof(ti_sysbios_knl_Clock_Params), sizeof(xdc_runtime_IInstance_Params));
}
}
/* Object_count */
/* Object_sizeof */
/* Object_get */
static inline ti_sysbios_knl_Clock_Handle ti_sysbios_knl_Clock_Object_get(ti_sysbios_knl_Clock_Instance_State *oarr, int i)
{
return (ti_sysbios_knl_Clock_Handle)ti_sysbios_knl_Clock_Object__get__S(oarr, i);
}
/* Object_first */
static inline ti_sysbios_knl_Clock_Handle ti_sysbios_knl_Clock_Object_first( void )
{
return (ti_sysbios_knl_Clock_Handle)ti_sysbios_knl_Clock_Object__first__S();
}
/* Object_next */
static inline ti_sysbios_knl_Clock_Handle ti_sysbios_knl_Clock_Object_next( ti_sysbios_knl_Clock_Object *obj )
{
return (ti_sysbios_knl_Clock_Handle)ti_sysbios_knl_Clock_Object__next__S(obj);
}
/* Handle_label */
static inline xdc_runtime_Types_Label *ti_sysbios_knl_Clock_Handle_label( ti_sysbios_knl_Clock_Handle inst, xdc_runtime_Types_Label *lab )
{
return ti_sysbios_knl_Clock_Handle__label__S(inst, lab);
}
/* Handle_name */
static inline xdc_String ti_sysbios_knl_Clock_Handle_name( ti_sysbios_knl_Clock_Handle inst )
{
xdc_runtime_Types_Label lab;
return ti_sysbios_knl_Clock_Handle__label__S(inst, &lab)->iname;
}
/* handle */
static inline ti_sysbios_knl_Clock_Handle ti_sysbios_knl_Clock_handle( ti_sysbios_knl_Clock_Struct *str )
{
return (ti_sysbios_knl_Clock_Handle)str;
}
/* struct */
static inline ti_sysbios_knl_Clock_Struct *ti_sysbios_knl_Clock_struct( ti_sysbios_knl_Clock_Handle inst )
{
return (ti_sysbios_knl_Clock_Struct*)inst;
}
/*
* ======== EPILOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-A71
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* MODULE-WIDE CONFIGS
* VIRTUAL FUNCTIONS
* FUNCTION DECLARATIONS
* CONVERTORS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== INCLUDES ========
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:03; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-A71
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* VIRTUAL FUNCTIONS
* FUNCTION STUBS
* FUNCTION SELECTORS
*
* EPILOGUE
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* ======== AUXILIARY DEFINITIONS ========
*/
/* FuncPtr */
typedef ti_sysbios_interfaces_ITaskSupport_FuncPtr ti_sysbios_knl_Task_SupportProxy_FuncPtr;
/*
* ======== MODULE-WIDE CONFIGS ========
*/
/* Module__diagsEnabled */
typedef xdc_Bits32 CT__ti_sysbios_knl_Task_SupportProxy_Module__diagsEnabled;
extern const CT__ti_sysbios_knl_Task_SupportProxy_Module__diagsEnabled ti_sysbios_knl_Task_SupportProxy_Module__diagsEnabled__C;
/* Module__diagsIncluded */
typedef xdc_Bits32 CT__ti_sysbios_knl_Task_SupportProxy_Module__diagsIncluded;
extern const CT__ti_sysbios_knl_Task_SupportProxy_Module__diagsIncluded ti_sysbios_knl_Task_SupportProxy_Module__diagsIncluded__C;
/* Module__diagsMask */
typedef xdc_Bits16 *CT__ti_sysbios_knl_Task_SupportProxy_Module__diagsMask;
extern const CT__ti_sysbios_knl_Task_SupportProxy_Module__diagsMask ti_sysbios_knl_Task_SupportProxy_Module__diagsMask__C;
/* Module__gateObj */
typedef xdc_Ptr CT__ti_sysbios_knl_Task_SupportProxy_Module__gateObj;
extern const CT__ti_sysbios_knl_Task_SupportProxy_Module__gateObj ti_sysbios_knl_Task_SupportProxy_Module__gateObj__C;
/* Module__gatePrms */
typedef xdc_Ptr CT__ti_sysbios_knl_Task_SupportProxy_Module__gatePrms;
extern const CT__ti_sysbios_knl_Task_SupportProxy_Module__gatePrms ti_sysbios_knl_Task_SupportProxy_Module__gatePrms__C;
/* Module__id */
typedef xdc_runtime_Types_ModuleId CT__ti_sysbios_knl_Task_SupportProxy_Module__id;
extern const CT__ti_sysbios_knl_Task_SupportProxy_Module__id ti_sysbios_knl_Task_SupportProxy_Module__id__C;
/* Module__loggerDefined */
typedef xdc_Bool CT__ti_sysbios_knl_Task_SupportProxy_Module__loggerDefined;
extern const CT__ti_sysbios_knl_Task_SupportProxy_Module__loggerDefined ti_sysbios_knl_Task_SupportProxy_Module__loggerDefined__C;
/* Module__loggerObj */
typedef xdc_Ptr CT__ti_sysbios_knl_Task_SupportProxy_Module__loggerObj;
extern const CT__ti_sysbios_knl_Task_SupportProxy_Module__loggerObj ti_sysbios_knl_Task_SupportProxy_Module__loggerObj__C;
/* Module__loggerFxn0 */
typedef xdc_runtime_Types_LoggerFxn0 CT__ti_sysbios_knl_Task_SupportProxy_Module__loggerFxn0;
extern const CT__ti_sysbios_knl_Task_SupportProxy_Module__loggerFxn0 ti_sysbios_knl_Task_SupportProxy_Module__loggerFxn0__C;
/* Module__loggerFxn1 */
typedef xdc_runtime_Types_LoggerFxn1 CT__ti_sysbios_knl_Task_SupportProxy_Module__loggerFxn1;
extern const CT__ti_sysbios_knl_Task_SupportProxy_Module__loggerFxn1 ti_sysbios_knl_Task_SupportProxy_Module__loggerFxn1__C;
/* Module__loggerFxn2 */
typedef xdc_runtime_Types_LoggerFxn2 CT__ti_sysbios_knl_Task_SupportProxy_Module__loggerFxn2;
extern const CT__ti_sysbios_knl_Task_SupportProxy_Module__loggerFxn2 ti_sysbios_knl_Task_SupportProxy_Module__loggerFxn2__C;
/* Module__loggerFxn4 */
typedef xdc_runtime_Types_LoggerFxn4 CT__ti_sysbios_knl_Task_SupportProxy_Module__loggerFxn4;
extern const CT__ti_sysbios_knl_Task_SupportProxy_Module__loggerFxn4 ti_sysbios_knl_Task_SupportProxy_Module__loggerFxn4__C;
/* Module__loggerFxn8 */
typedef xdc_runtime_Types_LoggerFxn8 CT__ti_sysbios_knl_Task_SupportProxy_Module__loggerFxn8;
extern const CT__ti_sysbios_knl_Task_SupportProxy_Module__loggerFxn8 ti_sysbios_knl_Task_SupportProxy_Module__loggerFxn8__C;
/* Module__startupDoneFxn */
typedef xdc_Bool (*CT__ti_sysbios_knl_Task_SupportProxy_Module__startupDoneFxn)(void);
extern const CT__ti_sysbios_knl_Task_SupportProxy_Module__startupDoneFxn ti_sysbios_knl_Task_SupportProxy_Module__startupDoneFxn__C;
/* Object__count */
typedef xdc_Int CT__ti_sysbios_knl_Task_SupportProxy_Object__count;
extern const CT__ti_sysbios_knl_Task_SupportProxy_Object__count ti_sysbios_knl_Task_SupportProxy_Object__count__C;
/* Object__heap */
typedef xdc_runtime_IHeap_Handle CT__ti_sysbios_knl_Task_SupportProxy_Object__heap;
extern const CT__ti_sysbios_knl_Task_SupportProxy_Object__heap ti_sysbios_knl_Task_SupportProxy_Object__heap__C;
/* Object__sizeof */
typedef xdc_SizeT CT__ti_sysbios_knl_Task_SupportProxy_Object__sizeof;
extern const CT__ti_sysbios_knl_Task_SupportProxy_Object__sizeof ti_sysbios_knl_Task_SupportProxy_Object__sizeof__C;
/* Object__table */
typedef xdc_Ptr CT__ti_sysbios_knl_Task_SupportProxy_Object__table;
extern const CT__ti_sysbios_knl_Task_SupportProxy_Object__table ti_sysbios_knl_Task_SupportProxy_Object__table__C;
/* defaultStackSize */
typedef xdc_SizeT CT__ti_sysbios_knl_Task_SupportProxy_defaultStackSize;
extern const CT__ti_sysbios_knl_Task_SupportProxy_defaultStackSize ti_sysbios_knl_Task_SupportProxy_defaultStackSize__C;
/* stackAlignment */
typedef xdc_UInt CT__ti_sysbios_knl_Task_SupportProxy_stackAlignment;
extern const CT__ti_sysbios_knl_Task_SupportProxy_stackAlignment ti_sysbios_knl_Task_SupportProxy_stackAlignment__C;
/*
* ======== VIRTUAL FUNCTIONS ========
*/
/* Fxns__ */
struct ti_sysbios_knl_Task_SupportProxy_Fxns__ {
xdc_runtime_Types_Base* __base;
const xdc_runtime_Types_SysFxns2 *__sysp;
xdc_Ptr (*start)(xdc_Ptr, ti_sysbios_interfaces_ITaskSupport_FuncPtr, ti_sysbios_interfaces_ITaskSupport_FuncPtr, xdc_runtime_Error_Block*);
void (*swap)(xdc_Ptr*, xdc_Ptr*);
xdc_Bool (*checkStack)(xdc_Char*, xdc_SizeT);
xdc_SizeT (*stackUsed)(xdc_Char*, xdc_SizeT);
xdc_UInt (*getStackAlignment)(void);
xdc_SizeT (*getDefaultStackSize)(void);
xdc_runtime_Types_SysFxns2 __sfxns;
};
/* Module__FXNS__C */
extern const ti_sysbios_knl_Task_SupportProxy_Fxns__ ti_sysbios_knl_Task_SupportProxy_Module__FXNS__C;
/*
* ======== FUNCTION DECLARATIONS ========
*/
/* Module_startup */
/* Handle__label__S */
extern xdc_runtime_Types_Label *ti_sysbios_knl_Task_SupportProxy_Handle__label__S( xdc_Ptr obj, xdc_runtime_Types_Label *lab );
/* Module__startupDone__S */
extern xdc_Bool ti_sysbios_knl_Task_SupportProxy_Module__startupDone__S( void );
/* Object__create__S */
extern xdc_Ptr ti_sysbios_knl_Task_SupportProxy_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 */
extern void ti_sysbios_knl_Task_SupportProxy_Object__delete__S( xdc_Ptr instp );
/* Object__destruct__S */
extern void ti_sysbios_knl_Task_SupportProxy_Object__destruct__S( xdc_Ptr objp );
/* Object__get__S */
extern xdc_Ptr ti_sysbios_knl_Task_SupportProxy_Object__get__S( xdc_Ptr oarr, xdc_Int i );
/* Object__first__S */
extern xdc_Ptr ti_sysbios_knl_Task_SupportProxy_Object__first__S( void );
/* Object__next__S */
extern xdc_Ptr ti_sysbios_knl_Task_SupportProxy_Object__next__S( xdc_Ptr obj );
/* Params__init__S */
extern void ti_sysbios_knl_Task_SupportProxy_Params__init__S( xdc_Ptr dst, const void *src, xdc_SizeT psz, xdc_SizeT isz );
/* Proxy__abstract__S */
extern xdc_Bool ti_sysbios_knl_Task_SupportProxy_Proxy__abstract__S( void );
/* Proxy__delegate__S */
extern xdc_Ptr ti_sysbios_knl_Task_SupportProxy_Proxy__delegate__S( void );
/* start__E */
extern xdc_Ptr ti_sysbios_knl_Task_SupportProxy_start__E( xdc_Ptr curTask, ti_sysbios_interfaces_ITaskSupport_FuncPtr enter, ti_sysbios_interfaces_ITaskSupport_FuncPtr exit, xdc_runtime_Error_Block *eb );
/* swap__E */
extern void ti_sysbios_knl_Task_SupportProxy_swap__E( xdc_Ptr *oldtskContext, xdc_Ptr *newtskContext );
/* checkStack__E */
extern xdc_Bool ti_sysbios_knl_Task_SupportProxy_checkStack__E( xdc_Char *stack, xdc_SizeT size );
/* stackUsed__E */
extern xdc_SizeT ti_sysbios_knl_Task_SupportProxy_stackUsed__E( xdc_Char *stack, xdc_SizeT size );
/* getStackAlignment__E */
extern xdc_UInt ti_sysbios_knl_Task_SupportProxy_getStackAlignment__E( void );
/* getDefaultStackSize__E */
extern xdc_SizeT ti_sysbios_knl_Task_SupportProxy_getDefaultStackSize__E( void );
/*
* ======== CONVERTORS ========
*/
/* Module_upCast */
static inline ti_sysbios_interfaces_ITaskSupport_Module ti_sysbios_knl_Task_SupportProxy_Module_upCast( void )
{
return (ti_sysbios_interfaces_ITaskSupport_Module)ti_sysbios_knl_Task_SupportProxy_Proxy__delegate__S();
}
/* Module_to_ti_sysbios_interfaces_ITaskSupport */
/*
* ======== SYSTEM FUNCTIONS ========
*/
/* Module_startupDone */
/* Object_heap */
/* Module_heap */
/* Module_id */
static inline CT__ti_sysbios_knl_Task_SupportProxy_Module__id ti_sysbios_knl_Task_SupportProxy_Module_id( void )
{
return ti_sysbios_knl_Task_SupportProxy_Module__id__C;
}
/* Proxy_abstract */
/* Proxy_delegate */
/*
* ======== EPILOGUE ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* ======== AUXILIARY DEFINITIONS ========
*/
/* FuncPtr */
typedef void (*ti_sysbios_knl_Task_FuncPtr)(xdc_UArg, xdc_UArg);
/* AllBlockedFuncPtr */
typedef void (*ti_sysbios_knl_Task_AllBlockedFuncPtr)(void);
/* Mode */
enum ti_sysbios_knl_Task_Mode {
ti_sysbios_knl_Task_Mode_RUNNING,
ti_sysbios_knl_Task_Mode_READY,
ti_sysbios_knl_Task_Mode_BLOCKED,
ti_sysbios_knl_Task_Mode_TERMINATED,
ti_sysbios_knl_Task_Mode_INACTIVE
};
typedef enum ti_sysbios_knl_Task_Mode ti_sysbios_knl_Task_Mode;
/* Stat */
struct ti_sysbios_knl_Task_Stat {
xdc_Int priority;
xdc_Ptr stack;
xdc_SizeT stackSize;
xdc_runtime_IHeap_Handle stackHeap;
xdc_Ptr env;
ti_sysbios_knl_Task_Mode mode;
xdc_Ptr sp;
xdc_SizeT used;
};
/* HookSet */
struct ti_sysbios_knl_Task_HookSet {
void (*registerFxn)(xdc_Int);
void (*createFxn)(ti_sysbios_knl_Task_Handle, xdc_runtime_Error_Block*);
void (*readyFxn)(ti_sysbios_knl_Task_Handle);
void (*switchFxn)(ti_sysbios_knl_Task_Handle, ti_sysbios_knl_Task_Handle);
void (*exitFxn)(ti_sysbios_knl_Task_Handle);
void (*deleteFxn)(ti_sysbios_knl_Task_Handle);
};
/* AFFINITY_NONE */
/*
* ======== CREATE ARGS ========
*/
/* Args__create */
typedef struct ti_sysbios_knl_Task_Args__create {
ti_sysbios_knl_Task_FuncPtr fxn;
} ti_sysbios_knl_Task_Args__create;
/*
* ======== INTERNAL DEFINITIONS ========
*/
/* PendElem */
struct ti_sysbios_knl_Task_PendElem {
ti_sysbios_knl_Queue_Elem qElem;
ti_sysbios_knl_Task_Handle task;
ti_sysbios_knl_Clock_Handle clock;
};
/* Instance_State */
typedef xdc_Char __T1_ti_sysbios_knl_Task_Instance_State__stack;
typedef xdc_Char *__ARRAY1_ti_sysbios_knl_Task_Instance_State__stack;
typedef __ARRAY1_ti_sysbios_knl_Task_Instance_State__stack __TA_ti_sysbios_knl_Task_Instance_State__stack;
typedef xdc_Ptr __T1_ti_sysbios_knl_Task_Instance_State__hookEnv;
typedef xdc_Ptr *__ARRAY1_ti_sysbios_knl_Task_Instance_State__hookEnv;
typedef __ARRAY1_ti_sysbios_knl_Task_Instance_State__hookEnv __TA_ti_sysbios_knl_Task_Instance_State__hookEnv;
/* Module_State */
typedef ti_sysbios_knl_Queue_Instance_State __T1_ti_sysbios_knl_Task_Module_State__readyQ;
typedef ti_sysbios_knl_Queue_Instance_State *__ARRAY1_ti_sysbios_knl_Task_Module_State__readyQ;
typedef __ARRAY1_ti_sysbios_knl_Task_Module_State__readyQ __TA_ti_sysbios_knl_Task_Module_State__readyQ;
typedef volatile xdc_UInt __T1_ti_sysbios_knl_Task_Module_State__smpCurSet;
typedef volatile xdc_UInt *__ARRAY1_ti_sysbios_knl_Task_Module_State__smpCurSet;
typedef __ARRAY1_ti_sysbios_knl_Task_Module_State__smpCurSet __TA_ti_sysbios_knl_Task_Module_State__smpCurSet;
typedef volatile xdc_UInt __T1_ti_sysbios_knl_Task_Module_State__smpCurMask;
typedef volatile xdc_UInt *__ARRAY1_ti_sysbios_knl_Task_Module_State__smpCurMask;
typedef __ARRAY1_ti_sysbios_knl_Task_Module_State__smpCurMask __TA_ti_sysbios_knl_Task_Module_State__smpCurMask;
typedef ti_sysbios_knl_Task_Handle __T1_ti_sysbios_knl_Task_Module_State__smpCurTask;
typedef ti_sysbios_knl_Task_Handle *__ARRAY1_ti_sysbios_knl_Task_Module_State__smpCurTask;
typedef __ARRAY1_ti_sysbios_knl_Task_Module_State__smpCurTask __TA_ti_sysbios_knl_Task_Module_State__smpCurTask;
typedef ti_sysbios_knl_Queue_Handle __T1_ti_sysbios_knl_Task_Module_State__smpReadyQ;
typedef ti_sysbios_knl_Queue_Handle *__ARRAY1_ti_sysbios_knl_Task_Module_State__smpReadyQ;
typedef __ARRAY1_ti_sysbios_knl_Task_Module_State__smpReadyQ __TA_ti_sysbios_knl_Task_Module_State__smpReadyQ;
typedef ti_sysbios_knl_Task_Handle __T1_ti_sysbios_knl_Task_Module_State__idleTask;
typedef ti_sysbios_knl_Task_Handle *__ARRAY1_ti_sysbios_knl_Task_Module_State__idleTask;
typedef __ARRAY1_ti_sysbios_knl_Task_Module_State__idleTask __TA_ti_sysbios_knl_Task_Module_State__idleTask;
typedef ti_sysbios_knl_Task_Handle __T1_ti_sysbios_knl_Task_Module_State__constructedTasks;
typedef ti_sysbios_knl_Task_Handle *__ARRAY1_ti_sysbios_knl_Task_Module_State__constructedTasks;
typedef __ARRAY1_ti_sysbios_knl_Task_Module_State__constructedTasks __TA_ti_sysbios_knl_Task_Module_State__constructedTasks;
/* RunQEntry */
struct ti_sysbios_knl_Task_RunQEntry {
ti_sysbios_knl_Queue_Elem elem;
xdc_UInt coreId;
xdc_Int priority;
};
/* Module_StateSmp */
typedef volatile ti_sysbios_knl_Task_RunQEntry __T1_ti_sysbios_knl_Task_Module_StateSmp__smpRunQ;
typedef volatile ti_sysbios_knl_Task_RunQEntry *__ARRAY1_ti_sysbios_knl_Task_Module_StateSmp__smpRunQ;
typedef __ARRAY1_ti_sysbios_knl_Task_Module_StateSmp__smpRunQ __TA_ti_sysbios_knl_Task_Module_StateSmp__smpRunQ;
struct ti_sysbios_knl_Task_Module_StateSmp {
ti_sysbios_knl_Queue_Object *sortedRunQ;
__TA_ti_sysbios_knl_Task_Module_StateSmp__smpRunQ smpRunQ;
};
/*
* ======== MODULE-WIDE CONFIGS ========
*/
/* Module__diagsEnabled */
typedef xdc_Bits32 CT__ti_sysbios_knl_Task_Module__diagsEnabled;
extern const CT__ti_sysbios_knl_Task_Module__diagsEnabled ti_sysbios_knl_Task_Module__diagsEnabled__C;
/* Module__diagsIncluded */
typedef xdc_Bits32 CT__ti_sysbios_knl_Task_Module__diagsIncluded;
extern const CT__ti_sysbios_knl_Task_Module__diagsIncluded ti_sysbios_knl_Task_Module__diagsIncluded__C;
/* Module__diagsMask */
typedef xdc_Bits16 *CT__ti_sysbios_knl_Task_Module__diagsMask;
extern const CT__ti_sysbios_knl_Task_Module__diagsMask ti_sysbios_knl_Task_Module__diagsMask__C;
/* Module__gateObj */
typedef xdc_Ptr CT__ti_sysbios_knl_Task_Module__gateObj;
extern const CT__ti_sysbios_knl_Task_Module__gateObj ti_sysbios_knl_Task_Module__gateObj__C;
/* Module__gatePrms */
typedef xdc_Ptr CT__ti_sysbios_knl_Task_Module__gatePrms;
extern const CT__ti_sysbios_knl_Task_Module__gatePrms ti_sysbios_knl_Task_Module__gatePrms__C;
/* Module__id */
typedef xdc_runtime_Types_ModuleId CT__ti_sysbios_knl_Task_Module__id;
extern const CT__ti_sysbios_knl_Task_Module__id ti_sysbios_knl_Task_Module__id__C;
/* Module__loggerDefined */
typedef xdc_Bool CT__ti_sysbios_knl_Task_Module__loggerDefined;
extern const CT__ti_sysbios_knl_Task_Module__loggerDefined ti_sysbios_knl_Task_Module__loggerDefined__C;
/* Module__loggerObj */
typedef xdc_Ptr CT__ti_sysbios_knl_Task_Module__loggerObj;
extern const CT__ti_sysbios_knl_Task_Module__loggerObj ti_sysbios_knl_Task_Module__loggerObj__C;
/* Module__loggerFxn0 */
typedef xdc_runtime_Types_LoggerFxn0 CT__ti_sysbios_knl_Task_Module__loggerFxn0;
extern const CT__ti_sysbios_knl_Task_Module__loggerFxn0 ti_sysbios_knl_Task_Module__loggerFxn0__C;
/* Module__loggerFxn1 */
typedef xdc_runtime_Types_LoggerFxn1 CT__ti_sysbios_knl_Task_Module__loggerFxn1;
extern const CT__ti_sysbios_knl_Task_Module__loggerFxn1 ti_sysbios_knl_Task_Module__loggerFxn1__C;
/* Module__loggerFxn2 */
typedef xdc_runtime_Types_LoggerFxn2 CT__ti_sysbios_knl_Task_Module__loggerFxn2;
extern const CT__ti_sysbios_knl_Task_Module__loggerFxn2 ti_sysbios_knl_Task_Module__loggerFxn2__C;
/* Module__loggerFxn4 */
typedef xdc_runtime_Types_LoggerFxn4 CT__ti_sysbios_knl_Task_Module__loggerFxn4;
extern const CT__ti_sysbios_knl_Task_Module__loggerFxn4 ti_sysbios_knl_Task_Module__loggerFxn4__C;
/* Module__loggerFxn8 */
typedef xdc_runtime_Types_LoggerFxn8 CT__ti_sysbios_knl_Task_Module__loggerFxn8;
extern const CT__ti_sysbios_knl_Task_Module__loggerFxn8 ti_sysbios_knl_Task_Module__loggerFxn8__C;
/* Module__startupDoneFxn */
typedef xdc_Bool (*CT__ti_sysbios_knl_Task_Module__startupDoneFxn)(void);
extern const CT__ti_sysbios_knl_Task_Module__startupDoneFxn ti_sysbios_knl_Task_Module__startupDoneFxn__C;
/* Object__count */
typedef xdc_Int CT__ti_sysbios_knl_Task_Object__count;
extern const CT__ti_sysbios_knl_Task_Object__count ti_sysbios_knl_Task_Object__count__C;
/* Object__heap */
typedef xdc_runtime_IHeap_Handle CT__ti_sysbios_knl_Task_Object__heap;
extern const CT__ti_sysbios_knl_Task_Object__heap ti_sysbios_knl_Task_Object__heap__C;
/* Object__sizeof */
typedef xdc_SizeT CT__ti_sysbios_knl_Task_Object__sizeof;
extern const CT__ti_sysbios_knl_Task_Object__sizeof ti_sysbios_knl_Task_Object__sizeof__C;
/* Object__table */
typedef xdc_Ptr CT__ti_sysbios_knl_Task_Object__table;
extern const CT__ti_sysbios_knl_Task_Object__table ti_sysbios_knl_Task_Object__table__C;
/* LM_switch */
typedef xdc_runtime_Log_Event CT__ti_sysbios_knl_Task_LM_switch;
extern const CT__ti_sysbios_knl_Task_LM_switch ti_sysbios_knl_Task_LM_switch__C;
/* LM_sleep */
typedef xdc_runtime_Log_Event CT__ti_sysbios_knl_Task_LM_sleep;
extern const CT__ti_sysbios_knl_Task_LM_sleep ti_sysbios_knl_Task_LM_sleep__C;
/* LD_ready */
typedef xdc_runtime_Log_Event CT__ti_sysbios_knl_Task_LD_ready;
extern const CT__ti_sysbios_knl_Task_LD_ready ti_sysbios_knl_Task_LD_ready__C;
/* LD_block */
typedef xdc_runtime_Log_Event CT__ti_sysbios_knl_Task_LD_block;
extern const CT__ti_sysbios_knl_Task_LD_block ti_sysbios_knl_Task_LD_block__C;
/* LM_yield */
typedef xdc_runtime_Log_Event CT__ti_sysbios_knl_Task_LM_yield;
extern const CT__ti_sysbios_knl_Task_LM_yield ti_sysbios_knl_Task_LM_yield__C;
/* LM_setPri */
typedef xdc_runtime_Log_Event CT__ti_sysbios_knl_Task_LM_setPri;
extern const CT__ti_sysbios_knl_Task_LM_setPri ti_sysbios_knl_Task_LM_setPri__C;
/* LD_exit */
typedef xdc_runtime_Log_Event CT__ti_sysbios_knl_Task_LD_exit;
extern const CT__ti_sysbios_knl_Task_LD_exit ti_sysbios_knl_Task_LD_exit__C;
/* LM_setAffinity */
typedef xdc_runtime_Log_Event CT__ti_sysbios_knl_Task_LM_setAffinity;
extern const CT__ti_sysbios_knl_Task_LM_setAffinity ti_sysbios_knl_Task_LM_setAffinity__C;
/* LM_schedule */
typedef xdc_runtime_Log_Event CT__ti_sysbios_knl_Task_LM_schedule;
extern const CT__ti_sysbios_knl_Task_LM_schedule ti_sysbios_knl_Task_LM_schedule__C;
/* LM_noWork */
typedef xdc_runtime_Log_Event CT__ti_sysbios_knl_Task_LM_noWork;
extern const CT__ti_sysbios_knl_Task_LM_noWork ti_sysbios_knl_Task_LM_noWork__C;
/* E_stackOverflow */
typedef xdc_runtime_Error_Id CT__ti_sysbios_knl_Task_E_stackOverflow;
extern const CT__ti_sysbios_knl_Task_E_stackOverflow ti_sysbios_knl_Task_E_stackOverflow__C;
/* E_spOutOfBounds */
typedef xdc_runtime_Error_Id CT__ti_sysbios_knl_Task_E_spOutOfBounds;
extern const CT__ti_sysbios_knl_Task_E_spOutOfBounds ti_sysbios_knl_Task_E_spOutOfBounds__C;
/* E_deleteNotAllowed */
typedef xdc_runtime_Error_Id CT__ti_sysbios_knl_Task_E_deleteNotAllowed;
extern const CT__ti_sysbios_knl_Task_E_deleteNotAllowed ti_sysbios_knl_Task_E_deleteNotAllowed__C;
/* A_badThreadType */
typedef xdc_runtime_Assert_Id CT__ti_sysbios_knl_Task_A_badThreadType;
extern const CT__ti_sysbios_knl_Task_A_badThreadType ti_sysbios_knl_Task_A_badThreadType__C;
/* A_badTaskState */
typedef xdc_runtime_Assert_Id CT__ti_sysbios_knl_Task_A_badTaskState;
extern const CT__ti_sysbios_knl_Task_A_badTaskState ti_sysbios_knl_Task_A_badTaskState__C;
/* A_noPendElem */
typedef xdc_runtime_Assert_Id CT__ti_sysbios_knl_Task_A_noPendElem;
extern const CT__ti_sysbios_knl_Task_A_noPendElem ti_sysbios_knl_Task_A_noPendElem__C;
/* A_taskDisabled */
typedef xdc_runtime_Assert_Id CT__ti_sysbios_knl_Task_A_taskDisabled;
extern const CT__ti_sysbios_knl_Task_A_taskDisabled ti_sysbios_knl_Task_A_taskDisabled__C;
/* A_badPriority */
typedef xdc_runtime_Assert_Id CT__ti_sysbios_knl_Task_A_badPriority;
extern const CT__ti_sysbios_knl_Task_A_badPriority ti_sysbios_knl_Task_A_badPriority__C;
/* A_badTimeout */
typedef xdc_runtime_Assert_Id CT__ti_sysbios_knl_Task_A_badTimeout;
extern const CT__ti_sysbios_knl_Task_A_badTimeout ti_sysbios_knl_Task_A_badTimeout__C;
/* A_badAffinity */
typedef xdc_runtime_Assert_Id CT__ti_sysbios_knl_Task_A_badAffinity;
extern const CT__ti_sysbios_knl_Task_A_badAffinity ti_sysbios_knl_Task_A_badAffinity__C;
/* A_sleepTaskDisabled */
typedef xdc_runtime_Assert_Id CT__ti_sysbios_knl_Task_A_sleepTaskDisabled;
extern const CT__ti_sysbios_knl_Task_A_sleepTaskDisabled ti_sysbios_knl_Task_A_sleepTaskDisabled__C;
/* A_invalidCoreId */
typedef xdc_runtime_Assert_Id CT__ti_sysbios_knl_Task_A_invalidCoreId;
extern const CT__ti_sysbios_knl_Task_A_invalidCoreId ti_sysbios_knl_Task_A_invalidCoreId__C;
/* numPriorities */
typedef xdc_UInt CT__ti_sysbios_knl_Task_numPriorities;
extern const CT__ti_sysbios_knl_Task_numPriorities ti_sysbios_knl_Task_numPriorities__C;
/* defaultStackSize */
typedef xdc_SizeT CT__ti_sysbios_knl_Task_defaultStackSize;
extern const CT__ti_sysbios_knl_Task_defaultStackSize ti_sysbios_knl_Task_defaultStackSize__C;
/* defaultStackHeap */
typedef xdc_runtime_IHeap_Handle CT__ti_sysbios_knl_Task_defaultStackHeap;
extern const CT__ti_sysbios_knl_Task_defaultStackHeap ti_sysbios_knl_Task_defaultStackHeap__C;
/* allBlockedFunc */
typedef ti_sysbios_knl_Task_AllBlockedFuncPtr CT__ti_sysbios_knl_Task_allBlockedFunc;
extern const CT__ti_sysbios_knl_Task_allBlockedFunc ti_sysbios_knl_Task_allBlockedFunc__C;
/* initStackFlag */
typedef xdc_Bool CT__ti_sysbios_knl_Task_initStackFlag;
extern const CT__ti_sysbios_knl_Task_initStackFlag ti_sysbios_knl_Task_initStackFlag__C;
/* checkStackFlag */
typedef xdc_Bool CT__ti_sysbios_knl_Task_checkStackFlag;
extern const CT__ti_sysbios_knl_Task_checkStackFlag ti_sysbios_knl_Task_checkStackFlag__C;
/* deleteTerminatedTasks */
typedef xdc_Bool CT__ti_sysbios_knl_Task_deleteTerminatedTasks;
extern const CT__ti_sysbios_knl_Task_deleteTerminatedTasks ti_sysbios_knl_Task_deleteTerminatedTasks__C;
/* hooks */
typedef ti_sysbios_knl_Task_HookSet __T1_ti_sysbios_knl_Task_hooks;
typedef struct { int length; ti_sysbios_knl_Task_HookSet *elem; } __ARRAY1_ti_sysbios_knl_Task_hooks;
typedef __ARRAY1_ti_sysbios_knl_Task_hooks __TA_ti_sysbios_knl_Task_hooks;
typedef __TA_ti_sysbios_knl_Task_hooks CT__ti_sysbios_knl_Task_hooks;
extern const CT__ti_sysbios_knl_Task_hooks ti_sysbios_knl_Task_hooks__C;
/* numConstructedTasks */
typedef xdc_UInt CT__ti_sysbios_knl_Task_numConstructedTasks;
extern const CT__ti_sysbios_knl_Task_numConstructedTasks ti_sysbios_knl_Task_numConstructedTasks__C;
/* startupHookFunc */
typedef void (*CT__ti_sysbios_knl_Task_startupHookFunc)(void);
extern const CT__ti_sysbios_knl_Task_startupHookFunc ti_sysbios_knl_Task_startupHookFunc__C;
/*
* ======== PER-INSTANCE TYPES ========
*/
/* Params */
struct ti_sysbios_knl_Task_Params {
size_t __size;
const void *__self;
void *__fxns;
xdc_runtime_IInstance_Params *instance;
xdc_UArg arg0;
xdc_UArg arg1;
xdc_Int priority;
xdc_Ptr stack;
xdc_SizeT stackSize;
xdc_runtime_IHeap_Handle stackHeap;
xdc_Ptr env;
xdc_Bool vitalTaskFlag;
xdc_UInt affinity;
xdc_runtime_IInstance_Params __iprms;
};
/* Struct */
struct ti_sysbios_knl_Task_Struct {
ti_sysbios_knl_Queue_Elem __f0;
volatile xdc_Int __f1;
xdc_UInt __f2;
xdc_Ptr __f3;
ti_sysbios_knl_Task_Mode __f4;
ti_sysbios_knl_Task_PendElem *__f5;
xdc_SizeT __f6;
__TA_ti_sysbios_knl_Task_Instance_State__stack __f7;
xdc_runtime_IHeap_Handle __f8;
ti_sysbios_knl_Task_FuncPtr __f9;
xdc_UArg __f10;
xdc_UArg __f11;
xdc_Ptr __f12;
__TA_ti_sysbios_knl_Task_Instance_State__hookEnv __f13;
xdc_Bool __f14;
ti_sysbios_knl_Queue_Handle __f15;
xdc_UInt __f16;
xdc_UInt __f17;
xdc_runtime_Types_CordAddr __name;
};
/*
* ======== FUNCTION DECLARATIONS ========
*/
/* Module_startup */
extern xdc_Int ti_sysbios_knl_Task_Module_startup__E( xdc_Int state );
extern xdc_Int ti_sysbios_knl_Task_Module_startup__F( xdc_Int state );
/* Instance_init__E */
extern xdc_Int ti_sysbios_knl_Task_Instance_init__E(ti_sysbios_knl_Task_Object *, ti_sysbios_knl_Task_FuncPtr fxn, const ti_sysbios_knl_Task_Params *, xdc_runtime_Error_Block *);
/* Instance_finalize__E */
extern void ti_sysbios_knl_Task_Instance_finalize__E( ti_sysbios_knl_Task_Object* , int );
/* Handle__label__S */
extern xdc_runtime_Types_Label *ti_sysbios_knl_Task_Handle__label__S( xdc_Ptr obj, xdc_runtime_Types_Label *lab );
/* Module__startupDone__S */
extern xdc_Bool ti_sysbios_knl_Task_Module__startupDone__S( void );
/* Object__create__S */
extern xdc_Ptr ti_sysbios_knl_Task_Object__create__S( xdc_Ptr __oa, xdc_SizeT __osz, xdc_Ptr __aa, const xdc_UChar *__pa, xdc_SizeT __psz, xdc_runtime_Error_Block *__eb );
/* create */
extern ti_sysbios_knl_Task_Handle ti_sysbios_knl_Task_create( ti_sysbios_knl_Task_FuncPtr fxn, const ti_sysbios_knl_Task_Params *__prms, xdc_runtime_Error_Block *__eb );
/* construct */
extern void ti_sysbios_knl_Task_construct( ti_sysbios_knl_Task_Struct *__obj, ti_sysbios_knl_Task_FuncPtr fxn, const ti_sysbios_knl_Task_Params *__prms, xdc_runtime_Error_Block *__eb );
/* Object__delete__S */
extern void ti_sysbios_knl_Task_Object__delete__S( xdc_Ptr instp );
/* delete */
extern void ti_sysbios_knl_Task_delete(ti_sysbios_knl_Task_Handle *instp);
/* Object__destruct__S */
extern void ti_sysbios_knl_Task_Object__destruct__S( xdc_Ptr objp );
/* destruct */
extern void ti_sysbios_knl_Task_destruct(ti_sysbios_knl_Task_Struct *obj);
/* Object__get__S */
extern xdc_Ptr ti_sysbios_knl_Task_Object__get__S( xdc_Ptr oarr, xdc_Int i );
/* Object__first__S */
extern xdc_Ptr ti_sysbios_knl_Task_Object__first__S( void );
/* Object__next__S */
extern xdc_Ptr ti_sysbios_knl_Task_Object__next__S( xdc_Ptr obj );
/* Params__init__S */
extern void ti_sysbios_knl_Task_Params__init__S( xdc_Ptr dst, const void *src, xdc_SizeT psz, xdc_SizeT isz );
/* startup__E */
extern void ti_sysbios_knl_Task_startup__E( void );
/* enabled__E */
extern xdc_Bool ti_sysbios_knl_Task_enabled__E( void );
/* unlockSched__E */
extern void ti_sysbios_knl_Task_unlockSched__E( void );
/* disable__E */
extern xdc_UInt ti_sysbios_knl_Task_disable__E( void );
/* enable__E */
extern void ti_sysbios_knl_Task_enable__E( void );
/* restore__E */
extern void ti_sysbios_knl_Task_restore__E( xdc_UInt key );
/* restoreHwi__E */
extern void ti_sysbios_knl_Task_restoreHwi__E( xdc_UInt key );
/* self__E */
extern ti_sysbios_knl_Task_Handle ti_sysbios_knl_Task_self__E( void );
/* checkStacks__E */
extern void ti_sysbios_knl_Task_checkStacks__E( ti_sysbios_knl_Task_Handle oldTask, ti_sysbios_knl_Task_Handle newTask );
/* exit__E */
extern void ti_sysbios_knl_Task_exit__E( void );
/* sleep__E */
extern void ti_sysbios_knl_Task_sleep__E( xdc_UInt32 nticks );
/* yield__E */
extern void ti_sysbios_knl_Task_yield__E( void );
/* getIdleTask__E */
extern ti_sysbios_knl_Task_Handle ti_sysbios_knl_Task_getIdleTask__E( void );
/* getIdleTaskHandle__E */
extern ti_sysbios_knl_Task_Handle ti_sysbios_knl_Task_getIdleTaskHandle__E( xdc_UInt coreId );
/* startCore__E */
extern void ti_sysbios_knl_Task_startCore__E( xdc_UInt coreId );
/* getArg0__E */
extern xdc_UArg ti_sysbios_knl_Task_getArg0__E( ti_sysbios_knl_Task_Handle __inst );
/* getArg1__E */
extern xdc_UArg ti_sysbios_knl_Task_getArg1__E( ti_sysbios_knl_Task_Handle __inst );
/* getEnv__E */
extern xdc_Ptr ti_sysbios_knl_Task_getEnv__E( ti_sysbios_knl_Task_Handle __inst );
/* getFunc__E */
extern ti_sysbios_knl_Task_FuncPtr ti_sysbios_knl_Task_getFunc__E( ti_sysbios_knl_Task_Handle __inst, xdc_UArg *arg0, xdc_UArg *arg1 );
/* getHookContext__E */
extern xdc_Ptr ti_sysbios_knl_Task_getHookContext__E( ti_sysbios_knl_Task_Handle __inst, xdc_Int id );
/* getPri__E */
extern xdc_Int ti_sysbios_knl_Task_getPri__E( ti_sysbios_knl_Task_Handle __inst );
/* setArg0__E */
extern void ti_sysbios_knl_Task_setArg0__E( ti_sysbios_knl_Task_Handle __inst, xdc_UArg arg );
/* setArg1__E */
extern void ti_sysbios_knl_Task_setArg1__E( ti_sysbios_knl_Task_Handle __inst, xdc_UArg arg );
/* setEnv__E */
extern void ti_sysbios_knl_Task_setEnv__E( ti_sysbios_knl_Task_Handle __inst, xdc_Ptr env );
/* setHookContext__E */
extern void ti_sysbios_knl_Task_setHookContext__E( ti_sysbios_knl_Task_Handle __inst, xdc_Int id, xdc_Ptr hookContext );
/* setPri__E */
extern xdc_UInt ti_sysbios_knl_Task_setPri__E( ti_sysbios_knl_Task_Handle __inst, xdc_Int newpri );
/* stat__E */
extern void ti_sysbios_knl_Task_stat__E( ti_sysbios_knl_Task_Handle __inst, ti_sysbios_knl_Task_Stat *statbuf );
/* getMode__E */
extern ti_sysbios_knl_Task_Mode ti_sysbios_knl_Task_getMode__E( ti_sysbios_knl_Task_Handle __inst );
/* setAffinity__E */
extern xdc_UInt ti_sysbios_knl_Task_setAffinity__E( ti_sysbios_knl_Task_Handle __inst, xdc_UInt coreId );
/* getAffinity__E */
extern xdc_UInt ti_sysbios_knl_Task_getAffinity__E( ti_sysbios_knl_Task_Handle __inst );
/* block__E */
extern void ti_sysbios_knl_Task_block__E( ti_sysbios_knl_Task_Handle __inst );
/* unblock__E */
extern void ti_sysbios_knl_Task_unblock__E( ti_sysbios_knl_Task_Handle __inst );
/* blockI__E */
extern void ti_sysbios_knl_Task_blockI__E( ti_sysbios_knl_Task_Handle __inst );
/* unblockI__E */
extern void ti_sysbios_knl_Task_unblockI__E( ti_sysbios_knl_Task_Handle __inst, xdc_UInt hwiKey );
/* schedule__I */
extern void ti_sysbios_knl_Task_schedule__I( void );
/* enter__I */
extern void ti_sysbios_knl_Task_enter__I( void );
/* sleepTimeout__I */
extern void ti_sysbios_knl_Task_sleepTimeout__I( xdc_UArg arg );
/* postInit__I */
extern xdc_Int ti_sysbios_knl_Task_postInit__I( ti_sysbios_knl_Task_Object *task, xdc_runtime_Error_Block *eb );
/* allBlockedFunction__I */
extern void ti_sysbios_knl_Task_allBlockedFunction__I( void );
/* deleteTerminatedTasksFunc__I */
extern void ti_sysbios_knl_Task_deleteTerminatedTasksFunc__I( void );
/* processVitalTaskFlag__I */
extern void ti_sysbios_knl_Task_processVitalTaskFlag__I( ti_sysbios_knl_Task_Object *task );
/*
* ======== SYSTEM FUNCTIONS ========
*/
/* Module_startupDone */
/* Object_heap */
/* Module_heap */
/* Module_id */
static inline CT__ti_sysbios_knl_Task_Module__id ti_sysbios_knl_Task_Module_id( void )
{
return ti_sysbios_knl_Task_Module__id__C;
}
/* Module_hasMask */
static inline xdc_Bool ti_sysbios_knl_Task_Module_hasMask( void )
{
return ti_sysbios_knl_Task_Module__diagsMask__C != 0;
}
/* Module_getMask */
static inline xdc_Bits16 ti_sysbios_knl_Task_Module_getMask( void )
{
return ti_sysbios_knl_Task_Module__diagsMask__C != 0 ? *ti_sysbios_knl_Task_Module__diagsMask__C : 0;
}
/* Module_setMask */
static inline void ti_sysbios_knl_Task_Module_setMask( xdc_Bits16 mask )
{
if (ti_sysbios_knl_Task_Module__diagsMask__C != 0) *ti_sysbios_knl_Task_Module__diagsMask__C = mask;
}
/* Params_init */
static inline void ti_sysbios_knl_Task_Params_init( ti_sysbios_knl_Task_Params *prms )
{
if (prms) {
ti_sysbios_knl_Task_Params__init__S(prms, 0, sizeof(ti_sysbios_knl_Task_Params), sizeof(xdc_runtime_IInstance_Params));
}
}
/* Params_copy */
static inline void ti_sysbios_knl_Task_Params_copy(ti_sysbios_knl_Task_Params *dst, const ti_sysbios_knl_Task_Params *src)
{
if (dst) {
ti_sysbios_knl_Task_Params__init__S(dst, (const void *)src, sizeof(ti_sysbios_knl_Task_Params), sizeof(xdc_runtime_IInstance_Params));
}
}
/* Object_count */
/* Object_sizeof */
/* Object_get */
static inline ti_sysbios_knl_Task_Handle ti_sysbios_knl_Task_Object_get(ti_sysbios_knl_Task_Instance_State *oarr, int i)
{
return (ti_sysbios_knl_Task_Handle)ti_sysbios_knl_Task_Object__get__S(oarr, i);
}
/* Object_first */
static inline ti_sysbios_knl_Task_Handle ti_sysbios_knl_Task_Object_first( void )
{
return (ti_sysbios_knl_Task_Handle)ti_sysbios_knl_Task_Object__first__S();
}
/* Object_next */
static inline ti_sysbios_knl_Task_Handle ti_sysbios_knl_Task_Object_next( ti_sysbios_knl_Task_Object *obj )
{
return (ti_sysbios_knl_Task_Handle)ti_sysbios_knl_Task_Object__next__S(obj);
}
/* Handle_label */
static inline xdc_runtime_Types_Label *ti_sysbios_knl_Task_Handle_label( ti_sysbios_knl_Task_Handle inst, xdc_runtime_Types_Label *lab )
{
return ti_sysbios_knl_Task_Handle__label__S(inst, lab);
}
/* Handle_name */
static inline xdc_String ti_sysbios_knl_Task_Handle_name( ti_sysbios_knl_Task_Handle inst )
{
xdc_runtime_Types_Label lab;
return ti_sysbios_knl_Task_Handle__label__S(inst, &lab)->iname;
}
/* handle */
static inline ti_sysbios_knl_Task_Handle ti_sysbios_knl_Task_handle( ti_sysbios_knl_Task_Struct *str )
{
return (ti_sysbios_knl_Task_Handle)str;
}
/* struct */
static inline ti_sysbios_knl_Task_Struct *ti_sysbios_knl_Task_struct( ti_sysbios_knl_Task_Handle inst )
{
return (ti_sysbios_knl_Task_Struct*)inst;
}
/*
* ======== EPILOGUE ========
*/
/*
* Copyright (c) 2012-2014, Texas Instruments Incorporated
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of Texas Instruments Incorporated nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/*
* ======== Task_selfMacro ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/* module prefix */
/* proxies */
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-A71
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* MODULE-WIDE CONFIGS
* VIRTUAL FUNCTIONS
* FUNCTION DECLARATIONS
* CONVERTORS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/* module prefix */
extern const ti_sysbios_knl_Task_Handle SystemController;
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-A71
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* PER-INSTANCE TYPES
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== INCLUDES ========
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:03; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* PER-INSTANCE TYPES
* VIRTUAL FUNCTIONS
* FUNCTION STUBS
* FUNCTION SELECTORS
*
* EPILOGUE
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:01; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Copyright (c) 2012, Texas Instruments Incorporated
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of Texas Instruments Incorporated nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:28:59; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:28:59; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:01; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-A71
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* PER-INSTANCE TYPES
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-A71
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* CREATE ARGS
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* PER-INSTANCE TYPES
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-A71
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* CREATE ARGS
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* PER-INSTANCE TYPES
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* VIRTUAL FUNCTIONS
* FUNCTION STUBS
* FUNCTION SELECTORS
*
* EPILOGUE
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:01; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* ======== AUXILIARY DEFINITIONS ========
*/
/* Id_00 */
/* Id_01 */
/* Id_02 */
/* Id_03 */
/* Id_04 */
/* Id_05 */
/* Id_06 */
/* Id_07 */
/* Id_08 */
/* Id_09 */
/* Id_10 */
/* Id_11 */
/* Id_12 */
/* Id_13 */
/* Id_14 */
/* Id_15 */
/* Id_16 */
/* Id_17 */
/* Id_18 */
/* Id_19 */
/* Id_20 */
/* Id_21 */
/* Id_22 */
/* Id_23 */
/* Id_24 */
/* Id_25 */
/* Id_26 */
/* Id_27 */
/* Id_28 */
/* Id_29 */
/* Id_30 */
/* Id_31 */
/* Id_NONE */
/*
* ======== INTERNAL DEFINITIONS ========
*/
/* PendState */
enum ti_sysbios_knl_Event_PendState {
ti_sysbios_knl_Event_PendState_TIMEOUT = 0,
ti_sysbios_knl_Event_PendState_POSTED = 1,
ti_sysbios_knl_Event_PendState_CLOCK_WAIT = 2,
ti_sysbios_knl_Event_PendState_WAIT_FOREVER = 3
};
typedef enum ti_sysbios_knl_Event_PendState ti_sysbios_knl_Event_PendState;
/* PendElem */
struct ti_sysbios_knl_Event_PendElem {
ti_sysbios_knl_Task_PendElem tpElem;
ti_sysbios_knl_Event_PendState pendState;
xdc_UInt matchingEvents;
xdc_UInt andMask;
xdc_UInt orMask;
};
/*
* ======== MODULE-WIDE CONFIGS ========
*/
/* Module__diagsEnabled */
typedef xdc_Bits32 CT__ti_sysbios_knl_Event_Module__diagsEnabled;
extern const CT__ti_sysbios_knl_Event_Module__diagsEnabled ti_sysbios_knl_Event_Module__diagsEnabled__C;
/* Module__diagsIncluded */
typedef xdc_Bits32 CT__ti_sysbios_knl_Event_Module__diagsIncluded;
extern const CT__ti_sysbios_knl_Event_Module__diagsIncluded ti_sysbios_knl_Event_Module__diagsIncluded__C;
/* Module__diagsMask */
typedef xdc_Bits16 *CT__ti_sysbios_knl_Event_Module__diagsMask;
extern const CT__ti_sysbios_knl_Event_Module__diagsMask ti_sysbios_knl_Event_Module__diagsMask__C;
/* Module__gateObj */
typedef xdc_Ptr CT__ti_sysbios_knl_Event_Module__gateObj;
extern const CT__ti_sysbios_knl_Event_Module__gateObj ti_sysbios_knl_Event_Module__gateObj__C;
/* Module__gatePrms */
typedef xdc_Ptr CT__ti_sysbios_knl_Event_Module__gatePrms;
extern const CT__ti_sysbios_knl_Event_Module__gatePrms ti_sysbios_knl_Event_Module__gatePrms__C;
/* Module__id */
typedef xdc_runtime_Types_ModuleId CT__ti_sysbios_knl_Event_Module__id;
extern const CT__ti_sysbios_knl_Event_Module__id ti_sysbios_knl_Event_Module__id__C;
/* Module__loggerDefined */
typedef xdc_Bool CT__ti_sysbios_knl_Event_Module__loggerDefined;
extern const CT__ti_sysbios_knl_Event_Module__loggerDefined ti_sysbios_knl_Event_Module__loggerDefined__C;
/* Module__loggerObj */
typedef xdc_Ptr CT__ti_sysbios_knl_Event_Module__loggerObj;
extern const CT__ti_sysbios_knl_Event_Module__loggerObj ti_sysbios_knl_Event_Module__loggerObj__C;
/* Module__loggerFxn0 */
typedef xdc_runtime_Types_LoggerFxn0 CT__ti_sysbios_knl_Event_Module__loggerFxn0;
extern const CT__ti_sysbios_knl_Event_Module__loggerFxn0 ti_sysbios_knl_Event_Module__loggerFxn0__C;
/* Module__loggerFxn1 */
typedef xdc_runtime_Types_LoggerFxn1 CT__ti_sysbios_knl_Event_Module__loggerFxn1;
extern const CT__ti_sysbios_knl_Event_Module__loggerFxn1 ti_sysbios_knl_Event_Module__loggerFxn1__C;
/* Module__loggerFxn2 */
typedef xdc_runtime_Types_LoggerFxn2 CT__ti_sysbios_knl_Event_Module__loggerFxn2;
extern const CT__ti_sysbios_knl_Event_Module__loggerFxn2 ti_sysbios_knl_Event_Module__loggerFxn2__C;
/* Module__loggerFxn4 */
typedef xdc_runtime_Types_LoggerFxn4 CT__ti_sysbios_knl_Event_Module__loggerFxn4;
extern const CT__ti_sysbios_knl_Event_Module__loggerFxn4 ti_sysbios_knl_Event_Module__loggerFxn4__C;
/* Module__loggerFxn8 */
typedef xdc_runtime_Types_LoggerFxn8 CT__ti_sysbios_knl_Event_Module__loggerFxn8;
extern const CT__ti_sysbios_knl_Event_Module__loggerFxn8 ti_sysbios_knl_Event_Module__loggerFxn8__C;
/* Module__startupDoneFxn */
typedef xdc_Bool (*CT__ti_sysbios_knl_Event_Module__startupDoneFxn)(void);
extern const CT__ti_sysbios_knl_Event_Module__startupDoneFxn ti_sysbios_knl_Event_Module__startupDoneFxn__C;
/* Object__count */
typedef xdc_Int CT__ti_sysbios_knl_Event_Object__count;
extern const CT__ti_sysbios_knl_Event_Object__count ti_sysbios_knl_Event_Object__count__C;
/* Object__heap */
typedef xdc_runtime_IHeap_Handle CT__ti_sysbios_knl_Event_Object__heap;
extern const CT__ti_sysbios_knl_Event_Object__heap ti_sysbios_knl_Event_Object__heap__C;
/* Object__sizeof */
typedef xdc_SizeT CT__ti_sysbios_knl_Event_Object__sizeof;
extern const CT__ti_sysbios_knl_Event_Object__sizeof ti_sysbios_knl_Event_Object__sizeof__C;
/* Object__table */
typedef xdc_Ptr CT__ti_sysbios_knl_Event_Object__table;
extern const CT__ti_sysbios_knl_Event_Object__table ti_sysbios_knl_Event_Object__table__C;
/* LM_post */
typedef xdc_runtime_Log_Event CT__ti_sysbios_knl_Event_LM_post;
extern const CT__ti_sysbios_knl_Event_LM_post ti_sysbios_knl_Event_LM_post__C;
/* LM_pend */
typedef xdc_runtime_Log_Event CT__ti_sysbios_knl_Event_LM_pend;
extern const CT__ti_sysbios_knl_Event_LM_pend ti_sysbios_knl_Event_LM_pend__C;
/* A_nullEventMasks */
typedef xdc_runtime_Assert_Id CT__ti_sysbios_knl_Event_A_nullEventMasks;
extern const CT__ti_sysbios_knl_Event_A_nullEventMasks ti_sysbios_knl_Event_A_nullEventMasks__C;
/* A_nullEventId */
typedef xdc_runtime_Assert_Id CT__ti_sysbios_knl_Event_A_nullEventId;
extern const CT__ti_sysbios_knl_Event_A_nullEventId ti_sysbios_knl_Event_A_nullEventId__C;
/* A_eventInUse */
typedef xdc_runtime_Assert_Id CT__ti_sysbios_knl_Event_A_eventInUse;
extern const CT__ti_sysbios_knl_Event_A_eventInUse ti_sysbios_knl_Event_A_eventInUse__C;
/* A_badContext */
typedef xdc_runtime_Assert_Id CT__ti_sysbios_knl_Event_A_badContext;
extern const CT__ti_sysbios_knl_Event_A_badContext ti_sysbios_knl_Event_A_badContext__C;
/* A_pendTaskDisabled */
typedef xdc_runtime_Assert_Id CT__ti_sysbios_knl_Event_A_pendTaskDisabled;
extern const CT__ti_sysbios_knl_Event_A_pendTaskDisabled ti_sysbios_knl_Event_A_pendTaskDisabled__C;
/*
* ======== PER-INSTANCE TYPES ========
*/
/* Params */
struct ti_sysbios_knl_Event_Params {
size_t __size;
const void *__self;
void *__fxns;
xdc_runtime_IInstance_Params *instance;
xdc_runtime_IInstance_Params __iprms;
};
/* Struct */
struct ti_sysbios_knl_Event_Struct {
volatile xdc_UInt __f0;
ti_sysbios_knl_Queue_Struct __f1;
xdc_runtime_Types_CordAddr __name;
};
/*
* ======== FUNCTION DECLARATIONS ========
*/
/* Module_startup */
/* Instance_init__E */
extern void ti_sysbios_knl_Event_Instance_init__E(ti_sysbios_knl_Event_Object *, const ti_sysbios_knl_Event_Params *);
/* Handle__label__S */
extern xdc_runtime_Types_Label *ti_sysbios_knl_Event_Handle__label__S( xdc_Ptr obj, xdc_runtime_Types_Label *lab );
/* Module__startupDone__S */
extern xdc_Bool ti_sysbios_knl_Event_Module__startupDone__S( void );
/* Object__create__S */
extern xdc_Ptr ti_sysbios_knl_Event_Object__create__S( xdc_Ptr __oa, xdc_SizeT __osz, xdc_Ptr __aa, const xdc_UChar *__pa, xdc_SizeT __psz, xdc_runtime_Error_Block *__eb );
/* create */
extern ti_sysbios_knl_Event_Handle ti_sysbios_knl_Event_create( const ti_sysbios_knl_Event_Params *__prms, xdc_runtime_Error_Block *__eb );
/* construct */
extern void ti_sysbios_knl_Event_construct( ti_sysbios_knl_Event_Struct *__obj, const ti_sysbios_knl_Event_Params *__prms );
/* Object__delete__S */
extern void ti_sysbios_knl_Event_Object__delete__S( xdc_Ptr instp );
/* delete */
extern void ti_sysbios_knl_Event_delete(ti_sysbios_knl_Event_Handle *instp);
/* Object__destruct__S */
extern void ti_sysbios_knl_Event_Object__destruct__S( xdc_Ptr objp );
/* destruct */
extern void ti_sysbios_knl_Event_destruct(ti_sysbios_knl_Event_Struct *obj);
/* Object__get__S */
extern xdc_Ptr ti_sysbios_knl_Event_Object__get__S( xdc_Ptr oarr, xdc_Int i );
/* Object__first__S */
extern xdc_Ptr ti_sysbios_knl_Event_Object__first__S( void );
/* Object__next__S */
extern xdc_Ptr ti_sysbios_knl_Event_Object__next__S( xdc_Ptr obj );
/* Params__init__S */
extern void ti_sysbios_knl_Event_Params__init__S( xdc_Ptr dst, const void *src, xdc_SizeT psz, xdc_SizeT isz );
/* pend__E */
extern xdc_UInt ti_sysbios_knl_Event_pend__E( ti_sysbios_knl_Event_Handle __inst, xdc_UInt andMask, xdc_UInt orMask, xdc_UInt32 timeout );
/* post__E */
extern void ti_sysbios_knl_Event_post__E( ti_sysbios_knl_Event_Handle __inst, xdc_UInt eventMask );
/* getPostedEvents__E */
extern xdc_UInt ti_sysbios_knl_Event_getPostedEvents__E( ti_sysbios_knl_Event_Handle __inst );
/* sync__E */
extern void ti_sysbios_knl_Event_sync__E( ti_sysbios_knl_Event_Handle __inst, xdc_UInt eventId, xdc_UInt count );
/* pendTimeout__I */
extern void ti_sysbios_knl_Event_pendTimeout__I( xdc_UArg arg );
/* checkEvents__I */
extern xdc_UInt ti_sysbios_knl_Event_checkEvents__I( ti_sysbios_knl_Event_Object *event, xdc_UInt andMask, xdc_UInt orMask );
/*
* ======== SYSTEM FUNCTIONS ========
*/
/* Module_startupDone */
/* Object_heap */
/* Module_heap */
/* Module_id */
static inline CT__ti_sysbios_knl_Event_Module__id ti_sysbios_knl_Event_Module_id( void )
{
return ti_sysbios_knl_Event_Module__id__C;
}
/* Module_hasMask */
static inline xdc_Bool ti_sysbios_knl_Event_Module_hasMask( void )
{
return ti_sysbios_knl_Event_Module__diagsMask__C != 0;
}
/* Module_getMask */
static inline xdc_Bits16 ti_sysbios_knl_Event_Module_getMask( void )
{
return ti_sysbios_knl_Event_Module__diagsMask__C != 0 ? *ti_sysbios_knl_Event_Module__diagsMask__C : 0;
}
/* Module_setMask */
static inline void ti_sysbios_knl_Event_Module_setMask( xdc_Bits16 mask )
{
if (ti_sysbios_knl_Event_Module__diagsMask__C != 0) *ti_sysbios_knl_Event_Module__diagsMask__C = mask;
}
/* Params_init */
static inline void ti_sysbios_knl_Event_Params_init( ti_sysbios_knl_Event_Params *prms )
{
if (prms) {
ti_sysbios_knl_Event_Params__init__S(prms, 0, sizeof(ti_sysbios_knl_Event_Params), sizeof(xdc_runtime_IInstance_Params));
}
}
/* Params_copy */
static inline void ti_sysbios_knl_Event_Params_copy(ti_sysbios_knl_Event_Params *dst, const ti_sysbios_knl_Event_Params *src)
{
if (dst) {
ti_sysbios_knl_Event_Params__init__S(dst, (const void *)src, sizeof(ti_sysbios_knl_Event_Params), sizeof(xdc_runtime_IInstance_Params));
}
}
/* Object_count */
/* Object_sizeof */
/* Object_get */
static inline ti_sysbios_knl_Event_Handle ti_sysbios_knl_Event_Object_get(ti_sysbios_knl_Event_Instance_State *oarr, int i)
{
return (ti_sysbios_knl_Event_Handle)ti_sysbios_knl_Event_Object__get__S(oarr, i);
}
/* Object_first */
static inline ti_sysbios_knl_Event_Handle ti_sysbios_knl_Event_Object_first( void )
{
return (ti_sysbios_knl_Event_Handle)ti_sysbios_knl_Event_Object__first__S();
}
/* Object_next */
static inline ti_sysbios_knl_Event_Handle ti_sysbios_knl_Event_Object_next( ti_sysbios_knl_Event_Object *obj )
{
return (ti_sysbios_knl_Event_Handle)ti_sysbios_knl_Event_Object__next__S(obj);
}
/* Handle_label */
static inline xdc_runtime_Types_Label *ti_sysbios_knl_Event_Handle_label( ti_sysbios_knl_Event_Handle inst, xdc_runtime_Types_Label *lab )
{
return ti_sysbios_knl_Event_Handle__label__S(inst, lab);
}
/* Handle_name */
static inline xdc_String ti_sysbios_knl_Event_Handle_name( ti_sysbios_knl_Event_Handle inst )
{
xdc_runtime_Types_Label lab;
return ti_sysbios_knl_Event_Handle__label__S(inst, &lab)->iname;
}
/* handle */
static inline ti_sysbios_knl_Event_Handle ti_sysbios_knl_Event_handle( ti_sysbios_knl_Event_Struct *str )
{
return (ti_sysbios_knl_Event_Handle)str;
}
/* struct */
static inline ti_sysbios_knl_Event_Struct *ti_sysbios_knl_Event_struct( ti_sysbios_knl_Event_Handle inst )
{
return (ti_sysbios_knl_Event_Struct*)inst;
}
/*
* ======== EPILOGUE ========
*/
/*
* Copyright (c) 2012-2014, Texas Instruments Incorporated
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of Texas Instruments Incorporated nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/* module prefix */
extern const ti_sysbios_knl_Event_Handle bios_SYSCONTROL_Task_ev;
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-A71
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* CREATE ARGS
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* PER-INSTANCE TYPES
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
extern const ti_sysbios_knl_Task_Handle Diagnostic;
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-A71
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* PER-INSTANCE TYPES
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
extern const ti_sysbios_knl_Event_Handle bios_DIAG_ev;
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-A71
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* CREATE ARGS
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* PER-INSTANCE TYPES
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== INCLUDES ========
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:03; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* PER-INSTANCE TYPES
* VIRTUAL FUNCTIONS
* FUNCTION STUBS
* FUNCTION SELECTORS
*
* EPILOGUE
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:01; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:28:59; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:01; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:28:59; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-A71
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* PER-INSTANCE TYPES
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-A71
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* CREATE ARGS
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* PER-INSTANCE TYPES
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-A71
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* CREATE ARGS
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* PER-INSTANCE TYPES
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* VIRTUAL FUNCTIONS
* FUNCTION STUBS
* FUNCTION SELECTORS
*
* EPILOGUE
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:01; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-A71
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* PER-INSTANCE TYPES
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* ======== AUXILIARY DEFINITIONS ========
*/
/* Mode */
enum ti_sysbios_knl_Semaphore_Mode {
ti_sysbios_knl_Semaphore_Mode_COUNTING = 0x0,
ti_sysbios_knl_Semaphore_Mode_BINARY = 0x1,
ti_sysbios_knl_Semaphore_Mode_COUNTING_PRIORITY = 0x2,
ti_sysbios_knl_Semaphore_Mode_BINARY_PRIORITY = 0x3
};
typedef enum ti_sysbios_knl_Semaphore_Mode ti_sysbios_knl_Semaphore_Mode;
/*
* ======== CREATE ARGS ========
*/
/* Args__create */
typedef struct ti_sysbios_knl_Semaphore_Args__create {
xdc_Int count;
} ti_sysbios_knl_Semaphore_Args__create;
/*
* ======== INTERNAL DEFINITIONS ========
*/
/* PendState */
enum ti_sysbios_knl_Semaphore_PendState {
ti_sysbios_knl_Semaphore_PendState_TIMEOUT = 0,
ti_sysbios_knl_Semaphore_PendState_POSTED = 1,
ti_sysbios_knl_Semaphore_PendState_CLOCK_WAIT = 2,
ti_sysbios_knl_Semaphore_PendState_WAIT_FOREVER = 3
};
typedef enum ti_sysbios_knl_Semaphore_PendState ti_sysbios_knl_Semaphore_PendState;
/* PendElem */
struct ti_sysbios_knl_Semaphore_PendElem {
ti_sysbios_knl_Task_PendElem tpElem;
ti_sysbios_knl_Semaphore_PendState pendState;
};
/*
* ======== MODULE-WIDE CONFIGS ========
*/
/* Module__diagsEnabled */
typedef xdc_Bits32 CT__ti_sysbios_knl_Semaphore_Module__diagsEnabled;
extern const CT__ti_sysbios_knl_Semaphore_Module__diagsEnabled ti_sysbios_knl_Semaphore_Module__diagsEnabled__C;
/* Module__diagsIncluded */
typedef xdc_Bits32 CT__ti_sysbios_knl_Semaphore_Module__diagsIncluded;
extern const CT__ti_sysbios_knl_Semaphore_Module__diagsIncluded ti_sysbios_knl_Semaphore_Module__diagsIncluded__C;
/* Module__diagsMask */
typedef xdc_Bits16 *CT__ti_sysbios_knl_Semaphore_Module__diagsMask;
extern const CT__ti_sysbios_knl_Semaphore_Module__diagsMask ti_sysbios_knl_Semaphore_Module__diagsMask__C;
/* Module__gateObj */
typedef xdc_Ptr CT__ti_sysbios_knl_Semaphore_Module__gateObj;
extern const CT__ti_sysbios_knl_Semaphore_Module__gateObj ti_sysbios_knl_Semaphore_Module__gateObj__C;
/* Module__gatePrms */
typedef xdc_Ptr CT__ti_sysbios_knl_Semaphore_Module__gatePrms;
extern const CT__ti_sysbios_knl_Semaphore_Module__gatePrms ti_sysbios_knl_Semaphore_Module__gatePrms__C;
/* Module__id */
typedef xdc_runtime_Types_ModuleId CT__ti_sysbios_knl_Semaphore_Module__id;
extern const CT__ti_sysbios_knl_Semaphore_Module__id ti_sysbios_knl_Semaphore_Module__id__C;
/* Module__loggerDefined */
typedef xdc_Bool CT__ti_sysbios_knl_Semaphore_Module__loggerDefined;
extern const CT__ti_sysbios_knl_Semaphore_Module__loggerDefined ti_sysbios_knl_Semaphore_Module__loggerDefined__C;
/* Module__loggerObj */
typedef xdc_Ptr CT__ti_sysbios_knl_Semaphore_Module__loggerObj;
extern const CT__ti_sysbios_knl_Semaphore_Module__loggerObj ti_sysbios_knl_Semaphore_Module__loggerObj__C;
/* Module__loggerFxn0 */
typedef xdc_runtime_Types_LoggerFxn0 CT__ti_sysbios_knl_Semaphore_Module__loggerFxn0;
extern const CT__ti_sysbios_knl_Semaphore_Module__loggerFxn0 ti_sysbios_knl_Semaphore_Module__loggerFxn0__C;
/* Module__loggerFxn1 */
typedef xdc_runtime_Types_LoggerFxn1 CT__ti_sysbios_knl_Semaphore_Module__loggerFxn1;
extern const CT__ti_sysbios_knl_Semaphore_Module__loggerFxn1 ti_sysbios_knl_Semaphore_Module__loggerFxn1__C;
/* Module__loggerFxn2 */
typedef xdc_runtime_Types_LoggerFxn2 CT__ti_sysbios_knl_Semaphore_Module__loggerFxn2;
extern const CT__ti_sysbios_knl_Semaphore_Module__loggerFxn2 ti_sysbios_knl_Semaphore_Module__loggerFxn2__C;
/* Module__loggerFxn4 */
typedef xdc_runtime_Types_LoggerFxn4 CT__ti_sysbios_knl_Semaphore_Module__loggerFxn4;
extern const CT__ti_sysbios_knl_Semaphore_Module__loggerFxn4 ti_sysbios_knl_Semaphore_Module__loggerFxn4__C;
/* Module__loggerFxn8 */
typedef xdc_runtime_Types_LoggerFxn8 CT__ti_sysbios_knl_Semaphore_Module__loggerFxn8;
extern const CT__ti_sysbios_knl_Semaphore_Module__loggerFxn8 ti_sysbios_knl_Semaphore_Module__loggerFxn8__C;
/* Module__startupDoneFxn */
typedef xdc_Bool (*CT__ti_sysbios_knl_Semaphore_Module__startupDoneFxn)(void);
extern const CT__ti_sysbios_knl_Semaphore_Module__startupDoneFxn ti_sysbios_knl_Semaphore_Module__startupDoneFxn__C;
/* Object__count */
typedef xdc_Int CT__ti_sysbios_knl_Semaphore_Object__count;
extern const CT__ti_sysbios_knl_Semaphore_Object__count ti_sysbios_knl_Semaphore_Object__count__C;
/* Object__heap */
typedef xdc_runtime_IHeap_Handle CT__ti_sysbios_knl_Semaphore_Object__heap;
extern const CT__ti_sysbios_knl_Semaphore_Object__heap ti_sysbios_knl_Semaphore_Object__heap__C;
/* Object__sizeof */
typedef xdc_SizeT CT__ti_sysbios_knl_Semaphore_Object__sizeof;
extern const CT__ti_sysbios_knl_Semaphore_Object__sizeof ti_sysbios_knl_Semaphore_Object__sizeof__C;
/* Object__table */
typedef xdc_Ptr CT__ti_sysbios_knl_Semaphore_Object__table;
extern const CT__ti_sysbios_knl_Semaphore_Object__table ti_sysbios_knl_Semaphore_Object__table__C;
/* LM_post */
typedef xdc_runtime_Log_Event CT__ti_sysbios_knl_Semaphore_LM_post;
extern const CT__ti_sysbios_knl_Semaphore_LM_post ti_sysbios_knl_Semaphore_LM_post__C;
/* LM_pend */
typedef xdc_runtime_Log_Event CT__ti_sysbios_knl_Semaphore_LM_pend;
extern const CT__ti_sysbios_knl_Semaphore_LM_pend ti_sysbios_knl_Semaphore_LM_pend__C;
/* A_noEvents */
typedef xdc_runtime_Assert_Id CT__ti_sysbios_knl_Semaphore_A_noEvents;
extern const CT__ti_sysbios_knl_Semaphore_A_noEvents ti_sysbios_knl_Semaphore_A_noEvents__C;
/* A_invTimeout */
typedef xdc_runtime_Assert_Id CT__ti_sysbios_knl_Semaphore_A_invTimeout;
extern const CT__ti_sysbios_knl_Semaphore_A_invTimeout ti_sysbios_knl_Semaphore_A_invTimeout__C;
/* A_badContext */
typedef xdc_runtime_Assert_Id CT__ti_sysbios_knl_Semaphore_A_badContext;
extern const CT__ti_sysbios_knl_Semaphore_A_badContext ti_sysbios_knl_Semaphore_A_badContext__C;
/* A_overflow */
typedef xdc_runtime_Assert_Id CT__ti_sysbios_knl_Semaphore_A_overflow;
extern const CT__ti_sysbios_knl_Semaphore_A_overflow ti_sysbios_knl_Semaphore_A_overflow__C;
/* A_pendTaskDisabled */
typedef xdc_runtime_Assert_Id CT__ti_sysbios_knl_Semaphore_A_pendTaskDisabled;
extern const CT__ti_sysbios_knl_Semaphore_A_pendTaskDisabled ti_sysbios_knl_Semaphore_A_pendTaskDisabled__C;
/* supportsEvents */
typedef xdc_Bool CT__ti_sysbios_knl_Semaphore_supportsEvents;
extern const CT__ti_sysbios_knl_Semaphore_supportsEvents ti_sysbios_knl_Semaphore_supportsEvents__C;
/* supportsPriority */
typedef xdc_Bool CT__ti_sysbios_knl_Semaphore_supportsPriority;
extern const CT__ti_sysbios_knl_Semaphore_supportsPriority ti_sysbios_knl_Semaphore_supportsPriority__C;
/* eventPost */
typedef void (*CT__ti_sysbios_knl_Semaphore_eventPost)(ti_sysbios_knl_Event_Handle, xdc_UInt);
extern const CT__ti_sysbios_knl_Semaphore_eventPost ti_sysbios_knl_Semaphore_eventPost__C;
/* eventSync */
typedef void (*CT__ti_sysbios_knl_Semaphore_eventSync)(ti_sysbios_knl_Event_Handle, xdc_UInt, xdc_UInt);
extern const CT__ti_sysbios_knl_Semaphore_eventSync ti_sysbios_knl_Semaphore_eventSync__C;
/*
* ======== PER-INSTANCE TYPES ========
*/
/* Params */
struct ti_sysbios_knl_Semaphore_Params {
size_t __size;
const void *__self;
void *__fxns;
xdc_runtime_IInstance_Params *instance;
ti_sysbios_knl_Event_Handle event;
xdc_UInt eventId;
ti_sysbios_knl_Semaphore_Mode mode;
xdc_runtime_IInstance_Params __iprms;
};
/* Struct */
struct ti_sysbios_knl_Semaphore_Struct {
ti_sysbios_knl_Event_Handle __f0;
xdc_UInt __f1;
ti_sysbios_knl_Semaphore_Mode __f2;
volatile xdc_UInt16 __f3;
ti_sysbios_knl_Queue_Struct __f4;
xdc_runtime_Types_CordAddr __name;
};
/*
* ======== FUNCTION DECLARATIONS ========
*/
/* Module_startup */
/* Instance_init__E */
extern void ti_sysbios_knl_Semaphore_Instance_init__E(ti_sysbios_knl_Semaphore_Object *, xdc_Int count, const ti_sysbios_knl_Semaphore_Params *);
/* Instance_finalize__E */
extern void ti_sysbios_knl_Semaphore_Instance_finalize__E( ti_sysbios_knl_Semaphore_Object* );
/* Handle__label__S */
extern xdc_runtime_Types_Label *ti_sysbios_knl_Semaphore_Handle__label__S( xdc_Ptr obj, xdc_runtime_Types_Label *lab );
/* Module__startupDone__S */
extern xdc_Bool ti_sysbios_knl_Semaphore_Module__startupDone__S( void );
/* Object__create__S */
extern xdc_Ptr ti_sysbios_knl_Semaphore_Object__create__S( xdc_Ptr __oa, xdc_SizeT __osz, xdc_Ptr __aa, const xdc_UChar *__pa, xdc_SizeT __psz, xdc_runtime_Error_Block *__eb );
/* create */
extern ti_sysbios_knl_Semaphore_Handle ti_sysbios_knl_Semaphore_create( xdc_Int count, const ti_sysbios_knl_Semaphore_Params *__prms, xdc_runtime_Error_Block *__eb );
/* construct */
extern void ti_sysbios_knl_Semaphore_construct( ti_sysbios_knl_Semaphore_Struct *__obj, xdc_Int count, const ti_sysbios_knl_Semaphore_Params *__prms );
/* Object__delete__S */
extern void ti_sysbios_knl_Semaphore_Object__delete__S( xdc_Ptr instp );
/* delete */
extern void ti_sysbios_knl_Semaphore_delete(ti_sysbios_knl_Semaphore_Handle *instp);
/* Object__destruct__S */
extern void ti_sysbios_knl_Semaphore_Object__destruct__S( xdc_Ptr objp );
/* destruct */
extern void ti_sysbios_knl_Semaphore_destruct(ti_sysbios_knl_Semaphore_Struct *obj);
/* Object__get__S */
extern xdc_Ptr ti_sysbios_knl_Semaphore_Object__get__S( xdc_Ptr oarr, xdc_Int i );
/* Object__first__S */
extern xdc_Ptr ti_sysbios_knl_Semaphore_Object__first__S( void );
/* Object__next__S */
extern xdc_Ptr ti_sysbios_knl_Semaphore_Object__next__S( xdc_Ptr obj );
/* Params__init__S */
extern void ti_sysbios_knl_Semaphore_Params__init__S( xdc_Ptr dst, const void *src, xdc_SizeT psz, xdc_SizeT isz );
/* getCount__E */
extern xdc_Int ti_sysbios_knl_Semaphore_getCount__E( ti_sysbios_knl_Semaphore_Handle __inst );
/* pend__E */
extern xdc_Bool ti_sysbios_knl_Semaphore_pend__E( ti_sysbios_knl_Semaphore_Handle __inst, xdc_UInt32 timeout );
/* post__E */
extern void ti_sysbios_knl_Semaphore_post__E( ti_sysbios_knl_Semaphore_Handle __inst );
/* registerEvent__E */
extern void ti_sysbios_knl_Semaphore_registerEvent__E( ti_sysbios_knl_Semaphore_Handle __inst, ti_sysbios_knl_Event_Handle event, xdc_UInt eventId );
/* reset__E */
extern void ti_sysbios_knl_Semaphore_reset__E( ti_sysbios_knl_Semaphore_Handle __inst, xdc_Int count );
/* pendTimeout__I */
extern void ti_sysbios_knl_Semaphore_pendTimeout__I( xdc_UArg arg );
/*
* ======== SYSTEM FUNCTIONS ========
*/
/* Module_startupDone */
/* Object_heap */
/* Module_heap */
/* Module_id */
static inline CT__ti_sysbios_knl_Semaphore_Module__id ti_sysbios_knl_Semaphore_Module_id( void )
{
return ti_sysbios_knl_Semaphore_Module__id__C;
}
/* Module_hasMask */
static inline xdc_Bool ti_sysbios_knl_Semaphore_Module_hasMask( void )
{
return ti_sysbios_knl_Semaphore_Module__diagsMask__C != 0;
}
/* Module_getMask */
static inline xdc_Bits16 ti_sysbios_knl_Semaphore_Module_getMask( void )
{
return ti_sysbios_knl_Semaphore_Module__diagsMask__C != 0 ? *ti_sysbios_knl_Semaphore_Module__diagsMask__C : 0;
}
/* Module_setMask */
static inline void ti_sysbios_knl_Semaphore_Module_setMask( xdc_Bits16 mask )
{
if (ti_sysbios_knl_Semaphore_Module__diagsMask__C != 0) *ti_sysbios_knl_Semaphore_Module__diagsMask__C = mask;
}
/* Params_init */
static inline void ti_sysbios_knl_Semaphore_Params_init( ti_sysbios_knl_Semaphore_Params *prms )
{
if (prms) {
ti_sysbios_knl_Semaphore_Params__init__S(prms, 0, sizeof(ti_sysbios_knl_Semaphore_Params), sizeof(xdc_runtime_IInstance_Params));
}
}
/* Params_copy */
static inline void ti_sysbios_knl_Semaphore_Params_copy(ti_sysbios_knl_Semaphore_Params *dst, const ti_sysbios_knl_Semaphore_Params *src)
{
if (dst) {
ti_sysbios_knl_Semaphore_Params__init__S(dst, (const void *)src, sizeof(ti_sysbios_knl_Semaphore_Params), sizeof(xdc_runtime_IInstance_Params));
}
}
/* Object_count */
/* Object_sizeof */
/* Object_get */
static inline ti_sysbios_knl_Semaphore_Handle ti_sysbios_knl_Semaphore_Object_get(ti_sysbios_knl_Semaphore_Instance_State *oarr, int i)
{
return (ti_sysbios_knl_Semaphore_Handle)ti_sysbios_knl_Semaphore_Object__get__S(oarr, i);
}
/* Object_first */
static inline ti_sysbios_knl_Semaphore_Handle ti_sysbios_knl_Semaphore_Object_first( void )
{
return (ti_sysbios_knl_Semaphore_Handle)ti_sysbios_knl_Semaphore_Object__first__S();
}
/* Object_next */
static inline ti_sysbios_knl_Semaphore_Handle ti_sysbios_knl_Semaphore_Object_next( ti_sysbios_knl_Semaphore_Object *obj )
{
return (ti_sysbios_knl_Semaphore_Handle)ti_sysbios_knl_Semaphore_Object__next__S(obj);
}
/* Handle_label */
static inline xdc_runtime_Types_Label *ti_sysbios_knl_Semaphore_Handle_label( ti_sysbios_knl_Semaphore_Handle inst, xdc_runtime_Types_Label *lab )
{
return ti_sysbios_knl_Semaphore_Handle__label__S(inst, lab);
}
/* Handle_name */
static inline xdc_String ti_sysbios_knl_Semaphore_Handle_name( ti_sysbios_knl_Semaphore_Handle inst )
{
xdc_runtime_Types_Label lab;
return ti_sysbios_knl_Semaphore_Handle__label__S(inst, &lab)->iname;
}
/* handle */
static inline ti_sysbios_knl_Semaphore_Handle ti_sysbios_knl_Semaphore_handle( ti_sysbios_knl_Semaphore_Struct *str )
{
return (ti_sysbios_knl_Semaphore_Handle)str;
}
/* struct */
static inline ti_sysbios_knl_Semaphore_Struct *ti_sysbios_knl_Semaphore_struct( ti_sysbios_knl_Semaphore_Handle inst )
{
return (ti_sysbios_knl_Semaphore_Struct*)inst;
}
/*
* ======== EPILOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/* module prefix */
extern const ti_sysbios_knl_Semaphore_Handle Diag_sem;
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-A71
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* CREATE ARGS
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* PER-INSTANCE TYPES
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
extern const ti_sysbios_knl_Semaphore_Handle DiagFifo_sem;
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-A71
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* CREATE ARGS
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* PER-INSTANCE TYPES
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
extern const ti_sysbios_knl_Semaphore_Handle ParaSet_sem;
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-A71
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* CREATE ARGS
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* PER-INSTANCE TYPES
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
extern const ti_sysbios_knl_Semaphore_Handle ParaModule_sem;
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-A71
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* CREATE ARGS
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* PER-INSTANCE TYPES
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
extern const ti_sysbios_knl_Semaphore_Handle SpiA_sem;
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-A71
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* CREATE ARGS
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* PER-INSTANCE TYPES
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
extern const ti_sysbios_knl_Semaphore_Handle SpiB_sem;
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-A71
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* CREATE ARGS
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* PER-INSTANCE TYPES
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
extern const ti_sysbios_knl_Semaphore_Handle mcbspSpiA_sem;
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-A71
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* CREATE ARGS
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* PER-INSTANCE TYPES
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
extern const ti_sysbios_knl_Semaphore_Handle mcbspSpiB_sem;
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-A71
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* CREATE ARGS
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* PER-INSTANCE TYPES
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
extern const ti_sysbios_knl_Semaphore_Handle Memdisk_sem;
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-A71
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* CREATE ARGS
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* PER-INSTANCE TYPES
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
extern const ti_sysbios_knl_Semaphore_Handle MemFileFifo_sem;
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-A71
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* CREATE ARGS
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* PER-INSTANCE TYPES
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/* module prefix */
/* proxies */
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-A71
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* CREATE ARGS
* MODULE-WIDE CONFIGS
* PER-INSTANCE TYPES
* VIRTUAL FUNCTIONS
* FUNCTION DECLARATIONS
* CONVERTORS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/* module prefix */
extern const ti_sysbios_knl_Clock_Handle osaltimer;
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-A71
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* PER-INSTANCE TYPES
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
extern const ti_sysbios_knl_Event_Handle bios_MEM_DMA_ev;
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-A71
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* CREATE ARGS
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* PER-INSTANCE TYPES
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
extern const ti_sysbios_knl_Semaphore_Handle U8MemAccess_sem;
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-A71
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* CREATE ARGS
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* PER-INSTANCE TYPES
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
extern const ti_sysbios_knl_Semaphore_Handle MemAccess_sem;
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-A71
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* CREATE ARGS
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* PER-INSTANCE TYPES
* VIRTUAL FUNCTIONS
* FUNCTION DECLARATIONS
* CONVERTORS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== INCLUDES ========
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:03; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* PER-INSTANCE TYPES
* VIRTUAL FUNCTIONS
* FUNCTION STUBS
* FUNCTION SELECTORS
*
* EPILOGUE
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:01; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Copyright (c) 2012, Texas Instruments Incorporated
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of Texas Instruments Incorporated nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-A71
*/
/*
* ======== module ti.sysbios.family.c28.TimestampProvider ========
*/
typedef struct ti_sysbios_family_c28_TimestampProvider_Module_State ti_sysbios_family_c28_TimestampProvider_Module_State;
typedef struct ti_sysbios_family_c28_TimestampProvider_Fxns__ ti_sysbios_family_c28_TimestampProvider_Fxns__;
typedef const ti_sysbios_family_c28_TimestampProvider_Fxns__* ti_sysbios_family_c28_TimestampProvider_Module;
/*
* ======== module ti.sysbios.family.c28.Clobber ========
*/
/*
* ======== module ti.sysbios.family.c28.Hwi ========
*/
typedef struct ti_sysbios_family_c28_Hwi_Module_State ti_sysbios_family_c28_Hwi_Module_State;
typedef struct ti_sysbios_family_c28_Hwi_Fxns__ ti_sysbios_family_c28_Hwi_Fxns__;
typedef const ti_sysbios_family_c28_Hwi_Fxns__* ti_sysbios_family_c28_Hwi_Module;
typedef struct ti_sysbios_family_c28_Hwi_Params ti_sysbios_family_c28_Hwi_Params;
typedef struct ti_sysbios_family_c28_Hwi_Object ti_sysbios_family_c28_Hwi_Object;
typedef struct ti_sysbios_family_c28_Hwi_Struct ti_sysbios_family_c28_Hwi_Struct;
typedef ti_sysbios_family_c28_Hwi_Object* ti_sysbios_family_c28_Hwi_Handle;
typedef struct ti_sysbios_family_c28_Hwi_Object__ ti_sysbios_family_c28_Hwi_Instance_State;
typedef ti_sysbios_family_c28_Hwi_Object* ti_sysbios_family_c28_Hwi_Instance;
/*
* ======== module ti.sysbios.family.c28.Timer ========
*/
typedef struct ti_sysbios_family_c28_Timer_EmulationMode ti_sysbios_family_c28_Timer_EmulationMode;
typedef struct ti_sysbios_family_c28_Timer_Module_State ti_sysbios_family_c28_Timer_Module_State;
typedef struct ti_sysbios_family_c28_Timer_Fxns__ ti_sysbios_family_c28_Timer_Fxns__;
typedef const ti_sysbios_family_c28_Timer_Fxns__* ti_sysbios_family_c28_Timer_Module;
typedef struct ti_sysbios_family_c28_Timer_Params ti_sysbios_family_c28_Timer_Params;
typedef struct ti_sysbios_family_c28_Timer_Object ti_sysbios_family_c28_Timer_Object;
typedef struct ti_sysbios_family_c28_Timer_Struct ti_sysbios_family_c28_Timer_Struct;
typedef ti_sysbios_family_c28_Timer_Object* ti_sysbios_family_c28_Timer_Handle;
typedef struct ti_sysbios_family_c28_Timer_Object__ ti_sysbios_family_c28_Timer_Instance_State;
typedef ti_sysbios_family_c28_Timer_Object* ti_sysbios_family_c28_Timer_Instance;
/*
* ======== module ti.sysbios.family.c28.IntrinsicsSupport ========
*/
typedef struct ti_sysbios_family_c28_IntrinsicsSupport_Fxns__ ti_sysbios_family_c28_IntrinsicsSupport_Fxns__;
typedef const ti_sysbios_family_c28_IntrinsicsSupport_Fxns__* ti_sysbios_family_c28_IntrinsicsSupport_Module;
/*
* ======== module ti.sysbios.family.c28.TaskSupport ========
*/
typedef struct ti_sysbios_family_c28_TaskSupport_Fxns__ ti_sysbios_family_c28_TaskSupport_Fxns__;
typedef const ti_sysbios_family_c28_TaskSupport_Fxns__* ti_sysbios_family_c28_TaskSupport_Module;
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:28:59; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:01; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:28:59; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:00; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-A71
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* CREATE ARGS
* PER-INSTANCE TYPES
* VIRTUAL FUNCTIONS
* FUNCTION STUBS
* FUNCTION SELECTORS
*
* EPILOGUE
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== INCLUDES ========
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:03; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* PER-INSTANCE TYPES
* VIRTUAL FUNCTIONS
* FUNCTION STUBS
* FUNCTION SELECTORS
*
* EPILOGUE
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:01; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:00; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* VIRTUAL FUNCTIONS
* FUNCTION STUBS
* FUNCTION SELECTORS
*
* EPILOGUE
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:01; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* ======== AUXILIARY DEFINITIONS ========
*/
/* FuncPtr */
typedef void (*ti_sysbios_interfaces_IHwi_FuncPtr)(xdc_UArg);
/* Irp */
typedef xdc_UArg ti_sysbios_interfaces_IHwi_Irp;
/* HookSet */
struct ti_sysbios_interfaces_IHwi_HookSet {
void (*registerFxn)(xdc_Int);
void (*createFxn)(ti_sysbios_interfaces_IHwi_Handle, xdc_runtime_Error_Block*);
void (*beginFxn)(ti_sysbios_interfaces_IHwi_Handle);
void (*endFxn)(ti_sysbios_interfaces_IHwi_Handle);
void (*deleteFxn)(ti_sysbios_interfaces_IHwi_Handle);
};
/* MaskingOption */
enum ti_sysbios_interfaces_IHwi_MaskingOption {
ti_sysbios_interfaces_IHwi_MaskingOption_NONE,
ti_sysbios_interfaces_IHwi_MaskingOption_ALL,
ti_sysbios_interfaces_IHwi_MaskingOption_SELF,
ti_sysbios_interfaces_IHwi_MaskingOption_BITMASK,
ti_sysbios_interfaces_IHwi_MaskingOption_LOWER
};
typedef enum ti_sysbios_interfaces_IHwi_MaskingOption ti_sysbios_interfaces_IHwi_MaskingOption;
/* StackInfo */
struct ti_sysbios_interfaces_IHwi_StackInfo {
xdc_SizeT hwiStackPeak;
xdc_SizeT hwiStackSize;
xdc_Ptr hwiStackBase;
};
/*
* ======== CREATE ARGS ========
*/
/* Args__create */
typedef struct ti_sysbios_interfaces_IHwi_Args__create {
xdc_Int intNum;
ti_sysbios_interfaces_IHwi_FuncPtr hwiFxn;
} ti_sysbios_interfaces_IHwi_Args__create;
/*
* ======== PER-INSTANCE TYPES ========
*/
/* Params */
struct ti_sysbios_interfaces_IHwi_Params {
size_t __size;
const void *__self;
void *__fxns;
xdc_runtime_IInstance_Params *instance;
ti_sysbios_interfaces_IHwi_MaskingOption maskSetting;
xdc_UArg arg;
xdc_Bool enableInt;
xdc_Int eventId;
xdc_Int priority;
};
/*
* ======== VIRTUAL FUNCTIONS ========
*/
/* Fxns__ */
struct ti_sysbios_interfaces_IHwi_Fxns__ {
xdc_runtime_Types_Base* __base;
const xdc_runtime_Types_SysFxns2 *__sysp;
xdc_Bool (*getStackInfo)(ti_sysbios_interfaces_IHwi_StackInfo*, xdc_Bool);
xdc_Bool (*getCoreStackInfo)(ti_sysbios_interfaces_IHwi_StackInfo*, xdc_Bool, xdc_UInt);
void (*startup)(void);
xdc_UInt (*disable)(void);
xdc_UInt (*enable)(void);
void (*restore)(xdc_UInt);
void (*switchFromBootStack)(void);
void (*post)(xdc_UInt);
xdc_Char *(*getTaskSP)(void);
xdc_UInt (*disableInterrupt)(xdc_UInt);
xdc_UInt (*enableInterrupt)(xdc_UInt);
void (*restoreInterrupt)(xdc_UInt, xdc_UInt);
void (*clearInterrupt)(xdc_UInt);
ti_sysbios_interfaces_IHwi_FuncPtr (*getFunc)(void*, xdc_UArg*);
void (*setFunc)(void*, ti_sysbios_interfaces_IHwi_FuncPtr, xdc_UArg);
xdc_Ptr (*getHookContext)(void*, xdc_Int);
void (*setHookContext)(void*, xdc_Int, xdc_Ptr);
ti_sysbios_interfaces_IHwi_Irp (*getIrp)(void*);
xdc_runtime_Types_SysFxns2 __sfxns;
};
/* Interface__BASE__C */
extern const xdc_runtime_Types_Base ti_sysbios_interfaces_IHwi_Interface__BASE__C;
/*
* ======== FUNCTION STUBS ========
*/
/* create */
extern ti_sysbios_interfaces_IHwi_Handle ti_sysbios_interfaces_IHwi_create(ti_sysbios_interfaces_IHwi_Module, xdc_Int intNum, ti_sysbios_interfaces_IHwi_FuncPtr hwiFxn, const ti_sysbios_interfaces_IHwi_Params *, xdc_runtime_Error_Block *__eb);
/* delete */
extern void ti_sysbios_interfaces_IHwi_delete(ti_sysbios_interfaces_IHwi_Handle *);
/* Handle_to_Module */
static inline ti_sysbios_interfaces_IHwi_Module ti_sysbios_interfaces_IHwi_Handle_to_Module( ti_sysbios_interfaces_IHwi_Handle inst )
{
return inst->__fxns;
}
/* Handle_label */
static inline xdc_runtime_Types_Label *ti_sysbios_interfaces_IHwi_Handle_label( ti_sysbios_interfaces_IHwi_Handle inst, xdc_runtime_Types_Label *lab )
{
return inst->__fxns->__sysp->__label(inst, lab);
}
/* Module_id */
static inline xdc_runtime_Types_ModuleId ti_sysbios_interfaces_IHwi_Module_id( ti_sysbios_interfaces_IHwi_Module mod )
{
return mod->__sysp->__mid;
}
/* getStackInfo */
static inline xdc_Bool ti_sysbios_interfaces_IHwi_getStackInfo( ti_sysbios_interfaces_IHwi_Module __inst, ti_sysbios_interfaces_IHwi_StackInfo *stkInfo, xdc_Bool computeStackDepth )
{
return __inst->getStackInfo(stkInfo, computeStackDepth);
}
/* getCoreStackInfo */
static inline xdc_Bool ti_sysbios_interfaces_IHwi_getCoreStackInfo( ti_sysbios_interfaces_IHwi_Module __inst, ti_sysbios_interfaces_IHwi_StackInfo *stkInfo, xdc_Bool computeStackDepth, xdc_UInt coreId )
{
return __inst->getCoreStackInfo(stkInfo, computeStackDepth, coreId);
}
/* startup */
static inline void ti_sysbios_interfaces_IHwi_startup( ti_sysbios_interfaces_IHwi_Module __inst )
{
__inst->startup();
}
/* disable */
static inline xdc_UInt ti_sysbios_interfaces_IHwi_disable( ti_sysbios_interfaces_IHwi_Module __inst )
{
return __inst->disable();
}
/* enable */
static inline xdc_UInt ti_sysbios_interfaces_IHwi_enable( ti_sysbios_interfaces_IHwi_Module __inst )
{
return __inst->enable();
}
/* restore */
static inline void ti_sysbios_interfaces_IHwi_restore( ti_sysbios_interfaces_IHwi_Module __inst, xdc_UInt key )
{
__inst->restore(key);
}
/* switchFromBootStack */
static inline void ti_sysbios_interfaces_IHwi_switchFromBootStack( ti_sysbios_interfaces_IHwi_Module __inst )
{
__inst->switchFromBootStack();
}
/* post */
static inline void ti_sysbios_interfaces_IHwi_post( ti_sysbios_interfaces_IHwi_Module __inst, xdc_UInt intNum )
{
__inst->post(intNum);
}
/* getTaskSP */
static inline xdc_Char *ti_sysbios_interfaces_IHwi_getTaskSP( ti_sysbios_interfaces_IHwi_Module __inst )
{
return __inst->getTaskSP();
}
/* disableInterrupt */
static inline xdc_UInt ti_sysbios_interfaces_IHwi_disableInterrupt( ti_sysbios_interfaces_IHwi_Module __inst, xdc_UInt intNum )
{
return __inst->disableInterrupt(intNum);
}
/* enableInterrupt */
static inline xdc_UInt ti_sysbios_interfaces_IHwi_enableInterrupt( ti_sysbios_interfaces_IHwi_Module __inst, xdc_UInt intNum )
{
return __inst->enableInterrupt(intNum);
}
/* restoreInterrupt */
static inline void ti_sysbios_interfaces_IHwi_restoreInterrupt( ti_sysbios_interfaces_IHwi_Module __inst, xdc_UInt intNum, xdc_UInt key )
{
__inst->restoreInterrupt(intNum, key);
}
/* clearInterrupt */
static inline void ti_sysbios_interfaces_IHwi_clearInterrupt( ti_sysbios_interfaces_IHwi_Module __inst, xdc_UInt intNum )
{
__inst->clearInterrupt(intNum);
}
/* getFunc */
static inline ti_sysbios_interfaces_IHwi_FuncPtr ti_sysbios_interfaces_IHwi_getFunc( ti_sysbios_interfaces_IHwi_Handle __inst, xdc_UArg *arg )
{
return __inst->__fxns->getFunc((void*)__inst, arg);
}
/* setFunc */
static inline void ti_sysbios_interfaces_IHwi_setFunc( ti_sysbios_interfaces_IHwi_Handle __inst, ti_sysbios_interfaces_IHwi_FuncPtr fxn, xdc_UArg arg )
{
__inst->__fxns->setFunc((void*)__inst, fxn, arg);
}
/* getHookContext */
static inline xdc_Ptr ti_sysbios_interfaces_IHwi_getHookContext( ti_sysbios_interfaces_IHwi_Handle __inst, xdc_Int id )
{
return __inst->__fxns->getHookContext((void*)__inst, id);
}
/* setHookContext */
static inline void ti_sysbios_interfaces_IHwi_setHookContext( ti_sysbios_interfaces_IHwi_Handle __inst, xdc_Int id, xdc_Ptr hookContext )
{
__inst->__fxns->setHookContext((void*)__inst, id, hookContext);
}
/* getIrp */
static inline ti_sysbios_interfaces_IHwi_Irp ti_sysbios_interfaces_IHwi_getIrp( ti_sysbios_interfaces_IHwi_Handle __inst )
{
return __inst->__fxns->getIrp((void*)__inst);
}
/*
* ======== FUNCTION SELECTORS ========
*/
/* These functions return function pointers for module and instance functions.
* The functions accept modules and instances declared as types defined in this
* interface, but they return functions defined for the actual objects passed
* as parameters. These functions are not invoked by any generated code or
* XDCtools internal code.
*/
/* getStackInfo_{FxnT,fxnP} */
typedef xdc_Bool (*ti_sysbios_interfaces_IHwi_getStackInfo_FxnT)(ti_sysbios_interfaces_IHwi_StackInfo*, xdc_Bool);
static inline ti_sysbios_interfaces_IHwi_getStackInfo_FxnT ti_sysbios_interfaces_IHwi_getStackInfo_fxnP( ti_sysbios_interfaces_IHwi_Module __inst )
{
return (ti_sysbios_interfaces_IHwi_getStackInfo_FxnT)__inst->getStackInfo;
}
/* getCoreStackInfo_{FxnT,fxnP} */
typedef xdc_Bool (*ti_sysbios_interfaces_IHwi_getCoreStackInfo_FxnT)(ti_sysbios_interfaces_IHwi_StackInfo*, xdc_Bool, xdc_UInt);
static inline ti_sysbios_interfaces_IHwi_getCoreStackInfo_FxnT ti_sysbios_interfaces_IHwi_getCoreStackInfo_fxnP( ti_sysbios_interfaces_IHwi_Module __inst )
{
return (ti_sysbios_interfaces_IHwi_getCoreStackInfo_FxnT)__inst->getCoreStackInfo;
}
/* startup_{FxnT,fxnP} */
typedef void (*ti_sysbios_interfaces_IHwi_startup_FxnT)(void);
static inline ti_sysbios_interfaces_IHwi_startup_FxnT ti_sysbios_interfaces_IHwi_startup_fxnP( ti_sysbios_interfaces_IHwi_Module __inst )
{
return (ti_sysbios_interfaces_IHwi_startup_FxnT)__inst->startup;
}
/* disable_{FxnT,fxnP} */
typedef xdc_UInt (*ti_sysbios_interfaces_IHwi_disable_FxnT)(void);
static inline ti_sysbios_interfaces_IHwi_disable_FxnT ti_sysbios_interfaces_IHwi_disable_fxnP( ti_sysbios_interfaces_IHwi_Module __inst )
{
return (ti_sysbios_interfaces_IHwi_disable_FxnT)__inst->disable;
}
/* enable_{FxnT,fxnP} */
typedef xdc_UInt (*ti_sysbios_interfaces_IHwi_enable_FxnT)(void);
static inline ti_sysbios_interfaces_IHwi_enable_FxnT ti_sysbios_interfaces_IHwi_enable_fxnP( ti_sysbios_interfaces_IHwi_Module __inst )
{
return (ti_sysbios_interfaces_IHwi_enable_FxnT)__inst->enable;
}
/* restore_{FxnT,fxnP} */
typedef void (*ti_sysbios_interfaces_IHwi_restore_FxnT)(xdc_UInt);
static inline ti_sysbios_interfaces_IHwi_restore_FxnT ti_sysbios_interfaces_IHwi_restore_fxnP( ti_sysbios_interfaces_IHwi_Module __inst )
{
return (ti_sysbios_interfaces_IHwi_restore_FxnT)__inst->restore;
}
/* switchFromBootStack_{FxnT,fxnP} */
typedef void (*ti_sysbios_interfaces_IHwi_switchFromBootStack_FxnT)(void);
static inline ti_sysbios_interfaces_IHwi_switchFromBootStack_FxnT ti_sysbios_interfaces_IHwi_switchFromBootStack_fxnP( ti_sysbios_interfaces_IHwi_Module __inst )
{
return (ti_sysbios_interfaces_IHwi_switchFromBootStack_FxnT)__inst->switchFromBootStack;
}
/* post_{FxnT,fxnP} */
typedef void (*ti_sysbios_interfaces_IHwi_post_FxnT)(xdc_UInt);
static inline ti_sysbios_interfaces_IHwi_post_FxnT ti_sysbios_interfaces_IHwi_post_fxnP( ti_sysbios_interfaces_IHwi_Module __inst )
{
return (ti_sysbios_interfaces_IHwi_post_FxnT)__inst->post;
}
/* getTaskSP_{FxnT,fxnP} */
typedef xdc_Char *(*ti_sysbios_interfaces_IHwi_getTaskSP_FxnT)(void);
static inline ti_sysbios_interfaces_IHwi_getTaskSP_FxnT ti_sysbios_interfaces_IHwi_getTaskSP_fxnP( ti_sysbios_interfaces_IHwi_Module __inst )
{
return (ti_sysbios_interfaces_IHwi_getTaskSP_FxnT)__inst->getTaskSP;
}
/* disableInterrupt_{FxnT,fxnP} */
typedef xdc_UInt (*ti_sysbios_interfaces_IHwi_disableInterrupt_FxnT)(xdc_UInt);
static inline ti_sysbios_interfaces_IHwi_disableInterrupt_FxnT ti_sysbios_interfaces_IHwi_disableInterrupt_fxnP( ti_sysbios_interfaces_IHwi_Module __inst )
{
return (ti_sysbios_interfaces_IHwi_disableInterrupt_FxnT)__inst->disableInterrupt;
}
/* enableInterrupt_{FxnT,fxnP} */
typedef xdc_UInt (*ti_sysbios_interfaces_IHwi_enableInterrupt_FxnT)(xdc_UInt);
static inline ti_sysbios_interfaces_IHwi_enableInterrupt_FxnT ti_sysbios_interfaces_IHwi_enableInterrupt_fxnP( ti_sysbios_interfaces_IHwi_Module __inst )
{
return (ti_sysbios_interfaces_IHwi_enableInterrupt_FxnT)__inst->enableInterrupt;
}
/* restoreInterrupt_{FxnT,fxnP} */
typedef void (*ti_sysbios_interfaces_IHwi_restoreInterrupt_FxnT)(xdc_UInt, xdc_UInt);
static inline ti_sysbios_interfaces_IHwi_restoreInterrupt_FxnT ti_sysbios_interfaces_IHwi_restoreInterrupt_fxnP( ti_sysbios_interfaces_IHwi_Module __inst )
{
return (ti_sysbios_interfaces_IHwi_restoreInterrupt_FxnT)__inst->restoreInterrupt;
}
/* clearInterrupt_{FxnT,fxnP} */
typedef void (*ti_sysbios_interfaces_IHwi_clearInterrupt_FxnT)(xdc_UInt);
static inline ti_sysbios_interfaces_IHwi_clearInterrupt_FxnT ti_sysbios_interfaces_IHwi_clearInterrupt_fxnP( ti_sysbios_interfaces_IHwi_Module __inst )
{
return (ti_sysbios_interfaces_IHwi_clearInterrupt_FxnT)__inst->clearInterrupt;
}
/* getFunc_{FxnT,fxnP} */
typedef ti_sysbios_interfaces_IHwi_FuncPtr (*ti_sysbios_interfaces_IHwi_getFunc_FxnT)(void *, xdc_UArg*);
static inline ti_sysbios_interfaces_IHwi_getFunc_FxnT ti_sysbios_interfaces_IHwi_getFunc_fxnP( ti_sysbios_interfaces_IHwi_Handle __inst )
{
return (ti_sysbios_interfaces_IHwi_getFunc_FxnT)__inst->__fxns->getFunc;
}
/* setFunc_{FxnT,fxnP} */
typedef void (*ti_sysbios_interfaces_IHwi_setFunc_FxnT)(void *, ti_sysbios_interfaces_IHwi_FuncPtr, xdc_UArg);
static inline ti_sysbios_interfaces_IHwi_setFunc_FxnT ti_sysbios_interfaces_IHwi_setFunc_fxnP( ti_sysbios_interfaces_IHwi_Handle __inst )
{
return (ti_sysbios_interfaces_IHwi_setFunc_FxnT)__inst->__fxns->setFunc;
}
/* getHookContext_{FxnT,fxnP} */
typedef xdc_Ptr (*ti_sysbios_interfaces_IHwi_getHookContext_FxnT)(void *, xdc_Int);
static inline ti_sysbios_interfaces_IHwi_getHookContext_FxnT ti_sysbios_interfaces_IHwi_getHookContext_fxnP( ti_sysbios_interfaces_IHwi_Handle __inst )
{
return (ti_sysbios_interfaces_IHwi_getHookContext_FxnT)__inst->__fxns->getHookContext;
}
/* setHookContext_{FxnT,fxnP} */
typedef void (*ti_sysbios_interfaces_IHwi_setHookContext_FxnT)(void *, xdc_Int, xdc_Ptr);
static inline ti_sysbios_interfaces_IHwi_setHookContext_FxnT ti_sysbios_interfaces_IHwi_setHookContext_fxnP( ti_sysbios_interfaces_IHwi_Handle __inst )
{
return (ti_sysbios_interfaces_IHwi_setHookContext_FxnT)__inst->__fxns->setHookContext;
}
/* getIrp_{FxnT,fxnP} */
typedef ti_sysbios_interfaces_IHwi_Irp (*ti_sysbios_interfaces_IHwi_getIrp_FxnT)(void *);
static inline ti_sysbios_interfaces_IHwi_getIrp_FxnT ti_sysbios_interfaces_IHwi_getIrp_fxnP( ti_sysbios_interfaces_IHwi_Handle __inst )
{
return (ti_sysbios_interfaces_IHwi_getIrp_FxnT)__inst->__fxns->getIrp;
}
/*
* ======== EPILOGUE ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* ======== AUXILIARY DEFINITIONS ========
*/
/* FuncPtr */
typedef ti_sysbios_interfaces_IHwi_FuncPtr ti_sysbios_family_c28_Hwi_FuncPtr;
/* Irp */
typedef ti_sysbios_interfaces_IHwi_Irp ti_sysbios_family_c28_Hwi_Irp;
/* HookSet */
typedef ti_sysbios_interfaces_IHwi_HookSet ti_sysbios_family_c28_Hwi_HookSet;
/* MaskingOption */
typedef ti_sysbios_interfaces_IHwi_MaskingOption ti_sysbios_family_c28_Hwi_MaskingOption;
/* StackInfo */
typedef ti_sysbios_interfaces_IHwi_StackInfo ti_sysbios_family_c28_Hwi_StackInfo;
/* NUM_INTERRUPTS */
/* PlugFuncPtr */
typedef void (*ti_sysbios_family_c28_Hwi_PlugFuncPtr)(void);
/* MaskingOption_NONE */
/* MaskingOption_ALL */
/* MaskingOption_SELF */
/* MaskingOption_BITMASK */
/* MaskingOption_LOWER */
/*
* ======== CREATE ARGS ========
*/
/* Args__create */
typedef struct ti_sysbios_family_c28_Hwi_Args__create {
xdc_Int intNum;
ti_sysbios_interfaces_IHwi_FuncPtr hwiFxn;
} ti_sysbios_family_c28_Hwi_Args__create;
/*
* ======== INTERNAL DEFINITIONS ========
*/
/* PIEIER1_ADDR */
/* Instance_State */
typedef xdc_Ptr __T1_ti_sysbios_family_c28_Hwi_Instance_State__hookEnv;
typedef xdc_Ptr *__ARRAY1_ti_sysbios_family_c28_Hwi_Instance_State__hookEnv;
typedef __ARRAY1_ti_sysbios_family_c28_Hwi_Instance_State__hookEnv __TA_ti_sysbios_family_c28_Hwi_Instance_State__hookEnv;
/* Module_State */
typedef ti_sysbios_family_c28_Hwi_Handle __T1_ti_sysbios_family_c28_Hwi_Module_State__dispatchTable;
typedef ti_sysbios_family_c28_Hwi_Handle *__ARRAY1_ti_sysbios_family_c28_Hwi_Module_State__dispatchTable;
typedef __ARRAY1_ti_sysbios_family_c28_Hwi_Module_State__dispatchTable __TA_ti_sysbios_family_c28_Hwi_Module_State__dispatchTable;
/*
* ======== MODULE-WIDE CONFIGS ========
*/
/* Module__diagsEnabled */
typedef xdc_Bits32 CT__ti_sysbios_family_c28_Hwi_Module__diagsEnabled;
extern const CT__ti_sysbios_family_c28_Hwi_Module__diagsEnabled ti_sysbios_family_c28_Hwi_Module__diagsEnabled__C;
/* Module__diagsIncluded */
typedef xdc_Bits32 CT__ti_sysbios_family_c28_Hwi_Module__diagsIncluded;
extern const CT__ti_sysbios_family_c28_Hwi_Module__diagsIncluded ti_sysbios_family_c28_Hwi_Module__diagsIncluded__C;
/* Module__diagsMask */
typedef xdc_Bits16 *CT__ti_sysbios_family_c28_Hwi_Module__diagsMask;
extern const CT__ti_sysbios_family_c28_Hwi_Module__diagsMask ti_sysbios_family_c28_Hwi_Module__diagsMask__C;
/* Module__gateObj */
typedef xdc_Ptr CT__ti_sysbios_family_c28_Hwi_Module__gateObj;
extern const CT__ti_sysbios_family_c28_Hwi_Module__gateObj ti_sysbios_family_c28_Hwi_Module__gateObj__C;
/* Module__gatePrms */
typedef xdc_Ptr CT__ti_sysbios_family_c28_Hwi_Module__gatePrms;
extern const CT__ti_sysbios_family_c28_Hwi_Module__gatePrms ti_sysbios_family_c28_Hwi_Module__gatePrms__C;
/* Module__id */
typedef xdc_runtime_Types_ModuleId CT__ti_sysbios_family_c28_Hwi_Module__id;
extern const CT__ti_sysbios_family_c28_Hwi_Module__id ti_sysbios_family_c28_Hwi_Module__id__C;
/* Module__loggerDefined */
typedef xdc_Bool CT__ti_sysbios_family_c28_Hwi_Module__loggerDefined;
extern const CT__ti_sysbios_family_c28_Hwi_Module__loggerDefined ti_sysbios_family_c28_Hwi_Module__loggerDefined__C;
/* Module__loggerObj */
typedef xdc_Ptr CT__ti_sysbios_family_c28_Hwi_Module__loggerObj;
extern const CT__ti_sysbios_family_c28_Hwi_Module__loggerObj ti_sysbios_family_c28_Hwi_Module__loggerObj__C;
/* Module__loggerFxn0 */
typedef xdc_runtime_Types_LoggerFxn0 CT__ti_sysbios_family_c28_Hwi_Module__loggerFxn0;
extern const CT__ti_sysbios_family_c28_Hwi_Module__loggerFxn0 ti_sysbios_family_c28_Hwi_Module__loggerFxn0__C;
/* Module__loggerFxn1 */
typedef xdc_runtime_Types_LoggerFxn1 CT__ti_sysbios_family_c28_Hwi_Module__loggerFxn1;
extern const CT__ti_sysbios_family_c28_Hwi_Module__loggerFxn1 ti_sysbios_family_c28_Hwi_Module__loggerFxn1__C;
/* Module__loggerFxn2 */
typedef xdc_runtime_Types_LoggerFxn2 CT__ti_sysbios_family_c28_Hwi_Module__loggerFxn2;
extern const CT__ti_sysbios_family_c28_Hwi_Module__loggerFxn2 ti_sysbios_family_c28_Hwi_Module__loggerFxn2__C;
/* Module__loggerFxn4 */
typedef xdc_runtime_Types_LoggerFxn4 CT__ti_sysbios_family_c28_Hwi_Module__loggerFxn4;
extern const CT__ti_sysbios_family_c28_Hwi_Module__loggerFxn4 ti_sysbios_family_c28_Hwi_Module__loggerFxn4__C;
/* Module__loggerFxn8 */
typedef xdc_runtime_Types_LoggerFxn8 CT__ti_sysbios_family_c28_Hwi_Module__loggerFxn8;
extern const CT__ti_sysbios_family_c28_Hwi_Module__loggerFxn8 ti_sysbios_family_c28_Hwi_Module__loggerFxn8__C;
/* Module__startupDoneFxn */
typedef xdc_Bool (*CT__ti_sysbios_family_c28_Hwi_Module__startupDoneFxn)(void);
extern const CT__ti_sysbios_family_c28_Hwi_Module__startupDoneFxn ti_sysbios_family_c28_Hwi_Module__startupDoneFxn__C;
/* Object__count */
typedef xdc_Int CT__ti_sysbios_family_c28_Hwi_Object__count;
extern const CT__ti_sysbios_family_c28_Hwi_Object__count ti_sysbios_family_c28_Hwi_Object__count__C;
/* Object__heap */
typedef xdc_runtime_IHeap_Handle CT__ti_sysbios_family_c28_Hwi_Object__heap;
extern const CT__ti_sysbios_family_c28_Hwi_Object__heap ti_sysbios_family_c28_Hwi_Object__heap__C;
/* Object__sizeof */
typedef xdc_SizeT CT__ti_sysbios_family_c28_Hwi_Object__sizeof;
extern const CT__ti_sysbios_family_c28_Hwi_Object__sizeof ti_sysbios_family_c28_Hwi_Object__sizeof__C;
/* Object__table */
typedef xdc_Ptr CT__ti_sysbios_family_c28_Hwi_Object__table;
extern const CT__ti_sysbios_family_c28_Hwi_Object__table ti_sysbios_family_c28_Hwi_Object__table__C;
/* dispatcherAutoNestingSupport */
typedef xdc_Bool CT__ti_sysbios_family_c28_Hwi_dispatcherAutoNestingSupport;
extern const CT__ti_sysbios_family_c28_Hwi_dispatcherAutoNestingSupport ti_sysbios_family_c28_Hwi_dispatcherAutoNestingSupport__C;
/* dispatcherSwiSupport */
typedef xdc_Bool CT__ti_sysbios_family_c28_Hwi_dispatcherSwiSupport;
extern const CT__ti_sysbios_family_c28_Hwi_dispatcherSwiSupport ti_sysbios_family_c28_Hwi_dispatcherSwiSupport__C;
/* dispatcherTaskSupport */
typedef xdc_Bool CT__ti_sysbios_family_c28_Hwi_dispatcherTaskSupport;
extern const CT__ti_sysbios_family_c28_Hwi_dispatcherTaskSupport ti_sysbios_family_c28_Hwi_dispatcherTaskSupport__C;
/* dispatcherIrpTrackingSupport */
typedef xdc_Bool CT__ti_sysbios_family_c28_Hwi_dispatcherIrpTrackingSupport;
extern const CT__ti_sysbios_family_c28_Hwi_dispatcherIrpTrackingSupport ti_sysbios_family_c28_Hwi_dispatcherIrpTrackingSupport__C;
/* NUM_INTERRUPTS_PIE */
typedef xdc_Int CT__ti_sysbios_family_c28_Hwi_NUM_INTERRUPTS_PIE;
extern const CT__ti_sysbios_family_c28_Hwi_NUM_INTERRUPTS_PIE ti_sysbios_family_c28_Hwi_NUM_INTERRUPTS_PIE__C;
/* NUM_INTERRUPTS_ALL */
typedef xdc_Int CT__ti_sysbios_family_c28_Hwi_NUM_INTERRUPTS_ALL;
extern const CT__ti_sysbios_family_c28_Hwi_NUM_INTERRUPTS_ALL ti_sysbios_family_c28_Hwi_NUM_INTERRUPTS_ALL__C;
/* A_badIntNum */
typedef xdc_runtime_Assert_Id CT__ti_sysbios_family_c28_Hwi_A_badIntNum;
extern const CT__ti_sysbios_family_c28_Hwi_A_badIntNum ti_sysbios_family_c28_Hwi_A_badIntNum__C;
/* A_invalidArg */
typedef xdc_runtime_Assert_Id CT__ti_sysbios_family_c28_Hwi_A_invalidArg;
extern const CT__ti_sysbios_family_c28_Hwi_A_invalidArg ti_sysbios_family_c28_Hwi_A_invalidArg__C;
/* A_zeroLatencyConflict */
typedef xdc_runtime_Assert_Id CT__ti_sysbios_family_c28_Hwi_A_zeroLatencyConflict;
extern const CT__ti_sysbios_family_c28_Hwi_A_zeroLatencyConflict ti_sysbios_family_c28_Hwi_A_zeroLatencyConflict__C;
/* E_unpluggedInterrupt */
typedef xdc_runtime_Error_Id CT__ti_sysbios_family_c28_Hwi_E_unpluggedInterrupt;
extern const CT__ti_sysbios_family_c28_Hwi_E_unpluggedInterrupt ti_sysbios_family_c28_Hwi_E_unpluggedInterrupt__C;
/* E_alreadyDefined */
typedef xdc_runtime_Error_Id CT__ti_sysbios_family_c28_Hwi_E_alreadyDefined;
extern const CT__ti_sysbios_family_c28_Hwi_E_alreadyDefined ti_sysbios_family_c28_Hwi_E_alreadyDefined__C;
/* zeroLatencyIERMask */
typedef xdc_Bits16 CT__ti_sysbios_family_c28_Hwi_zeroLatencyIERMask;
extern const CT__ti_sysbios_family_c28_Hwi_zeroLatencyIERMask ti_sysbios_family_c28_Hwi_zeroLatencyIERMask__C;
/* LM_begin */
typedef xdc_runtime_Log_Event CT__ti_sysbios_family_c28_Hwi_LM_begin;
extern const CT__ti_sysbios_family_c28_Hwi_LM_begin ti_sysbios_family_c28_Hwi_LM_begin__C;
/* LD_end */
typedef xdc_runtime_Log_Event CT__ti_sysbios_family_c28_Hwi_LD_end;
extern const CT__ti_sysbios_family_c28_Hwi_LD_end ti_sysbios_family_c28_Hwi_LD_end__C;
/* swiDisable */
typedef xdc_UInt (*CT__ti_sysbios_family_c28_Hwi_swiDisable)(void);
extern const CT__ti_sysbios_family_c28_Hwi_swiDisable ti_sysbios_family_c28_Hwi_swiDisable__C;
/* swiRestoreHwi */
typedef void (*CT__ti_sysbios_family_c28_Hwi_swiRestoreHwi)(xdc_UInt);
extern const CT__ti_sysbios_family_c28_Hwi_swiRestoreHwi ti_sysbios_family_c28_Hwi_swiRestoreHwi__C;
/* taskDisable */
typedef xdc_UInt (*CT__ti_sysbios_family_c28_Hwi_taskDisable)(void);
extern const CT__ti_sysbios_family_c28_Hwi_taskDisable ti_sysbios_family_c28_Hwi_taskDisable__C;
/* taskRestoreHwi */
typedef void (*CT__ti_sysbios_family_c28_Hwi_taskRestoreHwi)(xdc_UInt);
extern const CT__ti_sysbios_family_c28_Hwi_taskRestoreHwi ti_sysbios_family_c28_Hwi_taskRestoreHwi__C;
/* hooks */
typedef ti_sysbios_family_c28_Hwi_HookSet __T1_ti_sysbios_family_c28_Hwi_hooks;
typedef struct { int length; ti_sysbios_family_c28_Hwi_HookSet *elem; } __ARRAY1_ti_sysbios_family_c28_Hwi_hooks;
typedef __ARRAY1_ti_sysbios_family_c28_Hwi_hooks __TA_ti_sysbios_family_c28_Hwi_hooks;
typedef __TA_ti_sysbios_family_c28_Hwi_hooks CT__ti_sysbios_family_c28_Hwi_hooks;
extern const CT__ti_sysbios_family_c28_Hwi_hooks ti_sysbios_family_c28_Hwi_hooks__C;
/*
* ======== PER-INSTANCE TYPES ========
*/
/* Params */
struct ti_sysbios_family_c28_Hwi_Params {
size_t __size;
const void *__self;
void *__fxns;
xdc_runtime_IInstance_Params *instance;
ti_sysbios_interfaces_IHwi_MaskingOption maskSetting;
xdc_UArg arg;
xdc_Bool enableInt;
xdc_Int eventId;
xdc_Int priority;
xdc_Bits16 disableMask;
xdc_Bits16 restoreMask;
xdc_Bool enableAck;
xdc_runtime_IInstance_Params __iprms;
};
/* Struct */
struct ti_sysbios_family_c28_Hwi_Struct {
const ti_sysbios_family_c28_Hwi_Fxns__ *__fxns;
xdc_UInt __f0;
xdc_Bool __f1;
xdc_Bool __f2;
xdc_Bits16 __f3;
xdc_Bits16 __f4;
xdc_Bits16 __f5;
xdc_UArg __f6;
ti_sysbios_family_c28_Hwi_FuncPtr __f7;
ti_sysbios_family_c28_Hwi_Irp __f8;
__TA_ti_sysbios_family_c28_Hwi_Instance_State__hookEnv __f9;
xdc_runtime_Types_CordAddr __name;
};
/*
* ======== VIRTUAL FUNCTIONS ========
*/
/* Fxns__ */
struct ti_sysbios_family_c28_Hwi_Fxns__ {
xdc_runtime_Types_Base* __base;
const xdc_runtime_Types_SysFxns2 *__sysp;
xdc_Bool (*getStackInfo)(ti_sysbios_interfaces_IHwi_StackInfo*, xdc_Bool);
xdc_Bool (*getCoreStackInfo)(ti_sysbios_interfaces_IHwi_StackInfo*, xdc_Bool, xdc_UInt);
void (*startup)(void);
xdc_UInt (*disable)(void);
xdc_UInt (*enable)(void);
void (*restore)(xdc_UInt);
void (*switchFromBootStack)(void);
void (*post)(xdc_UInt);
xdc_Char *(*getTaskSP)(void);
xdc_UInt (*disableInterrupt)(xdc_UInt);
xdc_UInt (*enableInterrupt)(xdc_UInt);
void (*restoreInterrupt)(xdc_UInt, xdc_UInt);
void (*clearInterrupt)(xdc_UInt);
ti_sysbios_interfaces_IHwi_FuncPtr (*getFunc)(ti_sysbios_family_c28_Hwi_Handle, xdc_UArg*);
void (*setFunc)(ti_sysbios_family_c28_Hwi_Handle, ti_sysbios_interfaces_IHwi_FuncPtr, xdc_UArg);
xdc_Ptr (*getHookContext)(ti_sysbios_family_c28_Hwi_Handle, xdc_Int);
void (*setHookContext)(ti_sysbios_family_c28_Hwi_Handle, xdc_Int, xdc_Ptr);
ti_sysbios_interfaces_IHwi_Irp (*getIrp)(ti_sysbios_family_c28_Hwi_Handle);
xdc_runtime_Types_SysFxns2 __sfxns;
};
/* Module__FXNS__C */
extern const ti_sysbios_family_c28_Hwi_Fxns__ ti_sysbios_family_c28_Hwi_Module__FXNS__C;
/*
* ======== FUNCTION DECLARATIONS ========
*/
/* Module_startup */
extern xdc_Int ti_sysbios_family_c28_Hwi_Module_startup__E( xdc_Int state );
extern xdc_Int ti_sysbios_family_c28_Hwi_Module_startup__F( xdc_Int state );
/* Instance_init__E */
extern xdc_Int ti_sysbios_family_c28_Hwi_Instance_init__E(ti_sysbios_family_c28_Hwi_Object *, xdc_Int intNum, ti_sysbios_interfaces_IHwi_FuncPtr hwiFxn, const ti_sysbios_family_c28_Hwi_Params *, xdc_runtime_Error_Block *);
/* Instance_finalize__E */
extern void ti_sysbios_family_c28_Hwi_Instance_finalize__E( ti_sysbios_family_c28_Hwi_Object* , int );
/* Handle__label__S */
extern xdc_runtime_Types_Label *ti_sysbios_family_c28_Hwi_Handle__label__S( xdc_Ptr obj, xdc_runtime_Types_Label *lab );
/* Module__startupDone__S */
extern xdc_Bool ti_sysbios_family_c28_Hwi_Module__startupDone__S( void );
/* Object__create__S */
extern xdc_Ptr ti_sysbios_family_c28_Hwi_Object__create__S( xdc_Ptr __oa, xdc_SizeT __osz, xdc_Ptr __aa, const xdc_UChar *__pa, xdc_SizeT __psz, xdc_runtime_Error_Block *__eb );
/* create */
extern ti_sysbios_family_c28_Hwi_Handle ti_sysbios_family_c28_Hwi_create( xdc_Int intNum, ti_sysbios_interfaces_IHwi_FuncPtr hwiFxn, const ti_sysbios_family_c28_Hwi_Params *__prms, xdc_runtime_Error_Block *__eb );
/* construct */
extern void ti_sysbios_family_c28_Hwi_construct( ti_sysbios_family_c28_Hwi_Struct *__obj, xdc_Int intNum, ti_sysbios_interfaces_IHwi_FuncPtr hwiFxn, const ti_sysbios_family_c28_Hwi_Params *__prms, xdc_runtime_Error_Block *__eb );
/* Object__delete__S */
extern void ti_sysbios_family_c28_Hwi_Object__delete__S( xdc_Ptr instp );
/* delete */
extern void ti_sysbios_family_c28_Hwi_delete(ti_sysbios_family_c28_Hwi_Handle *instp);
/* Object__destruct__S */
extern void ti_sysbios_family_c28_Hwi_Object__destruct__S( xdc_Ptr objp );
/* destruct */
extern void ti_sysbios_family_c28_Hwi_destruct(ti_sysbios_family_c28_Hwi_Struct *obj);
/* Object__get__S */
extern xdc_Ptr ti_sysbios_family_c28_Hwi_Object__get__S( xdc_Ptr oarr, xdc_Int i );
/* Object__first__S */
extern xdc_Ptr ti_sysbios_family_c28_Hwi_Object__first__S( void );
/* Object__next__S */
extern xdc_Ptr ti_sysbios_family_c28_Hwi_Object__next__S( xdc_Ptr obj );
/* Params__init__S */
extern void ti_sysbios_family_c28_Hwi_Params__init__S( xdc_Ptr dst, const void *src, xdc_SizeT psz, xdc_SizeT isz );
/* getStackInfo__E */
extern xdc_Bool ti_sysbios_family_c28_Hwi_getStackInfo__E( ti_sysbios_interfaces_IHwi_StackInfo *stkInfo, xdc_Bool computeStackDepth );
/* getCoreStackInfo__E */
extern xdc_Bool ti_sysbios_family_c28_Hwi_getCoreStackInfo__E( ti_sysbios_interfaces_IHwi_StackInfo *stkInfo, xdc_Bool computeStackDepth, xdc_UInt coreId );
/* startup__E */
extern void ti_sysbios_family_c28_Hwi_startup__E( void );
/* switchFromBootStack__E */
extern void ti_sysbios_family_c28_Hwi_switchFromBootStack__E( void );
/* post__E */
extern void ti_sysbios_family_c28_Hwi_post__E( xdc_UInt intNum );
/* getTaskSP__E */
extern xdc_Char *ti_sysbios_family_c28_Hwi_getTaskSP__E( void );
/* getFunc__E */
extern ti_sysbios_interfaces_IHwi_FuncPtr ti_sysbios_family_c28_Hwi_getFunc__E( ti_sysbios_family_c28_Hwi_Handle __inst, xdc_UArg *arg );
/* setFunc__E */
extern void ti_sysbios_family_c28_Hwi_setFunc__E( ti_sysbios_family_c28_Hwi_Handle __inst, ti_sysbios_interfaces_IHwi_FuncPtr fxn, xdc_UArg arg );
/* getHookContext__E */
extern xdc_Ptr ti_sysbios_family_c28_Hwi_getHookContext__E( ti_sysbios_family_c28_Hwi_Handle __inst, xdc_Int id );
/* setHookContext__E */
extern void ti_sysbios_family_c28_Hwi_setHookContext__E( ti_sysbios_family_c28_Hwi_Handle __inst, xdc_Int id, xdc_Ptr hookContext );
/* getIrp__E */
extern ti_sysbios_interfaces_IHwi_Irp ti_sysbios_family_c28_Hwi_getIrp__E( ti_sysbios_family_c28_Hwi_Handle __inst );
/* plug__E */
extern void ti_sysbios_family_c28_Hwi_plug__E( xdc_UInt intNum, ti_sysbios_family_c28_Hwi_PlugFuncPtr fxn );
/* getHandle__E */
extern ti_sysbios_family_c28_Hwi_Handle ti_sysbios_family_c28_Hwi_getHandle__E( xdc_UInt intNum );
/* disableInterrupt__E */
extern xdc_UInt ti_sysbios_family_c28_Hwi_disableInterrupt__E( xdc_UInt intNum );
/* enableInterrupt__E */
extern xdc_UInt ti_sysbios_family_c28_Hwi_enableInterrupt__E( xdc_UInt intNum );
/* restoreInterrupt__E */
extern void ti_sysbios_family_c28_Hwi_restoreInterrupt__E( xdc_UInt intNum, xdc_UInt key );
/* clearInterrupt__E */
extern void ti_sysbios_family_c28_Hwi_clearInterrupt__E( xdc_UInt intNum );
/* disableIER__E */
extern xdc_Bits16 ti_sysbios_family_c28_Hwi_disableIER__E( xdc_Bits16 mask );
/* enableIER__E */
extern xdc_Bits16 ti_sysbios_family_c28_Hwi_enableIER__E( xdc_Bits16 mask );
/* restoreIER__E */
extern xdc_Bits16 ti_sysbios_family_c28_Hwi_restoreIER__E( xdc_Bits16 mask );
/* enablePIEIER__E */
extern xdc_Bits16 ti_sysbios_family_c28_Hwi_enablePIEIER__E( xdc_UInt groupNum, xdc_Bits16 pieMask );
/* disablePIEIER__E */
extern xdc_Bits16 ti_sysbios_family_c28_Hwi_disablePIEIER__E( xdc_UInt groupNum, xdc_Bits16 pieMask );
/* restorePIEIER__E */
extern xdc_Bits16 ti_sysbios_family_c28_Hwi_restorePIEIER__E( xdc_UInt groupNum, xdc_Bits16 pieMask );
/* getInterruptFlag__E */
extern xdc_Bits16 ti_sysbios_family_c28_Hwi_getInterruptFlag__E( xdc_UInt intNum );
/* reconfig__E */
extern void ti_sysbios_family_c28_Hwi_reconfig__E( ti_sysbios_family_c28_Hwi_Handle __inst, ti_sysbios_family_c28_Hwi_FuncPtr fxn, const ti_sysbios_family_c28_Hwi_Params *params );
/* postInit__I */
extern xdc_Int ti_sysbios_family_c28_Hwi_postInit__I( ti_sysbios_family_c28_Hwi_Object *hwi, xdc_runtime_Error_Block *eb );
/* getIFR__I */
extern xdc_Bits16 ti_sysbios_family_c28_Hwi_getIFR__I( void );
/* ack__I */
extern void ti_sysbios_family_c28_Hwi_ack__I( ti_sysbios_family_c28_Hwi_Handle hwi );
/* interruptReturn__I */
extern void ti_sysbios_family_c28_Hwi_interruptReturn__I( void );
/* getIERBit__I */
extern xdc_Bits16 ti_sysbios_family_c28_Hwi_getIERBit__I( xdc_UInt intNum );
/* dispatchC__I */
extern void ti_sysbios_family_c28_Hwi_dispatchC__I( xdc_Int intNum );
/* dispatchCore__I */
extern void ti_sysbios_family_c28_Hwi_dispatchCore__I( xdc_Int intNum );
/* switchAndDispatch__I */
extern void ti_sysbios_family_c28_Hwi_switchAndDispatch__I( xdc_Int intNum );
/* unPluggedInterrupt__I */
extern void ti_sysbios_family_c28_Hwi_unPluggedInterrupt__I( void );
/*
* ======== CONVERTORS ========
*/
/* Module_upCast */
static inline ti_sysbios_interfaces_IHwi_Module ti_sysbios_family_c28_Hwi_Module_upCast( void )
{
return (ti_sysbios_interfaces_IHwi_Module)&ti_sysbios_family_c28_Hwi_Module__FXNS__C;
}
/* Module_to_ti_sysbios_interfaces_IHwi */
/* Handle_upCast */
static inline ti_sysbios_interfaces_IHwi_Handle ti_sysbios_family_c28_Hwi_Handle_upCast( ti_sysbios_family_c28_Hwi_Handle i )
{
return (ti_sysbios_interfaces_IHwi_Handle)i;
}
/* Handle_to_ti_sysbios_interfaces_IHwi */
/* Handle_downCast */
static inline ti_sysbios_family_c28_Hwi_Handle ti_sysbios_family_c28_Hwi_Handle_downCast( ti_sysbios_interfaces_IHwi_Handle i )
{
ti_sysbios_interfaces_IHwi_Handle i2 = (ti_sysbios_interfaces_IHwi_Handle)i;
return (void*)i2->__fxns == (void*)&ti_sysbios_family_c28_Hwi_Module__FXNS__C ? (ti_sysbios_family_c28_Hwi_Handle)i : 0;
}
/* Handle_from_ti_sysbios_interfaces_IHwi */
/*
* ======== SYSTEM FUNCTIONS ========
*/
/* Module_startupDone */
/* Object_heap */
/* Module_heap */
/* Module_id */
static inline CT__ti_sysbios_family_c28_Hwi_Module__id ti_sysbios_family_c28_Hwi_Module_id( void )
{
return ti_sysbios_family_c28_Hwi_Module__id__C;
}
/* Module_hasMask */
static inline xdc_Bool ti_sysbios_family_c28_Hwi_Module_hasMask( void )
{
return ti_sysbios_family_c28_Hwi_Module__diagsMask__C != 0;
}
/* Module_getMask */
static inline xdc_Bits16 ti_sysbios_family_c28_Hwi_Module_getMask( void )
{
return ti_sysbios_family_c28_Hwi_Module__diagsMask__C != 0 ? *ti_sysbios_family_c28_Hwi_Module__diagsMask__C : 0;
}
/* Module_setMask */
static inline void ti_sysbios_family_c28_Hwi_Module_setMask( xdc_Bits16 mask )
{
if (ti_sysbios_family_c28_Hwi_Module__diagsMask__C != 0) *ti_sysbios_family_c28_Hwi_Module__diagsMask__C = mask;
}
/* Params_init */
static inline void ti_sysbios_family_c28_Hwi_Params_init( ti_sysbios_family_c28_Hwi_Params *prms )
{
if (prms) {
ti_sysbios_family_c28_Hwi_Params__init__S(prms, 0, sizeof(ti_sysbios_family_c28_Hwi_Params), sizeof(xdc_runtime_IInstance_Params));
}
}
/* Params_copy */
static inline void ti_sysbios_family_c28_Hwi_Params_copy(ti_sysbios_family_c28_Hwi_Params *dst, const ti_sysbios_family_c28_Hwi_Params *src)
{
if (dst) {
ti_sysbios_family_c28_Hwi_Params__init__S(dst, (const void *)src, sizeof(ti_sysbios_family_c28_Hwi_Params), sizeof(xdc_runtime_IInstance_Params));
}
}
/* Object_count */
/* Object_sizeof */
/* Object_get */
static inline ti_sysbios_family_c28_Hwi_Handle ti_sysbios_family_c28_Hwi_Object_get(ti_sysbios_family_c28_Hwi_Instance_State *oarr, int i)
{
return (ti_sysbios_family_c28_Hwi_Handle)ti_sysbios_family_c28_Hwi_Object__get__S(oarr, i);
}
/* Object_first */
static inline ti_sysbios_family_c28_Hwi_Handle ti_sysbios_family_c28_Hwi_Object_first( void )
{
return (ti_sysbios_family_c28_Hwi_Handle)ti_sysbios_family_c28_Hwi_Object__first__S();
}
/* Object_next */
static inline ti_sysbios_family_c28_Hwi_Handle ti_sysbios_family_c28_Hwi_Object_next( ti_sysbios_family_c28_Hwi_Object *obj )
{
return (ti_sysbios_family_c28_Hwi_Handle)ti_sysbios_family_c28_Hwi_Object__next__S(obj);
}
/* Handle_label */
static inline xdc_runtime_Types_Label *ti_sysbios_family_c28_Hwi_Handle_label( ti_sysbios_family_c28_Hwi_Handle inst, xdc_runtime_Types_Label *lab )
{
return ti_sysbios_family_c28_Hwi_Handle__label__S(inst, lab);
}
/* Handle_name */
static inline xdc_String ti_sysbios_family_c28_Hwi_Handle_name( ti_sysbios_family_c28_Hwi_Handle inst )
{
xdc_runtime_Types_Label lab;
return ti_sysbios_family_c28_Hwi_Handle__label__S(inst, &lab)->iname;
}
/* handle */
static inline ti_sysbios_family_c28_Hwi_Handle ti_sysbios_family_c28_Hwi_handle( ti_sysbios_family_c28_Hwi_Struct *str )
{
return (ti_sysbios_family_c28_Hwi_Handle)str;
}
/* struct */
static inline ti_sysbios_family_c28_Hwi_Struct *ti_sysbios_family_c28_Hwi_struct( ti_sysbios_family_c28_Hwi_Handle inst )
{
return (ti_sysbios_family_c28_Hwi_Struct*)inst;
}
/*
* ======== EPILOGUE ========
*/
/*
* Copyright (c) 2013-2014, Texas Instruments Incorporated
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of Texas Instruments Incorporated nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
extern UInt ti_sysbios_family_c28_Hwi_enable__E();
extern UInt ti_sysbios_family_c28_Hwi_disable__E();
extern void ti_sysbios_family_c28_Hwi_restore__E(UInt key);
/*
* ======== Hwi_disable ========
*/
inline UInt ti_sysbios_family_c28_Hwi_disable()
{
return (ti_sysbios_family_c28_Hwi_disable__E());
}
/*
* ======== Hwi_enable ========
*/
inline UInt ti_sysbios_family_c28_Hwi_enable()
{
return (ti_sysbios_family_c28_Hwi_enable__E());
}
/*
* ======== Hwi_restore ========
*/
inline void ti_sysbios_family_c28_Hwi_restore(UInt key)
{
ti_sysbios_family_c28_Hwi_restore__E(key);
}
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/* module prefix */
extern const ti_sysbios_family_c28_Hwi_Handle dmaCh2;
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-A71
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* CREATE ARGS
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* PER-INSTANCE TYPES
* VIRTUAL FUNCTIONS
* FUNCTION DECLARATIONS
* CONVERTORS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
extern const ti_sysbios_family_c28_Hwi_Handle can0A;
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-A71
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* CREATE ARGS
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* PER-INSTANCE TYPES
* VIRTUAL FUNCTIONS
* FUNCTION DECLARATIONS
* CONVERTORS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
extern const ti_sysbios_family_c28_Hwi_Handle can1A;
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-A71
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* CREATE ARGS
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* PER-INSTANCE TYPES
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
extern const ti_sysbios_knl_Task_Handle eveCanHandlerTask;
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-A71
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* PER-INSTANCE TYPES
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
extern const ti_sysbios_knl_Event_Handle bios_EveCAN_Handler_ev;
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-A71
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* CREATE ARGS
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* PER-INSTANCE TYPES
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== INCLUDES ========
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:03; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* PER-INSTANCE TYPES
* VIRTUAL FUNCTIONS
* FUNCTION STUBS
* FUNCTION SELECTORS
*
* EPILOGUE
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:01; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* PER-INSTANCE TYPES
* VIRTUAL FUNCTIONS
* FUNCTION STUBS
* FUNCTION SELECTORS
*
* EPILOGUE
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:01; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* VIRTUAL FUNCTIONS
* FUNCTION STUBS
* FUNCTION SELECTORS
*
* EPILOGUE
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:01; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-A71
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* PER-INSTANCE TYPES
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:28:59; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-A71
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* PER-INSTANCE TYPES
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-A71
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* CREATE ARGS
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* PER-INSTANCE TYPES
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* ======== AUXILIARY DEFINITIONS ========
*/
/* MbxElem */
struct ti_sysbios_knl_Mailbox_MbxElem {
ti_sysbios_knl_Queue_Elem elem;
};
/*
* ======== CREATE ARGS ========
*/
/* Args__create */
typedef struct ti_sysbios_knl_Mailbox_Args__create {
xdc_SizeT msgSize;
xdc_UInt numMsgs;
} ti_sysbios_knl_Mailbox_Args__create;
/*
* ======== INTERNAL DEFINITIONS ========
*/
/* Instance_State */
typedef xdc_Char __T1_ti_sysbios_knl_Mailbox_Instance_State__allocBuf;
typedef xdc_Char *__ARRAY1_ti_sysbios_knl_Mailbox_Instance_State__allocBuf;
typedef __ARRAY1_ti_sysbios_knl_Mailbox_Instance_State__allocBuf __TA_ti_sysbios_knl_Mailbox_Instance_State__allocBuf;
/*
* ======== MODULE-WIDE CONFIGS ========
*/
/* Module__diagsEnabled */
typedef xdc_Bits32 CT__ti_sysbios_knl_Mailbox_Module__diagsEnabled;
extern const CT__ti_sysbios_knl_Mailbox_Module__diagsEnabled ti_sysbios_knl_Mailbox_Module__diagsEnabled__C;
/* Module__diagsIncluded */
typedef xdc_Bits32 CT__ti_sysbios_knl_Mailbox_Module__diagsIncluded;
extern const CT__ti_sysbios_knl_Mailbox_Module__diagsIncluded ti_sysbios_knl_Mailbox_Module__diagsIncluded__C;
/* Module__diagsMask */
typedef xdc_Bits16 *CT__ti_sysbios_knl_Mailbox_Module__diagsMask;
extern const CT__ti_sysbios_knl_Mailbox_Module__diagsMask ti_sysbios_knl_Mailbox_Module__diagsMask__C;
/* Module__gateObj */
typedef xdc_Ptr CT__ti_sysbios_knl_Mailbox_Module__gateObj;
extern const CT__ti_sysbios_knl_Mailbox_Module__gateObj ti_sysbios_knl_Mailbox_Module__gateObj__C;
/* Module__gatePrms */
typedef xdc_Ptr CT__ti_sysbios_knl_Mailbox_Module__gatePrms;
extern const CT__ti_sysbios_knl_Mailbox_Module__gatePrms ti_sysbios_knl_Mailbox_Module__gatePrms__C;
/* Module__id */
typedef xdc_runtime_Types_ModuleId CT__ti_sysbios_knl_Mailbox_Module__id;
extern const CT__ti_sysbios_knl_Mailbox_Module__id ti_sysbios_knl_Mailbox_Module__id__C;
/* Module__loggerDefined */
typedef xdc_Bool CT__ti_sysbios_knl_Mailbox_Module__loggerDefined;
extern const CT__ti_sysbios_knl_Mailbox_Module__loggerDefined ti_sysbios_knl_Mailbox_Module__loggerDefined__C;
/* Module__loggerObj */
typedef xdc_Ptr CT__ti_sysbios_knl_Mailbox_Module__loggerObj;
extern const CT__ti_sysbios_knl_Mailbox_Module__loggerObj ti_sysbios_knl_Mailbox_Module__loggerObj__C;
/* Module__loggerFxn0 */
typedef xdc_runtime_Types_LoggerFxn0 CT__ti_sysbios_knl_Mailbox_Module__loggerFxn0;
extern const CT__ti_sysbios_knl_Mailbox_Module__loggerFxn0 ti_sysbios_knl_Mailbox_Module__loggerFxn0__C;
/* Module__loggerFxn1 */
typedef xdc_runtime_Types_LoggerFxn1 CT__ti_sysbios_knl_Mailbox_Module__loggerFxn1;
extern const CT__ti_sysbios_knl_Mailbox_Module__loggerFxn1 ti_sysbios_knl_Mailbox_Module__loggerFxn1__C;
/* Module__loggerFxn2 */
typedef xdc_runtime_Types_LoggerFxn2 CT__ti_sysbios_knl_Mailbox_Module__loggerFxn2;
extern const CT__ti_sysbios_knl_Mailbox_Module__loggerFxn2 ti_sysbios_knl_Mailbox_Module__loggerFxn2__C;
/* Module__loggerFxn4 */
typedef xdc_runtime_Types_LoggerFxn4 CT__ti_sysbios_knl_Mailbox_Module__loggerFxn4;
extern const CT__ti_sysbios_knl_Mailbox_Module__loggerFxn4 ti_sysbios_knl_Mailbox_Module__loggerFxn4__C;
/* Module__loggerFxn8 */
typedef xdc_runtime_Types_LoggerFxn8 CT__ti_sysbios_knl_Mailbox_Module__loggerFxn8;
extern const CT__ti_sysbios_knl_Mailbox_Module__loggerFxn8 ti_sysbios_knl_Mailbox_Module__loggerFxn8__C;
/* Module__startupDoneFxn */
typedef xdc_Bool (*CT__ti_sysbios_knl_Mailbox_Module__startupDoneFxn)(void);
extern const CT__ti_sysbios_knl_Mailbox_Module__startupDoneFxn ti_sysbios_knl_Mailbox_Module__startupDoneFxn__C;
/* Object__count */
typedef xdc_Int CT__ti_sysbios_knl_Mailbox_Object__count;
extern const CT__ti_sysbios_knl_Mailbox_Object__count ti_sysbios_knl_Mailbox_Object__count__C;
/* Object__heap */
typedef xdc_runtime_IHeap_Handle CT__ti_sysbios_knl_Mailbox_Object__heap;
extern const CT__ti_sysbios_knl_Mailbox_Object__heap ti_sysbios_knl_Mailbox_Object__heap__C;
/* Object__sizeof */
typedef xdc_SizeT CT__ti_sysbios_knl_Mailbox_Object__sizeof;
extern const CT__ti_sysbios_knl_Mailbox_Object__sizeof ti_sysbios_knl_Mailbox_Object__sizeof__C;
/* Object__table */
typedef xdc_Ptr CT__ti_sysbios_knl_Mailbox_Object__table;
extern const CT__ti_sysbios_knl_Mailbox_Object__table ti_sysbios_knl_Mailbox_Object__table__C;
/* A_invalidBufSize */
typedef xdc_runtime_Assert_Id CT__ti_sysbios_knl_Mailbox_A_invalidBufSize;
extern const CT__ti_sysbios_knl_Mailbox_A_invalidBufSize ti_sysbios_knl_Mailbox_A_invalidBufSize__C;
/* maxTypeAlign */
typedef xdc_UInt CT__ti_sysbios_knl_Mailbox_maxTypeAlign;
extern const CT__ti_sysbios_knl_Mailbox_maxTypeAlign ti_sysbios_knl_Mailbox_maxTypeAlign__C;
/*
* ======== PER-INSTANCE TYPES ========
*/
/* Params */
struct ti_sysbios_knl_Mailbox_Params {
size_t __size;
const void *__self;
void *__fxns;
xdc_runtime_IInstance_Params *instance;
xdc_runtime_IHeap_Handle heap;
ti_sysbios_knl_Event_Handle readerEvent;
xdc_UInt readerEventId;
ti_sysbios_knl_Event_Handle writerEvent;
xdc_UInt writerEventId;
xdc_Ptr buf;
xdc_UInt bufSize;
xdc_runtime_IInstance_Params __iprms;
};
/* Struct */
struct ti_sysbios_knl_Mailbox_Struct {
xdc_runtime_IHeap_Handle __f0;
xdc_SizeT __f1;
xdc_UInt __f2;
xdc_Ptr __f3;
xdc_UInt __f4;
__TA_ti_sysbios_knl_Mailbox_Instance_State__allocBuf __f5;
ti_sysbios_knl_Queue_Struct __f6;
ti_sysbios_knl_Queue_Struct __f7;
ti_sysbios_knl_Semaphore_Struct __f8;
ti_sysbios_knl_Semaphore_Struct __f9;
xdc_runtime_Types_CordAddr __name;
};
/*
* ======== FUNCTION DECLARATIONS ========
*/
/* Module_startup */
extern xdc_Int ti_sysbios_knl_Mailbox_Module_startup__E( xdc_Int state );
extern xdc_Int ti_sysbios_knl_Mailbox_Module_startup__F( xdc_Int state );
/* Instance_init__E */
extern xdc_Int ti_sysbios_knl_Mailbox_Instance_init__E(ti_sysbios_knl_Mailbox_Object *, xdc_SizeT msgSize, xdc_UInt numMsgs, const ti_sysbios_knl_Mailbox_Params *, xdc_runtime_Error_Block *);
/* Instance_finalize__E */
extern void ti_sysbios_knl_Mailbox_Instance_finalize__E( ti_sysbios_knl_Mailbox_Object* , int );
/* Handle__label__S */
extern xdc_runtime_Types_Label *ti_sysbios_knl_Mailbox_Handle__label__S( xdc_Ptr obj, xdc_runtime_Types_Label *lab );
/* Module__startupDone__S */
extern xdc_Bool ti_sysbios_knl_Mailbox_Module__startupDone__S( void );
/* Object__create__S */
extern xdc_Ptr ti_sysbios_knl_Mailbox_Object__create__S( xdc_Ptr __oa, xdc_SizeT __osz, xdc_Ptr __aa, const xdc_UChar *__pa, xdc_SizeT __psz, xdc_runtime_Error_Block *__eb );
/* create */
extern ti_sysbios_knl_Mailbox_Handle ti_sysbios_knl_Mailbox_create( xdc_SizeT msgSize, xdc_UInt numMsgs, const ti_sysbios_knl_Mailbox_Params *__prms, xdc_runtime_Error_Block *__eb );
/* construct */
extern void ti_sysbios_knl_Mailbox_construct( ti_sysbios_knl_Mailbox_Struct *__obj, xdc_SizeT msgSize, xdc_UInt numMsgs, const ti_sysbios_knl_Mailbox_Params *__prms, xdc_runtime_Error_Block *__eb );
/* Object__delete__S */
extern void ti_sysbios_knl_Mailbox_Object__delete__S( xdc_Ptr instp );
/* delete */
extern void ti_sysbios_knl_Mailbox_delete(ti_sysbios_knl_Mailbox_Handle *instp);
/* Object__destruct__S */
extern void ti_sysbios_knl_Mailbox_Object__destruct__S( xdc_Ptr objp );
/* destruct */
extern void ti_sysbios_knl_Mailbox_destruct(ti_sysbios_knl_Mailbox_Struct *obj);
/* Object__get__S */
extern xdc_Ptr ti_sysbios_knl_Mailbox_Object__get__S( xdc_Ptr oarr, xdc_Int i );
/* Object__first__S */
extern xdc_Ptr ti_sysbios_knl_Mailbox_Object__first__S( void );
/* Object__next__S */
extern xdc_Ptr ti_sysbios_knl_Mailbox_Object__next__S( xdc_Ptr obj );
/* Params__init__S */
extern void ti_sysbios_knl_Mailbox_Params__init__S( xdc_Ptr dst, const void *src, xdc_SizeT psz, xdc_SizeT isz );
/* getMsgSize__E */
extern xdc_SizeT ti_sysbios_knl_Mailbox_getMsgSize__E( ti_sysbios_knl_Mailbox_Handle __inst );
/* getNumFreeMsgs__E */
extern xdc_Int ti_sysbios_knl_Mailbox_getNumFreeMsgs__E( ti_sysbios_knl_Mailbox_Handle __inst );
/* getNumPendingMsgs__E */
extern xdc_Int ti_sysbios_knl_Mailbox_getNumPendingMsgs__E( ti_sysbios_knl_Mailbox_Handle __inst );
/* pend__E */
extern xdc_Bool ti_sysbios_knl_Mailbox_pend__E( ti_sysbios_knl_Mailbox_Handle __inst, xdc_Ptr msg, xdc_UInt32 timeout );
/* post__E */
extern xdc_Bool ti_sysbios_knl_Mailbox_post__E( ti_sysbios_knl_Mailbox_Handle __inst, xdc_Ptr msg, xdc_UInt32 timeout );
/* cleanQue__I */
extern void ti_sysbios_knl_Mailbox_cleanQue__I( ti_sysbios_knl_Queue_Handle obj );
/* postInit__I */
extern xdc_Int ti_sysbios_knl_Mailbox_postInit__I( ti_sysbios_knl_Mailbox_Object *obj, xdc_SizeT blockSize );
/*
* ======== SYSTEM FUNCTIONS ========
*/
/* Module_startupDone */
/* Object_heap */
/* Module_heap */
/* Module_id */
static inline CT__ti_sysbios_knl_Mailbox_Module__id ti_sysbios_knl_Mailbox_Module_id( void )
{
return ti_sysbios_knl_Mailbox_Module__id__C;
}
/* Module_hasMask */
static inline xdc_Bool ti_sysbios_knl_Mailbox_Module_hasMask( void )
{
return ti_sysbios_knl_Mailbox_Module__diagsMask__C != 0;
}
/* Module_getMask */
static inline xdc_Bits16 ti_sysbios_knl_Mailbox_Module_getMask( void )
{
return ti_sysbios_knl_Mailbox_Module__diagsMask__C != 0 ? *ti_sysbios_knl_Mailbox_Module__diagsMask__C : 0;
}
/* Module_setMask */
static inline void ti_sysbios_knl_Mailbox_Module_setMask( xdc_Bits16 mask )
{
if (ti_sysbios_knl_Mailbox_Module__diagsMask__C != 0) *ti_sysbios_knl_Mailbox_Module__diagsMask__C = mask;
}
/* Params_init */
static inline void ti_sysbios_knl_Mailbox_Params_init( ti_sysbios_knl_Mailbox_Params *prms )
{
if (prms) {
ti_sysbios_knl_Mailbox_Params__init__S(prms, 0, sizeof(ti_sysbios_knl_Mailbox_Params), sizeof(xdc_runtime_IInstance_Params));
}
}
/* Params_copy */
static inline void ti_sysbios_knl_Mailbox_Params_copy(ti_sysbios_knl_Mailbox_Params *dst, const ti_sysbios_knl_Mailbox_Params *src)
{
if (dst) {
ti_sysbios_knl_Mailbox_Params__init__S(dst, (const void *)src, sizeof(ti_sysbios_knl_Mailbox_Params), sizeof(xdc_runtime_IInstance_Params));
}
}
/* Object_count */
/* Object_sizeof */
/* Object_get */
static inline ti_sysbios_knl_Mailbox_Handle ti_sysbios_knl_Mailbox_Object_get(ti_sysbios_knl_Mailbox_Instance_State *oarr, int i)
{
return (ti_sysbios_knl_Mailbox_Handle)ti_sysbios_knl_Mailbox_Object__get__S(oarr, i);
}
/* Object_first */
static inline ti_sysbios_knl_Mailbox_Handle ti_sysbios_knl_Mailbox_Object_first( void )
{
return (ti_sysbios_knl_Mailbox_Handle)ti_sysbios_knl_Mailbox_Object__first__S();
}
/* Object_next */
static inline ti_sysbios_knl_Mailbox_Handle ti_sysbios_knl_Mailbox_Object_next( ti_sysbios_knl_Mailbox_Object *obj )
{
return (ti_sysbios_knl_Mailbox_Handle)ti_sysbios_knl_Mailbox_Object__next__S(obj);
}
/* Handle_label */
static inline xdc_runtime_Types_Label *ti_sysbios_knl_Mailbox_Handle_label( ti_sysbios_knl_Mailbox_Handle inst, xdc_runtime_Types_Label *lab )
{
return ti_sysbios_knl_Mailbox_Handle__label__S(inst, lab);
}
/* Handle_name */
static inline xdc_String ti_sysbios_knl_Mailbox_Handle_name( ti_sysbios_knl_Mailbox_Handle inst )
{
xdc_runtime_Types_Label lab;
return ti_sysbios_knl_Mailbox_Handle__label__S(inst, &lab)->iname;
}
/* handle */
static inline ti_sysbios_knl_Mailbox_Handle ti_sysbios_knl_Mailbox_handle( ti_sysbios_knl_Mailbox_Struct *str )
{
return (ti_sysbios_knl_Mailbox_Handle)str;
}
/* struct */
static inline ti_sysbios_knl_Mailbox_Struct *ti_sysbios_knl_Mailbox_struct( ti_sysbios_knl_Mailbox_Handle inst )
{
return (ti_sysbios_knl_Mailbox_Struct*)inst;
}
/*
* ======== EPILOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/* module prefix */
extern const ti_sysbios_knl_Mailbox_Handle bios_EveOverCAN_TX1_mbx;
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-A71
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* CREATE ARGS
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* PER-INSTANCE TYPES
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
extern const ti_sysbios_knl_Mailbox_Handle bios_EveOverCAN_TX2_mbx;
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-A71
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* CREATE ARGS
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* PER-INSTANCE TYPES
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
extern const ti_sysbios_knl_Semaphore_Handle GenCAN_sem;
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-A71
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* CREATE ARGS
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* PER-INSTANCE TYPES
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
extern const ti_sysbios_knl_Semaphore_Handle EveCAN_sem;
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-A71
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* CREATE ARGS
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* PER-INSTANCE TYPES
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
extern const ti_sysbios_knl_Task_Handle bios_EVE2Task;
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-A71
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* PER-INSTANCE TYPES
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
extern const ti_sysbios_knl_Event_Handle bios_EVE2Event;
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-A71
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* CREATE ARGS
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* PER-INSTANCE TYPES
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
extern const ti_sysbios_knl_Mailbox_Handle bios_EVE2InMbx;
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-A71
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* CREATE ARGS
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* PER-INSTANCE TYPES
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
extern const ti_sysbios_knl_Mailbox_Handle bios_EVE2GenMbx;
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-A71
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* CREATE ARGS
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* PER-INSTANCE TYPES
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
extern const ti_sysbios_knl_Mailbox_Handle bios_eveUserMbx;
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-A71
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* CREATE ARGS
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* PER-INSTANCE TYPES
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
extern const ti_sysbios_knl_Semaphore_Handle bios_eveRouter_sem;
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-A71
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* CREATE ARGS
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* PER-INSTANCE TYPES
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
extern const ti_sysbios_knl_Semaphore_Handle bios_spbuf_sem;
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-A71
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* CREATE ARGS
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* PER-INSTANCE TYPES
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
extern const ti_sysbios_knl_Semaphore_Handle bios_schedTimeTree_sem;
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-A71
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* CREATE ARGS
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* PER-INSTANCE TYPES
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
extern const ti_sysbios_knl_Semaphore_Handle bios_rbtreeMem_sem;
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-A71
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* CREATE ARGS
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* PER-INSTANCE TYPES
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
extern const ti_sysbios_knl_Semaphore_Handle bios_entryMem_sem;
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-A71
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* CREATE ARGS
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* PER-INSTANCE TYPES
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
extern const ti_sysbios_knl_Mailbox_Handle bios_EdsIn_mbx;
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-A71
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* CREATE ARGS
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* PER-INSTANCE TYPES
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
extern const ti_sysbios_knl_Mailbox_Handle bios_Eds_mbx;
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* PER-INSTANCE TYPES
* VIRTUAL FUNCTIONS
* FUNCTION DECLARATIONS
* CONVERTORS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== INCLUDES ========
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:03; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* PER-INSTANCE TYPES
* VIRTUAL FUNCTIONS
* FUNCTION STUBS
* FUNCTION SELECTORS
*
* EPILOGUE
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:01; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* PER-INSTANCE TYPES
* VIRTUAL FUNCTIONS
* FUNCTION STUBS
* FUNCTION SELECTORS
*
* EPILOGUE
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:01; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:02; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:28:59; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:00; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* ======== AUXILIARY DEFINITIONS ========
*/
/*
* ======== INTERNAL DEFINITIONS ========
*/
/* Instance_State */
typedef xdc_Char __T1_xdc_runtime_HeapMin_Instance_State__buf;
typedef xdc_Char *__ARRAY1_xdc_runtime_HeapMin_Instance_State__buf;
typedef __ARRAY1_xdc_runtime_HeapMin_Instance_State__buf __TA_xdc_runtime_HeapMin_Instance_State__buf;
/*
* ======== MODULE-WIDE CONFIGS ========
*/
/* Module__diagsEnabled */
typedef xdc_Bits32 CT__xdc_runtime_HeapMin_Module__diagsEnabled;
extern const CT__xdc_runtime_HeapMin_Module__diagsEnabled xdc_runtime_HeapMin_Module__diagsEnabled__C;
/* Module__diagsIncluded */
typedef xdc_Bits32 CT__xdc_runtime_HeapMin_Module__diagsIncluded;
extern const CT__xdc_runtime_HeapMin_Module__diagsIncluded xdc_runtime_HeapMin_Module__diagsIncluded__C;
/* Module__diagsMask */
typedef xdc_Bits16 *CT__xdc_runtime_HeapMin_Module__diagsMask;
extern const CT__xdc_runtime_HeapMin_Module__diagsMask xdc_runtime_HeapMin_Module__diagsMask__C;
/* Module__gateObj */
typedef xdc_Ptr CT__xdc_runtime_HeapMin_Module__gateObj;
extern const CT__xdc_runtime_HeapMin_Module__gateObj xdc_runtime_HeapMin_Module__gateObj__C;
/* Module__gatePrms */
typedef xdc_Ptr CT__xdc_runtime_HeapMin_Module__gatePrms;
extern const CT__xdc_runtime_HeapMin_Module__gatePrms xdc_runtime_HeapMin_Module__gatePrms__C;
/* Module__id */
typedef xdc_runtime_Types_ModuleId CT__xdc_runtime_HeapMin_Module__id;
extern const CT__xdc_runtime_HeapMin_Module__id xdc_runtime_HeapMin_Module__id__C;
/* Module__loggerDefined */
typedef xdc_Bool CT__xdc_runtime_HeapMin_Module__loggerDefined;
extern const CT__xdc_runtime_HeapMin_Module__loggerDefined xdc_runtime_HeapMin_Module__loggerDefined__C;
/* Module__loggerObj */
typedef xdc_Ptr CT__xdc_runtime_HeapMin_Module__loggerObj;
extern const CT__xdc_runtime_HeapMin_Module__loggerObj xdc_runtime_HeapMin_Module__loggerObj__C;
/* Module__loggerFxn0 */
typedef xdc_runtime_Types_LoggerFxn0 CT__xdc_runtime_HeapMin_Module__loggerFxn0;
extern const CT__xdc_runtime_HeapMin_Module__loggerFxn0 xdc_runtime_HeapMin_Module__loggerFxn0__C;
/* Module__loggerFxn1 */
typedef xdc_runtime_Types_LoggerFxn1 CT__xdc_runtime_HeapMin_Module__loggerFxn1;
extern const CT__xdc_runtime_HeapMin_Module__loggerFxn1 xdc_runtime_HeapMin_Module__loggerFxn1__C;
/* Module__loggerFxn2 */
typedef xdc_runtime_Types_LoggerFxn2 CT__xdc_runtime_HeapMin_Module__loggerFxn2;
extern const CT__xdc_runtime_HeapMin_Module__loggerFxn2 xdc_runtime_HeapMin_Module__loggerFxn2__C;
/* Module__loggerFxn4 */
typedef xdc_runtime_Types_LoggerFxn4 CT__xdc_runtime_HeapMin_Module__loggerFxn4;
extern const CT__xdc_runtime_HeapMin_Module__loggerFxn4 xdc_runtime_HeapMin_Module__loggerFxn4__C;
/* Module__loggerFxn8 */
typedef xdc_runtime_Types_LoggerFxn8 CT__xdc_runtime_HeapMin_Module__loggerFxn8;
extern const CT__xdc_runtime_HeapMin_Module__loggerFxn8 xdc_runtime_HeapMin_Module__loggerFxn8__C;
/* Module__startupDoneFxn */
typedef xdc_Bool (*CT__xdc_runtime_HeapMin_Module__startupDoneFxn)(void);
extern const CT__xdc_runtime_HeapMin_Module__startupDoneFxn xdc_runtime_HeapMin_Module__startupDoneFxn__C;
/* Object__count */
typedef xdc_Int CT__xdc_runtime_HeapMin_Object__count;
extern const CT__xdc_runtime_HeapMin_Object__count xdc_runtime_HeapMin_Object__count__C;
/* Object__heap */
typedef xdc_runtime_IHeap_Handle CT__xdc_runtime_HeapMin_Object__heap;
extern const CT__xdc_runtime_HeapMin_Object__heap xdc_runtime_HeapMin_Object__heap__C;
/* Object__sizeof */
typedef xdc_SizeT CT__xdc_runtime_HeapMin_Object__sizeof;
extern const CT__xdc_runtime_HeapMin_Object__sizeof xdc_runtime_HeapMin_Object__sizeof__C;
/* Object__table */
typedef xdc_Ptr CT__xdc_runtime_HeapMin_Object__table;
extern const CT__xdc_runtime_HeapMin_Object__table xdc_runtime_HeapMin_Object__table__C;
/* A_zeroSize */
typedef xdc_runtime_Assert_Id CT__xdc_runtime_HeapMin_A_zeroSize;
extern const CT__xdc_runtime_HeapMin_A_zeroSize xdc_runtime_HeapMin_A_zeroSize__C;
/* E_freeError */
typedef xdc_runtime_Error_Id CT__xdc_runtime_HeapMin_E_freeError;
extern const CT__xdc_runtime_HeapMin_E_freeError xdc_runtime_HeapMin_E_freeError__C;
/* freeError */
typedef xdc_Bool CT__xdc_runtime_HeapMin_freeError;
extern const CT__xdc_runtime_HeapMin_freeError xdc_runtime_HeapMin_freeError__C;
/*
* ======== PER-INSTANCE TYPES ========
*/
/* Params */
struct xdc_runtime_HeapMin_Params {
size_t __size;
const void *__self;
void *__fxns;
xdc_runtime_IInstance_Params *instance;
xdc_Ptr buf;
xdc_runtime_Memory_Size size;
xdc_runtime_IInstance_Params __iprms;
};
/* Struct */
struct xdc_runtime_HeapMin_Struct {
const xdc_runtime_HeapMin_Fxns__ *__fxns;
__TA_xdc_runtime_HeapMin_Instance_State__buf __f0;
xdc_runtime_Memory_Size __f1;
xdc_runtime_Memory_Size __f2;
xdc_runtime_Types_CordAddr __name;
};
/*
* ======== VIRTUAL FUNCTIONS ========
*/
/* Fxns__ */
struct xdc_runtime_HeapMin_Fxns__ {
xdc_runtime_Types_Base* __base;
const xdc_runtime_Types_SysFxns2* __sysp;
xdc_Ptr (*alloc)(xdc_runtime_HeapMin_Handle, xdc_SizeT, xdc_SizeT, xdc_runtime_Error_Block*);
void (*free)(xdc_runtime_HeapMin_Handle, xdc_Ptr, xdc_SizeT);
xdc_Bool (*isBlocking)(xdc_runtime_HeapMin_Handle);
void (*getStats)(xdc_runtime_HeapMin_Handle, xdc_runtime_Memory_Stats*);
xdc_runtime_Types_SysFxns2 __sfxns;
};
/* Module__FXNS__C */
extern const xdc_runtime_HeapMin_Fxns__ xdc_runtime_HeapMin_Module__FXNS__C;
/*
* ======== FUNCTION DECLARATIONS ========
*/
/* Module_startup */
/* Instance_init__E */
extern void xdc_runtime_HeapMin_Instance_init__E(xdc_runtime_HeapMin_Object *, const xdc_runtime_HeapMin_Params *);
/* Handle__label__S */
extern xdc_runtime_Types_Label *xdc_runtime_HeapMin_Handle__label__S( xdc_Ptr obj, xdc_runtime_Types_Label *lab );
/* Module__startupDone__S */
extern xdc_Bool xdc_runtime_HeapMin_Module__startupDone__S( void );
/* Object__create__S */
extern xdc_Ptr xdc_runtime_HeapMin_Object__create__S( xdc_Ptr __oa, xdc_SizeT __osz, xdc_Ptr __aa, const xdc_UChar *__pa, xdc_SizeT __psz, xdc_runtime_Error_Block *__eb );
/* create */
extern xdc_runtime_HeapMin_Handle xdc_runtime_HeapMin_create( const xdc_runtime_HeapMin_Params *__prms, xdc_runtime_Error_Block *__eb );
/* construct */
extern void xdc_runtime_HeapMin_construct( xdc_runtime_HeapMin_Struct *__obj, const xdc_runtime_HeapMin_Params *__prms );
/* Object__delete__S */
extern void xdc_runtime_HeapMin_Object__delete__S( xdc_Ptr instp );
/* delete */
extern void xdc_runtime_HeapMin_delete(xdc_runtime_HeapMin_Handle *instp);
/* Object__destruct__S */
extern void xdc_runtime_HeapMin_Object__destruct__S( xdc_Ptr objp );
/* destruct */
extern void xdc_runtime_HeapMin_destruct(xdc_runtime_HeapMin_Struct *obj);
/* Object__get__S */
extern xdc_Ptr xdc_runtime_HeapMin_Object__get__S( xdc_Ptr oarr, xdc_Int i );
/* Object__first__S */
extern xdc_Ptr xdc_runtime_HeapMin_Object__first__S( void );
/* Object__next__S */
extern xdc_Ptr xdc_runtime_HeapMin_Object__next__S( xdc_Ptr obj );
/* Params__init__S */
extern void xdc_runtime_HeapMin_Params__init__S( xdc_Ptr dst, const void *src, xdc_SizeT psz, xdc_SizeT isz );
/* getStats__E */
extern void xdc_runtime_HeapMin_getStats__E( xdc_runtime_HeapMin_Handle __inst, xdc_runtime_Memory_Stats *stats );
/* alloc__E */
extern xdc_Ptr xdc_runtime_HeapMin_alloc__E( xdc_runtime_HeapMin_Handle __inst, xdc_SizeT size, xdc_SizeT align, xdc_runtime_Error_Block *eb );
/* free__E */
extern void xdc_runtime_HeapMin_free__E( xdc_runtime_HeapMin_Handle __inst, xdc_Ptr block, xdc_SizeT size );
/* isBlocking__E */
extern xdc_Bool xdc_runtime_HeapMin_isBlocking__E( xdc_runtime_HeapMin_Handle __inst );
/*
* ======== CONVERTORS ========
*/
/* Module_upCast */
static inline xdc_runtime_IHeap_Module xdc_runtime_HeapMin_Module_upCast( void )
{
return (xdc_runtime_IHeap_Module)&xdc_runtime_HeapMin_Module__FXNS__C;
}
/* Module_to_xdc_runtime_IHeap */
/* Handle_upCast */
static inline xdc_runtime_IHeap_Handle xdc_runtime_HeapMin_Handle_upCast( xdc_runtime_HeapMin_Handle i )
{
return (xdc_runtime_IHeap_Handle)i;
}
/* Handle_to_xdc_runtime_IHeap */
/* Handle_downCast */
static inline xdc_runtime_HeapMin_Handle xdc_runtime_HeapMin_Handle_downCast( xdc_runtime_IHeap_Handle i )
{
xdc_runtime_IHeap_Handle i2 = (xdc_runtime_IHeap_Handle)i;
return (const void*)i2->__fxns == (const void*)&xdc_runtime_HeapMin_Module__FXNS__C ? (xdc_runtime_HeapMin_Handle)i : (xdc_runtime_HeapMin_Handle)0;
}
/* Handle_from_xdc_runtime_IHeap */
/*
* ======== SYSTEM FUNCTIONS ========
*/
/* Module_startupDone */
/* Object_heap */
/* Module_heap */
/* Module_id */
static inline CT__xdc_runtime_HeapMin_Module__id xdc_runtime_HeapMin_Module_id( void )
{
return xdc_runtime_HeapMin_Module__id__C;
}
/* Module_hasMask */
static inline xdc_Bool xdc_runtime_HeapMin_Module_hasMask( void )
{
return (xdc_Bool)(xdc_runtime_HeapMin_Module__diagsMask__C != 0);
}
/* Module_getMask */
static inline xdc_Bits16 xdc_runtime_HeapMin_Module_getMask( void )
{
return xdc_runtime_HeapMin_Module__diagsMask__C != 0 ? *xdc_runtime_HeapMin_Module__diagsMask__C : (xdc_Bits16)0;
}
/* Module_setMask */
static inline void xdc_runtime_HeapMin_Module_setMask( xdc_Bits16 mask )
{
if (xdc_runtime_HeapMin_Module__diagsMask__C != 0) {
*xdc_runtime_HeapMin_Module__diagsMask__C = mask;
}
}
/* Params_init */
static inline void xdc_runtime_HeapMin_Params_init( xdc_runtime_HeapMin_Params *prms )
{
if (prms) {
xdc_runtime_HeapMin_Params__init__S(prms, 0, sizeof(xdc_runtime_HeapMin_Params), sizeof(xdc_runtime_IInstance_Params));
}
}
/* Params_copy */
static inline void xdc_runtime_HeapMin_Params_copy(xdc_runtime_HeapMin_Params *dst, const xdc_runtime_HeapMin_Params *src)
{
if (dst) {
xdc_runtime_HeapMin_Params__init__S(dst, (const void *)src, sizeof(xdc_runtime_HeapMin_Params), sizeof(xdc_runtime_IInstance_Params));
}
}
/* Object_count */
/* Object_sizeof */
/* Object_get */
static inline xdc_runtime_HeapMin_Handle xdc_runtime_HeapMin_Object_get(xdc_runtime_HeapMin_Instance_State *oarr, int i)
{
return (xdc_runtime_HeapMin_Handle)xdc_runtime_HeapMin_Object__get__S(oarr, i);
}
/* Object_first */
static inline xdc_runtime_HeapMin_Handle xdc_runtime_HeapMin_Object_first( void )
{
return (xdc_runtime_HeapMin_Handle)xdc_runtime_HeapMin_Object__first__S();
}
/* Object_next */
static inline xdc_runtime_HeapMin_Handle xdc_runtime_HeapMin_Object_next( xdc_runtime_HeapMin_Object *obj )
{
return (xdc_runtime_HeapMin_Handle)xdc_runtime_HeapMin_Object__next__S(obj);
}
/* Handle_label */
static inline xdc_runtime_Types_Label *xdc_runtime_HeapMin_Handle_label( xdc_runtime_HeapMin_Handle inst, xdc_runtime_Types_Label *lab )
{
return xdc_runtime_HeapMin_Handle__label__S(inst, lab);
}
/* Handle_name */
static inline xdc_String xdc_runtime_HeapMin_Handle_name( xdc_runtime_HeapMin_Handle inst )
{
xdc_runtime_Types_Label lab;
return xdc_runtime_HeapMin_Handle__label__S(inst, &lab)->iname;
}
/* handle */
static inline xdc_runtime_HeapMin_Handle xdc_runtime_HeapMin_handle( xdc_runtime_HeapMin_Struct *str )
{
return (xdc_runtime_HeapMin_Handle)str;
}
/* struct */
static inline xdc_runtime_HeapMin_Struct *xdc_runtime_HeapMin_struct( xdc_runtime_HeapMin_Handle inst )
{
return (xdc_runtime_HeapMin_Struct*)inst;
}
/*
* ======== EPILOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/* module prefix */
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:00; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
extern const xdc_runtime_HeapMin_Handle defaultHeap;
extern int xdc_runtime_Startup__EXECFXN__C;
extern int xdc_runtime_Startup__RESETFXN__C;
/*
* @(#) xdc.cfg; 1, 0, 2,0; 5-1-2017 10:28:00; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/****************************************************************************************/
/* Exported constant definitions: */
/****************************************************************************************/
/* Exported macro definitions: */
/****************************************************************************************/
/* Exported type definitions: */
/****************************************************************************************/
/* Exported function prototypes: */
/****************************************************************************************/
/* Exported data declarations: */
/****************************************************************************************/
/****************************************************************************************/
/**@file syswdog.h
* @brief This module provides the typedefs of the syswdog module
* For detailed description, see the corresponding c file or the doxygen
* generated documents.
* @author Matthias Wauer
* @date 18 Feb 2015
*/
/*--------------------------------------------------------------------------------------*/
/* Copyright (c) 2015...2018 Baker Hughes, a GE company, LLC ("BHGE") (unpublished work).
* All rights reserved. The information contained in this document is confidential and
* proprietary property of BHGE and its affiliates. It is to be used only for the benefit
* of BHGE and may not be distributed, transmitted, reproduced, altered or used for any
* purpose without the express written consent of BHGE. */
/*--------------------------------------------------------------------------------------*/
/****************************************************************************************/
/* Imported include interfaces: */
/****************************************************************************************/
/* Exported constant definitions: */
/****************************************************************************************/
/* Exported macro definitions: */
/****************************************************************************************/
/* Exported type definitions: */
/*!---------------------------------------------------------------------------------------
* @brief This enumeration defines the possible types of system restarts.
* @author Matthias Wauer
* @date 18 Feb 2015
*//*-----------------------------------------------------------------------------------*/
typedef enum syswdog_restartType_tag
{
/** The type of the last system restart could not be identified. */
syswdog_RT_UNDEF = 0u,
/** The system has been restarted because of an normal power on reset. */
syswdog_RT_POR,
/** The system has been restarted because of an user request. */
syswdog_RT_USER_REQ,
/** The system has been restarted because of an watchdog timeout */
syswdog_RT_WDOG_TIMEOUT
}syswdog_restartType_t;
/*!---------------------------------------------------------------------------------------
* @brief This structure describes the information about the restart root cause.
* @author Matthias Wauer
* @date 05 Dec 2018
*//*-----------------------------------------------------------------------------------*/
typedef struct syswdog_restartInfo_tag
{
/** detailed restart type identifier */
syswdog_restartType_t restartTypeId_ensv;
/** missing heart beats flags (low word) */
uint16_t missingThreadFlagsLow_u16;
/** missing heart beats flags (high word) */
uint16_t missingThreadFlagsHigh_u16;
}syswdog_restartInfo_t;
/*!---------------------------------------------------------------------------------------
* @brief This structure defines the registration handle used to signal a heart beat.
* @author Matthias Wauer
* @date 18 Feb 2015
*//*-----------------------------------------------------------------------------------*/
typedef struct syswdog_obj_tag syswdog_handle_t;
/*!---------------------------------------------------------------------------------------
* @brief This type definition is the call back function to request a new heard beat
* @author Matthias Wauer
* @date 18 Feb 2015
* @param[in] syswdogHdl_stcpc system watch dog handle
* @param[in] usrHandle_vdcpc user handle
*//*-----------------------------------------------------------------------------------*/
typedef void (*syswdog_hbReqCbFnc_t) (const syswdog_handle_t* const syswdogHdl_stcpc,
const void* const usrHandle_vdcpc);
/*!---------------------------------------------------------------------------------------
* @brief This type definition is the call back function to signal missing threads
* @author Matthias Wauer
* @date 18 Feb 2015
* @param[in] missingThreadFlags_u32c missing thread flags
*//*-----------------------------------------------------------------------------------*/
typedef void (*syswdog_SigMissingThreadsCbFnc_t) (const uint32_t missingThreadFlags_u32c);
/*!---------------------------------------------------------------------------------------
* @brief This structure defines the registration parameters.
* @author Matthias Wauer
* @date 18 Feb 2015
*//*-----------------------------------------------------------------------------------*/
typedef struct syswdog_regParam_tag
{
/** pointer to the heart beat request callback function */
syswdog_hbReqCbFnc_t hbReqCbFnc_fnp;
/** user handle passed with the callback function call */
void* hbReqCbFncUsrHdl_vdp;
}syswdog_regParam_t;
/*!---------------------------------------------------------------------------------------
* @brief This structure collects the parameters of the system watch dog
* @author Matthias Wauer
* @date 18 Feb 2015
*//*-----------------------------------------------------------------------------------*/
typedef struct syswdog_param_tag
{
/** number of supported threads (upper limit: 32, default 1) */
uint8_t numOfSupportedThreads_u8;
/** time period after the hardware watchdog will be triggered when not all heart
* beats have been signaled in milliseconds (upper limit: 6500s, default 5000ms) */
uint32_t watchdogTimeout_u32;
/** callback function which is called after parameterized watchdog service cycles and
* when heart beats are missing (optional) */
syswdog_SigMissingThreadsCbFnc_t sigMisHeartBeatsCbFnc_fnp;
/** pointer to the initialization key (don't set this, it's only for internal usage) */
const void* initKey_vdpc;
}syswdog_param_t;
/****************************************************************************************/
/* Exported function prototypes: */
extern void syswdog_InitParam_vd (syswdog_param_t* const syswdogParam_stpc);
extern bool syswdog_Initialize_bol (const syswdog_param_t* const syswdogParam_stcpc);
extern void syswdog_Activate_vd (void);
extern void syswdog_Deactivate_vd (void);
extern void syswdog_RestartSystem_vd (void);
extern syswdog_restartType_t syswdog_GetRestartType_en (void);
extern uint32_t syswdog_GetRestartRootCause_u32 (void);
extern const syswdog_handle_t* syswdog_Register_stpc (const syswdog_regParam_t* const regParam_stcpc);
extern uint8_t syswdog_GetBitOffsetInMissThreadFlags_u8 (const syswdog_handle_t* const syswdHdl_stcpc);
extern void syswdog_SignalHeartBeat_vd (const syswdog_handle_t* const syswdHdl_stcpc);
extern void syswdog_ServiceHwWDog_vd (void);
/****************************************************************************************/
/* Exported data declarations: */
/****************************************************************************************/
/****************************************************************************************/
/**@file utils.h
* @brief Several utility functions, e.g. calc checksum.
* For detailed description, see the corresponding c file or the doxygen
* generated docs
* @author Eli Adetola
* @date 02 Aug 2012
*/
/*--------------------------------------------------------------------------------------*/
/* Copyright (c) 2001...2018 Baker Hughes, a GE company, LLC ("BHGE") (unpublished work).
* All rights reserved. The information contained in this document is confidential and
* proprietary property of BHGE and its affiliates. It is to be used only for the benefit
* of BHGE and may not be distributed, transmitted, reproduced, altered or used for any
* purpose without the express written consent of BHGE. */
/*--------------------------------------------------------------------------------------*/
/****************************************************************************************/
/* Imported header files: */
//###########################################################################
//
// FILE: DSP2833x_GlobalPrototypes.h
//
// TITLE: Global prototypes for DSP2833x Examples
//
//###########################################################################
// $TI Release: 2833x/2823x Header Files and Peripheral Examples V133 $
// $Release Date: June 8, 2012 $
//###########################################################################
/*---- shared global function prototypes -----------------------------------*/
extern void InitAdc(void);
extern void DMAInitialize(void);
// DMA Channel 1
extern void DMACH1AddrConfig(volatile uint16_t *DMA_Dest,volatile uint16_t *DMA_Source);
extern void DMACH1BurstConfig(uint16_t bsize, int16_t srcbstep, int16_t desbstep);
extern void DMACH1TransferConfig(uint16_t tsize, int16_t srctstep, int16_t deststep);
extern void DMACH1WrapConfig(uint16_t srcwsize, int16_t srcwstep, uint16_t deswsize, int16_t deswstep);
extern void DMACH1ModeConfig(uint16_t persel, uint16_t perinte, uint16_t oneshot, uint16_t cont, uint16_t synce, uint16_t syncsel, uint16_t ovrinte, uint16_t datasize, uint16_t chintmode, uint16_t chinte);
extern void StartDMACH1(void);
// DMA Channel 2
extern void DMACH2AddrConfig(volatile uint16_t *DMA_Dest,volatile uint16_t *DMA_Source);
extern void DMACH2BurstConfig(uint16_t bsize, int16_t srcbstep, int16_t desbstep);
extern void DMACH2TransferConfig(uint16_t tsize, int16_t srctstep, int16_t deststep);
extern void DMACH2WrapConfig(uint16_t srcwsize, int16_t srcwstep, uint16_t deswsize, int16_t deswstep);
extern void DMACH2ModeConfig(uint16_t persel, uint16_t perinte, uint16_t oneshot, uint16_t cont, uint16_t synce, uint16_t syncsel, uint16_t ovrinte, uint16_t datasize, uint16_t chintmode, uint16_t chinte);
extern void StartDMACH2(void);
// DMA Channel 3
extern void DMACH3AddrConfig(volatile uint16_t *DMA_Dest,volatile uint16_t *DMA_Source);
extern void DMACH3BurstConfig(uint16_t bsize, int16_t srcbstep, int16_t desbstep);
extern void DMACH3TransferConfig(uint16_t tsize, int16_t srctstep, int16_t deststep);
extern void DMACH3WrapConfig(uint16_t srcwsize, int16_t srcwstep, uint16_t deswsize, int16_t deswstep);
extern void DMACH3ModeConfig(uint16_t persel, uint16_t perinte, uint16_t oneshot, uint16_t cont, uint16_t synce, uint16_t syncsel, uint16_t ovrinte, uint16_t datasize, uint16_t chintmode, uint16_t chinte);
extern void StartDMACH3(void);
// DMA Channel 4
extern void DMACH4AddrConfig(volatile uint16_t *DMA_Dest,volatile uint16_t *DMA_Source);
extern void DMACH4BurstConfig(uint16_t bsize, int16_t srcbstep, int16_t desbstep);
extern void DMACH4TransferConfig(uint16_t tsize, int16_t srctstep, int16_t deststep);
extern void DMACH4WrapConfig(uint16_t srcwsize, int16_t srcwstep, uint16_t deswsize, int16_t deswstep);
extern void DMACH4ModeConfig(uint16_t persel, uint16_t perinte, uint16_t oneshot, uint16_t cont, uint16_t synce, uint16_t syncsel, uint16_t ovrinte, uint16_t datasize, uint16_t chintmode, uint16_t chinte);
extern void StartDMACH4(void);
// DMA Channel 5
extern void DMACH5AddrConfig(volatile uint16_t *DMA_Dest,volatile uint16_t *DMA_Source);
extern void DMACH5BurstConfig(uint16_t bsize, int16_t srcbstep, int16_t desbstep);
extern void DMACH5TransferConfig(uint16_t tsize, int16_t srctstep, int16_t deststep);
extern void DMACH5WrapConfig(uint16_t srcwsize, int16_t srcwstep, uint16_t deswsize, int16_t deswstep);
extern void DMACH5ModeConfig(uint16_t persel, uint16_t perinte, uint16_t oneshot, uint16_t cont, uint16_t synce, uint16_t syncsel, uint16_t ovrinte, uint16_t datasize, uint16_t chintmode, uint16_t chinte);
extern void StartDMACH5(void);
// DMA Channel 6
extern void DMACH6AddrConfig(volatile uint16_t *DMA_Dest,volatile uint16_t *DMA_Source);
extern void DMACH6BurstConfig(uint16_t bsize,uint16_t srcbstep, int16_t desbstep);
extern void DMACH6TransferConfig(uint16_t tsize, int16_t srctstep, int16_t deststep);
extern void DMACH6WrapConfig(uint16_t srcwsize, int16_t srcwstep, uint16_t deswsize, int16_t deswstep);
extern void DMACH6ModeConfig(uint16_t persel, uint16_t perinte, uint16_t oneshot, uint16_t cont, uint16_t synce, uint16_t syncsel, uint16_t ovrinte, uint16_t datasize, uint16_t chintmode, uint16_t chinte);
extern void StartDMACH6(void);
extern void InitPeripherals(void);
extern void InitECan(void);
extern void InitECana(void);
extern void InitECanGpio(void);
extern void InitECanaGpio(void);
extern void InitECanb(void);
extern void InitECanbGpio(void);
extern void InitECap(void);
extern void InitECapGpio(void);
extern void InitECap1Gpio(void);
extern void InitECap2Gpio(void);
extern void InitECap3Gpio(void);
extern void InitECap4Gpio(void);
extern void InitECap5Gpio(void);
extern void InitECap6Gpio(void);
extern void InitEPwm(void);
extern void InitEPwmGpio(void);
extern void InitEPwm1Gpio(void);
extern void InitEPwm2Gpio(void);
extern void InitEPwm3Gpio(void);
extern void InitEPwm4Gpio(void);
extern void InitEPwm5Gpio(void);
extern void InitEPwm6Gpio(void);
extern void InitEQep(void);
extern void InitEQepGpio(void);
extern void InitEQep1Gpio(void);
extern void InitEQep2Gpio(void);
extern void InitGpio(void);
extern void InitI2CGpio(void);
extern void InitMcbsp(void);
extern void InitMcbspa(void);
extern void delay_loop(void);
extern void InitMcbspaGpio(void);
extern void InitMcbspa8bit(void);
extern void InitMcbspa12bit(void);
extern void InitMcbspa16bit(void);
extern void InitMcbspa20bit(void);
extern void InitMcbspa24bit(void);
extern void InitMcbspa32bit(void);
extern void InitMcbspb(void);
extern void InitMcbspbGpio(void);
extern void InitMcbspb8bit(void);
extern void InitMcbspb12bit(void);
extern void InitMcbspb16bit(void);
extern void InitMcbspb20bit(void);
extern void InitMcbspb24bit(void);
extern void InitMcbspb32bit(void);
extern void InitPieCtrl(void);
extern void InitPieVectTable(void);
extern void InitSci(void);
extern void InitSciGpio(void);
extern void InitSciaGpio(void);
extern void InitScibGpio(void);
extern void InitScicGpio(void);
extern void InitSpi(void);
extern void InitSpiGpio(void);
extern void InitSpiaGpio(void);
extern void InitSysCtrl(void);
extern void InitTzGpio(void);
extern void InitXIntrupt(void);
extern void XintfInit(void);
extern void InitXintf16Gpio();
extern void InitXintf32Gpio();
extern void InitPll(uint16_t pllcr, uint16_t clkindiv);
extern void InitPeripheralClocks(void);
extern void EnableInterrupts(void);
extern void DSP28x_usDelay(uint32_t Count);
extern void ADC_cal (void);
extern void ServiceDog(void);
extern void DisableDog(void);
extern uint16_t CsmUnlock(void);
// DSP28_DBGIER.asm
extern void SetDBGIER(uint16_t dbgier);
// CAUTION
// This function MUST be executed out of RAM. Executing it
// out of OTP/Flash will yield unpredictable results
extern void InitFlash(void);
void MemCopy(uint16_t *SourceAddr, uint16_t* SourceEndAddr, uint16_t* DestAddr);
//---------------------------------------------------------------------------
// External symbols created by the linker cmd file
// DSP28 examples will use these to relocate code from one LOAD location
// in either Flash or XINTF to a different RUN location in internal
// RAM
extern uint16_t RamfuncsLoadStart;
extern uint16_t RamfuncsLoadEnd;
extern uint16_t RamfuncsRunStart;
extern uint16_t XintffuncsLoadStart;
extern uint16_t XintffuncsLoadEnd;
extern uint16_t XintffuncsRunStart;
//===========================================================================
// End of file.
//===========================================================================
/****************************************************************************************/
/**@file config.h
* @brief This file contains project specific configuration defines, which are not
* specific for a certain functionality. Those can be found in special config
* files (e.g. adamconfig.h)
* For detailed description, see the corresponding c file or the doxygen
* generated documents.
* @author Eduard Siewert
* @date 06 Jan 2014
*/
/*--------------------------------------------------------------------------------------*/
/* Copyright (c) 2014...2018 Baker Hughes, a GE company, LLC ("BHGE") (unpublished work).
* All rights reserved. The information contained in this document is confidential and
* proprietary property of BHGE and its affiliates. It is to be used only for the benefit
* of BHGE and may not be distributed, transmitted, reproduced, altered or used for any
* purpose without the express written consent of BHGE. */
/*--------------------------------------------------------------------------------------*/
/****************************************************************************************/
/**************************** ************************************************************/
/* Exported constant definitions: */
/****************************************************************************************/
/* Exported macro definitions: */
// Unit conversion factors
/*!@brief Secods per minute */
/*!@brief Nanoseconds per microsecond */
/*!@brief Nanoseconds per microsecond */
/*!@brief per Millisecond */
/*!@brief Milliseceond per second */
/*!@brief Milliseceond per hour */
/*!@brief Milliseceond per minute */
/*!@brief Milliseceond per second */
// Unit conversion
/*!@brief hertz to nanosecond */
/*!@brief nanosecond to hertz */
/*!@brief bar to pascal conversion */
/*!@brief psi to bar conversion */
/*!@brief psi to pascal conversion*/
/*!@brief megahertz to hertz */
// Delay functions (be aware of the lower limit of the DelayNS macro)
/*!@brief lower limit of the DelayUS macro */
/*!@brief lower limit of the DelayNS macro */
/*!@brief SquareRoot of 3 */
// PI
/*!@brief PI Value */
/*!@brief 2*PI Value */
/*!@brief PI in single (float32) resolution */
/*!@brief 2*PI in single (float32) resolution */
// Standard conversion from / to SI units
/*!@brief celsius to kelvin */
/*!@brief kelvin to celsius */
/*!@brief meter per square seconds to gravitation */
/*!@brief gravitation to meter per square seconds */
/*!@brief gauss to tessla */
/*!@brief tessla to gauss */
/*!@brief rpm to hz */
/*!@brief hz to rpm */
/*!@brief Convert from degree to rad */
/*!@brief Convert from rad to degree */
/*!@brief Checks if value is inside specified limits. Both limits are included */
/*!@brief Checks if value is inside specified limits. Upper limit is not included */
/*!@brief Checks if value is inside specified limits. Lower limit is not included */
/*!@brief Checks if value is inside specified limits. Both limits are not included */
// Bit manipulation macros
/*!@brief check bit manipulation macros */
/*!@brief set bit manipulation macros */
/*!@brief clear bit manipulation macros */
// BitMask macros
/*!@brief Returns the number of bits per one byte */
/*!@brief Returns size of in bytes (here 8Bit = 1 Byte) */
/*!@brief convert the number of bytes to the number of 8-bit bytes */
/*!@brief convert the number of 8-bit bytes to the number of bytes */
/*!@brief Get high byte of word */
/*!@brief Get low byte of word */
/*!@brief returns the number of elements in an array */
/*!@brief this macro can be used to satisfy lint */
/*!@brief Caluculates the squared value of the parameter */
/*!@brief Returns the minimum value of two specified int16_t values. */
/*!@brief Returns the maximum value of two specified int16_t values. */
/*!@brief Returns the minimum value of two specified int32_t values. */
/*!@brief Returns the maximum value of two specified int32_t values. */
/* if(a < b) a = b
e.g. min_f32 = util_FMIN_f32(min_f32, current_f32); */
/*!@brief Returns the minimum value of two specified int32_t values. */
/* if(a > b) a = b
e.g. max_f32 = util_FMAX_f32(max_f32, current_f32); */
/*!@brief Returns the maximum value of two specified int32_t values. */
/*!@brief Returns the abs value of x */
/*!@brief Returns the abs value of x */
/*!@brief Rounds to the closest integer value */
/*!@brief Rounds an integer division to the closest integer value */
/*!@brief Adjusts value to range, e.g.
* util_LimitToRange_vd(0, 360, value)
* will add 360 to the value if it is smaller than 0
* and substract 360 if the value is bigger or equal to 360. */
/*!@brief Limits a specified value to a specified range */
/*!@brief macro to swap high and low byte */
/****************************************************************************************/
/* Exported type definitions: */
/****************************************************************************************/
/* Exported function prototypes: */
extern uint32_t utils_CheckSum_u32(const uint32_t byteCount_u32c,
const uint8_t * const buffer_u8cpc);
extern uint32_t utils_CheckSumWordAddr_u32(const uint32_t wordCount_u32c,
const uint16_t * const buffer_u16cpc);
extern bool utils_MemCompare_bol(const uint8_t * const dest_u8cpc,
const uint8_t * const src_u8cpc,
uint32_t size_u32);
extern void utils_MemCopy_vd(uint8_t * const dest_u8pc,
const uint8_t * const src_u8cpc,
uint32_t size_u32);
extern void utils_MemSet_vd(uint8_t * const dest_u8pc,
const uint8_t data_u8c,
uint32_t size_u32);
extern bool utils_MemComp_bol(const uint8_t * const dest_u8cpc,
const uint8_t data_u8c,
uint32_t size_u32);
extern void utils_SetBit_vd(uint8_t * const register_u8pc, const uint8_t bit_u8c);
extern void utils_SetBit16_vd(uint16_t * const register_u16pc, const uint8_t bit_u8c);
extern void utils_SetBit32_vd(uint32_t * const register_u32pc, const uint8_t bit_u8c);
extern void utils_ClrBit_vd(uint8_t * const register_u8pc, const uint8_t bit_u8c);
extern void utils_ClrBit16_vd(uint16_t * const register_u16pc, const uint8_t bit_u8c);
extern void utils_ClrBit32_vd(uint32_t * const register_u32pc, const uint8_t bit_u8c);
extern bool utils_CheckBit_bol(const uint8_t * const register_u8cpc, const uint8_t bit_u8c);
extern bool utils_CheckBit16_bol(const uint16_t * const register_u16cpc,
const uint8_t bit_u8c);
extern bool utils_CheckBit32_bol(const uint32_t * const register_u32cpc,
const uint8_t bit_u8c);
extern void utils_WriteBit_vd(uint8_t * const register_u8pc,
const uint8_t bit_u8c,
const uint8_t value_u8c);
extern void utils_ConvertToByteAddress_vd(uint8_t ** const data_u8pc);
extern void utils_ConvToTargetBaseAddr_vd(void ** const data_vdpc);
extern void utils_ConvertToByteArray_vd(uint8_t * const data_u8pc,
const uint32_t numOfBytes_u32c);
extern void utils_MemCopyWord_vd(uint8_t * dest_u8p,
const uint16_t * src_u16p,
uint32_t size_u32);
extern void utils_MemCopyDoubleWord_vd(uint8_t * dest_u8p,
const uint32_t * src_u32cp,
uint32_t size_u32);
extern void utils_AddF32Bit_vd(const float32_t data_f32,
void * const dest_vdcp,
uint16_t * const idx_u16cp);
extern void utils_Add32Bit_vd(const uint32_t data_u32c,
void * const dest_vdcp,
uint16_t * const idx_u16cp);
extern void utils_Add16Bit_vd(const uint16_t data_u16c,
void * const dest_vdcp,
uint16_t * const idx_u16cp);
extern void utils_Add8Bit_vd(uint16_t data_u16,
void * const dest_vdcp,
uint16_t * const idx_u16cp);
extern void utils_Add8BitStartLoW_vd(uint16_t data_u16,
void * const dest_vdcp,
uint16_t * const idx_u16cp);
/* atomic functions */
extern void utils_AtomicInc16Bit_vd (uint16_t* const data_u16cp);
extern void utils_AtomicOr16Bit_vd (uint16_t* const dstData_u16cp,
const uint16_t srcData_u16c);
extern void utils_AtomicAnd16Bit_vd (uint16_t* const dstData_u16cp,
const uint16_t srcData_u16c);
extern void utils_AtomicSetUint16_vd(uint16_t* const dstData_u16cp,
const uint16_t* const srcData_u16cpc);
extern void utils_AtomicSetPtr_vd (void** const destPtr_vdcpp,
void* const srcPtr_vdcp);
extern void* utils_AtomicExchPtr_vd (void** const pointer1_vdcpp,
void* const pointer2_vdcp);
extern uint16_t utils_CombineByteToHex_u16(const uint8_t byte1_u8c, const uint8_t byte2_u8c);
extern int16_t utils_CircIndex_s16(int16_t index_s16, const int16_t incr_s16c,
const int16_t nitems_s16c);
extern float32_t utils_CalcAngleDiff_f32(const float32_t angleX_f32c,
const float32_t angleY_f32c);
/****************************************************************************************/
/* Exported data declarations: */
/****************************************************************************************/
/****************************************************************************************/
/* Global constant defines: */
/****************************************************************************************/
/* Global function like macro defines (to be avoided): */
//---------------------------------------------------------------------------------------
// general
//---------------------------------------------------------------------------------------
/*!@brief GPIO MUX definition */
/*!@brief GPIO QSEL definition */
/*!@brief GPIO DIR definition */
/*!@brief GPIO PULL UP definition */
/* bit definitions */
/*----------- watchdog control register (WDCR) definitions ---------------*/
/*!@brief watchdog reset status flag bit */
/*!@brief enable writing to watchdog control register (WDCR) */
/*!@brief reset watchdog by writing to write-enable bits a pattern which is not 1,0,1 */
/*!@brief watchdog disable bit */
/*!@brief watchdog prescale */
/*!@brief watchdog interrupt enable */
//---------------------------------------------------------------------------------------
// Clock
//---------------------------------------------------------------------------------------
/* Clock -------------------------------------------------------------------------------*/
//---------------------------------------------------------------------------------------
// HardwareTimer
//---------------------------------------------------------------------------------------
//---------------------------------------------------------------------------------------
// Select CAN Interface
//---------------------------------------------------------------------------------------
// #define hw_USE_CAN_B
//---------------------------------------------------------------------------------------
// CAN-A
//---------------------------------------------------------------------------------------
/*!@brief CAN Rx pin definition */
/*!@brief CAN Tx pin definition */
//---------------------------------------------------------------------------------------
// CAN-B
//---------------------------------------------------------------------------------------
/*!@brief Wait state definitions */
/* SCI ---------------------------------------------------------------------------------*/
/* U8 Memory Chip Select ---------------------------------------------------------------*/
/*!@brief U8 Memory Chip Select*/
/*!@brief Chip Select 2 */
/* External Flash Memory on SPI --------------------------------------------------------*/
//!@brief Set /EXT_FLASH_CS high -> inactive
//!@brief Set /EXT_FLASH_CS low -> active
/* Temperature sensor on SPI -------------------------------------------------------*/
//!@brief Set /EXT_TEMP_CS high -> inactive
//!@brief Set /EXT_TEMP_CS low -> active
//#define hw_SPI_EXT_TEMP_CS_BIT_MASK (0x00800000)
/*!@brief McBSP driver */
//!@brief Set /DAC1_CS high -> inactive
//!@brief Set /DAC1_CS low -> active
//!@brief Set /DAC1_CS bit mask
/* DAC for test purpose on McBSP-B (only on Test PCBA) ---------------------------------*/
//!@brief Set /DAC2_CS high -> inactive
//!@brief Set /DAC2_CS low -> active
//!@brief Set /DAC2_CS bit mask
/* CAN-A -------------------------------------------------------------------------------*/
/*!@brief CAN Rx pin definition */
//#define hw_CANA_RX_PUD GpioCtrlRegs.GPAPUD.bit.GPIO30
/*!@brief CAN Tx pin definition */
//#define hw_CANA_TX_PUD GpioCtrlRegs.GPAPUD.bit.GPIO31
/*!@brief Wait state definitions */
/* Test pins ---------------------------------------------------------------------------*/
/*!@brief Test pin #0 I/O pin definition */
//#define hw_TEST_PIN0_PUD GpioCtrlRegs.GPAPUD.bit.GPIO15
//#define hw_TEST_PIN0_MUX GpioCtrlRegs.GPAMUX1.bit.GPIO15
//#define hw_TEST_PIN0_DIR GpioCtrlRegs.GPADIR.bit.GPIO15
//#define hw_TEST_PIN0_LOW GpioDataRegs.GPACLEAR.bit.GPIO15 = 1u
//#define hw_TEST_PIN0_HIGH GpioDataRegs.GPASET.bit.GPIO15 = 1u
/****************************************************************************************/
/* Global type definitions (enum, struct, union): */
/****************************************************************************************/
/* Global data allusions (allows type checking, definition in c file): */
/****************************************************************************************/
/* Global function prototypes: */
extern void hw_Init_vd(void);
extern void hw_InitFlash_vd(void);
extern void hw_RestartBoot_vd(void);
extern void hw_Restart_vd(void);
/****************************************************************************************/
/****************************************************************************************/
/****************************************************************************************/
/**@file spiif.h
* @brief This module contains the spi interface defines and function prototypes.
* For detailed description, see the corresponding c file or the doxygen
* generated documents.
* @author Matthias Wauer / Eli Adetola
* @date 17 Feb 2014
*/
/*--------------------------------------------------------------------------------------*/
/* Copyright (c) 2001...2018 Baker Hughes, a GE company, LLC ("BHGE") (unpublished work).
* All rights reserved. The information contained in this document is confidential and
* proprietary property of BHGE and its affiliates. It is to be used only for the benefit
* of BHGE and may not be distributed, transmitted, reproduced, altered or used for any
* purpose without the express written consent of BHGE. */
/*--------------------------------------------------------------------------------------*/
/****************************************************************************************/
/* Imported include interfaces: */
/****************************************************************************************/
/**@file osalconfig.h
* @brief This is the configuration file for the OS abstraction layer. The generic
* signals and structures are defined here. This implementation: SYS/BIOS
* template for TI28335
* For detailed description, see the corresponding c file or the doxygen
* generated documents.
* @author Eduard Siewert
* @date 15 Nov 2010
*/
/*--------------------------------------------------------------------------------------*/
/* Copyright (c) 2001...2018 Baker Hughes, a GE company, LLC ("BHGE") (unpublished work).
* All rights reserved. The information contained in this document is confidential and
* proprietary property of BHGE and its affiliates. It is to be used only for the benefit
* of BHGE and may not be distributed, transmitted, reproduced, altered or used for any
* purpose without the express written consent of BHGE. */
/*--------------------------------------------------------------------------------------*/
/****************************************************************************************/
/* Imported include interfaces: */
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-A71
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* PER-INSTANCE TYPES
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/* module prefix */
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-A71
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* CREATE ARGS
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* PER-INSTANCE TYPES
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-A71
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== INCLUDES ========
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:03; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Copyright (c) 2012, Texas Instruments Incorporated
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of Texas Instruments Incorporated nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-A71
*/
/*
* ======== module ti.sysbios.BIOS ========
*/
typedef struct ti_sysbios_BIOS_intSize ti_sysbios_BIOS_intSize;
typedef struct ti_sysbios_BIOS_Module_State ti_sysbios_BIOS_Module_State;
/*
* ======== module ti.sysbios.BIOS_RtsGateProxy ========
*/
typedef struct ti_sysbios_BIOS_RtsGateProxy_Fxns__ ti_sysbios_BIOS_RtsGateProxy_Fxns__;
typedef const ti_sysbios_BIOS_RtsGateProxy_Fxns__* ti_sysbios_BIOS_RtsGateProxy_Module;
typedef struct ti_sysbios_BIOS_RtsGateProxy_Params ti_sysbios_BIOS_RtsGateProxy_Params;
typedef struct xdc_runtime_IGateProvider___Object *ti_sysbios_BIOS_RtsGateProxy_Handle;
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:00; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:03; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* VIRTUAL FUNCTIONS
* FUNCTION STUBS
* FUNCTION SELECTORS
*
* EPILOGUE
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:01; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* PER-INSTANCE TYPES
* VIRTUAL FUNCTIONS
* FUNCTION STUBS
* FUNCTION SELECTORS
*
* EPILOGUE
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:01; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-A71
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* MODULE-WIDE CONFIGS
* PER-INSTANCE TYPES
* VIRTUAL FUNCTIONS
* FUNCTION DECLARATIONS
* CONVERTORS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== INCLUDES ========
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:03; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* PER-INSTANCE TYPES
* VIRTUAL FUNCTIONS
* FUNCTION STUBS
* FUNCTION SELECTORS
*
* EPILOGUE
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:01; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-B24
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* PER-INSTANCE TYPES
* VIRTUAL FUNCTIONS
* FUNCTION STUBS
* FUNCTION SELECTORS
*
* EPILOGUE
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* @(#) xdc.runtime; 2, 1, 0,0; 5-1-2017 10:29:01; /db/ztree/library/trees/xdc/xdc-B24/src/packages/
*/
/*
* ======== AUXILIARY DEFINITIONS ========
*/
/* Q_BLOCKING */
/* Q_PREEMPTING */
/*
* ======== MODULE-WIDE CONFIGS ========
*/
/* Module__diagsEnabled */
typedef xdc_Bits32 CT__ti_sysbios_BIOS_RtsGateProxy_Module__diagsEnabled;
extern const CT__ti_sysbios_BIOS_RtsGateProxy_Module__diagsEnabled ti_sysbios_BIOS_RtsGateProxy_Module__diagsEnabled__C;
/* Module__diagsIncluded */
typedef xdc_Bits32 CT__ti_sysbios_BIOS_RtsGateProxy_Module__diagsIncluded;
extern const CT__ti_sysbios_BIOS_RtsGateProxy_Module__diagsIncluded ti_sysbios_BIOS_RtsGateProxy_Module__diagsIncluded__C;
/* Module__diagsMask */
typedef xdc_Bits16 *CT__ti_sysbios_BIOS_RtsGateProxy_Module__diagsMask;
extern const CT__ti_sysbios_BIOS_RtsGateProxy_Module__diagsMask ti_sysbios_BIOS_RtsGateProxy_Module__diagsMask__C;
/* Module__gateObj */
typedef xdc_Ptr CT__ti_sysbios_BIOS_RtsGateProxy_Module__gateObj;
extern const CT__ti_sysbios_BIOS_RtsGateProxy_Module__gateObj ti_sysbios_BIOS_RtsGateProxy_Module__gateObj__C;
/* Module__gatePrms */
typedef xdc_Ptr CT__ti_sysbios_BIOS_RtsGateProxy_Module__gatePrms;
extern const CT__ti_sysbios_BIOS_RtsGateProxy_Module__gatePrms ti_sysbios_BIOS_RtsGateProxy_Module__gatePrms__C;
/* Module__id */
typedef xdc_runtime_Types_ModuleId CT__ti_sysbios_BIOS_RtsGateProxy_Module__id;
extern const CT__ti_sysbios_BIOS_RtsGateProxy_Module__id ti_sysbios_BIOS_RtsGateProxy_Module__id__C;
/* Module__loggerDefined */
typedef xdc_Bool CT__ti_sysbios_BIOS_RtsGateProxy_Module__loggerDefined;
extern const CT__ti_sysbios_BIOS_RtsGateProxy_Module__loggerDefined ti_sysbios_BIOS_RtsGateProxy_Module__loggerDefined__C;
/* Module__loggerObj */
typedef xdc_Ptr CT__ti_sysbios_BIOS_RtsGateProxy_Module__loggerObj;
extern const CT__ti_sysbios_BIOS_RtsGateProxy_Module__loggerObj ti_sysbios_BIOS_RtsGateProxy_Module__loggerObj__C;
/* Module__loggerFxn0 */
typedef xdc_runtime_Types_LoggerFxn0 CT__ti_sysbios_BIOS_RtsGateProxy_Module__loggerFxn0;
extern const CT__ti_sysbios_BIOS_RtsGateProxy_Module__loggerFxn0 ti_sysbios_BIOS_RtsGateProxy_Module__loggerFxn0__C;
/* Module__loggerFxn1 */
typedef xdc_runtime_Types_LoggerFxn1 CT__ti_sysbios_BIOS_RtsGateProxy_Module__loggerFxn1;
extern const CT__ti_sysbios_BIOS_RtsGateProxy_Module__loggerFxn1 ti_sysbios_BIOS_RtsGateProxy_Module__loggerFxn1__C;
/* Module__loggerFxn2 */
typedef xdc_runtime_Types_LoggerFxn2 CT__ti_sysbios_BIOS_RtsGateProxy_Module__loggerFxn2;
extern const CT__ti_sysbios_BIOS_RtsGateProxy_Module__loggerFxn2 ti_sysbios_BIOS_RtsGateProxy_Module__loggerFxn2__C;
/* Module__loggerFxn4 */
typedef xdc_runtime_Types_LoggerFxn4 CT__ti_sysbios_BIOS_RtsGateProxy_Module__loggerFxn4;
extern const CT__ti_sysbios_BIOS_RtsGateProxy_Module__loggerFxn4 ti_sysbios_BIOS_RtsGateProxy_Module__loggerFxn4__C;
/* Module__loggerFxn8 */
typedef xdc_runtime_Types_LoggerFxn8 CT__ti_sysbios_BIOS_RtsGateProxy_Module__loggerFxn8;
extern const CT__ti_sysbios_BIOS_RtsGateProxy_Module__loggerFxn8 ti_sysbios_BIOS_RtsGateProxy_Module__loggerFxn8__C;
/* Module__startupDoneFxn */
typedef xdc_Bool (*CT__ti_sysbios_BIOS_RtsGateProxy_Module__startupDoneFxn)(void);
extern const CT__ti_sysbios_BIOS_RtsGateProxy_Module__startupDoneFxn ti_sysbios_BIOS_RtsGateProxy_Module__startupDoneFxn__C;
/* Object__count */
typedef xdc_Int CT__ti_sysbios_BIOS_RtsGateProxy_Object__count;
extern const CT__ti_sysbios_BIOS_RtsGateProxy_Object__count ti_sysbios_BIOS_RtsGateProxy_Object__count__C;
/* Object__heap */
typedef xdc_runtime_IHeap_Handle CT__ti_sysbios_BIOS_RtsGateProxy_Object__heap;
extern const CT__ti_sysbios_BIOS_RtsGateProxy_Object__heap ti_sysbios_BIOS_RtsGateProxy_Object__heap__C;
/* Object__sizeof */
typedef xdc_SizeT CT__ti_sysbios_BIOS_RtsGateProxy_Object__sizeof;
extern const CT__ti_sysbios_BIOS_RtsGateProxy_Object__sizeof ti_sysbios_BIOS_RtsGateProxy_Object__sizeof__C;
/* Object__table */
typedef xdc_Ptr CT__ti_sysbios_BIOS_RtsGateProxy_Object__table;
extern const CT__ti_sysbios_BIOS_RtsGateProxy_Object__table ti_sysbios_BIOS_RtsGateProxy_Object__table__C;
/*
* ======== PER-INSTANCE TYPES ========
*/
/* Params */
struct ti_sysbios_BIOS_RtsGateProxy_Params {
size_t __size;
const void *__self;
void *__fxns;
xdc_runtime_IInstance_Params *instance;
xdc_runtime_IInstance_Params __iprms;
};
/* Struct */
struct ti_sysbios_BIOS_RtsGateProxy_Struct {
const ti_sysbios_BIOS_RtsGateProxy_Fxns__ *__fxns;
xdc_runtime_Types_CordAddr __name;
};
/*
* ======== VIRTUAL FUNCTIONS ========
*/
/* Fxns__ */
struct ti_sysbios_BIOS_RtsGateProxy_Fxns__ {
xdc_runtime_Types_Base* __base;
const xdc_runtime_Types_SysFxns2 *__sysp;
xdc_Bool (*query)(xdc_Int);
xdc_IArg (*enter)(ti_sysbios_BIOS_RtsGateProxy_Handle);
void (*leave)(ti_sysbios_BIOS_RtsGateProxy_Handle, xdc_IArg);
xdc_runtime_Types_SysFxns2 __sfxns;
};
/* Module__FXNS__C */
extern const ti_sysbios_BIOS_RtsGateProxy_Fxns__ ti_sysbios_BIOS_RtsGateProxy_Module__FXNS__C;
/*
* ======== FUNCTION DECLARATIONS ========
*/
/* Module_startup */
/* Handle__label__S */
extern xdc_runtime_Types_Label *ti_sysbios_BIOS_RtsGateProxy_Handle__label__S( xdc_Ptr obj, xdc_runtime_Types_Label *lab );
/* Module__startupDone__S */
extern xdc_Bool ti_sysbios_BIOS_RtsGateProxy_Module__startupDone__S( void );
/* Object__create__S */
extern xdc_Ptr ti_sysbios_BIOS_RtsGateProxy_Object__create__S( xdc_Ptr __oa, xdc_SizeT __osz, xdc_Ptr __aa, const xdc_UChar *__pa, xdc_SizeT __psz, xdc_runtime_Error_Block *__eb );
/* create */
extern ti_sysbios_BIOS_RtsGateProxy_Handle ti_sysbios_BIOS_RtsGateProxy_create( const ti_sysbios_BIOS_RtsGateProxy_Params *__prms, xdc_runtime_Error_Block *__eb );
/* Object__delete__S */
extern void ti_sysbios_BIOS_RtsGateProxy_Object__delete__S( xdc_Ptr instp );
/* delete */
extern void ti_sysbios_BIOS_RtsGateProxy_delete(ti_sysbios_BIOS_RtsGateProxy_Handle *instp);
/* Object__destruct__S */
extern void ti_sysbios_BIOS_RtsGateProxy_Object__destruct__S( xdc_Ptr objp );
/* Object__get__S */
extern xdc_Ptr ti_sysbios_BIOS_RtsGateProxy_Object__get__S( xdc_Ptr oarr, xdc_Int i );
/* Object__first__S */
extern xdc_Ptr ti_sysbios_BIOS_RtsGateProxy_Object__first__S( void );
/* Object__next__S */
extern xdc_Ptr ti_sysbios_BIOS_RtsGateProxy_Object__next__S( xdc_Ptr obj );
/* Params__init__S */
extern void ti_sysbios_BIOS_RtsGateProxy_Params__init__S( xdc_Ptr dst, const void *src, xdc_SizeT psz, xdc_SizeT isz );
/* Proxy__abstract__S */
extern xdc_Bool ti_sysbios_BIOS_RtsGateProxy_Proxy__abstract__S( void );
/* Proxy__delegate__S */
extern xdc_Ptr ti_sysbios_BIOS_RtsGateProxy_Proxy__delegate__S( void );
/* query__E */
extern xdc_Bool ti_sysbios_BIOS_RtsGateProxy_query__E( xdc_Int qual );
/* enter__E */
extern xdc_IArg ti_sysbios_BIOS_RtsGateProxy_enter__E( ti_sysbios_BIOS_RtsGateProxy_Handle __inst );
/* leave__E */
extern void ti_sysbios_BIOS_RtsGateProxy_leave__E( ti_sysbios_BIOS_RtsGateProxy_Handle __inst, xdc_IArg key );
/*
* ======== CONVERTORS ========
*/
/* Module_upCast */
static inline xdc_runtime_IGateProvider_Module ti_sysbios_BIOS_RtsGateProxy_Module_upCast( void )
{
return (xdc_runtime_IGateProvider_Module)ti_sysbios_BIOS_RtsGateProxy_Proxy__delegate__S();
}
/* Module_to_xdc_runtime_IGateProvider */
/* Handle_upCast */
static inline xdc_runtime_IGateProvider_Handle ti_sysbios_BIOS_RtsGateProxy_Handle_upCast( ti_sysbios_BIOS_RtsGateProxy_Handle i )
{
return (xdc_runtime_IGateProvider_Handle)i;
}
/* Handle_to_xdc_runtime_IGateProvider */
/* Handle_downCast */
static inline ti_sysbios_BIOS_RtsGateProxy_Handle ti_sysbios_BIOS_RtsGateProxy_Handle_downCast( xdc_runtime_IGateProvider_Handle i )
{
xdc_runtime_IGateProvider_Handle i2 = (xdc_runtime_IGateProvider_Handle)i;
if (ti_sysbios_BIOS_RtsGateProxy_Proxy__abstract__S()) return (ti_sysbios_BIOS_RtsGateProxy_Handle)i;
return (void*)i2->__fxns == (void*)ti_sysbios_BIOS_RtsGateProxy_Proxy__delegate__S() ? (ti_sysbios_BIOS_RtsGateProxy_Handle)i : 0;
}
/* Handle_from_xdc_runtime_IGateProvider */
/*
* ======== SYSTEM FUNCTIONS ========
*/
/* Module_startupDone */
/* Object_heap */
/* Module_heap */
/* Module_id */
static inline CT__ti_sysbios_BIOS_RtsGateProxy_Module__id ti_sysbios_BIOS_RtsGateProxy_Module_id( void )
{
return ti_sysbios_BIOS_RtsGateProxy_Module__id__C;
}
/* Proxy_abstract */
/* Proxy_delegate */
/* Params_init */
static inline void ti_sysbios_BIOS_RtsGateProxy_Params_init( ti_sysbios_BIOS_RtsGateProxy_Params *prms )
{
if (prms) {
ti_sysbios_BIOS_RtsGateProxy_Params__init__S(prms, 0, sizeof(ti_sysbios_BIOS_RtsGateProxy_Params), sizeof(xdc_runtime_IInstance_Params));
}
}
/* Params_copy */
static inline void ti_sysbios_BIOS_RtsGateProxy_Params_copy(ti_sysbios_BIOS_RtsGateProxy_Params *dst, const ti_sysbios_BIOS_RtsGateProxy_Params *src)
{
if (dst) {
ti_sysbios_BIOS_RtsGateProxy_Params__init__S(dst, (const void *)src, sizeof(ti_sysbios_BIOS_RtsGateProxy_Params), sizeof(xdc_runtime_IInstance_Params));
}
}
/*
* ======== EPILOGUE ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* ======== AUXILIARY DEFINITIONS ========
*/
/* ThreadType */
enum ti_sysbios_BIOS_ThreadType {
ti_sysbios_BIOS_ThreadType_Hwi,
ti_sysbios_BIOS_ThreadType_Swi,
ti_sysbios_BIOS_ThreadType_Task,
ti_sysbios_BIOS_ThreadType_Main
};
typedef enum ti_sysbios_BIOS_ThreadType ti_sysbios_BIOS_ThreadType;
/* RtsLockType */
enum ti_sysbios_BIOS_RtsLockType {
ti_sysbios_BIOS_NoLocking,
ti_sysbios_BIOS_GateHwi,
ti_sysbios_BIOS_GateSwi,
ti_sysbios_BIOS_GateMutex,
ti_sysbios_BIOS_GateMutexPri
};
typedef enum ti_sysbios_BIOS_RtsLockType ti_sysbios_BIOS_RtsLockType;
/* LibType */
enum ti_sysbios_BIOS_LibType {
ti_sysbios_BIOS_LibType_Instrumented,
ti_sysbios_BIOS_LibType_NonInstrumented,
ti_sysbios_BIOS_LibType_Custom,
ti_sysbios_BIOS_LibType_Debug
};
typedef enum ti_sysbios_BIOS_LibType ti_sysbios_BIOS_LibType;
/* WAIT_FOREVER */
/* NO_WAIT */
/* StartupFuncPtr */
typedef void (*ti_sysbios_BIOS_StartupFuncPtr)(void);
/* version */
/*
* ======== INTERNAL DEFINITIONS ========
*/
/* intSize */
struct ti_sysbios_BIOS_intSize {
xdc_Int intSize;
};
/* StartFuncPtr */
typedef void (*ti_sysbios_BIOS_StartFuncPtr)(void);
/* ExitFuncPtr */
typedef void (*ti_sysbios_BIOS_ExitFuncPtr)(xdc_Int);
/* Module_State */
typedef ti_sysbios_BIOS_ThreadType __T1_ti_sysbios_BIOS_Module_State__smpThreadType;
typedef ti_sysbios_BIOS_ThreadType *__ARRAY1_ti_sysbios_BIOS_Module_State__smpThreadType;
typedef __ARRAY1_ti_sysbios_BIOS_Module_State__smpThreadType __TA_ti_sysbios_BIOS_Module_State__smpThreadType;
/*
* ======== MODULE-WIDE CONFIGS ========
*/
/* Module__diagsEnabled */
typedef xdc_Bits32 CT__ti_sysbios_BIOS_Module__diagsEnabled;
extern const CT__ti_sysbios_BIOS_Module__diagsEnabled ti_sysbios_BIOS_Module__diagsEnabled__C;
/* Module__diagsIncluded */
typedef xdc_Bits32 CT__ti_sysbios_BIOS_Module__diagsIncluded;
extern const CT__ti_sysbios_BIOS_Module__diagsIncluded ti_sysbios_BIOS_Module__diagsIncluded__C;
/* Module__diagsMask */
typedef xdc_Bits16 *CT__ti_sysbios_BIOS_Module__diagsMask;
extern const CT__ti_sysbios_BIOS_Module__diagsMask ti_sysbios_BIOS_Module__diagsMask__C;
/* Module__gateObj */
typedef xdc_Ptr CT__ti_sysbios_BIOS_Module__gateObj;
extern const CT__ti_sysbios_BIOS_Module__gateObj ti_sysbios_BIOS_Module__gateObj__C;
/* Module__gatePrms */
typedef xdc_Ptr CT__ti_sysbios_BIOS_Module__gatePrms;
extern const CT__ti_sysbios_BIOS_Module__gatePrms ti_sysbios_BIOS_Module__gatePrms__C;
/* Module__id */
typedef xdc_runtime_Types_ModuleId CT__ti_sysbios_BIOS_Module__id;
extern const CT__ti_sysbios_BIOS_Module__id ti_sysbios_BIOS_Module__id__C;
/* Module__loggerDefined */
typedef xdc_Bool CT__ti_sysbios_BIOS_Module__loggerDefined;
extern const CT__ti_sysbios_BIOS_Module__loggerDefined ti_sysbios_BIOS_Module__loggerDefined__C;
/* Module__loggerObj */
typedef xdc_Ptr CT__ti_sysbios_BIOS_Module__loggerObj;
extern const CT__ti_sysbios_BIOS_Module__loggerObj ti_sysbios_BIOS_Module__loggerObj__C;
/* Module__loggerFxn0 */
typedef xdc_runtime_Types_LoggerFxn0 CT__ti_sysbios_BIOS_Module__loggerFxn0;
extern const CT__ti_sysbios_BIOS_Module__loggerFxn0 ti_sysbios_BIOS_Module__loggerFxn0__C;
/* Module__loggerFxn1 */
typedef xdc_runtime_Types_LoggerFxn1 CT__ti_sysbios_BIOS_Module__loggerFxn1;
extern const CT__ti_sysbios_BIOS_Module__loggerFxn1 ti_sysbios_BIOS_Module__loggerFxn1__C;
/* Module__loggerFxn2 */
typedef xdc_runtime_Types_LoggerFxn2 CT__ti_sysbios_BIOS_Module__loggerFxn2;
extern const CT__ti_sysbios_BIOS_Module__loggerFxn2 ti_sysbios_BIOS_Module__loggerFxn2__C;
/* Module__loggerFxn4 */
typedef xdc_runtime_Types_LoggerFxn4 CT__ti_sysbios_BIOS_Module__loggerFxn4;
extern const CT__ti_sysbios_BIOS_Module__loggerFxn4 ti_sysbios_BIOS_Module__loggerFxn4__C;
/* Module__loggerFxn8 */
typedef xdc_runtime_Types_LoggerFxn8 CT__ti_sysbios_BIOS_Module__loggerFxn8;
extern const CT__ti_sysbios_BIOS_Module__loggerFxn8 ti_sysbios_BIOS_Module__loggerFxn8__C;
/* Module__startupDoneFxn */
typedef xdc_Bool (*CT__ti_sysbios_BIOS_Module__startupDoneFxn)(void);
extern const CT__ti_sysbios_BIOS_Module__startupDoneFxn ti_sysbios_BIOS_Module__startupDoneFxn__C;
/* Object__count */
typedef xdc_Int CT__ti_sysbios_BIOS_Object__count;
extern const CT__ti_sysbios_BIOS_Object__count ti_sysbios_BIOS_Object__count__C;
/* Object__heap */
typedef xdc_runtime_IHeap_Handle CT__ti_sysbios_BIOS_Object__heap;
extern const CT__ti_sysbios_BIOS_Object__heap ti_sysbios_BIOS_Object__heap__C;
/* Object__sizeof */
typedef xdc_SizeT CT__ti_sysbios_BIOS_Object__sizeof;
extern const CT__ti_sysbios_BIOS_Object__sizeof ti_sysbios_BIOS_Object__sizeof__C;
/* Object__table */
typedef xdc_Ptr CT__ti_sysbios_BIOS_Object__table;
extern const CT__ti_sysbios_BIOS_Object__table ti_sysbios_BIOS_Object__table__C;
/* smpEnabled */
typedef xdc_Bool CT__ti_sysbios_BIOS_smpEnabled;
extern const CT__ti_sysbios_BIOS_smpEnabled ti_sysbios_BIOS_smpEnabled__C;
/* cpuFreq */
typedef xdc_runtime_Types_FreqHz CT__ti_sysbios_BIOS_cpuFreq;
extern const CT__ti_sysbios_BIOS_cpuFreq ti_sysbios_BIOS_cpuFreq__C;
/* runtimeCreatesEnabled */
typedef xdc_Bool CT__ti_sysbios_BIOS_runtimeCreatesEnabled;
extern const CT__ti_sysbios_BIOS_runtimeCreatesEnabled ti_sysbios_BIOS_runtimeCreatesEnabled__C;
/* taskEnabled */
typedef xdc_Bool CT__ti_sysbios_BIOS_taskEnabled;
extern const CT__ti_sysbios_BIOS_taskEnabled ti_sysbios_BIOS_taskEnabled__C;
/* swiEnabled */
typedef xdc_Bool CT__ti_sysbios_BIOS_swiEnabled;
extern const CT__ti_sysbios_BIOS_swiEnabled ti_sysbios_BIOS_swiEnabled__C;
/* clockEnabled */
typedef xdc_Bool CT__ti_sysbios_BIOS_clockEnabled;
extern const CT__ti_sysbios_BIOS_clockEnabled ti_sysbios_BIOS_clockEnabled__C;
/* heapSize */
typedef xdc_SizeT CT__ti_sysbios_BIOS_heapSize;
extern const CT__ti_sysbios_BIOS_heapSize ti_sysbios_BIOS_heapSize__C;
/* heapSection */
typedef xdc_String CT__ti_sysbios_BIOS_heapSection;
extern const CT__ti_sysbios_BIOS_heapSection ti_sysbios_BIOS_heapSection__C;
/* heapTrackEnabled */
typedef xdc_Bool CT__ti_sysbios_BIOS_heapTrackEnabled;
extern const CT__ti_sysbios_BIOS_heapTrackEnabled ti_sysbios_BIOS_heapTrackEnabled__C;
/* setupSecureContext */
typedef xdc_Bool CT__ti_sysbios_BIOS_setupSecureContext;
extern const CT__ti_sysbios_BIOS_setupSecureContext ti_sysbios_BIOS_setupSecureContext__C;
/* useSK */
typedef xdc_Bool CT__ti_sysbios_BIOS_useSK;
extern const CT__ti_sysbios_BIOS_useSK ti_sysbios_BIOS_useSK__C;
/* installedErrorHook */
typedef void (*CT__ti_sysbios_BIOS_installedErrorHook)(xdc_runtime_Error_Block*);
extern const CT__ti_sysbios_BIOS_installedErrorHook ti_sysbios_BIOS_installedErrorHook__C;
/*
* ======== FUNCTION DECLARATIONS ========
*/
/* Module_startup */
/* Module__startupDone__S */
extern xdc_Bool ti_sysbios_BIOS_Module__startupDone__S( void );
/* start__E */
extern void ti_sysbios_BIOS_start__E( void );
/* exit__E */
extern void ti_sysbios_BIOS_exit__E( xdc_Int stat );
/* getThreadType__E */
extern ti_sysbios_BIOS_ThreadType ti_sysbios_BIOS_getThreadType__E( void );
/* setThreadType__E */
extern ti_sysbios_BIOS_ThreadType ti_sysbios_BIOS_setThreadType__E( ti_sysbios_BIOS_ThreadType ttype );
/* setCpuFreq__E */
extern void ti_sysbios_BIOS_setCpuFreq__E( xdc_runtime_Types_FreqHz *freq );
/* getCpuFreq__E */
extern void ti_sysbios_BIOS_getCpuFreq__E( xdc_runtime_Types_FreqHz *freq );
/* errorRaiseHook__I */
extern void ti_sysbios_BIOS_errorRaiseHook__I( xdc_runtime_Error_Block *eb );
/* startFunc__I */
extern void ti_sysbios_BIOS_startFunc__I( void );
/* atExitFunc__I */
extern void ti_sysbios_BIOS_atExitFunc__I( xdc_Int stat );
/* exitFunc__I */
extern void ti_sysbios_BIOS_exitFunc__I( xdc_Int stat );
/* registerRTSLock__I */
extern void ti_sysbios_BIOS_registerRTSLock__I( void );
/* removeRTSLock__I */
extern void ti_sysbios_BIOS_removeRTSLock__I( void );
/* rtsLock__I */
extern void ti_sysbios_BIOS_rtsLock__I( void );
/* rtsUnlock__I */
extern void ti_sysbios_BIOS_rtsUnlock__I( void );
/* nullFunc__I */
extern void ti_sysbios_BIOS_nullFunc__I( void );
/*
* ======== SYSTEM FUNCTIONS ========
*/
/* Module_startupDone */
/* Object_heap */
/* Module_heap */
/* Module_id */
static inline CT__ti_sysbios_BIOS_Module__id ti_sysbios_BIOS_Module_id( void )
{
return ti_sysbios_BIOS_Module__id__C;
}
/* Module_hasMask */
static inline xdc_Bool ti_sysbios_BIOS_Module_hasMask( void )
{
return ti_sysbios_BIOS_Module__diagsMask__C != 0;
}
/* Module_getMask */
static inline xdc_Bits16 ti_sysbios_BIOS_Module_getMask( void )
{
return ti_sysbios_BIOS_Module__diagsMask__C != 0 ? *ti_sysbios_BIOS_Module__diagsMask__C : 0;
}
/* Module_setMask */
static inline void ti_sysbios_BIOS_Module_setMask( xdc_Bits16 mask )
{
if (ti_sysbios_BIOS_Module__diagsMask__C != 0) *ti_sysbios_BIOS_Module__diagsMask__C = mask;
}
/*
* ======== EPILOGUE ========
*/
/*
* Copyright (c) 2012, Texas Instruments Incorporated
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of Texas Instruments Incorporated nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/* module prefix */
/* proxies */
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-A71
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* MODULE-WIDE CONFIGS
* PER-INSTANCE TYPES
* VIRTUAL FUNCTIONS
* FUNCTION DECLARATIONS
* CONVERTORS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/* module prefix */
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-A71
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* CREATE ARGS
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* PER-INSTANCE TYPES
* VIRTUAL FUNCTIONS
* FUNCTION DECLARATIONS
* CONVERTORS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-A71
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* PER-INSTANCE TYPES
* FUNCTION DECLARATIONS
* SYSTEM FUNCTIONS
*
* EPILOGUE
* STATE STRUCTURES
* PREFIX ALIASES
*/
/*
* ======== PROLOGUE ========
*/
/*
* ======== STATE STRUCTURES ========
*/
/*
* ======== PREFIX ALIASES ========
*/
/****************************************************************************************/
/* Exported type definitions: */
/* operating system specific event handling data types */
/*!---------------------------------------------------------------------------------------
* @brief signal handler structure
* @author Eduard Siewert
* @date 15 Nov 2010
*//*-----------------------------------------------------------------------------------*/
typedef ti_sysbios_knl_Event_Handle osalconfig_eventHdl_t;
/*!---------------------------------------------------------------------------------------
* @brief signal identification number
* @author Eduard Siewert
* @date 15 Nov 2010
*//*-----------------------------------------------------------------------------------*/
typedef uint16_t osalconfig_eventId_t;
/*!---------------------------------------------------------------------------------------
* @brief mask to wait for specific signals
* @author Eduard Siewert
* @date 15 Nov 2010
*//*-----------------------------------------------------------------------------------*/
typedef uint16_t osalconfig_eventMask_t;
/*!---------------------------------------------------------------------------------------
* @brief timeout in ms used to wait for e.g. signals or semaphores, SYSBIOS 6.40.
* and above use a 32bit value.
* @author Eduard Siewert
* @date 15 Nov 2010
*//*-----------------------------------------------------------------------------------*/
typedef uint32_t osalconfig_timeoutMs_t;
/****************************************************************************************/
/* Exported constant definitions: */
/*!@brief defines the operating system object data type prefix */
/*!@brief defines the number of ticks per millisecond */
/*!@brief timeout forever definition */
/*!@brief no timeout definition */
/* event definitions */
/*!@brief no event */
/*!@brief all events */
/*!@brief event id 0 */
/*!@brief event id 1 */
/*!@brief event id 2 */
/*!@brief event id 3 */
/*!@brief event id 4 */
/*!@brief event id 5 */
/*!@brief event id 6 */
/*!@brief event id 7 */
/*!@brief event id 8 */
/*!@brief event id 9 */
/*!@brief event id 10 */
/*!@brief event id 11 */
/*!@brief event id 12 */
/*!@brief event id 13 */
/*!@brief event id 14 */
/*!@brief event id 15 */
/****************************************************************************************/
/* Exported macro definitions: */
/*!@brief this macro describes the operating system dependent ISR syntax */
/****************************************************************************************/
/* Exported type definitions: */
/*!---------------------------------------------------------------------------------------
* @brief semaphore status
* @author Eduard Siewert
* @date 15 Nov 2010
*//*-----------------------------------------------------------------------------------*/
typedef enum
{
/** unlocked state */
unlocked = 0,
/** locked state */
locked
} semaphore_status_t;
/*!---------------------------------------------------------------------------------------
* @brief queue data type
* @author Eduard Siewert
* @date 15 Nov 2010
*//*-----------------------------------------------------------------------------------*/
typedef void osalconfig_queueData_t;
/*!---------------------------------------------------------------------------------------
* @brief result structure
* @author Eduard Siewert
* @date 15 Nov 2010
*//*-----------------------------------------------------------------------------------*/
typedef struct osalconfig_result_tag
{
/** event id */
uint16_t event_u16;
/** mailbox entries */
uint16_t mbxEntries_u16;
}osalconfig_result_t;
/*!---------------------------------------------------------------------------------------
* @brief semaphore structure
* @author Eduard Siewert
* @date 15 Nov 2010
*//*-----------------------------------------------------------------------------------*/
typedef struct osalconfig_semaphore_tag
{
/** semaphore handle */
const ti_sysbios_knl_Semaphore_Handle * semaphore_p;
/** semaphore status */
semaphore_status_t status_en;
}osalconfig_semaphore_t;
/*!---------------------------------------------------------------------------------------
* @brief timeout data type
* @author Eduard Siewert
* @date 15 Nov 2010
*//*-----------------------------------------------------------------------------------*/
typedef uint8_t osalconfig_timeout_t;
/* In sysbios the event id´s defined as "int" this is why the C2000 can handle only 16 events per "Event Handle".
As a work around to wait for more events per task an "optional" Event Handle can be set in the structure.
With this solution the task will be triggered and has to get the content as the second step. So one task can
handle 16 * 16 Events = 256.
Example:
|TriggerEvent SCI TASK | --> Content 0 (SCI IF A) with x events
|Trigger ID 0 |
|TriggerEvent SCI TASK | --> Content 1 (SCI IF B) with x events
|Trigger ID 1 |
The SCI task is triggered for example with trigger ID 0 ... This is an indicator that events for
SCIA are available, so the task has to load the content from event handle 0
$/Embedded/Main/Common/Targets/TI28x/TI2833x/template_SYS_BIOS/source/adamscitask_wRH.c
*/
/*!---------------------------------------------------------------------------------------
* @brief wait event parameters
* @author Eduard Siewert
* @date 15 Nov 2010
*//*-----------------------------------------------------------------------------------*/
typedef struct osalconfig_waitEventPara_tag
{
/** true: get content only, false:this is only a trigger event */
bool getContentOnly_bol;
/** Event mask "or" match */
uint32_t orMask_u32;
/** Event mask "and" match */
uint32_t andMask_u32;
}osalconfig_waitEventPara_t;
/*!---------------------------------------------------------------------------------------
* @brief event structure
* @author Eduard Siewert
* @date 15 Nov 2010
*//*-----------------------------------------------------------------------------------*/
typedef struct osalconfig_event_tag
{
/** Pointer to event handler to trigger the waiting task */
const ti_sysbios_knl_Event_Handle * triggerEventHandle_p;
/** Optional, if more than 16 events are required an additional event handler for
* the content can be used */
const ti_sysbios_knl_Event_Handle * contentEventHandle_p;
/** Event ID for the trigger event */
uint16_t triggerEventId_u16;
/** Optional required if content event handler is set */
uint16_t contentEventId_u16;
/** Pointer to wait event parameter structure */
const osalconfig_waitEventPara_t * waitEventPara_stpc;
}osalconfig_event_t;
/*!---------------------------------------------------------------------------------------
* @brief timer structure
* @author Eduard Siewert
* @date 15 Nov 2010
*//*-----------------------------------------------------------------------------------*/
typedef struct osalconfig_timer_tag
{
/** true if active */
volatile bool active_bol;
/** remaining time in ticks */
volatile uint32_t remainTimeTicks_u32;
/** signal to be sent, when elapsed */
const osalconfig_event_t * elapseSignal_stp;
/** true if timer is allocated */
bool allocated_bol;
/** period time of the timer */
uint32_t period_u32;
/** defines if timer is periodic */
bool periodic_bol;
/** timer expire callback function */
void* extTimerExpCbFnc_vdp;
/** user handle */
const void* userHandle_vdpc;
}osalconfig_timer_t;
/*!---------------------------------------------------------------------------------------
* @brief frame structure
* @author Eduard Siewert
* @date 15 Nov 2010
*//*-----------------------------------------------------------------------------------*/
typedef struct osalconfig_frame_tag
{
/** null pointer */
void* null_p;
}osalconfig_frame_t;
/*!---------------------------------------------------------------------------------------
* @brief event translation table
* @author Eduard Siewert
* @date 15 Nov 2010
*//*-----------------------------------------------------------------------------------*/
typedef struct osalconfig_transTable_tag
{
/** osal event */
uint16_t osalEvent_u16;
/** local event */
uint8_t localEvent_u8;
}osalconfig_transTable_t;
/*!---------------------------------------------------------------------------------------
* @brief mailbox structure
* @author Eduard Siewert
* @date 15 Nov 2010
*//*-----------------------------------------------------------------------------------*/
typedef struct osalconfig_mailbox_tag
{
/** not implemented */
uint16_t todo;
}osalconfig_mailbox_t;
/*!---------------------------------------------------------------------------------------
* @brief task structure
* @author Eduard Siewert
* @date 15 Nov 2010
*//*-----------------------------------------------------------------------------------*/
typedef struct osalconfig_task_tag
{
/** not implemented */
uint16_t todo;
}osalconfig_task_t;
/*!---------------------------------------------------------------------------------------
* @brief message structure
* @author Eduard Siewert
* @date 15 Nov 2010
*//*-----------------------------------------------------------------------------------*/
typedef struct osalconfig_message_tag
{
/** not implemented */
uint16_t todo;
}osalconfig_message_t;
/*!---------------------------------------------------------------------------------------
* @brief queue data type
* @author Eduard Siewert
* @date 15 Nov 2010
*//*-----------------------------------------------------------------------------------*/
typedef struct osalconfig_queue_tag
{
/** pointer to the mailbox used for data transfer */
const ti_sysbios_knl_Mailbox_Handle * mailbox_p;
}osalconfig_queue_t;
/*!---------------------------------------------------------------------------------------
* @brief isr argument
* @author Eduard Siewert
* @date 15 Nov 2010
*//*-----------------------------------------------------------------------------------*/
typedef uint32_t osalconfig_isrArg_t;
/*!---------------------------------------------------------------------------------------
* @brief function pointer to os dependent isr
* @author Eduard Siewert
* @date 15 Nov 2010
* @param[in] isr argument
*//*-----------------------------------------------------------------------------------*/
typedef void (*osalconfig_isr_t) (const osalconfig_isrArg_t);
/****************************************************************************************/
/* Exported function prototypes: */
/****************************************************************************************/
/* Exported data declarations: */
/****************************************************************************************/
/****************************************************************************************/
/**@file spicomdef.h
* @brief This module covers common SPI I/F definitions that can be included without
* the additional dependencies of spiif.h
* @author Matthias Wauer, Thomas Lehnig
* @date 15 Jan 2014
*/
/*--------------------------------------------------------------------------------------*/
/* Copyright (c) 2001...2018 Baker Hughes, a GE company, LLC ("BHGE") (unpublished work).
* All rights reserved. The information contained in this document is confidential and
* proprietary property of BHGE and its affiliates. It is to be used only for the benefit
* of BHGE and may not be distributed, transmitted, reproduced, altered or used for any
* purpose without the express written consent of BHGE. */
/*--------------------------------------------------------------------------------------*/
/****************************************************************************************/
/* Imported include interfaces: */
/****************************************************************************************/
/* Exported constant definitions: */
/*!@brief SPI index device identification offset */
/*!@brief SPI index device identification mask */
/****************************************************************************************/
/* Exported macro definitions: */
/*!@brief macro to set the device identification into the index */
/*!@brief macro to get the device identification from the index */
/*!@brief macro to get the device identification from the index */
/****************************************************************************************/
/* Exported type definitions: */
/*!---------------------------------------------------------------------------------------
* @brief asynchronous data transfer ready call back routine
* @author Matthias Wauer, Thomas Lehnig
* @date 15 Jan 2014
*//*-----------------------------------------------------------------------------------*/
typedef void (*spicomdef_asyncTransmRdyCbFnc_t) (void* userHandle_vp);
/*!---------------------------------------------------------------------------------------
* @brief common SPI device parameters
* @author Matthias Wauer, Thomas Lehnig
* @date 15 Jan 2014
*//*-----------------------------------------------------------------------------------*/
typedef struct spicomdef_para_tag
{
/** clock polarity (true = positive, false = negative) */
bool clockPolarityPositiv_bol;
/** enable the clock delay (delay of a half clock period) */
bool clockDelayEnable_bol;
/** character length (bits per character) */
uint16_t charBitLength_u16;
/** baud rate (baud) */
uint32_t baudrateInBaud_u32;
}spicomdef_para_t;
/*!---------------------------------------------------------------------------------------
* @brief SPI device identification enumeration
* @author Matthias Wauer, Thomas Lehnig
* @date 15 Jan 2014
*//*-----------------------------------------------------------------------------------*/
typedef enum spiif_deviceItf_tag
{
/** SPI device identification */
SPI_DEVICE = 0,
/** McBSP device identification */
MCBSP_DEVICE = 1
}spiif_deviceItf_en;
/****************************************************************************************/
/* Exported data declarations: */
/****************************************************************************************/
/* Exported function prototypes: */
/****************************************************************************************/
/****************************************************************************************/
/* Exported constant definitions: */
/****************************************************************************************/
/* Exported macro definitions: */
/****************************************************************************************/
/* Exported type definitions: */
/****************************************************************************************/
/* Exported function prototypes: */
extern uint32_t spiif_GetError_u32(const uint8_t spiIndex_u8c);
extern uint16_t spiif_Transmit_u16(const uint8_t spiIndex_u8c,
const uint16_t data_u16c);
extern bool spiif_TransmitReceive_bol(const uint8_t spiIndex_u8c,
const uint16_t txWord_u16c,
uint16_t* const rxWord_u16pc);
extern void spiif_TransmitAsync_u16 (const uint8_t spiIndex_u8c,
const uint16_t data_u16c);
extern uint16_t spiif_TransmitAsyncGetRes_u16 (const uint8_t spiIndex_u8c);
extern uint16_t spiif_TransmitWord_u16(const uint8_t spiIndex_u8c,
const uint16_t data_u16c);
extern bool spiif_TransmitReceiveExt_bol(const uint8_t spiIndex_u8c,
const uint32_t txWord_u32c,
uint32_t * const rxWord_u32pc,
const uint8_t channels_u8c);
extern bool spiif_ExtTransmitAsyncSetup_bol (const uint8_t spiIndex_u8c,
const spicomdef_para_t* const spiPara_stcpc,
void* const srcData_vpc,
void* const dstData_vpc,
const uint16_t dataLen_u16c,
const spicomdef_asyncTransmRdyCbFnc_t transmitRdyCbFnc_fpc,
void* const transmitRdyCbFncUserHdl_vpc);
extern bool spiif_ExtTransmitAsync_bol (const uint8_t spiIndex_u8c);
extern bool spiif_Init_bol(const uint8_t spiIndex_u8,
spicomdef_para_t * spiPara_stp);
extern bool spiif_Setup_bol(const uint8_t spiIndex_u8c,
const spicomdef_para_t* const newPara_stcpc);
extern bool spiif_Reset_bol(const uint8_t spiIndex_u8c);
extern bool spiif_Lock_bol(const uint8_t spiIndex_u8c,
const osalconfig_timeoutMs_t timoutMs_c);
extern bool spiif_Unlock_bol(const uint8_t spiIndex_u8c);
/****************************************************************************************/
/* Exported data declarations: */
/****************************************************************************************/
/****************************************************************************************/
/**@file dma.h
* @brief This module controls dma functionality of TI2833x.
* For detailed description, see the corresponding c file or the doxygen
* generated documents.
* @author Marco Draeger
* @date 01 Mar 2013
*/
/*--------------------------------------------------------------------------------------*/
/* Copyright (c) 2001...2018 Baker Hughes, a GE company, LLC ("BHGE") (unpublished work).
* All rights reserved. The information contained in this document is confidential and
* proprietary property of BHGE and its affiliates. It is to be used only for the benefit
* of BHGE and may not be distributed, transmitted, reproduced, altered or used for any
* purpose without the express written consent of BHGE. */
/*--------------------------------------------------------------------------------------*/
/****************************************************************************************/
/* Imported include interfaces: */
/*--------------------------------------------------------------------------------------*/
/* Copyright (c) 2015...2015 Baker Hughes, Inc.
* All Rights Reserved.
* The information contained herein is confidential property of Baker Hughes, Inc.
* The use, copying, transfer or disclosure of such information is prohibited except
* by express written agreement with Baker Hughes, Inc. */
/*--------------------------------------------------------------------------------------*/
//###########################################################################
//
// FILE: DSP2833x_Dma_defines.h
//
// TITLE: #defines used in DMA examples
//
//###########################################################################
// $TI Release: 2833x/2823x Header Files and Peripheral Examples V133 $
// $Release Date: June 8, 2012 $
// 25.02.2015 added "u" suffix (LINT)
//###########################################################################
// MODE
//==========================
// PERINTSEL bits
// OVERINTE bit
// PERINTE bit
// CHINTMODE bits
// ONESHOT bits
// CONTINOUS bit
// SYNCE bit
// SYNCSEL bit
// DATASIZE bit
// CHINTE bit
//===========================================================================
// End of file.
//===========================================================================
/****************************************************************************************/
/* Exported constant definitions: */
/*!@brief Following macro clears group interrupt for DMA */
/****************************************************************************************/
/* Exported macro definitions: */
/****************************************************************************************/
/* Exported type definitions: */
/*!---------------------------------------------------------------------------------------
* @brief An enumeration of all DMA channels
* @author Marco Draeger
* @date 01 Mar 2013
*//*-----------------------------------------------------------------------------------*/
typedef enum dma_channels_tag
{
/** ID of channel 1 */
dma_CHANNEL_1 = 0,
/** ID of channel 2 */
dma_CHANNEL_2,
/** ID of channel 3 */
dma_CHANNEL_3,
/** ID of channel 4 */
dma_CHANNEL_4,
/** ID of channel 5 */
dma_CHANNEL_5,
/** ID of channel 6 */
dma_CHANNEL_6,
/** The total amount of DMA channels */
dma_CHANNEL_COUNT
} dma_channels_t;
/*!---------------------------------------------------------------------------------------
* @brief A collection of all configuration settings
* @author Marco Draeger
* @date 01 Mar 2013
*//*-----------------------------------------------------------------------------------*/
typedef struct dma_config_tag
{
/** source address */
volatile uint16_t * srcAddr_u16vp;
/** destination address */
volatile uint16_t * destAddr_u16vp;
/** Size of a burst in words */
uint16_t burstSize_u16;
/** Burst step size at the src port */
int16_t srcBurstStep_s16;
/** Burst step size at the dest port */
int16_t destBurstStep_s16;
/** Transfer size in Burst cycles */
uint16_t transferSize_u16;
/** Transfer step size at the src port */
int16_t srcTransferStep_s16;
/** Transfer step size at the dest port */
int16_t destTransferStep_s16;
/** Wrap source address */
uint16_t wrapSrcAddr_u16;
/** Wrap step size */
int16_t wrapSrcStep_s16;
/** Wrap destination address */
uint16_t wrapDestAddr_u16;
/** Wrap step size */
int16_t wrapDestStep_s16;
/** Periph. interrupt source selection */
uint16_t perIntSel_u16;
/** Periph. interrupt enable */
uint16_t perIntE_u16;
/** One Shot flag (one or continuous Bursts) */
uint16_t oneShot_u16;
/** Continuous flag (stop or do a Transfer) */
uint16_t continuous_u16;
/** Sync Enable */
uint16_t syncE_u16;
/** Sync Mode Select */
uint16_t syncSel_u16;
/** Overrun Flag */
uint16_t ovrIntE_u16;
/** Size of a word (16 or 32 bits) */
uint16_t wordSize_u16;
/** When to generate an interrupt */
uint16_t chIntMode_u16;
/** Interrupt generate enable bit */
uint16_t chIntE_u16;
} dma_config_t;
/****************************************************************************************/
/* Exported function prototypes: */
extern void dma_Init_vd(void);
extern void dma_InitCh_vd(dma_channels_t const channel_enc,
dma_config_t const * const config_stcpc);
extern bool dma_StartDMA_bol(dma_channels_t const channel_enc);
extern bool dma_StopDMA_bol(dma_channels_t const channel_enc);
extern bool dma_ReStartDMA_bol(dma_channels_t const channel_enc);
extern bool dma_EnableInterrupt_bol(dma_channels_t const channel_enc);
extern bool dma_DisableInterrupt_bol(dma_channels_t const channel_enc);
extern bool dma_ForceInterrupt_bol(dma_channels_t const channel_enc);
extern void dma_ClearInterrupt_vd(dma_channels_t const channel_enc);
extern bool dma_InitPieGroupInterruptEnable_bol(const dma_channels_t channel_enc);
/****************************************************************************************/
/* Exported data declarations: */
/****************************************************************************************/
/****************************************************************************************/
/* Exported constant definitions: */
/*!@brief Target DSP28x with BIOS */
//#define config_SPBUF_SPECIFY_DATA_LOCATION "globalExtRam"
/*!@brief Target DSP is 28335 */
/*!@brief CAN bit rate selection definitions */
//#define config_CAN_250KBPS
/*!@brief one mega definition */
/*!@brief defines which spi hw interface shall be used for which spi channel.
* It always has to start with 0 and then go till config_NUMBER_DEVICES_SPI - 1
* The sorting of hardware devices to the indices can be done completely flexible. */
/*!@brief spi-a index */
/*!@brief spi-b index */
/*!@brief spi-a semaphore */
//enable config so that the datalength will be stored on fdiskU8
/*!@brief number of mcbsp-spi interfaces */
/*!@brief index of mcbsp-a as spi */
/*!@brief index of mcbsp-b as spi */
/*!@brief semaphore for mcbsp-a as spi */
/*!@brief semaphore for mcbsp-a as spi */
/*!@brief number of mcbsp-spi dma instances */
/* SPI interface configuration */
/*!@brief number of SPI devices supported by SPI interface module */
//*!@brief the SPI interface module supports the MCBSP device */
//DMA Channel for U8 hyperstone controller
//DMA Channel for U8 hyperstone controller
/*!@brief CPU clock rate in mega hertz */
/*!@brief core clock */
/*!@brief The internally generated serial clock is determined by the low-speed
* peripheral clock LSPCLK and the baud-select registers. The SCI uses the 16-bit value
* of the baud-select registers to select one of the 64K different serial clock rates
* possible for a given LSPCLK. */
//#define config_LSPCLK_HZ ((uint32_t)((config_CLOCKRATE_MHZ * config_ONE_MEGA) / // (uint32_t)(config_LOSPCP * 2u)))
/*!@brief LSP clock rate in hertz */
/*!@brief The internally generated PWM clock is determined by the high-speed
* peripheral clock HISPCLK and the prescaler register. */
//#define config_HSPCLK_HZ ((uint32_t)((config_CLOCKRATE_MHZ * config_ONE_MEGA) / // (uint32_t)(config_HISPCP * 2u)))
/*!@brief HSP clock rate in hertz */
/*!@brief CPU rate in nano second */
// 28335 have 36ns random and paged access time
/*!@brief Number of FLASH waitstates is (36ns * config_CORE_CLOCK) -1 ) rounded up */
/*!@brief Number of OTP waitstates is (60ns * config_CORE_CLOCK) -1 ) rounded up */
/* definition of Rx and Tx baudrates */
// Receive baud rate is different from transmit baud rate
// See silicon errata document for TMS320F281x / 283xx
// SCI error in addrss bit mode
/*!@brief rx baudrate register value for 230400 baudrate */
/*!@brief tx baudrate register value for 230400 baudrate */
/*!@brief rx baudrate register value for 115200 baudrate */
/*!@brief tx baudrate register value for 115200 baudrate */
/*!@brief rx baudrate register value for 57600 baudrate */
/*!@brief tx baudrate register value for 57600 baudrate */
/*!@brief rx baudrate register value for 38400 baudrate */
/*!@brief tx baudrate register value for 38400 baudrate */
/*!@brief rx baudrate register value for 19200 baudrate */
/*!@brief tx baudrate register value for 19200 baudrate */
/*!@brief rx baudrate register value for 9600 baudrate */
/*!@brief tx baudrate register value for 9600 baudrate */
/*!@brief rx baudrate register value for 4800 baudrate */
/*!@brief tx baudrate register value for 4800 baudrate */
/*!@brief rx baudrate register value for 2400 baudrate */
/*!@brief tx baudrate register value for 2400 baudrate */
/*!@brief minimum number of characters in tx fifo */
/*!@brief maximum number of recieve trigger messages */
/*!@brief define if RTOS is used */
/*!@brief Init temperature */
//*!@brief The application can leave this keyword in memory
// * to make the bootcode stay in boot mode */
//#define config_STAY_IN_BOOT_KEY ((uint32_t)0x55AA4321)
/* ------------------------------------------------------------------------------------ */
/* Parameter settings */
/* ------------------------------------------------------------------------------------ */
/*!@brief max number of parameter sets */
/*!@brief default key */
/* ------------------------------------------------------------------------------------ */
/* Diagnostic settings */
/* ------------------------------------------------------------------------------------ */
/*!@brief max memory files number
* Do not change this number. The calibration parameter whould be corrupted
* cause of the eeprom parameter is changed.*/
/*!@brief max memory device number */
/* ------------------------------------------------------------------------------------ */
/* SPI Temperature settings */
/* ------------------------------------------------------------------------------------ */
// Setup SPI for Temperature sensor LM95072
/*!@brief SPI clock polarity for Temperature sensor LM95072 */
/*!@brief SPI clock delay for Temperature sensor LM95072 */
/*!@brief SPI character length for Temperature sensor LM95072 */
/*!@brief SPI baudrate for Temperature sensor LM95072 */
/* ------------------------------------------------------------------------------------ */
/* SPI EEPROM settings */
/* ------------------------------------------------------------------------------------ */
// SPI EEPROM, Setup SPI for AT25256 SPI eeprom
/*!@brief SPI clock polarity for AT25256 SPI eeprom */
/*!@brief SPI clock delay for AT25256 SPI eeprom */
/*!@brief SPI character length for AT25256 SPI eeprom */
/*!@brief SPI baudrate for AT25256 SPI eeprom */
/* ------------------------------------------------------------------------------------ */
/* SPI Flash settings */
/* ------------------------------------------------------------------------------------ */
// SPI FLASH, Setup SPI for mx25VF016B SPI flash
/*!@brief SPI clock polarity for mx25VF016B SPI flash */
/*!@brief SPI clock delay for mx25VF016B SPI flash */
/*!@brief SPI character length for mx25VF016B SPI flash */
/*!@brief SPI baudrate for mx25VF016B SPI flash */
// SPI FLASH, Setup SPI for SST25VF016B SPI flash
/*!@brief SPI clock polarity for SST25VF016B SPI flash */
/*!@brief SPI clock delay for SST25VF016B SPI flash */
/*!@brief SPI character length for SST25VF016B SPI flash */
/*!@brief SPI baudrate for SST25VF016B SPI flash */
/*!@brief MAX Write temperature for SPI FLASH
* Set to maximum to disable this functionality */
/*!@brief Activate the TRACE functionality */
/*!@brief Max number of supported statistic objects */
/*!@brief Number of threads registrations supported by the system watch dog */
/* ------------------------------------------------------------------------------------ */
/* EVE / ADAM global enable / disable */
/* ------------------------------------------------------------------------------------ */
/*!@brief CDM enable */
/*!@brief ADAM enable */
/* ------------------------------------------------------------------------------------ */
/* U8 Memory Task Active */
/* ------------------------------------------------------------------------------------ */
// enable U8 task at this project globally
/* ------------------------------------------------------------------------------------ */
/* DMA/MCBSP settings */
/* ------------------------------------------------------------------------------------ */
/* ------------------------------------------------------------------------------------ */
/* SysInfo Settings */
/* ------------------------------------------------------------------------------------ */
/*!@brief Activate sysinfo statistic */
/*!@brief Activate diagnostic task */
/*!@brief name of diagnostic task */
/*!@brief diagnostic task cycle warning time in micro seconds */
/*!@brief diagnostic task process warning time in micro seconds */
/*!@brief number of threshold voltage i/o's */
/*!@brief diagnostic task cycle function */
/*!@brief diagnostic task process function */
/*!@brief Activate system task */
/*!@brief name of system task */
/*!@brief system task cycle warning time in micro seconds */
/*!@brief system task process warning time in micro seconds */
/*!@brief number of threshold voltage i/o's */
/*!@brief system task cycle function */
/*!@brief system task process function */
/*!@brief Activate memory task */
/*!@brief name of system task */
/*!@brief system task cycle warning time in micro seconds */
/*!@brief system task process warning time in micro seconds */
/*!@brief number of threshold voltage i/o's */
/*!@brief system task cycle function */
/*!@brief system task process function */
/****************************************************************************************/
/* Exported macro definitions: */
/****************************************************************************************/
/* Exported type definitions: */
/****************************************************************************************/
/* Exported function prototypes: */
// Prototype for assembly function in DSP281x_DBGIER.asm
extern void SetDBGIER(uint16_t dbgier_u16);
//extern void DSP28x_usDelay(unsigned long Count);
/****************************************************************************************/
/* Exported data declarations: */
/****************************************************************************************/
/****************************************************************************************/
/**@file sysinfo.h
* @brief This module provides macros, typedefs related to sysinfo.
* For detailed description, see the corresponding c file or the doxygen
* generated documents.
* @author Matthias Wauer
* @date 17 Oct 2014
*/
/*--------------------------------------------------------------------------------------*/
/* Copyright (c) 2014...2018 Baker Hughes, a GE company, LLC ("BHGE") (unpublished work).
* All rights reserved. The information contained in this document is confidential and
* proprietary property of BHGE and its affiliates. It is to be used only for the benefit
* of BHGE and may not be distributed, transmitted, reproduced, altered or used for any
* purpose without the express written consent of BHGE. */
/*--------------------------------------------------------------------------------------*/
/****************************************************************************************/
/* Imported include interfaces: */
/****************************************************************************************/
/**@file osal.h
* @brief This module contains the os abstraction layer defines and typedefs.
* For detailed description, see the corresponding c file or the doxygen
* generated documents.
* @author Edaurd Siewert /Patrik Tegetmeier / Hendrik Hantzko / Matthias Wauer
* @date 28 Oct 2010
*/
/*--------------------------------------------------------------------------------------*/
/* Copyright (c) 2001...2018 Baker Hughes, a GE company, LLC ("BHGE") (unpublished work).
* All rights reserved. The information contained in this document is confidential and
* proprietary property of BHGE and its affiliates. It is to be used only for the benefit
* of BHGE and may not be distributed, transmitted, reproduced, altered or used for any
* purpose without the express written consent of BHGE. */
/*--------------------------------------------------------------------------------------*/
/****************************************************************************************/
/* Imported include interfaces: */
/****************************************************************************************/
/**@file osalcfgprj.h
* @brief This is the configuration file for the OS abstraction layer. The generic
* signals and structures are defined here. \n
* This implementation: DSP/BIOS template for TI28335
* For detailed description, see the corresponding c file or the doxygen
* generated documents.
* @author Eli Adetola
* @date 15 Nov 2010
*/
/*--------------------------------------------------------------------------------------*/
/* Copyright (c) 2001...2018 Baker Hughes, a GE company, LLC ("BHGE") (unpublished work).
* All rights reserved. The information contained in this document is confidential and
* proprietary property of BHGE and its affiliates. It is to be used only for the benefit
* of BHGE and may not be distributed, transmitted, reproduced, altered or used for any
* purpose without the express written consent of BHGE. */
/*--------------------------------------------------------------------------------------*/
/****************************************************************************************/
/* Imported include interfaces: */
/****************************************************************************************/
/* Exported constant definitions: */
/* definitions of events used for intertask communication */
// System controller event IDs
/*!@brief system controller timelib clock increment event id */
/*!@brief hdl system function event id */
/*!@brief check task stacks event id */
/*!@brief board temperature init done event id */
/*!@brief request system watchdog service event id */
/*!@brief request heart beat event id */
/*!@brief process system info events event id */
/*!@brief process pending sm events event id */
/*!@brief trigger memory test event id */
// TIME library event IDs
/*!@brief timelib clock increment event id */
// Different event IDs
/*!@brief timelib new time event id */
/*!@brief start init command event id */
/*!@brief start erase command event id */
/*!@brief start erase and init command event id */
/*!@brief store dummy message command event id */
/*!@brief eds event id */
/*!@brief store memfile message command event id */
/*!@brief read board temperature event id */
/*!@brief memory dump started event id */
/*!@brief start short memory test command event id */
/*!@brief start long memory test command event id */
/*!@brief ten second cycle event id */
/*!@brief eds mailbox received event id */
//trace task event IDs
/*!@brief trace can send done event id */
/*!@brief trace can acknowledge received event id */
/*!@brief definition of which hwtimer shall be used for osal timing */
/*!@brief timer ticks per milli second */
// Don't cast this to uint16_t because this is used in
// preprocessor statement.
/*!@brief timer rate in hertz */
/*!@brief maximum number of software timers supported */
//****************** System Control OS specific definitions******************************
/*!@brief system control trigger event */
//****************** Diagnostic OS specific definitions***************************************
/*!@brief diagnostic trigger event */
//****************** Memory OS specific definitions******************************************
/*!@brief diagnostic trigger event */
//************************ EVE specific definitions ******************************************
// SPBUF Semaphor
//#define osalcfgprj_SPBUF_SEM &spbuf_sem
// Generic CAN Semaphor
// EVE Routing Layer Semaphor
//#define osalcfgprj_EVEROUTER_SEM &EveRouter_sem
// EveOverCAN Semaphor
/*!@brief EveOverCAN 1 mailbox */
/*!@brief EveOverCAN 2 mailbox */
/*!@brief EveOverCAN hdl event */
/*!@brief EveOverCAN mailbox event */
/*!@brief EveOverCAN can message received event */
/*!@brief EveOverCAN can message ready for transmit event */
/*!@brief EveOverCAN clean up event */
/*!@brief EveOverCAN can test received event */
/*!@brief EveOverCAN can test ready for transmit event */
/*!@brief EveOverCAN can tx abort event */
// event and flags definition
/*!@brief Eve Handler Task event group */
/*!@brief Eve Handler Task timer event */
/*!@brief Eve Handler Task mailbox input event */
/*!@brief Eve Handler Task generator mailbox event for expired scheduler objects */
/*!@brief Eve Handler Task generator mailbox event for user requests */
// mailbox definition
/*!@brief Eve Handler Task input mailbox */
/*!@brief Eve Handler Task generator mailbox for expired scheduler objects*/
/*!@brief Eve Handler Task generator mailbox for user requests*/
/*!@brief EVE Routing Layer Semaphore */
/*!@brief SPBUF Semaphore */
/*!@brief Scheduler Time Tree Semaphore */
/*!@brief Scheduler Memory Semaphore */
// EDS mailbox definition
/*!@brief eds mailbox */
/*!@brief eds input mailbox */
//****************** SCI Handler OS specific definitions*********************************
//****************** CAN Handler OS specific definitions*********************************
/****************************************************************************************/
/* Exported macro definitions: */
/****************************************************************************************/
/* Exported type definitions: */
/****************************************************************************************/
/* Exported function prototypes: */
/****************************************************************************************/
/* Exported data declarations: */
/****************************************************************************************/
/****************************************************************************************/
/* Exported constant definitions: */
/* this macro describes the operating system dependent ISR syntax */
/*!@brief operating system dependent ISR argument */
/*!@brief operating system dependent ISR */
/****************************************************************************************/
/* Exported macro definitions: */
// Task time macros for calculating time differences
// tim1 ist the first and tim2 is the second timestamp
// from osal_GetTick_u16()
//#define osal_TASK_TIME_DIFFERENCE_US(tick1,tick2) (((tick2)-(tick1)) * // (1000000 / osalcfgprj_TIMER_RATE_HZ))
//#if (1000 < osalcfgprj_TIMER_RATE_HZ)
//#define osal_TASK_TIME_DIFFERENCE_MS(tick1,tick2) (((tick2)-(tick1)) // / (osalcfgprj_TIMER_RATE_HZ / 1000))
//#else
//#define osal_TASK_TIME_DIFFERENCE_MS(tick1,tick2) (((tick2)-(tick1)) // * (1000 / osalcfgprj_TIMER_RATE_HZ))
//#endif
//#define osal_TASK_TIME_DIFFERENCE_S(tick1,tick2) (((tick2)-(tick1)) // / osalcfgprj_TIMER_RATE_HZ)
/****************************************************************************************/
/* Exported type definitions: */
/*!---------------------------------------------------------------------------------------
* @brief This enumeration describes the task states.
* @author Matthias Wauer
* @date 14 Feb 2017
*//*-----------------------------------------------------------------------------------*/
typedef enum osal_taskState_tag
{
/** task is in "RUNNING" state */
osal_TASK_RUNNING = 0,
/** task is in "READY" state */
osal_TASK_READY,
/** task is in "BLOCKED" state */
osal_TASK_BLOCKED,
/** task is in "TERMINATED" state */
osal_TASK_TERMINATED,
/** task is in "INACTIVE" state */
osal_TASK_INACTIVE
}osal_taskState_t;
/*!---------------------------------------------------------------------------------------
* @brief This enumeration describes the OS thread type
* @author Stephen Krosanke
* @date 04 Jun 2018
*//*-----------------------------------------------------------------------------------*/
typedef enum osal_threadTyp_tag
{
/** Thread type hardware interrupt */
osal_THREAD_TYPE_HWI,
/** Thread type software interrupt */
osal_THREAD_TYPE_SWI,
/** Thread type task */
osal_THREAD_TYPE_TASK,
/** Thread type main/ startup */
osal_THREAD_TYPE_MAIN
}osal_threadTyp_t;
/*!---------------------------------------------------------------------------------------
* @brief Task statistic data
* @author Edaurd Siewert /Patrik Tegetmeier / Hendrik Hantzko / Matthias Wauer
* @date 28 Oct 2010
*//*-----------------------------------------------------------------------------------*/
typedef struct osal_taskStat_tag
{
/** task handle */
void* taskHandle_vdp;
/** pointer to the task name string */
const uint8_t* taskName_u8p;
/** task priority */
uint8_t taskPriority_u8;
/** task state */
osal_taskState_t taskState_enm;
/** task stack start pointer */
void* taskStackStartPtr_vp;
/** task stack stack length */
uint32_t taskStackSize_u32;
/** task stack usage peak */
uint32_t taskStackPeak_u32;
}osal_taskStat_t;
/*!---------------------------------------------------------------------------------------
* @brief result structure for osal function calls.
* @author Edaurd Siewert /Patrik Tegetmeier / Hendrik Hantzko / Matthias Wauer
* @date 28 Oct 2010
*//*-----------------------------------------------------------------------------------*/
typedef struct osal_result_tag
{
/** minimalistic result*/
bool successful_bol;
/** extended result*/
osalconfig_result_t result_st;
}osal_result_t;
/*!---------------------------------------------------------------------------------------
* @brief This type defines the function which will be called when the extended timer
* expires.
* @author Edaurd Siewert /Patrik Tegetmeier / Hendrik Hantzko / Matthias Wauer
* @date 28 Oct 2010
* @param[in] userHandle_vdcpc pointer to user handle
*//*-----------------------------------------------------------------------------------*/
typedef void (*osal_ExtTimerExpCbFnc_t) (const void* const userHandle_vdcpc);
/****************************************************************************************/
/* Exported function prototypes: */
extern bool osal_Init_bol(void);
// Timer related functions
//----------------------------------------------------------------------------------------
extern osalconfig_timer_t * osal_TimerAllocate(void);
extern bool osal_TimerFree_bol(osalconfig_timer_t * timer_stp);
extern bool osal_TimerRestart_bol(osalconfig_timer_t * timer_stp,
uint16_t timerValueTicks_u16,
const osalconfig_event_t * signal_stp);
extern bool osal_TimerStartCycle_bol(osalconfig_timer_t * timer_stp,
uint16_t timerValueTicks_u16,
const osalconfig_event_t * signal_stp);
extern void osal_TimerStop_vd(osalconfig_timer_t * timer_stp);
extern uint16_t osal_TimerGetRemainTicks_u16(const osalconfig_timer_t * timer_stp);
extern uint16_t osal_GetTick_u16(void);
extern void osal_TimerUpdate_vd(void);
extern uint16_t osal_GetTimeDiffInMicroS_u16(uint16_t fromTick_u16, uint16_t toTick_u16);
extern uint16_t osal_GetTimeDiffInMilliS_u16(uint16_t fromTick_u16, uint16_t toTick_u16);
extern uint16_t osal_GetTimeDiffInSeconds_u16(uint16_t fromTick_u16, uint16_t toTick_u16);
/* extended timer functions */
extern bool osal_ExtTimerStart_bol (osalconfig_timer_t * const timer_stcp,
const uint32_t timeoutMs_u32c,
const bool periodic_bolc,
const osalconfig_event_t * const signal_stcpc,
const osal_ExtTimerExpCbFnc_t extTimerExpCbFnc_fncp,
const void* const userHandle_vdcpc);
extern uint32_t osal_ExtTimerGetRemainTimeMs_u32 (const osalconfig_timer_t * const timerObj_stcpc);
// Functions for task handling
//----------------------------------------------------------------------------------------
extern void osal_TaskSleep_vd(osalconfig_timeoutMs_t timeout);
// Functions for task synchronization
//----------------------------------------------------------------------------------------
extern osal_result_t osal_SignalEvent_st(const osalconfig_event_t* event_stp,
osalconfig_timeoutMs_t timeout);
extern osal_result_t osal_WaitEvent_st(const osalconfig_event_t* event_stp,
osalconfig_timeoutMs_t timeout);
extern bool osal_CompareEvents_bol(const osalconfig_event_t * const event1_stcpc,
const osalconfig_event_t * const event2_stcpc);
extern osal_result_t osal_WaitEventLite_st (
const osalconfig_eventHdl_t* const eventHdl_stcpc,
const osalconfig_eventMask_t andMask_stc,
const osalconfig_eventMask_t orMask_stc,
const osalconfig_timeoutMs_t timeoutMs_stc);
extern bool osal_SignalEventLite_bol (
const osalconfig_eventHdl_t* const eventHdl_stcpc,
const osalconfig_eventId_t eventId_stc);
// Interrupt related functions
//----------------------------------------------------------------------------------------
extern void osal_EnableInterrupts_vd(void);
extern void osal_DisableInterrupts_vd(void);
extern osal_result_t osal_IsrEnter_st(const osalconfig_frame_t * frame_stp);
extern osal_result_t osal_IsrExit_st(const osalconfig_frame_t * frame_stp);
extern void osal_IsrSignalEvent_vd(osalconfig_frame_t * frame_stp);
extern void osal_SetIsr_vd(void* const interruptHandle_vdcp, const osalconfig_isr_t isr_fncp,
const void* const arg_vdcpc);
// Functions for resource management
//----------------------------------------------------------------------------------------
extern osal_result_t osal_LockSemaphore_st(const osalconfig_semaphore_t * semaphore_stp,
osalconfig_timeoutMs_t timeout);
extern osal_result_t osal_UnlockSemaphore_st(const osalconfig_semaphore_t * semaphore_stp);
extern osalconfig_task_t osal_GetSemaphoreOwner_st(const osalconfig_semaphore_t * semaphore_stp);
extern osal_result_t osal_LockMutex_st(const osalconfig_semaphore_t * semaphore_stp,
osalconfig_timeoutMs_t timeout);
extern osal_result_t osal_UnlockMutex_st(const osalconfig_semaphore_t * semaphore_stp);
extern osalconfig_task_t osal_GetMutexOwner_st(const osalconfig_semaphore_t * semaphore_stp);
// Functions for task handling
//----------------------------------------------------------------------------------------
extern uint16_t osal_GetNumOfTasks_u16 (void);
extern osal_result_t osal_GetTaskStat_st (const uint16_t taskId_u16c,
osal_taskStat_t* const taskStat_stcp);
extern osal_threadTyp_t osal_GetThreadType_en(void);
extern void osal_TaskSchedulerStop (void);
// Functions for intertask communication
//----------------------------------------------------------------------------------------
// Synchronous task communication
extern osal_result_t osal_SendMessage(osalconfig_mailbox_t * mailbox_stp,
osalconfig_message_t * message_stp,
osalconfig_event_t * event_stp,
osalconfig_timeoutMs_t timeout);
extern osal_result_t osal_ReceiveMessage(osalconfig_mailbox_t * mailbox_stp,
osalconfig_timeoutMs_t timeout);
extern osal_result_t osal_BindSignalToMessage_st(osalconfig_mailbox_t * mailbox_stp,
osalconfig_event_t * event_stp);
extern void osal_AckMessage_vd(osalconfig_message_t * message_stp);
// Asynchronous task communication
extern osal_result_t osal_PushQueue_st(const osalconfig_queue_t * queue_stp,
osalconfig_queueData_t * queueEntryData_p,
osalconfig_timeoutMs_t timeout);
extern osal_result_t osal_PopQueue_st(const osalconfig_queue_t * queue_stp,
osalconfig_queueData_t * queueEntryData_p,
osalconfig_timeoutMs_t timeout);
extern osal_result_t osal_GetQueueEntryCount_st(const osalconfig_queue_t * queue_stp);
extern uint16_t osal_GetQueueFreeEntryCount_u16(const osalconfig_queue_t * const queue_stp);
extern uint16_t osal_GetQueueEntrySize_u16(const osalconfig_queue_t * queue_stp);
extern osal_result_t osal_BindSignalToQueue_st(const osalconfig_queue_t * queue_stp,
osalconfig_event_t * event_stp);
extern void osal_ResetQueue_vd(const osalconfig_queue_t * queue_stp);
/****************************************************************************************/
/* Exported data declarations: */
/****************************************************************************************/
/****************************************************************************************/
/**@file cdmde.h
* @author Commander Team
* @date 25 Nov 2016
* @brief For detailed description, see the corresponding c file or the doxygen
* generated docs */
/*--------------------------------------------------------------------------------------*/
/* Copyright (c) 2014...2014 Baker Hughes, Inc.
* All Rights Reserved.
* The information contained herein is confidential property of Baker Hughes, Inc.
* The use, copying, transfer or disclosure of such information is prohibited except
* by express written agreement with Baker Hughes, Inc. */
/*--------------------------------------------------------------------------------------*/
/****************************************************************************************/
/* Imported header files: */
/****************************************************************************************/
/**@file cdm.h
* @author Commander Team
* @date 25 Nov 2016
* @brief basic definitions for the common data model (cdm) */
/*--------------------------------------------------------------------------------------*/
/* Copyright (c) 2016...2017 Baker Hughes, Inc.
* All Rights Reserved.
* The information contained herein is confidential property of Baker Hughes, Inc.
* The use, copying, transfer or disclosure of such information is prohibited except
* by express written agreement with Baker Hughes, Inc. */
/*--------------------------------------------------------------------------------------*/
/****************************************************************************************/
/* Imported header files: */
/****************************************************************************************/
/**@file autogen_type.h
* @author DB Tool (tegepat @ BHIFYBLTC2)
* @date 15 Jan 2019
* @brief Automatically generated code to provide type definitions! Do not change manually!
* Board: eZdsp
* Tooldefinition: EveTemplate_MAIN
* ToolType: 0x000407D0 (Classifier: 2000 (pl48_toolTypeEvalBoard), Version: 4)
*
* Script: EVE_PL48_CDM_autogen_type_h.scl
* Script Rev: 002
*/
/*--------------------------------------------------------------------------------------*/
/* Copyright (c) 2016...2018 Baker Hughes, Inc.
* All Rights Reserved.
* The information contained herein is confidential property of Baker Hughes, Inc.
* The use, copying, transfer or disclosure of such information is prohibited except
* by express written agreement with Baker Hughes, Inc. */
/*--------------------------------------------------------------------------------------*/
/*****************************************************************************/
/* Imported header files: */
/****************************************************************************************/
/* Global type definitions (enum, struct, union): */
/*!@brief Data Type definitions for DEs */
typedef enum autogentype_de_tag
{
autogentype_DataTypeUndefined = 0, /*< */
autogentype_DataTypeBool = 1, /*< Bool */
autogentype_DataTypeInt8 = 2, /*< Int8 */
autogentype_DataTypeInt16 = 3, /*< Int16 */
autogentype_DataTypeInt32 = 4, /*< Int32 */
autogentype_DataTypeUInt8 = 6, /*< UInt8 */
autogentype_DataTypeUInt16 = 7, /*< UInt16 */
autogentype_DataTypeUInt32 = 8, /*< UInt32 */
autogentype_DataTypeFloat32 = 10, /*< Float32 */
autogentype_DataTypeChar = 12, /*< char */
autogentype_DataTypeCount,
} autogentype_de_t;
/*!@brief RI Access Type definitions */
typedef enum autogentype_riAccess_tag
{
autogentype_RI_ACCESS_TYPE_UNDEF = 0,
autogentype_RI_ACCESS_TYPE_READ_ONLY = 1,
autogentype_RI_ACCESS_TYPE_WRITE_ONLY = 2,
autogentype_RI_ACCESS_TYPE_READ_WRITE = 3,
autogentype_RI_ACCESS_TYPE_COUNT,
} autogentype_riAccess_t;
/****************************************************************************************/
/* Global constant defines: */
/****************************************************************************************/
/* Global function like macro defines (to be avoided): */
/****************************************************************************************/
/* Global type definitions (enum, struct, union): */
/****************************************************************************************/
/* Global data allusions (allows type checking, definition in c file): */
/****************************************************************************************/
/* Global function prototypes: */
/****************************************************************************************/
/****************************************************************************************/
/* Global constant defines: */
//#ifndef GlobalConfigPL48
//#warning "Program.global.GlobalConfigPL48 needs to be defined in app.cfg"
//#endif
/****************************************************************************************/
/* Global function like macro defines (to be avoided): */
/****************************************************************************************/
/* Global type definitions (enum, struct, union): */
typedef enum cdm_addState_tag
{
cdm_ADD_STATE_ERROR,
cdm_ADD_STATE_ADDED,
cdm_ADD_STATE_CONTAINED,
}cdm_addState_t;
/****************************************************************************************/
/* Global data allusions (allows type checking, definition in c file): */
/****************************************************************************************/
/* Global function prototypes: */
extern bool cdm_Init_bol(void);
extern bool cdm_DataTypeValid_bol(autogentype_de_t dataType_en);
extern uint8_t cdm_SizeOfDataType_u8(autogentype_de_t dataType_en);
/****************************************************************************************/
/****************************************************************************************/
/* Global constant defines: */
/****************************************************************************************/
/* Global function like macro defines (to be avoided): */
/****************************************************************************************/
/* Global type definitions (enum, struct, union): */
/*!@brief: variant data*/
typedef union cdmde_value_tag
{
uint8_t v_u8a[4];
bool v_bol;
uint8_t v_u8;
int8_t v_s8;
uint16_t v_u16;
int16_t v_s16;
float32_t v_f32;
uint32_t v_u32;
int32_t v_s32;
char v_c;
} cdmde_value_t;
/*!@brief: variant data with datatype*/
typedef struct cdmde_variant_tag
{
autogentype_de_t varType_en; /*! Project specific configuration defines for spbuf.
* For detailed description, see the corresponding c file or the doxygen
* generated documents.
* @author Stephen Krosanke, Thomas Lehnig
* @date 29 Jul 2016
*/
/*--------------------------------------------------------------------------------------*/
/* Copyright (c) 2001...2018 Baker Hughes, a GE company, LLC ("BHGE") (unpublished work).
* All rights reserved. The information contained in this document is confidential and
* proprietary property of BHGE and its affiliates. It is to be used only for the benefit
* of BHGE and may not be distributed, transmitted, reproduced, altered or used for any
* purpose without the express written consent of BHGE. */
/*--------------------------------------------------------------------------------------*/
/****************************************************************************************/
/* Imported include interfaces: */
/****************************************************************************************/
/* Exported constant definitions: */
// redefinition for SPBUF to reduce ram memory of the module
/*!@brief spbuf buffer size :
* [EveHeader + (5xFLOAT32) => 12 octets + 20 octets = 32 octets = 16 byte] */
/*!@brief spbuf number of buffer elements */
/*!@brief 30 % usage of palbuf for diagnostic purposes */
/****************************************************************************************/
/* Exported macro definitions: */
/****************************************************************************************/
/* Exported type definitions: */
/****************************************************************************************/
/* Exported function prototypes: */
/****************************************************************************************/
/* Exported data declarations: */
/****************************************************************************************/
/****************************************************************************************/
/* Global constant defines: */
/*!@brief spbufcfgprj_POOL_BUFSIZE: the size of each spbuf in the spbuf pool.
*/
/*!@brief spbufcfgprj_POOL_SIZE: the number of stand alone protocol buffers in the spbuf pool.
*/
/*!@brief spbufcfgprj_MEM_ALIGNMENT: should be set to the alignment of the CPU
* 4 byte alignment -> #define SPBUF_MEM_ALIGNMENT 4
* 2 byte alignment -> #define SPBUF_MEM_ALIGNMENT 2
*/
/*!@brief spbufcfgprj_MEM_ALIGN_SIZE: Calculate memory size for an aligned buffer - returns the next highest
* multiple of spbuf_MEM_ALIGNMENT (e.g. spbufcfgprj_MEM_ALIGN_SIZE(3) and
* spbufcfgprj_MEM_ALIGN_SIZE(4) will both yield 4 for spbuf_MEM_ALIGNMENT == 4).
*/
//lint --e(9026) marco-like function
/*!@brief spbufcfgprj_MEM_ALIGN: Align a memory pointer to the alignment defined by SPBUF_MEM_ALIGNMENT
* so that ADDR % SPBUF_MEM_ALIGNMENT == 0
*/
//lint --e(9026) marco-like function
/****************************************************************************************/
/* Global type definitions (enum, struct, union): */
/*!@brief enumeration of buffer types */
typedef enum spbuf_layer_tag
{
SPBUF_RAW
} spbuf_layer_t;
/*!@brief enumeration for buffer pools */
typedef enum
{
SPBUF_POOL = 100U, /* spbuf payload comes from SPBUF Pool */
SPBUF_POOL_EDS = 101U, /*to identify that no timeout for the semaphore is allowed*/
} spbuf_type_t;
/*!@brief stand-alone protocol buffer type */
typedef struct spbuf_tag spbuf_t;
struct spbuf_tag
{
/** next pbuf in singly linked pbuf chain */
spbuf_t *next_stp;
/** pointer to the actual data in the buffer */
void *payload_vdp;
/**
* total length of this buffer and all next buffers in chain
* belonging to the same packet.
*
* For non-queue packet chains this is the invariant:
* p->tot_len == p->len + (p->next? p->next->tot_len: 0)
*/
uint16_t totLen_u16;
/** length of this buffer */
uint16_t len_u16;
/** spbuf_type as u8_t instead of enum to save space */
spbuf_type_t type_en;
/** misc flags */
uint8_t flags_u8;
/**
* the reference count always equals the number of pointers
* that refer to this pbuf. This can be pointers from an application,
* the stack itself, or pbuf->next pointers from a chain.
*/
uint16_t ref_u16;
};
/*!@brief spbuf statistic data */
typedef struct spbuf_stat_tag
{
/** Peak count of used spbuf elements */
uint16_t elemPeak_u16;
/** Total count of spbuf elemets */
uint16_t elemTotal_u16;
}spbuf_stat_t;
/****************************************************************************************/
/* Global function like macro defines (to be avoided): */
/****************************************************************************************/
/* Global data allusions (allows type checking, definition in c file): */
/****************************************************************************************/
/* Global function prototypes: */
extern spbuf_t *spbuf_Alloc_stp(const spbuf_layer_t layer_enc, const uint16_t length_u16c,
const spbuf_type_t type_enc, const osalconfig_timeoutMs_t timeout_stc);
extern uint16_t spbuf_Header_u16(spbuf_t* const p_stcp, const int16_t header_size_s16c);
extern void spbuf_Ref_vd(spbuf_t* const p_stcp);
extern uint16_t spbuf_Free_u16(spbuf_t *p_stp);
extern int8_t spbuf_Copy_s8(spbuf_t *p_to_stp, spbuf_t *p_from_stp);
extern void spbuf_Chain_vd(spbuf_t* const head_stcp, spbuf_t* const tail_stcp);
extern void spbuf_Cat_vd(spbuf_t* const head_stp, spbuf_t* const tail_stp);
extern spbuf_stat_t * spbuf_GetStatistics_stp(void);
/****************************************************************************************/
/* Global constant defines: */
/****************************************************************************************/
/* Global type definitions (enum, struct, union): */
/*!@brief mapping to underlying base type */
typedef spbuf_t pal_t;
typedef spbuf_t palBuf_t;// ToDo: need to be deleted if compatibility in stack is approached
/*!@brief enumeration of buffer pools */
typedef enum pal_bufType_tag
{
EVEBUF_POOL = SPBUF_POOL, /* spbuf payload comes from SPBUF Pool */
EVEBUF_POOL_EDS = SPBUF_POOL_EDS /* spbuf payload comes from SPBUF Pool for EDS events*/
} pal_bufType_t;
/****************************************************************************************/
/* Global function like macro defines (to be avoided): */
/****************************************************************************************/
/* Global data allusions (allows type checking, definition in c file): */
/****************************************************************************************/
/* Global function prototypes: */
extern pal_t * pal_Alloc_stp(const uint16_t length_u16c, const pal_bufType_t type_enc);
extern uint16_t pal_Header_u16(pal_t * const p_stcp, const int16_t header_size_s16c);
extern void pal_Ref_vd(pal_t * const p_stcp);
extern uint16_t pal_Free_u16(pal_t * const p_stpc);
extern uint16_t pal_GetTotalLength_u16(const pal_t * const p_stcpc);
extern uint16_t pal_GetLength_u16(const pal_t * const p_stcpc);
extern int8_t pal_Copy_s8(pal_t * const p_to_stpc, pal_t * const p_from_stpc);
extern void pal_Chain_vd(pal_t * const head_stpc, pal_t * const tail_stpc);
extern void pal_Cat_vd(pal_t * const head_stpc, pal_t * const tail_stpc);
/****************************************************************************************/
/**@file cdmnode.h
* @author Commander Team
* @date 20 May 2009
* @brief For detailed description, see the corresponding c file or the doxygen
* generated docs */
/*--------------------------------------------------------------------------------------*/
/* Copyright (c) 2014...2014 Baker Hughes, Inc.
* All Rights Reserved.
* The information contained herein is confidential property of Baker Hughes, Inc.
* The use, copying, transfer or disclosure of such information is prohibited except
* by express written agreement with Baker Hughes, Inc. */
/*--------------------------------------------------------------------------------------*/
/****************************************************************************************/
/* Imported header files: */
/****************************************************************************************/
/**@file rbtree.h
* @author Thomas Lehnig
* @date 20 Apr 2016
* @brief Implements functions for RBTree usagem based on sglib.h Macros.
*/
/*--------------------------------------------------------------------------------------*/
/* Copyright (c) 2001...2010 Baker Hughes, Inc.
* All Rights Reserved.
* The information contained herein is confidential property of Baker Hughes, Inc.
* The use, copying, transfer or disclosure of such information is prohibited except
* by express written agreement with Baker Hughes, Inc. */
/*--------------------------------------------------------------------------------------*/
/*****************************************************************************/
/* Imported include interfaces: */
/****************************************************************************************/
/**@file rbtreecfgprj.h
* @brief Project specific configuration defines for rbtree implementation.
* For detailed description, see the corresponding c file or the doxygen
* generated documents.
* @author Thomas Lehnig
* @date 29 Apr 2016
*/
/*--------------------------------------------------------------------------------------*/
/* Copyright (c) 2016...2018 Baker Hughes, a GE company, LLC ("BHGE") (unpublished work).
* All rights reserved. The information contained in this document is confidential and
* proprietary property of BHGE and its affiliates. It is to be used only for the benefit
* of BHGE and may not be distributed, transmitted, reproduced, altered or used for any
* purpose without the express written consent of BHGE. */
/*--------------------------------------------------------------------------------------*/
/****************************************************************************************/
/* Imported include interfaces: */
/****************************************************************************************/
/* Exported constant definitions: */
/*!@brief maximum tree depth */
/*!@brief maximum comparator functions */
// #define rbtreecfgprj_COMP_EVENODE_SDE (0u)
/*!@brief schedule by time */
// #define rbtreecfgprj_SCHEDULE_BY_REPORT (3u)
/*!@brief eve router */
// used by CDM DB functions
/*!@brief compare de */
/*!@brief compare sde */
/*!@brief compare ri */
/*!@brief compare ri instance */
/*!@brief compare ri by side */
/*!@brief compare ri by side and sode */
/*!@brief compare node */
/*!@brief schedule by eve node */
/*!@brief compare board */
/*!@brief compare eve interface */
/*!@brief compare int bus */
// only for backwards compatibility
//#define pl48_rbtreeconfig_COMP_EVENODE_SDE rbtreecfgprj_COMP_EVENODE_SDE
//#define pl48_rbtreeconfig_COMP_SERVICE (5u)
//#define pl48_rbtreeconfig_COMP_BOARD (6u)
//#define pl48_rbtreeconfig_COMP_SUBSCRIPTION (7u)
//#define pl48_rbtreeconfig_COMP_SDE (8u)
//#define pl48_rbtreeconfig_COMP_DE (9u)
//#define pl48_rbtreeconfig_COMP_REPORT (10u)
//#define pl48_rbtreeconfig_COMP_DEFAULT_REPORT (11u)
//#define pl48_rbtreeconfig_REPORT_ITEM (12u)
//#define pl48_rbtreeconfig_EVE_PROXY (13u)
//#define pl48_rbtreeconfig_EVE_NODE (14u)
//#define pl48_rbtreeconfig_ACKNOWLEDGE (15u)
/****************************************************************************************/
/* Exported macro definitions: */
/****************************************************************************************/
/* Exported type definitions: */
/****************************************************************************************/
/* Exported function prototypes: */
/****************************************************************************************/
/* Exported data declarations: */
/****************************************************************************************/
/*****************************************************************************/
/* Exported constant definitions: */
/*****************************************************************************/
/* Exported macro definitions: */
/*****************************************************************************/
/* Exported type definitions: */
typedef int8_t (*comparator_fnp)(void *arg1, void *arg2);
typedef struct rbtree_elem_tag rbtree_elem_t;
struct rbtree_elem_tag
{
uint16_t flag_u16;
uint16_t comparator_u16;
rbtree_elem_t *left_stp;
rbtree_elem_t *right_stp;
void *item_vp;
};
typedef int8_t (*subComparator_fnp)(rbtree_elem_t *arg1, rbtree_elem_t *arg2);
typedef struct rbtree_iterator_tag
{
rbtree_elem_t *currentelem_stp;
char pass_cha[128];
rbtree_elem_t *path_stap[(128u)];
int8_t pathi_s8;
int8_t order_s8;
rbtree_elem_t *equalto_stp;
subComparator_fnp subcomparator_fnp;
}rbtree_iterator_t;
/*!@brief rbtree statistic data */
typedef struct rbtree_stat_tag
{
/** Peak count of used rbtree elements */
uint16_t elemPeak_u16;
/** Total count of rbtree elemets */
uint16_t elemTotal_u16;
}rbtree_stat_t;
/*****************************************************************************/
/* Exported function prototypes: */
extern void rbtree_Init_vd(void);
extern bool rbtree_RegisterComparator_bol(const uint8_t index_u8c,
const comparator_fnp comparatorFunction_fnpc);
extern rbtree_elem_t * rbtree_AllocElem_stp(void);
extern bool rbtree_InitElem_bol(rbtree_elem_t * const elem_stpc,
uint16_t comparator_u16,
void * item_vp);
extern rbtree_elem_t * rbtree_AllocAndInitElem_stp(uint16_t comparator_u16,
void * item_vp);
extern void rbtree_FreeElem_vd(rbtree_elem_t * rbtree_Elem_stp);
extern bool rbtree_AddItemIfNotMember_bol(rbtree_elem_t ** const tree_stcpp,
uint16_t comparator_u16,
void * const item_vdcp,
void ** const member_vdcpp);
extern bool rbtree_DeleteItemIfMember_bol(rbtree_elem_t ** const tree_stcpp,
uint16_t comparator_u16,
const void * const item_vdcpc,
void ** const member_vdcpp);
extern void * rbtree_FindMember_vdp(rbtree_elem_t * const tree_stcp,
uint16_t comparator_u16,
const void * const item_vdcpc);
extern void rbtree_Add_vd(rbtree_elem_t** const tree_stcpp,
rbtree_elem_t * const elem_stcp);
extern void rbtree_Delete_vd(rbtree_elem_t** const tree_stcpp,
rbtree_elem_t * const elem_stcp);
extern rbtree_elem_t * rbtree_FindMember_stp(rbtree_elem_t * t_stp,
const rbtree_elem_t * const elem_stcpc);
extern rbtree_elem_t * rbtree_FindIndex_stp(const comparator_fnp cmp_fnpc,
rbtree_elem_t *tree_stp,
void* const index_vdcp);
extern bool rbtree_IsMember_bol(const rbtree_elem_t *t_stpc,
const rbtree_elem_t* const elem_stcpc);
extern bool rbtree_DeleteIfMember_bol(rbtree_elem_t** const tree_stcpp,
const rbtree_elem_t* const elem_stcpc,
rbtree_elem_t** const memb_stcpp);
extern bool rbtree_AddIfNotMember_bol(rbtree_elem_t** const tree_stcpp,
rbtree_elem_t* const elem_stcp,
rbtree_elem_t** const memb_stcpp);
extern uint32_t rbtree_Len_u32(const rbtree_elem_t* const t_stcpc);
extern void rbtree_ConsistencyCheck_vd(const rbtree_elem_t* const t_stcpc);
extern rbtree_elem_t * rbtree_ItInit_stp(rbtree_iterator_t* const it_stcp,
rbtree_elem_t* const tree_stcp);
extern rbtree_elem_t * rbtree_ItInitPreorder_stp(rbtree_iterator_t* const it_stcp,
rbtree_elem_t* const tree_stcp);
extern rbtree_elem_t * rbtree_ItInitInorder_stp(rbtree_iterator_t* const it_stcp,
rbtree_elem_t* const tree_stcp);
extern rbtree_elem_t * rbtree_ItInitPostorder_stp(rbtree_iterator_t* const it_stcp,
rbtree_elem_t* const tree_stcp);
extern rbtree_elem_t * rbtree_ItInitOnEqual_stp(rbtree_iterator_t* const it_stcp,
rbtree_elem_t* const tree_stcp,
const subComparator_fnp subcomparator_fnpc,
rbtree_elem_t* const equalto_stcp);
extern rbtree_elem_t * rbtree_ItCurrent_stp(const rbtree_iterator_t* const it_stcpc);
extern rbtree_elem_t * rbtree_ItNext_stp(rbtree_iterator_t* const it_stcp);
extern rbtree_stat_t * rbtree_GetStatistics_stp(void);
/*****************************************************************************/
/* Exported data declarations: */
/*****************************************************************************/
/****************************************************************************************/
/* Global constant defines: */
/****************************************************************************************/
/* Global function like macro defines (to be avoided): */
/****************************************************************************************/
/* Global type definitions (enum, struct, union): */
/*!@brief Type of EVE Node ID */
typedef uint16_t cdmnode_nodeId_t;
/*!@brief Type of EVE Node Instance ID */
typedef cdmnode_nodeId_t cdmeve_instanceId_t;
/*!@brief definition of eve node*/
typedef struct cdmnode_node_tag
{
cdmnode_nodeId_t eveNodeId_st;
rbtree_elem_t * riTreeNode_stp;
rbtree_elem_t * schedulerTree_stp; // sorted by Node ID and SDE ID for scheduler based subscriptions
rbtree_elem_t * toutTree_stp; // sorted by Node ID and SDE ID for scheduler based timeouts
char eveNodeName_cha[(32U)];
} cdmnode_node_t;
/****************************************************************************************/
/* Global data allusions (allows type checking, definition in c file): */
/****************************************************************************************/
/* Global function prototypes: */
/****************************************************************************************/
/****************************************************************************************/
/**@file eveprot.h
* @author Thomas Lehnig
* @date 02 May 2016
* @brief Constant and Macro definitions for EVE protocol, function declarations for
* accessing the header data fields.
*/
/*--------------------------------------------------------------------------------------*/
/* Copyright (c) 2016...2016 Baker Hughes, Inc.
* All Rights Reserved.
* The information contained herein is confidential property of Baker Hughes, Inc.
* The use, copying, transfer or disclosure of such information is prohibited except
* by express written agreement with Baker Hughes, Inc. */
/*--------------------------------------------------------------------------------------*/
/*****************************************************************************/
/* Imported header files: */
/****************************************************************************************/
/* Global constant defines: */
/*!@brief Protocol message header format, all positions and lengths in BYTE (8bit)! */
/*!@brief Protocol message header positions */
/*!@brief Protocol message header lengths in BYTE (8bit) */
/*!@brief EDS message position format in the payload area */
/*!@brief EDS message length (in BYTE:=8bit) format in the payload area */
/*!@brief Subscription message length (in BYTE:=8bit) format in the payload area */
/*!@brief Subscription message position format in the payload area */
/*!@brief Acknowledge message length (in BYTE:=8bit) format in the payload area */
/*!@brief Acknowledge message position format in the payload area */
/*!@brief as defined in spec, min payload length can be 0 */
/*!@brief as defined in spec, max message length incl. header can not exceed 8192 Byte */
/*!@brief Command OpCodes as defined in spec */
/*!@brief Command Flags as defined in spec */
/*!@brief Simple comparison macros for OpCodes and Flags */
/*!@brief Eve buffer allocation fill up to next multiple of 4 Byte as per EVE specification */
/****************************************************************************************/
/* Global function like macro defines (to be avoided): */
/****************************************************************************************/
/* Global type definitions (enum, struct, union): */
typedef uint16_t eveprot_length_t;
typedef uint16_t eveprot_opcode_t;
/*!@brief EVE header definition */
typedef struct eveprot_header_tag
{
/** To EVE node */
cdmnode_nodeId_t toNode_st;
/** From EVE node */
cdmnode_nodeId_t fromNode_st;
/** EVE message length */
eveprot_length_t length_st;
/** EVE operation code */
eveprot_opcode_t opCode_st;
/** SDE id*/
cdmsde_sdeId_t sdeId_st;
} eveprot_header_t;
/*!@brief struct of eve publication requests */
typedef struct eveprot_evePubReq_tag
{
/** SDE ID */
cdmsde_sdeId_t sdeId_st;
/** From EVE node */
cdmnode_nodeId_t fromNode_st;
/** To EVE node */
cdmnode_nodeId_t toNode_st;
/** true if this publication need to be acknowledged */
bool ackReq_bol;
/** true if this publication is triggered by a active scheduler subscription */
bool basedActSub_bol;
} eveprot_evePubReq_t;
/*!@brief struct of eve subscription requests */
typedef struct eveprot_eveSubReq_tag
{
/** SDE ID */
cdmsde_sdeId_t sdeId_st;
/** From EVE node */
cdmnode_nodeId_t fromNode_st;
/** To EVE node */
cdmnode_nodeId_t toNode_st;
/** true if this publication need to be acknowledged */
bool ackReq_bol;
/** number of publication*/
uint16_t numPub_u16;
/** start time in ms*/
uint32_t startTimeInMs_u32;
/** publication period in ms */
uint32_t periodInMs_u32;
} eveprot_eveSubReq_t;
/****************************************************************************************/
/* Global data allusions (allows type checking, definition in c file): */
/****************************************************************************************/
/* Global function prototypes: */
extern cdmnode_nodeId_t eveprot_GetToNode_st(pal_t * const p_stpc);
extern cdmnode_nodeId_t eveprot_GetFromNode_st(pal_t * const p_stpc);
extern eveprot_length_t eveprot_GetLength_st(pal_t * const p_stpc);
extern eveprot_opcode_t eveprot_GetOpCode_st(pal_t * const p_stpc);
extern cdmsde_sdeId_t eveprot_GetSdeId_st(pal_t * const p_stpc);
extern void eveprot_GetHeader_vd(pal_t * const p_stpc,
eveprot_header_t * const hdr_stp);
extern void eveprot_SetToNode_vd(pal_t * const p_stpc, const cdmnode_nodeId_t toNode_stc);
extern void eveprot_SetFromNode_vd(pal_t * const p_stpc, const cdmnode_nodeId_t fromNode_stc);
extern void eveprot_SetLength_vd(pal_t * const p_stpc, const eveprot_length_t length_stc);
extern void eveprot_SetOpCode_vd(pal_t * const p_stpc, const eveprot_opcode_t opCode_stc);
extern void eveprot_SetSdeId_vd(pal_t * const p_stpc, const cdmsde_sdeId_t sdeId_stc);
extern void eveprot_SetHeaderFields_vd(pal_t * const p_stpc,
const cdmnode_nodeId_t toNode_stc,
const cdmnode_nodeId_t fromNode_stc,
const eveprot_length_t length_stc,
const eveprot_opcode_t opCode_stc,
const cdmsde_sdeId_t sdeId_stc);
extern void eveprot_SetHeader_vd(pal_t * const p_stpc,
const eveprot_header_t * const hdr_stcpc);
/****************************************************************************************/
/****************************************************************************************/
/* Global constant defines: */
/****************************************************************************************/
/* Global function like macro defines (to be avoided): */
/****************************************************************************************/
/* Global type definitions (enum, struct, union): */
/*!@brief Definition of type to pass to trigger function identifying the kind of
* access being done to an SDE. */
typedef enum cdmri_prePost_tag
{
cdmri_PRE = 0x01U,
cdmri_POST = 0x02U,
cdmri_GET = 0x04U,
cdmri_SET = 0x08U,
cdmri_GET_PRE = cdmri_GET + cdmri_PRE,
cdmri_GET_POST = cdmri_GET + cdmri_POST,
cdmri_SET_PRE = cdmri_SET + cdmri_PRE,
cdmri_SET_POST = cdmri_SET + cdmri_POST,
} cdmri_prePost_t;
/*!@brief report item access status */
typedef enum cdmri_riAccessStatus_tag
{
cdmri_DONE = 0U,
cdmri_EXEC_ERR,
cdmri_BUSY,
cdmri_STARTED
}cdmri_riAccessStatus_t;
//ToDo: cdmri_riAccessStatus_t need to be replaced by cdmri_genErrCode_t according to acknowledge discussions
/*!@brief cdm generic error code */
typedef enum cdmri_genErrCode_tag
{
cdmri_GEN_SUCCESS = 0x00000000UL,
cdmri_GEN_TMP_ERROR = 0x00000001UL,
cdmri_GEN_PERM_ERROR = 0x00000002UL,
cdmri_GEN_INVALID = 0xFFFFFFFFUL
}cdmri_genErrCode_t;
/*!@brief forward declaration */
typedef struct cdmri_ri_tag cdmri_ri_t;
typedef struct cdmri_riInstance_tag cdmri_riInstance_t;
typedef struct cdmsub_subscription_tag cdmri_subscription_t;
/*!@brief enumeration of different protocol types and revisions */
typedef enum cdmri_protType_tag
{
cdmri_UNDEFINED_PROT = 0,
cdmri_EVE_PROT,
} cdmri_protType_t;
/*!@brief CDM OnAcknowledge input parameter for EVE specific calls */
typedef struct cdmri_onAccessEve_tag
{
eveprot_header_t * hdr_stp;
pal_t ** pBuf_stpp;
} cdmri_onAccessEve_t;
/*!@brief CDM OnAccess input parameter */
typedef struct cdmri_onAccess_tag
{
cdmri_prePost_t access_en;
cdmri_ri_t * reportItem_stp;
cdmri_protType_t prot_en;
union
{
cdmri_onAccessEve_t eveProt_st;
};
} cdmri_onAccess_t;
/*!@brief declaration of the PL48 on-access function pointer*/
typedef cdmri_riAccessStatus_t (*cdmri_OnAccessFctPtr_t)(cdmri_ri_t * reportItem_stp,
cdmri_subscription_t * subscription_stp,
pal_t ** pBuf_stpp,
uint16_t bufOffset_u16,
bool * copyDataInStack_bolp,
cdmri_prePost_t access_en);
///*!@brief declaration of the PL48 on-access function pointer*/
//typedef cdmri_riAccessStatus_t (*cdmri_OnAccessFctPtr_t)(cdmri_onAccess_t * onAccess_stp);
//ToDo: proposal for new OnAccess functions!
/*!@brief CDM OnAcknowledge input parameter for EVE specific calls */
typedef struct cdmri_onAcknowledgeEve_tag
{
eveprot_header_t * hdr_stp;
pal_t ** pBuf_stpp;
} cdmri_onAcknowledgeEve_t;
/*!@brief CDM OnAcknowledge input parameter */
typedef struct cdmri_onAcknowledge_tag
{
cdmri_genErrCode_t ack_en;
cdmri_ri_t * reportItem_stp;
cdmri_protType_t prot_en;
union
{
cdmri_onAcknowledgeEve_t eveProt_st;
};
} cdmri_onAcknowledge_t;
/*!@brief declaration of the EVE on-acknowledge function pointer */
typedef void (*cdmri_OnAcknowledgeFctPtr_t)(cdmri_onAcknowledge_t * onAck_stp);
/*!@brief: variant data type with variant data pointer*/
typedef struct cdmri_variantPtr_tag
{
autogentype_de_t varType_en; /*!This module defines the 'assertion_Check' macro, which tests a run-time
* expression.
* For detailed description, see the corresponding c file or the
* doxygen generated documents.
* @author Matthias Wauer
* @date 16 Feb 2016
*/
/*--------------------------------------------------------------------------------------*/
/* Copyright (c) 2014...2018 Baker Hughes, a GE company, LLC ("BHGE") (unpublished work).
* All rights reserved. The information contained in this document is confidential and
* proprietary property of BHGE and its affiliates. It is to be used only for the benefit
* of BHGE and may not be distributed, transmitted, reproduced, altered or used for any
* purpose without the express written consent of BHGE. */
/*--------------------------------------------------------------------------------------*/
/****************************************************************************************/
/* Imported include interfaces: */
/****************************************************************************************/
/* Exported constant definitions: */
/****************************************************************************************/
/* Exported macro definitions: */
/*!@brief This definition selects the assertion processing function
* depending on the "NDEBUG" definition */
/****************************************************************************************/
/* Exported type definitions: */
/*!---------------------------------------------------------------------------------------
* @brief This type defines the function which can be called when an assertion occurs
* @author Matthias Wauer
* @date 16 Feb 2016
* @param[in] expression_chcpc pointer to the expression string
* @param[in] line_u16c line number where the assertion has been happened
* @param[in] function_chcpc pointer to the function string
*//*-----------------------------------------------------------------------------------*/
typedef void (*assertion_CbFnc_t) (const char* const expression_chcpc,
const uint16_t line_u16c,
const char* const function_chcpc);
/****************************************************************************************/
/* Exported function prototypes: */
extern void assertion_PrcAssertion_vd (const char* const expression_cpc,
const uint16_t line_u16c,
const char* const function_cpc);
extern void assertion_SetAssertionCbFnc_vd (const assertion_CbFnc_t assertionCbFnc_fncp);
/****************************************************************************************/
/* Exported data declarations: */
/****************************************************************************************/
/*****************************************************************************************
* @file: agN50069TI28335_main.h
* @author: mohnoli
* @date: 09-Jan-2020 12:30:32
* @brief:
* Auto-generated from Matlab function : agN50069TI28335_main
* Model version : TC001
* Generated for Target : TI28335
*
* --------------------------------------------------------------------------------------
* Copyright (c) 2017...2019 Baker Hughes, a GE company, LLC ("BHGE") (unpublished work).
* All rights reserved. The information contained in this document is confidential and
* proprietary property of BHGE and its affiliates. It is to be used only for the benefit
* of BHGE and may not be distributed, transmitted, reproduced, altered or used for any
* purpose without the express written consent of BHGE.
*
****************************************************************************************/
/*****************************************************************************/
/* stddef.h v6.4.11 */
/* */
/* Copyright (c) 1993-2016 Texas Instruments Incorporated */
/* http://www.ti.com/ */
/* */
/* Redistribution and use in source and binary forms, with or without */
/* modification, are permitted provided that the following conditions */
/* are met: */
/* */
/* Redistributions of source code must retain the above copyright */
/* notice, this list of conditions and the following disclaimer. */
/* */
/* Redistributions in binary form must reproduce the above copyright */
/* notice, this list of conditions and the following disclaimer in */
/* the documentation and/or other materials provided with the */
/* distribution. */
/* */
/* Neither the name of Texas Instruments Incorporated nor the names */
/* of its contributors may be used to endorse or promote products */
/* derived from this software without specific prior written */
/* permission. */
/* */
/* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS */
/* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT */
/* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR */
/* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT */
/* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, */
/* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT */
/* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, */
/* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY */
/* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT */
/* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE */
/* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
/* */
/*****************************************************************************/
#pragma diag_push
#pragma CHECK_MISRA("-19.15") /* code outside guard; see below comment */
/*-----------------------------------------------------------------------*/
/* Define _win_t, for compiling GCC libraries with the TI compiler. */
/* GCC's library (newlib) expects wint_t to be defined here, in stddef.h,*/
/* which is arguably incorrect, but we go along for compatibility. */
/* This is outside the _STDDEF guard in case this file has already */
/* been included without __need_wint_t. */
/*-----------------------------------------------------------------------*/
#pragma diag_pop
/*****************************************************************************/
/* stdlib.h v6.4.11 */
/* */
/* Copyright (c) 1993-2016 Texas Instruments Incorporated */
/* http://www.ti.com/ */
/* */
/* Redistribution and use in source and binary forms, with or without */
/* modification, are permitted provided that the following conditions */
/* are met: */
/* */
/* Redistributions of source code must retain the above copyright */
/* notice, this list of conditions and the following disclaimer. */
/* */
/* Redistributions in binary form must reproduce the above copyright */
/* notice, this list of conditions and the following disclaimer in */
/* the documentation and/or other materials provided with the */
/* distribution. */
/* */
/* Neither the name of Texas Instruments Incorporated nor the names */
/* of its contributors may be used to endorse or promote products */
/* derived from this software without specific prior written */
/* permission. */
/* */
/* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS */
/* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT */
/* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR */
/* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT */
/* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, */
/* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT */
/* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, */
/* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY */
/* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT */
/* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE */
/* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
/* */
/*****************************************************************************/
#pragma diag_push
#pragma CHECK_MISRA("-6.3") /* standard types required for standard headers */
#pragma CHECK_MISRA("-8.5") /* need to define inline function */
#pragma CHECK_MISRA("-19.1") /* #includes required for implementation */
/*---------------------------------------------------------------------------*/
/* Attributes are only available in relaxed ANSI mode. */
/*---------------------------------------------------------------------------*/
#pragma diag_push
#pragma CHECK_MISRA("-5.7") /* keep names intact */
typedef struct { int quot, rem; } div_t;
typedef struct { long quot, rem; } ldiv_t;
typedef struct { long long quot, rem; } lldiv_t;
#pragma diag_pop
/*---------------------------------------------------------------*/
/* NOTE - Normally, abs, labs, and fabs are expanded inline, so */
/* no formal definition is really required. However, ANSI */
/* requires that they exist as separate functions, so */
/* they are supplied in the library. The prototype is */
/* here mainly for documentation. */
/*---------------------------------------------------------------*/
#pragma diag_push
#pragma CHECK_MISRA("-16.4") /* false positives due to builtin declarations */
int abs(int _val);
long labs(long _val);
long long llabs(long long _val);
#pragma diag_pop
int atoi(const char *_st);
long atol(const char *_st);
long long atoll(const char *_st);
int ltoa(long val, char *buffer);
static __inline double atof(const char *_st);
long strtol(const char *_st, char **_endptr, int _base);
unsigned long strtoul(const char *_st, char **_endptr,
int _base);
long long strtoll(const char *_st, char **_endptr, int _base);
unsigned long long strtoull(const char *_st, char **_endptr,
int _base);
float strtof(const char *_st, char **_endptr);
double strtod(const char *_st, char **_endptr);
long double strtold(const char *_st, char **_endptr);
int rand(void);
void srand(unsigned _seed);
void *calloc(size_t _num, size_t _size)
__attribute__((malloc));
void *malloc(size_t _size)
__attribute__((malloc));
void *realloc(void *_ptr, size_t _size)
__attribute__((malloc));
void free(void *_ptr);
void *memalign(size_t _aln, size_t _size)
__attribute__((malloc));
void abort(void);
typedef void (*__TI_atexit_fn)(void);
int atexit(__TI_atexit_fn _func);
typedef int (*__TI_compar_fn)(const void *_a,const void *_b);
void *bsearch(const void *_key, const void *_base,
size_t _nmemb, size_t _size,
__TI_compar_fn compar);
void qsort(void *_base, size_t _nmemb, size_t _size,
__TI_compar_fn compar);
void exit(int _status);
div_t div(int _numer, int _denom);
ldiv_t ldiv(long _numer, long _denom);
lldiv_t lldiv(long long _numer, long long _denom);
char *getenv(const char *_string);
int system(const char *_name);
int mblen(const char *_s, size_t _n);
size_t mbstowcs(wchar_t *_dest, const char *_src, size_t _n);
int mbtowc(wchar_t *_dest, const char *_src, size_t _n);
size_t wcstombs(char *_dest, const wchar_t *_src, size_t _n);
int wctomb(char *_s, wchar_t _wc);
static __inline double atof(const char *_st)
{
return strtod(_st, (char **)0);
}
#pragma diag_pop
#pragma diag_push
/* using declarations must occur outside header guard to support including both
C and C++-wrapped version of header; see _CPP_STYLE_HEADER check */
/* this code is for C++ mode only and thus also not relevant for MISRA */
#pragma CHECK_MISRA("-19.15")
#pragma diag_pop
#pragma diag_push
/* C2000-specific additions to header implemented with #include */
#pragma CHECK_MISRA("-19.1")
#pragma CHECK_MISRA("-19.15")
/*****************************************************************************/
/* stdlibf.h v6.4.11 */
/* far versions of stdlib.h functions */
/* */
/* Copyright (c) 1996-2016 Texas Instruments Incorporated */
/* http://www.ti.com/ */
/* */
/* Redistribution and use in source and binary forms, with or without */
/* modification, are permitted provided that the following conditions */
/* are met: */
/* */
/* Redistributions of source code must retain the above copyright */
/* notice, this list of conditions and the following disclaimer. */
/* */
/* Redistributions in binary form must reproduce the above copyright */
/* notice, this list of conditions and the following disclaimer in */
/* the documentation and/or other materials provided with the */
/* distribution. */
/* */
/* Neither the name of Texas Instruments Incorporated nor the names */
/* of its contributors may be used to endorse or promote products */
/* derived from this software without specific prior written */
/* permission. */
/* */
/* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS */
/* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT */
/* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR */
/* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT */
/* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, */
/* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT */
/* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, */
/* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY */
/* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT */
/* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE */
/* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
/* */
/*****************************************************************************/
#pragma diag_push
#pragma CHECK_MISRA("-6.3")
long far_strtol (const char *st,
char **endptr,
int base);
unsigned long far_strtoul(const char *st,
char **endptr,
int base);
double far_strtod (const char *st,
char **endptr);
long double far_strtold (const char *st,
char **endptr);
long long far_strtoll(const char *st,
char **endptr,
int base);
unsigned long long far_strtoull(const char *st,
char **endptr,
int base);
int far_atoi(const char *st);
long far_atol(const char *st);
static __inline double far_atof(const char *st);
long long far_atoll(const char *st);
void *far_calloc (unsigned long num, unsigned long size);
void *far_malloc (unsigned long size);
void *far_realloc (void *ptr, unsigned long size);
void far_free (void *ptr);
void *far_bsearch(const void *key,
const void *base,
size_t nmemb, size_t size,
int (*compar)(const void *a,
const void *b));
void far_qsort (void *base,
size_t nmemb, size_t size,
int (*compar)(const void *a,
const void *b));
int free_memory(void);
int max_free(void);
void *chkheap(void);
#pragma diag_push
#pragma CHECK_MISRA("-8.5") /* need to define inline function */
static __inline double far_atof(const char *st)
{
return far_strtod(st, (char **)0);
}
#pragma diag_pop
#pragma diag_pop
#pragma diag_push
/* using declarations must occur outside header guard to support including both
C and C++-wrapped version of header; see _CPP_STYLE_HEADER check */
/* this code is for C++ mode only and thus also not relevant for MISRA */
#pragma CHECK_MISRA("-19.15")
#pragma diag_pop
#pragma diag_pop
/*****************************************************************************************
* @file: rtwtypes.h
* @author: mohnoli
* @date: 09-Jan-2020 12:30:32
* @brief:
* Auto-generated from Matlab function : agN50069TI28335_main
* Model version : TC001
* Generated for Target : TI28335
*
* --------------------------------------------------------------------------------------
* Copyright (c) 2017...2019 Baker Hughes, a GE company, LLC ("BHGE") (unpublished work).
* All rights reserved. The information contained in this document is confidential and
* proprietary property of BHGE and its affiliates. It is to be used only for the benefit
* of BHGE and may not be distributed, transmitted, reproduced, altered or used for any
* purpose without the express written consent of BHGE.
*
****************************************************************************************/
/*=======================================================================*
* Target hardware information
* Device type: Infineon->C16x, XC16x
* Number of bits: char: 8 short: 16 int: 16
* long: 32
* native word size: 16
* Byte ordering: LittleEndian
* Signed integer division rounds to: Zero
* Shift right on a signed integer as arithmetic shift: on
*=======================================================================*/
/*=======================================================================*
* Fixed width word size data types: *
* int8_T, int16_T, int32_T - signed 8, 16, or 32 bit integers *
* uint8_T, uint16_T, uint32_T - unsigned 8, 16, or 32 bit integers *
* real32_T, real64_T - 32 and 64 bit floating point numbers *
*=======================================================================*/
typedef signed char int8_T;
typedef unsigned char uint8_T;
typedef int int16_T;
typedef unsigned int uint16_T;
typedef long int32_T;
typedef unsigned long uint32_T;
typedef float real32_T;
typedef double real64_T;
/*===========================================================================*
* Generic type definitions: real_T, time_T, boolean_T, int_T, uint_T, *
* ulong_T, char_T and byte_T. *
*===========================================================================*/
typedef double real_T;
typedef double time_T;
typedef unsigned char boolean_T;
typedef int int_T;
typedef unsigned int uint_T;
typedef unsigned long ulong_T;
typedef char char_T;
typedef char_T byte_T;
/*===========================================================================*
* Complex number type definitions *
*===========================================================================*/
typedef struct {
real32_T re;
real32_T im;
} creal32_T;
typedef struct {
real64_T re;
real64_T im;
} creal64_T;
typedef struct {
real_T re;
real_T im;
} creal_T;
typedef struct {
int8_T re;
int8_T im;
} cint8_T;
typedef struct {
uint8_T re;
uint8_T im;
} cuint8_T;
typedef struct {
int16_T re;
int16_T im;
} cint16_T;
typedef struct {
uint16_T re;
uint16_T im;
} cuint16_T;
typedef struct {
int32_T re;
int32_T im;
} cint32_T;
typedef struct {
uint32_T re;
uint32_T im;
} cuint32_T;
/*=======================================================================*
* Min and Max: *
* int8_T, int16_T, int32_T - signed 8, 16, or 32 bit integers *
* uint8_T, uint16_T, uint32_T - unsigned 8, 16, or 32 bit integers *
*=======================================================================*/
/* Logical type definitions */
/*
* Maximum length of a MATLAB identifier (function/variable)
* including the null-termination character. Referenced by
* rt_logging.c and rt_matrx.c.
*/
/* End of Auto-generated file. */
/*****************************************************************************************
* @file: agN50069TI28335_main_types.h
* @author: mohnoli
* @date: 09-Jan-2020 12:30:32
* @brief:
* Auto-generated from Matlab function : agN50069TI28335_main
* Model version : TC001
* Generated for Target : TI28335
*
* --------------------------------------------------------------------------------------
* Copyright (c) 2017...2019 Baker Hughes, a GE company, LLC ("BHGE") (unpublished work).
* All rights reserved. The information contained in this document is confidential and
* proprietary property of BHGE and its affiliates. It is to be used only for the benefit
* of BHGE and may not be distributed, transmitted, reproduced, altered or used for any
* purpose without the express written consent of BHGE.
*
****************************************************************************************/
/* End of Auto-generated file. */
extern void agN50069TI28335_main(const uint16_T WIN[992], uint16_T NCURV, const
uint16_T FBIT[31], uint16_T SEGLEN0, uint16_T WINDOWS, uint16_T CLEAR,
uint16_T RefvalbitUi16[1024], uint16_T RefvalbitUi16LR[2]);
extern void agN50069TI28335_main_initialize(void);
extern void agN50069TI28335_main_terminate(void);
/* End of Auto-generated file. */
/* if TRACE functionality is implemented and the trace source is defined include the
* TRACE header file */
/****************************************************************************************/
/** @file trace.h
* @brief This module covers the trace functionality for analyzing or debugging
* purposes.
* For detailed description, see the corresponding c file or the doxygen
* generated documents.
* @author Matthias Wauer
* @date 01 Nov 2013
* @brief This module covers the trace functionality for analyzing or debugging purposes.
* By using the main function "trace_MSG" it is possible to print a
* specified trace message asynchronous via the configured call back
* function "sendTraceMsgCbFnc_fnp". So the timing of the reporting context
* (task or interrupt) is influenced as less as possible.
* The trace message will be asynchronously generated by a low prior task.
* A trace message is specified by the following properties:
* - Source (location within the firmware the trace message is generated)
* - Severity (severity of the trace message divided into errors, warnings,
* information and debug information)
* - Trace message (printf format string compatible)
* - Variable number of additional arguments referenced by the Trace message
* The trace output can be filtered by the trace sources and trace severities.
*
* Important notes:
* - The format string itself is not copied into internal buffers. So it has to
* be static. The number of arguments are limited by the definition
* "TRACE_VA_LIST_BUF_SIZE".
* - Strings passed as additional arguments (format specifier %s) are not
* copied into internal buffers. Only the pointers are copied.
* So the passed strings have to be static.
*/
/*--------------------------------------------------------------------------------------*/
/* Copyright (c) 2001...2018 Baker Hughes, a GE company, LLC ("BHGE") (unpublished work).
* All rights reserved. The information contained in this document is confidential and
* proprietary property of BHGE and its affiliates. It is to be used only for the benefit
* of BHGE and may not be distributed, transmitted, reproduced, altered or used for any
* purpose without the express written consent of BHGE. */
/*--------------------------------------------------------------------------------------*/
/****************************************************************************************/
/* Imported header files */
/*****************************************************************************/
/* STDIO.H v6.4.11 */
/* */
/* Copyright (c) 1993-2016 Texas Instruments Incorporated */
/* http://www.ti.com/ */
/* */
/* Redistribution and use in source and binary forms, with or without */
/* modification, are permitted provided that the following conditions */
/* are met: */
/* */
/* Redistributions of source code must retain the above copyright */
/* notice, this list of conditions and the following disclaimer. */
/* */
/* Redistributions in binary form must reproduce the above copyright */
/* notice, this list of conditions and the following disclaimer in */
/* the documentation and/or other materials provided with the */
/* distribution. */
/* */
/* Neither the name of Texas Instruments Incorporated nor the names */
/* of its contributors may be used to endorse or promote products */
/* derived from this software without specific prior written */
/* permission. */
/* */
/* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS */
/* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT */
/* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR */
/* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT */
/* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, */
/* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT */
/* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, */
/* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY */
/* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT */
/* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE */
/* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
/* */
/*****************************************************************************/
/****************************************************************************************/
/**@file tracePrj.h
* @brief This module contains definitions of project specific trace functions
* For detailed description, see the corresponding c file or the doxygen
* generated documents.
* @author Matthias Wauer
* @date 01 Jan 2014
*/
/*--------------------------------------------------------------------------------------*/
/* Copyright (c) 2001...2018 Baker Hughes, a GE company, LLC ("BHGE") (unpublished work).
* All rights reserved. The information contained in this document is confidential and
* proprietary property of BHGE and its affiliates. It is to be used only for the benefit
* of BHGE and may not be distributed, transmitted, reproduced, altered or used for any
* purpose without the express written consent of BHGE. */
/*--------------------------------------------------------------------------------------*/
/****************************************************************************************/
/* Imported include interfaces: */
/****************************************************************************************/
/* Exported constant definitions: */
/*!@brief Definition of maximum length of the source strings */
/*!@brief trace message queue structure data */
/*!@brief trace transmit ready structure data */
/*!@brief maximum trace message length */
/*!@brief Interface to use for trace dump: SCIA */
/*!@brief Interface to use for trace dump: SCIB */
/*!@brief Define Baudrate to 230400 */
/* trace source mapping of library modules */
/*!@brief activate diag.c module trace functionality */
/*!@brief diagnostic module trace source */
/*!@brief assert module trace source */
/*!@brief exception module trace source */
/*!@brief ring buffer module trace source */
/*!@brief system watchdog module trace source */
/*!@brief memdisk module trace source */
/*!@brief activate gencan module trace functionality */
/*!@brief general module can trace source */
/*!@brief eve over module can trace source */
/*!@brief activate EVE2 module trace functionality */
/*!@brief eve2 module trace source */
/*!@brief activate spbuf module trace functionality */
/*!@brief spbuf module trace source */
/*!@brief eds enable trace */
/*!@brief eds trace source */
/*!@brief activate scheduler module trace functionality */
/*!@brief scheduler module trace source */
/*!@brief activate scheduler module trace functionality */
/*!@brief scheduler module trace source */
/*!@brief Defines if parameter handling will be done by EngDB or Excel-list */
/*!@brief Define the default parameter in the trace module which are valid prior the trace
* module is activated. The defines are done in the trace module and must be taken
* from there */
/****************************************************************************************/
/* Exported macro definitions: */
/****************************************************************************************/
/* Exported type definitions: */
/*!---------------------------------------------------------------------------------------
* @brief This enumeration definition for the trace message sources. \n
* Attention: The source enumeration has to match the array indexes of
* the source strings. The enumeration value stands for the
* bit position in the source release mask.
* @author Matthias Wauer
* @date 30 Apr 2014
*//*-----------------------------------------------------------------------------------*/
typedef enum tracePrj_traceSource_tag
{
/** trace message source is undefined (don't change this entry) */
traceprj_SRC_UNDEF = 0,
/** trace message source "Trace" (don't change this entry) */
traceprj_SRC_TRACE,
/** trace message source "System controller" */
traceprj_SRC_SYS_CTRL,
/** trace message source "Diagnostic module" */
traceprj_SRC_DIAG,
/** trace message source "Memory module" */
traceprj_SRC_MEMORY,
/** trace message source "ASSERT" */
traceprj_SRC_ASSERT,
/** system information module */
traceprj_SRC_SYS_INFO,
/** system function mode module */
traceprj_SRC_SYS_FNC_MODE,
/** serial number handler */
traceprj_SRC_SERIAL_NBR,
/** diagnostic converter module */
traceprj_SRC_DIAGCONV,
/** diagnostic memory device */
traceprj_SRC_DIAGDEV,
/** measurement value limit checker */
traceprj_SRC_MEAS_LIMIT_CHK,
/** system watch dog */
traceprj_SRC_SYS_WATCHDOG,
/** peripheral watchdog */
traceprj_SRC_PERIPH_WDOG,
/** Measurement */
traceprj_SRC_MEASURE,
/** Exception handler */
traceprj_SRC_EXCEPTION,
/** EVE over CAN */
traceprj_SRC_EVECAN,
/** EVE 2 protocol handler */
traceprj_SRC_EVE2PROT,
/** EVE 2 SPBuf */
traceprj_SRC_EVE2SPBUF,
/** trace message source publication scheduler */
traceprj_SRC_SCHEDULER,
/** trace message source "Debug purpose" */
traceprj_SRC_DEBUG,
/** trace message source "Hardware Initialization" */
traceprj_SRC_HW,
/** enumeration end marker (don't add entries behind) */
traceprj_SRC_END_MARKER,
/** all trace sources (don't change this entry) */
traceprj_SRC_ALL
}tracePrj_traceSource_t;
//typedef enum traceprj_setting_tag
//{
// traceprj_CAN_SYNCH = 0,
// traceprj_CAN_ASYNCH,
// traceprj_CAN_OFF
//}traceprj_setting_t;
/*!---------------------------------------------------------------------------------------
* @brief Callback function which is called when trace processing is done
* @author Matthias Wauer
* @date 30 Apr 2014
* @return true: success, false: error
*//*-----------------------------------------------------------------------------------*/
typedef bool (*traceprj_transmitDoneCbFnc_t) (void);
/****************************************************************************************/
/* Exported function prototypes: */
extern bool traceprj_Initialize_bol(void);
/****************************************************************************************/
/* Exported data declarations: */
/****************************************************************************************/
/****************************************************************************************/
/**@file osal2.h
* @brief This module contains the os abstraction layer defines and typedefs.
* For detailed description, see the corresponding c file or the doxygen
* generated documents.
* @author Matthias Wauer
* @date 14 Feb 2017
*/
/*--------------------------------------------------------------------------------------*/
/* Copyright (c) 2016...2018 Baker Hughes, a GE company, LLC ("BHGE") (unpublished work).
* All rights reserved. The information contained in this document is confidential and
* proprietary property of BHGE and its affiliates. It is to be used only for the benefit
* of BHGE and may not be distributed, transmitted, reproduced, altered or used for any
* purpose without the express written consent of BHGE. */
/*--------------------------------------------------------------------------------------*/
/****************************************************************************************/
/* Imported include interfaces: */
/****************************************************************************************/
/* Exported constant definitions: */
/* These defines specify the event IDs of the event groups. */
/*!@brief no event */
/*!@brief all events */
/*!@brief event id 0 */
/*!@brief event id 1 */
/*!@brief event id 2 */
/*!@brief event id 3 */
/*!@brief event id 4 */
/*!@brief event id 5 */
/*!@brief event id 6 */
/*!@brief event id 7 */
/*!@brief event id 8 */
/*!@brief event id 9 */
/*!@brief event id 10 */
/*!@brief event id 11 */
/*!@brief event id 12 */
/*!@brief event id 13 */
/*!@brief event id 14 */
/*!@brief event id 15 */
/*!@brief event id 16 */
/*!@brief event id 17 */
/*!@brief event id 18 */
/*!@brief event id 19 */
/*!@brief event id 20 */
/*!@brief event id 21 */
/*!@brief event id 22 */
/*!@brief event id 23 */
/*!@brief event id 24 */
/*!@brief event id 25 */
/*!@brief event id 26 */
/*!@brief event id 27 */
/*!@brief event id 28 */
/*!@brief event id 29 */
/*!@brief event id 30 */
/*!@brief event id 31 */
/*!@brief timeout forever */
/*!@brief no timeout */
/****************************************************************************************/
/* Exported macro definitions: */
/****************************************************************************************/
/* Exported type definitions: */
/*!---------------------------------------------------------------------------------------
* @brief This enumeration describes the OSAL2 modes.
* @author Matthias Wauer
* @date 14 Feb 2017
*//*-----------------------------------------------------------------------------------*/
typedef enum
{
/** The OSAL2 hasn't initialized yet */
osal2_MODE_NOT_INITIALIZED = 0,
/** The OSAL2 is in allocation mode. Memory and Operating system resources can
* be allocated in this mode. */
osal2_MODE_ALLOCATION,
/** The OSAL2 is in operation mode. Operating system resources can be used in
* this mode. */
osal2_MODE_OPERATION,
/** end marker (don't change this entry) */
osal2_MODE_NUM_OF_MODES
}osal2_modes_t;
/*!---------------------------------------------------------------------------------------
* @brief This enumeration describes the result codes.
* @author Matthias Wauer
* @date 14 Feb 2017
*//*-----------------------------------------------------------------------------------*/
typedef enum
{
/** The function has been processed successfully */
osal2_SUCCESS = 0,
/** An unknown error has occurred during function processing. */
osal2_ERROR_UNKNOWN,
/** An invalid parameter has been passed to the function. */
osal2_INVALID_PARAMETER
}osal2_result_t;
/*!---------------------------------------------------------------------------------------
* @brief This enumeration describes the memory management types.
* @author Matthias Wauer
* @date 14 Feb 2017
*//*-----------------------------------------------------------------------------------*/
typedef enum
{
/** The HeapMin is the simplest implementation of all. It is
* designed for applications that generally allocate memory and create module
* instances at runtime, but never delete created instances or free memory
* explicitly. */
osal2_HEAP_MIN = 0,
/** The HeapMem can be considered the most "flexible" because it allows you to
* allocate variable sized blocks.
* When the size of memory requests is not known until runtime, it is ideal to be
* able to allocate exactly how much memory is required each time.
* For example, if a program needs to store an array of objects, and the number
* of objects needed isn't known until the program actually executes, the array will
* likely need to be allocated from a HeapMem.
* The flexibility offered by this management type has a number of performance tradeoffs.
* - External Fragmentation
* Allocating variable-sized blocks can result in fragmentation. As memory
* blocks are "freed" back to the HeapMem, the available memory in the HeapMem
* becomes scattered throughout the heap. The total amount of free space in the
* HeapMem may be large, but because it is not contiguous, only blocks as large
* as the "fragments" in the heap can be allocated. This type of fragmentation is
* referred to as "external" fragmentation because the blocks themselves
* are allocated exactly to size, so the fragmentation is in the overall heap and
* is "external" to the blocks themselves.
* - Non-Deterministic Performance
* As the memory managed by the HeapMem becomes fragmented, the available chunks
* of memory are stored on a linked list. To allocate another block of
* memory, this list must be traversed to find a suitable block. Because this
* list can vary in length, it's not known how long an allocation request will
* take, and so the performance becomes "nondeterministic".
* A number of suggestions can aide in the optimal use of a HeapMem.
* - Larger Blocks First
* If possible, allocate larger blocks first. Previous allocations of small
* memory blocks can reduce the size of the blocks available for larger
* memory allocations.
* - Overestimate Heap Size
* To account for the negative effects of fragmentation, use HeapMem that is
* significantly larger than the absolute amount of memory the
* program will likely need.
* When a block is freed back to HeapMem, HeapMem combines the block with
* adjacent free blocks to make the available block sizes as large as possible. */
osal2_HEAP_MEM
}osal2_heapType_t;
/*!---------------------------------------------------------------------------------------
* @brief This enumeration describes the task states.
* @author Matthias Wauer
* @date 14 Feb 2017
*//*-----------------------------------------------------------------------------------*/
typedef enum osal2_taskState_tag
{
/** task is in "RUNNING" state */
osal2_TASK_RUNNING = 0,
/** task is in "READY" state */
osal2_TASK_READY,
/** task is in "BLOCKED" state */
osal2_TASK_BLOCKED,
/** task is in "TERMINATED" state */
osal2_TASK_TERMINATED,
/** task is in "INACTIVE" state */
osal2_TASK_INACTIVE
}osal2_taskState_t;
/*!---------------------------------------------------------------------------------------
* @brief This enumeration describes the OS thread type
* @author Stephen Krosanke
* @date 04 Jun 2018
*//*-----------------------------------------------------------------------------------*/
typedef enum osal2_threadTyp_tag
{
/** Thread type hardware interrupt */
osal2_THREAD_TYPE_HWI,
/** Thread type software interrupt */
osal2_THREAD_TYPE_SWI,
/** Thread type task */
osal2_THREAD_TYPE_TASK,
/** Thread type main/ startup */
osal2_THREAD_TYPE_MAIN
}osal2_threadTyp_t;
/*!---------------------------------------------------------------------------------------
* @brief This enumeration describes the masking options for hardware interrupts.
* @author Matthias Wauer
* @date 14 Feb 2017
*//*-----------------------------------------------------------------------------------*/
typedef enum osal2_hwiMaskingOption_tag
{
/** no interrupts are disabled */
osal2_HWI_MASK_OPT_NONE = 0,
/** all interrupts are disabled */
osal2_HWI_MASK_OPT_ALL,
/** only this interrupt is disabled */
osal2_HWI_MASK_OPT_SELF,
/** All current and lower priority interrupts are disabled. Only a few targets/devices
* truly support this masking option. For those that don't, this setting is treated
* the same as MaskingOption_SELF */
osal2_HWI_MASK_OPT_LOWER,
/** total number of masking options */
osal2_NUM_OF_MASK_OPT
}osal2_hwiMaskingOption_t;
/*!---------------------------------------------------------------------------------------
* @brief This type defines the heap object.
* @author Matthias Wauer
* @date 14 Feb 2017
*//*-----------------------------------------------------------------------------------*/
typedef struct osal2_heapObj_t* osal2_heapHandle_t;
/*!---------------------------------------------------------------------------------------
* @brief This type defines the task object.
* @author Matthias Wauer
* @date 14 Feb 2017
*//*-----------------------------------------------------------------------------------*/
typedef struct osal2_taskObj_t* osal2_taskHandle_t;
/*!---------------------------------------------------------------------------------------
* @brief This type defines the event group handle to manage 16 events.
* @author Matthias Wauer
* @date 14 Feb 2017
*//*-----------------------------------------------------------------------------------*/
typedef struct osal2_eventGroup16Obj_t* osal2_eventGroup16Handle_t;
/*!---------------------------------------------------------------------------------------
* @brief This type defines the event group handle to manage 32 events.
* @author Matthias Wauer
* @date 14 Feb 2017
*//*-----------------------------------------------------------------------------------*/
typedef struct osal2_eventGroup32Obj_tag* osal2_eventGroup32Handle_t;
/*!---------------------------------------------------------------------------------------
* @brief This type defines the semaphore handle.
* @author Matthias Wauer
* @date 14 Feb 2017
*//*-----------------------------------------------------------------------------------*/
typedef struct osal2_semaphoreObj_t* osal2_semaphoreHandle_t;
/*!---------------------------------------------------------------------------------------
* @brief This type defines the software timer handle.
* @author Matthias Wauer
* @date 14 Feb 2017
*//*-----------------------------------------------------------------------------------*/
typedef struct osal2_timerObj_tag* osal2_timerHandle_t;
/*!---------------------------------------------------------------------------------------
* @brief This type defines the queue handle.
* @author Matthias Wauer
* @date 14 Feb 2017
*//*-----------------------------------------------------------------------------------*/
typedef struct osal2_queueObj_t* osal2_queueHandle_t;
/*!---------------------------------------------------------------------------------------
* @brief This type defines the hardware interrupt (HWI) handle.
* @author Matthias Wauer
* @date 14 Feb 2017
*//*-----------------------------------------------------------------------------------*/
typedef struct osal2_hwiObj_t* osal2_hwiHandle_t;
/*!---------------------------------------------------------------------------------------
* @brief This type defines the hardware interrupt (HWI) restore key for disabling,
* enabling and restoring the interrupt state.
* @author Matthias Wauer
* @date 21 Feb 2019
*//*-----------------------------------------------------------------------------------*/
typedef struct osal2_hwiRestoreKeyObj_t* osal2_hwiRestoreKey_t;
/*!---------------------------------------------------------------------------------------
* @brief This type defines task function.
* @author Matthias Wauer
* @date 14 Feb 2017
* @param[in] userArg_vdpc user argument
*//*-----------------------------------------------------------------------------------*/
typedef void (*osal2_taskFunction_t) (const void* const userArg_vdpc);
/*!---------------------------------------------------------------------------------------
* @brief This type defines the timer expire callback function.
* @author Matthias Wauer
* @date 14 Feb 2017
* @param[in] userArg_vdpc user argument
*//*-----------------------------------------------------------------------------------*/
typedef void (*osal2_timerCbFunction_t) (const void* const userArg_vdpc);
/*!---------------------------------------------------------------------------------------
* @brief This type defines the hardware interrupt callback function.
* @author Matthias Wauer
* @date 14 Feb 2017
* @param[in] userArg_vdpc user argument
*//*-----------------------------------------------------------------------------------*/
typedef void (*osal2_hwiIsr_t) (const void* const userArg_vdpc);
/*!---------------------------------------------------------------------------------------
* @brief This structure defines the parameters to create a heap.
* @author Matthias Wauer
* @date 14 Feb 2017
*//*-----------------------------------------------------------------------------------*/
typedef struct osal2_heapParam_tag
{
/** heap type (default: osal2_HEAP_MIN) */
osal2_heapType_t heapType_en;
/** pointer to the instance name which has to be static and null terminated */
const char* heapName_chpc;
/** location of the memory to be managed */
void* heapMemory_vdp;
/** size of heap memory in number of bytes */
uint32_t heapMemorySize_u32;
}osal2_heapParam_t;
/*!---------------------------------------------------------------------------------------
* @brief This structure defines the parameters to create a task.
* @author Matthias Wauer
* @date 14 Feb 2017
*//*-----------------------------------------------------------------------------------*/
typedef struct osal2_taskParam_tag
{
/** task function */
osal2_taskFunction_t taskFunction_fnp;
/** pointer to the instance name which has to be static and null terminated */
const char* taskName_chpc;
/** stack size in number of bytes */
uint32_t stackSize_u32;
/** task priority (based on the operating system priority) */
uint16_t taskPriority_u16;
/** user defined argument passes to the task function (optional) */
const void* userArg_vdpc;
/** heap memory handle to allocate the stack memory, NULL when the default
* OS heap shall be used */
osal2_heapHandle_t heapHandle_xp;
}osal2_taskParam_t;
/*!---------------------------------------------------------------------------------------
* @brief This structure defines the parameters to create a event group 16.
* @author Matthias Wauer
* @date 14 Feb 2017
*//*-----------------------------------------------------------------------------------*/
typedef struct osal2_eventGroup16Param_tag
{
/** pointer to the instance name which has to be staticand null terminated */
const char* eventGroupName_chpc;
}osal2_eventGroup16Param_t;
/*!---------------------------------------------------------------------------------------
* @brief This structure defines the parameters to create a event group 32.
* @author Matthias Wauer
* @date 14 Feb 2017
*//*-----------------------------------------------------------------------------------*/
typedef struct osal2_eventGroup32Param_tag
{
/** pointer to the instance name which has to be staticand null terminated */
const char* eventGroupName_chpc;
}osal2_eventGroup32Param_t;
/*!---------------------------------------------------------------------------------------
* @brief This structure defines the parameters to create a binary semaphore.
* @author Matthias Wauer
* @date 14 Feb 2017
*//*-----------------------------------------------------------------------------------*/
typedef struct osal2_semaphoreBinaryParam_tag
{
/** pointer to the instance name which has to be staticand null terminated */
const char* semaphoreName_chpc;
/** initial state of the semaphore */
bool initialLocked_bol;
/** activation of the priority dependent ordering for waiting tasks */
bool waitingTypePrioEna_bol;
}osal2_semaphoreBinaryParam_t;
/*!---------------------------------------------------------------------------------------
* @brief This structure defines the parameters to create a counting semaphore.
* @author Matthias Wauer
* @date 14 Feb 2017
*//*-----------------------------------------------------------------------------------*/
typedef struct osal2_semaphoreCountingParam_tag
{
/** pointer to the instance name which has to be staticand null terminated */
const char* semaphoreName_chpc;
/** count value assigned to the semaphore when it is created */
uint16_t initialCount_u16;
/** activation of the priority dependent ordering for waiting tasks */
bool waitingTypePrioEna_bol;
}osal2_semaphoreCountingParam_t;
/*!---------------------------------------------------------------------------------------
* @brief This structure defines the parameters to create a queue.
* @author Matthias Wauer
* @date 14 Feb 2017
*//*-----------------------------------------------------------------------------------*/
typedef struct osal2_queueParam_tag
{
/** pointer to the instance name which has to be staticand null terminated */
const char* queueName_chpc;
/** maximum number of elements the queue can hold at any one time */
uint16_t numberOfElements_u16;
/** the size, in bytes, required to hold each element in the queue */
uint16_t elementSize_u16;
/** heap memory handle to allocate the queue memory, NULL when the default OS heap
* shall be used */
osal2_heapHandle_t heapHandle_xp;
}osal2_queueParam_t;
/*!---------------------------------------------------------------------------------------
* @brief This enumeration defines the software timer modes.
* @author Matthias Wauer
* @date 14 Feb 2017
*//*-----------------------------------------------------------------------------------*/
typedef enum osal2_timerMode_tag
{
/** When the software timer expires the specified callback function will be
* called.
* Note: Keep the callback function as short as possible because it is
* called from software interrupt context (a task which has the highest
* priority of all tasks). */
osal2_TIMER_MODE_CALLBACK = 0u,
/** When the software timer expires the specified events will be sent to the
* specified event group (16 bit version). */
osal2_TIMER_MODE_EVENT16,
/** When the software timer expires the specified events will be sent to the
* specified event group (32 bit version). */
osal2_TIMER_MODE_EVENT32,
/** end marker (don't change this entry) */
osal2_NUM_OF_TIMER_MODES
}osal2_timerMode_t;
/*!---------------------------------------------------------------------------------------
* @brief This structure defines the detailed parameters for timer mode
* "osal2_TIMER_MODE_CALLBACK".
* @author Matthias Wauer
* @date 14 Feb 2017
*//*-----------------------------------------------------------------------------------*/
typedef struct osal2_timerCallback_tag
{
/** pointer to the function which will be called when the timer expires */
osal2_timerCbFunction_t cbFunc_fnp;
/** user defined argument passed to the callback function */
const void* userArg_vdpc;
}osal2_timerCallback_t;
/*!---------------------------------------------------------------------------------------
* @brief This structure defines the detailed parameters for timer mode
* "osal2_TIMER_MODE_EVENT16".
* @author Matthias Wauer
* @date 14 Feb 2017
*//*-----------------------------------------------------------------------------------*/
typedef struct osal2_timerEvent16_tag
{
/** event group handle (16 bit version) */
osal2_eventGroup16Handle_t eventGroup16_xp;
/** events to set when the timer expires (see event definitions in this file) ´*/
uint32_t eventsToSet_u32;
}osal2_timerEvent16_t;
/*!---------------------------------------------------------------------------------------
* @brief This structure defines the detailed parameters for timer mode
* "osal2_TIMER_MODE_EVENT32".
* @author Matthias Wauer
* @date 14 Feb 2017
*//*-----------------------------------------------------------------------------------*/
typedef struct osal2_timerEvent32_tag
{
/** event group handle (32 bit version) */
osal2_eventGroup32Handle_t eventGroup32_xp;
/** events to set when the timer expires (see event definitions in this file) ´*/
uint32_t eventsToSet_u32;
}osal2_timerEvent32_t;
/*!---------------------------------------------------------------------------------------
* @brief This structure describes the mode specific timer parameters.
* @author Matthias Wauer
* @date 14 Feb 2017
*//*-----------------------------------------------------------------------------------*/
typedef struct timerModeParam_tag
{
/** parameters for timer mode "osal2_TIMER_MODE_CALLBACK" */
osal2_timerCallback_t callback_st;
/** parameters for timer mode "osal2_TIMER_MODE_EVENT16" */
osal2_timerEvent16_t event16_st;
/** parameters for timer mode "osal2_TIMER_MODE_EVENT32" */
osal2_timerEvent32_t event32_st;
}timerModeParam_t;
/*!---------------------------------------------------------------------------------------
* @brief This structure defines the parameters to create a timer.
* @author Matthias Wauer
* @date 14 Feb 2017
*//*-----------------------------------------------------------------------------------*/
typedef struct osal2_timerParam_tag
{
/** pointer to the instance name which has to be static and null terminated */
const char* timerName_chpc;
/** period of the timer in milliseconds */
uint32_t periodMs_u32;
/** If autoReload_bol is set to 'true', then the timer will expire repeatedly with
* a frequency set by the timeoutMs_u32c parameter. If autoReload_bol is set to
* 'false', then the timer will be a one-shot and enter the dormant state after it
* expires. */
bool autoReload_bol;
/** timer mode selection */
osal2_timerMode_t timerMode_en;
/** mode specific timer parameters (have to be set depending on the timer mode
* selection)
* Note: This is not a union because otherwise the parameters can't be validated */
timerModeParam_t modeParam_st;
}osal2_timerParam_t;
/*!---------------------------------------------------------------------------------------
* @brief This structure defines the parameters to create a HWI.
* @author Matthias Wauer
* @date 14 Feb 2017
*//*-----------------------------------------------------------------------------------*/
typedef struct osal2_hwiParam_tag
{
/** pointer to the instance name which has to be static and null terminated */
const char* hwiName_chpc;
/** hardware specific interrupt identification number */
uint16_t interruptId_u16;
/** pointer to the hardware interrupt service routing which will be called when
* the interrupt has been triggered. */
osal2_hwiIsr_t hwiIsr_fnp;
/** hardware interrupt masking option */
osal2_hwiMaskingOption_t maskingOption_en;
/** automatic hardware interrupt acknowledge enabling */
bool autoAcknowledge_bol;
/** user argument passed to the interrupt service routine (optional) */
const void* userArg_vdpc;
}osal2_hwiParam_t;
/*!---------------------------------------------------------------------------------------
* @brief This structure defines the task statistic data.
* @author Matthias Wauer
* @date 14 Feb 2017
*//*-----------------------------------------------------------------------------------*/
typedef struct osal2_taskStat_tag
{
/** task handle */
osal2_taskHandle_t taskHandle_xp;
/** pointer to the task name string */
const char* taskName_chpc;
/** task priority */
uint8_t taskPriority_u8;
/** task state */
osal2_taskState_t taskState_en;
/** task stack start pointer */
void* taskStackStartPtr_vp;
/** task stack stack length */
uint32_t taskStackSize_u32;
/** task stack usage peak */
uint32_t taskStackPeak_u32;
}osal2_taskStat_t;
/****************************************************************************************/
/* Exported function prototypes: */
/*-- General ---------------------------------------------------------------------------*/
extern bool osal2_Initialize_bol (void);
extern bool osal2_SetMode_bol (const osal2_modes_t osalMode_enc);
extern osal2_modes_t osal2_GetMode_en (void);
extern osal2_result_t osal2_GetResult_en (osal2_taskHandle_t taskHandle_x);
/*-- System ----------------------------------------------------------------------------*/
extern uint32_t osal2_GetSysClockFreq_u32 (void);
/*-- Heap ------------------------------------------------------------------------------*/
extern void osal2_HeapInitParams_vd (osal2_heapParam_t* const heapParam_stcp);
extern osal2_heapHandle_t osal2_HeapCreate_xp(const osal2_heapParam_t* const heapParam_stcpc);
/*-- Memory ----------------------------------------------------------------------------*/
extern void* osal2_MemoryAlloc_vdp(osal2_heapHandle_t heapHandle_x,
const uint32_t memSize_u32c);
bool osal2_MemoryFree_bol (osal2_heapHandle_t heapHandle_x,
void* const mem_vdpc,
const uint32_t memSize_u32c);
extern uint32_t osal2_MemorySizeOfFree_u32(osal2_heapHandle_t heapHandle_x);
/*-- Task handling ---------------------------------------------------------------------*/
extern void osal2_TaskInitParams_vd (osal2_taskParam_t* const taskParam_stcp);
extern osal2_taskHandle_t osal2_TaskCreate_xp (const osal2_taskParam_t* const taskParam_stcpc);
extern bool osal2_TaskSleep_bol (const uint32_t delayMs_u32c);
extern uint16_t osal2_TaskPriorityGet_u16 (osal2_taskHandle_t taskHandle_x);
extern bool osal2_TaskPrioritySet_bol (osal2_taskHandle_t taskHandle_x,
const uint16_t newPriority_u16c);
extern bool osal2_TaskStart_bol (osal2_taskHandle_t taskHandle_x);
extern bool osal2_TaskStop_bol (osal2_taskHandle_t taskHandle_x);
extern void osal2_TaskSchedulerStart_vd (void);
extern void osal2_TaskSchedulerStop_vd (void);
extern uint16_t osal2_TaskGetNumberOfTasks_u16(void);
extern bool osal2_TaskGetStatistic_bol(osal2_taskHandle_t taskHandle_x,
osal2_taskStat_t* const taskStatistic_stcp);
extern osal2_threadTyp_t osal2_GetThreadType_en(void);
extern osal2_taskHandle_t osal2_TaskGetFirstTaskHandle_xp (void);
extern osal2_taskHandle_t osal2_TaskGetNextTaskHandle_xp (void);
extern osal2_taskHandle_t osal2_TaskGetCurrentTaskHandle_xp (void);
extern osal2_taskState_t osal2_TaskGetState_en (osal2_taskHandle_t taskHandle_x);
/*-- Event handling (16 bit event group) -----------------------------------------------*/
extern void osal2_EventGroup16InitParams_vd (
osal2_eventGroup16Param_t* const eventGroup16Param_stcp);
extern osal2_eventGroup16Handle_t osal2_EventGroup16Create_xp (
const osal2_eventGroup16Param_t* const eventGroup16Param_stcpc);
extern bool osal2_EventGroup16Signal_bol (osal2_eventGroup16Handle_t eventGroupHandle_x,
const uint32_t eventsToSignal_u32c);
extern uint32_t osal2_EventGroup16Wait_u32 (osal2_eventGroup16Handle_t eventGroupHandle_x,
const uint32_t eventsToWaitFor_u32c,
const bool waitForAllEvents_bolc,
const uint32_t timeoutMs_u32c);
extern const char* osal2_EventGroup16GetName_chpc (
osal2_eventGroup16Handle_t eventGroupHandle_x);
/*-- Event handling (32 bit event group) -----------------------------------------------*/
extern void osal2_EventGroup32InitParams_vd (
osal2_eventGroup32Param_t* const eventGroup32Param_stcp);
extern osal2_eventGroup32Handle_t osal2_EventGroup32Create_xp (
const osal2_eventGroup32Param_t* const eventGroup32Param_stcpc);
extern bool osal2_EventGroup32Signal_bol (
osal2_eventGroup32Handle_t eventGroupHandle_x,
const uint32_t eventsToSignal_u32c);
extern uint32_t osal2_EventGroup32Wait_u32 (
osal2_eventGroup32Handle_t eventGroupHandle_x,
uint32_t eventsToWaitFor_u32,
const bool waitForAllEvents_bolc,
const uint32_t timeoutMs_u32c);
extern const char* osal2_EventGroup32GetName_chpc (
osal2_eventGroup32Handle_t eventGroupHandle_x);
/*-- Semaphore handling ----------------------------------------------------------------*/
extern void osal2_SemaphoreBinaryInitParams_vd (
osal2_semaphoreBinaryParam_t* const semaphoreBinaryParam_stcp);
extern osal2_semaphoreHandle_t osal2_SemaphoreBinaryCreate_xp (
const osal2_semaphoreBinaryParam_t* const semaphoreBinaryParam_stcpc);
extern void osal2_SemaphoreCountingInitParams_vd (
osal2_semaphoreCountingParam_t* const semaphoreCountingParam_stcp);
extern osal2_semaphoreHandle_t osal2_SemaphoreCountingCreate_xp (
const osal2_semaphoreCountingParam_t* const semaphoreCountingParam_stcpc);
extern bool osal2_SemaphoreLock_bol (osal2_semaphoreHandle_t semaphoreHandle_x,
const uint32_t timeoutMs_u32c);
extern bool osal2_SemaphoreUnlock_bol (
osal2_semaphoreHandle_t semaphoreHandle_x);
extern uint16_t osal2_SemaphoreGetCount_u16 (
osal2_semaphoreHandle_t semaphoreHandle_x);
extern const char* osal2_SemaphoreGetName_chpc (
osal2_semaphoreHandle_t semaphoreHandle_x);
/*-- Queue handling --------------------------------------------------------------------*/
extern void osal2_QueueInitParams_vd (osal2_queueParam_t* const queueParam_stcp);
extern osal2_queueHandle_t osal2_QueueCreate_xp (
const osal2_queueParam_t* const queueParam_stcpc);
extern bool osal2_QueueSend_bol (osal2_queueHandle_t queueHandle_x,
const void* newQueueElement_vdcpc,
const uint32_t timeoutMs_u32c);
extern bool osal2_QueueReceive_bol (osal2_queueHandle_t queueHandle_x,
void* const queueElement_vdcp,
const uint32_t timeoutMs_u32c);
extern uint16_t osal2_QueueElementsWaiting_u16 (
osal2_queueHandle_t queueHandle_x);
extern uint16_t osal2_QueueElementsFree_u16 (osal2_queueHandle_t queueHandle_x);
extern const char* osal2_QueueGetName_chcp (osal2_queueHandle_t queueHandle_x);
/*-- Software timer handling -----------------------------------------------------------*/
extern void osal2_TimerInitParams_vd (osal2_timerParam_t* const timerParam_stcp);
extern osal2_timerHandle_t osal2_TimerCreate_xp (
const osal2_timerParam_t* const timerParam_stcpc);
extern bool osal2_TimerStart_bol (osal2_timerHandle_t timerHandle_x);
extern bool osal2_TimerStop_bol (osal2_timerHandle_t timerHandle_x);
extern bool osal2_TimerReset_bol (osal2_timerHandle_t timerHandle_x);
extern const char* osal2_TimerGetName_chcp (osal2_timerHandle_t timerHandle_x);
extern uint32_t osal2_TimerGetPeriod_u32 (osal2_timerHandle_t timerHandle_x);
extern bool osal2_TimerChangePeriod_bol (const uint32_t newPeriodMs_u32,
osal2_timerHandle_t timerHandle_x);
extern bool osal2_TimerChangeEvent_bol (uint32_t eventsToSet_u32,
osal2_timerHandle_t timerHandle_x);
extern bool osal2_TimerIsTimerActive_bol (osal2_timerHandle_t timerHandle_x);
/*-- Hardware interrupt handling -------------------------------------------------------*/
extern void osal2_HwiInitParams_vd (osal2_hwiParam_t* const hwiParam_stcp);
extern osal2_hwiHandle_t osal2_HwiCreate_xp (const osal2_hwiParam_t* const hwiParam_stcpc);
extern void osal2_HwiEnable_vd ( osal2_hwiHandle_t hwiHandle_x);
extern void osal2_HwiDisable_vd ( osal2_hwiHandle_t hwiHandle_x);
extern void osal2_HwiClear_vd ( osal2_hwiHandle_t hwiHandle_x);
extern osal2_hwiIsr_t osal2_HwiGetIsr_fnp ( osal2_hwiHandle_t hwiHandle_x);
extern void osal2_HwiSetIsr_vd (osal2_hwiHandle_t hwiHandle_x,
const osal2_hwiIsr_t isrFunc_fncpc);
extern osal2_hwiRestoreKey_t osal2_HwiEnableAllCreated_x (void);
extern osal2_hwiRestoreKey_t osal2_HwiDisableAllCreated_x (void);
extern void osal2_HwiRestoreAllCreated_vd (const osal2_hwiRestoreKey_t hwiRestoreKey_x);
extern void osal2_HwiTriggerTest_vd (osal2_hwiHandle_t hwiHandle_x);
/****************************************************************************************/
/* Exported data declarations: */
/****************************************************************************************/
/****************************************************************************************/
/* Exported constant definitions: */
/*!@brief default value for the maximum source string length */
/*! @brief Definition of maximum supported number of trace sources */
/* The following defines specify the trace message colors and signals that
* can be used to highlight the user trace message.
* Example: trace_MSG(traceprj_SRC_TRACE, trace_SEV_INFO,
* trace_COL_HCYN "Hello world" trace_COL_RST);
*/
/*!@brief reset color to default */
/*!@brief black color */
/*!@brief red color */
/*!@brief green color */
/*!@brief yellowcolor */
/*!@brief blue color */
/*!@brief purple color */
/*!@brief cyan color */
/*!@brief white color */
/*!@brief bright blackcolor */
/*!@brief bright red color */
/*!@brief bright green color */
/*!@brief bright yellow color */
/*!@brief brighr blue color */
/*!@brief bright purple color */
/*!@brief bright cyan color */
/*!@brief bright white color */
/*!@brief PC bell signal */
/****************************************************************************************/
/* Global function like macro defines (to be avoided) */
/*!---------------------------------------------------------------------------------------
* @brief This macro prints the specified trace message asynchronous via the
* specified call back function. The message will only be processed if the
* source and the source specific severity is released.
* @author Matthias Wauer
* @date 30 Apr 2014
*//*-----------------------------------------------------------------------------------*/
/****************************************************************************************/
/* * Exported type definitions: (enum, struct, union) */
/*!---------------------------------------------------------------------------------------
* @brief This enumeration defines the message severities.
* @author Matthias Wauer
* @date 30 Apr 2014
*//*-----------------------------------------------------------------------------------*/
typedef enum trace_Severity_tag
{
/** severity "Notification" (lowest priority) */
trace_SEV_UNDEF = 0,
/** severity "Notification" (lowest priority) */
trace_SEV_DEBUG,
/** severity "Information" */
trace_SEV_INFO,
/** severity "Warning" */
trace_SEV_WARN,
/** severity "ERROR" */
trace_SEV_ERR,
/** severity "CRITICAL" */
trace_SEV_CRIT,
/** end marker */
trace_SEV_END_MARKER
}trace_Severity_t;
/*!---------------------------------------------------------------------------------------
* @brief This enumeration defines the trace message output formats.
* @author Matthias Wauer
* @date 28 Now 2017
*//*-----------------------------------------------------------------------------------*/
typedef enum trace_OutputFormat_tag
{
/** Full output format of the trace message
(Node Name Message Count Time Stamp Source Severity User Text) */
trace_OUTFORM_FULL = 0,
/** Short output format of the trace message
* Time Stamp (severity dependent colored)> User Text) */
trace_OUTFORM_SHORT,
/** end marker */
trace_OUTFORM_END_MARKER
}trace_OutputFormat_t;
/*!---------------------------------------------------------------------------------------
* @brief This type definition is the call back function to send trace message data.
* @author Matthias Wauer
* @date 30 Apr 2014
*//*-----------------------------------------------------------------------------------*/
typedef bool (*trace_transmitTraceMsgCbFnc_t) (const uint8_t* const traceMsgData_u8cpc,
uint16_t traceMsgDataLen_u16);
/*!---------------------------------------------------------------------------------------
* @brief This type definition is the call back function to get the time information
* in milliseconds.
* @author Matthias Wauer
* @date 30 Apr 2014
*//*-----------------------------------------------------------------------------------*/
typedef uint32_t (*trace_getTimeInMsCbFnc_t) (void);
/*!---------------------------------------------------------------------------------------
* @brief This structure translates a trace source identification number into the
* corresponding trace source name.
* @author Matthias Wauer
* @date 02 Oct 2014
*//*-----------------------------------------------------------------------------------*/
typedef struct trace_TraceSrcIdTrans_tag
{
/** trace source identification */
uint16_t traceSrcId;
/** trace source name */
uint8_t sourceString_u8a[(12U)];
}trace_TraceSrcIdTrans_t;
/*!---------------------------------------------------------------------------------------
* @brief This structure defines the parameterization of the trace module.
* @author Matthias Wauer
* @date 30 Apr 2014
*//*-----------------------------------------------------------------------------------*/
typedef struct trace_Parameter_tag
{
/** priority of the trace task */
uint8_t taskPriority_u8;
/** maximum trace message length (number of characters) */
uint8_t maxTraceMsgLen_u8;
/** trace message queue size (number of trace messages) */
uint8_t traceMsgQueueSize_u8;
/** external thread usage
* (false = internal thread is used;
* true = trace messages are processed by an external thread) */
bool useExternalThread_bol;
/** call back function called when new trace message data are available */
trace_transmitTraceMsgCbFnc_t sendTraceMsgCbFnc_fnp;
/** call back function to get the time information in milliseconds (optional) */
trace_getTimeInMsCbFnc_t getTimeInMsCbFnc_fnp;
/** pointer to the node name string */
const void* nodeNamePtr_vdcp;
/** pointer to the welcome string */
const void* welcomeMsgPtr_vdcp;
/** identification of the non-volatile trace parameter (usually defined in paramif.h) */
uint16_t nonVolParamId_u16;
/** trace source identification translation list (trace source ID -> trace source name)
* Note: Sorting of this list is not absolutely necessary but it can accelerate the
* performance. */
const trace_TraceSrcIdTrans_t* traceSrcIdTransList_stp;
/** number of elements in the trace source identification translation list */
uint16_t noOfTraceSrcIdTransElem_u16;
/** format of the trace message (default: trace_OUTFORM_FULL) */
trace_OutputFormat_t outputFormat_en;
/** heap handle used to allocate the memory for the internal queue (default: NULL) */
osal2_heapHandle_t heapHandle_xp;
}trace_Parameter_t;
/****************************************************************************************/
/* Global data allusions (allows type checking, definition in c file) */
/* pointer to the internal source release mask (used external) */
extern uint32_t** const trace_srcRelMask_u32cpp;
/* pointer to the severity release mask array (one for each source, used external) */
extern uint16_t** const trace_sevRelMask_u16cpp;
/****************************************************************************************/
/* Exported function prototypes: */
extern void trace_InitParam_vd (trace_Parameter_t* const traceParameter_stpc);
extern bool trace_Initialise_bol (const trace_Parameter_t* const traceParameter_stp);
extern bool trace_Activate_bol (void);
extern bool trace_Deactivate_bol (void);
extern bool trace_PrcPendTraceMessages_bol (const osalconfig_timeoutMs_t timeout_stc);
extern const void* trace_GetPendTraceMsgFailsafe_bol (uint16_t* const traceMsgDataLen_u16cp);
extern bool trace_TraceMsg_bol (const tracePrj_traceSource_t source_enm,
const trace_Severity_t severity_enm,
const char* const formatString_u8cpc,
...)
__attribute__((__format__ (__printf__, 3, 4)));
extern void trace_ModifySourceRelMask_vd (const bool addFlags_bolc,
const uint32_t sourceRelMask_u32c);
extern void trace_ModifySeverityRelMask_vd (const tracePrj_traceSource_t traceSource_enc,
const bool addFlags_bolc,
const uint16_t severityRelMask_u16c);
extern void trace_ModifyAllSeverityRelMasks_vd (const trace_Severity_t severity_enc,
const bool releaseSeverity_bolc);
extern bool trace_SetEventTxComplete_bol (void);
extern uint32_t trace_GetSourceRelMask_u32 (void);
extern uint16_t trace_GetSeverityRelMask_u16 (const tracePrj_traceSource_t traceSource_enc);
extern void * trace_GetDeInstance_vdp (const cdmnode_nodeId_t nodeId_stc,
const cdmde_deId_t deId_stc);
extern void * trace_GetSourceNameInstance_vdp (const cdmnode_nodeId_t nodeId_stc,
const cdmde_deId_t deId_stc);
extern void * trace_GetSourceSeverityInstance_vdp(const cdmnode_nodeId_t instanceId_stc,
const cdmde_deId_t deId_stc);
/****************************************************************************************/
/* Exported data declarations: */
/****************************************************************************************/
/****************************************************************************************/
// We have some values that use only 8bits, the input array is all
// 16bit values, so it can be handled in one convenient array.
static const uint16_t fitBit_u16sca[31] =
{((uint16_t)16), ((uint16_t)16), ((uint16_t)16), ((uint16_t)16),
((uint16_t)16), ((uint16_t)16), ((uint16_t)16), ((uint16_t)16),
((uint16_t)16), ((uint16_t)16), ((uint16_t)16), ((uint16_t)16),
((uint16_t)16), ((uint16_t)16), ((uint16_t)16), ((uint16_t)16),
((uint16_t)16), ((uint16_t)16), ((uint16_t)16), ((uint16_t)16),
((uint16_t)16), ((uint16_t)16), ((uint16_t)16), ((uint16_t)16),
((uint16_t)16), ((uint16_t)16), ((uint16_t)16), ((uint16_t)16),
((uint16_t)16), ((uint16_t)16), ((uint16_t)16)};
uint32_t compPrcTime_u32=0;
float *extRamDataIn = 0;
/****************************************************************************************/
/* Local function like macro defines (to be avoided): */
//#pragma DATA_SECTION(dataProcess, "globalExtRam")
//dataProcess_t dataProcess;
#pragma DATA_SECTION(CompParam_st,"globalExtRam")
compression_param_t CompParam_st;
/****************************************************************************************/
/* Local type definitions (enum, struct, union): */
/****************************************************************************************/
/* Global data definitions (unlimited visibility, to be avoided): */
/****************************************************************************************/
/* Local function prototypes (always use static to limit visibility): */
/****************************************************************************************/
/* Local data definitions:
* (always use static: limit visibility, const: read only, volatile: non-optimizable) */
/*!@brief default parameters */
//static const compression_param_t paramDef_stsc =
// {};
/*!@brief module state */
//static moduleStates_t moduleState_ens = MOD_STAT_NOT_INITIALIZED;
/*!@brief module internal data */
//static moduleData_t moduleData_sts;
/****************************************************************************************/
/* Global functions (unlimited visibility): */
sysinfo_statObjHdl_t * soundtrack_dataCompression_stps;
sysinfo_statObjParam_t compObjPrm_st;
/**---------------------------------------------------------------------------------------
* @brief This function initializes the module internal data. It has to be called
* before any other function call of this module.
* @author sahosou
* @date 07 Okt. 2020
* @param[out] param_stpc Pointer to the parameter structure of the module
* @return This function returns 'true' if the function processing was successful.
* In all other cases it returns 'false'.
*//*-----------------------------------------------------------------------------------*/
bool compression_InitializeParameters_bol (compression_param_t* const param_stpc)
{
// /* check the parameters */
// assertion_Check (NULL != param_stpc);
//
// /* set parameter to default */
// (void) memcpy(param_stpc, ¶mDef_stsc, sizeof(*param_stpc));
return ((bool)(1 == 1));
}
/**---------------------------------------------------------------------------------------
* @brief This function initializes the module internal data and creates necessary
* ressources. It has to be called after the parameter initialization function
* 'compression_InitializeParameters_bol' and before any other function call
* of this module.
* @author sahosou
* @date 07 Okt. 2020
* @param[in] param_stpc module parameters (set to NULL to use default parameters)
* @return This function returns 'true' if the function processing was successful.
* In all other cases it returns 'false'.
*//*-----------------------------------------------------------------------------------*/
bool compression_Initialize_bol(void)
{
bool success_bol = (bool)(1 == 0);
// assertion_Check (MOD_STAT_NOT_INITIALIZED == moduleState_ens);
//
// /* reset the internal module data */
(void) memset (&CompParam_st, 0x00, sizeof(CompParam_st));
/* register the system timer statistic object */
compObjPrm_st.activated_bol = (bool)(1 == 1);
compObjPrm_st.cycTimeWarnThres_u32 = (2000000u);
compObjPrm_st.prcTimeWarnThres_u32 = (10000uL);
compObjPrm_st.maxSucThresViol_u16 = 5u;
compObjPrm_st.cycTimeWarnEvt_fnp = 0;
compObjPrm_st.prcTimeWarnEvt_fnp = 0;
soundtrack_dataCompression_stps = sysinfo_RegStatObj_stp(&compObjPrm_st);
if (!(soundtrack_dataCompression_stps != 0)) { assertion_PrcAssertion_vd("unknown", 0u, "unknown"); } (void)(0);
//
// /* if parameters are not specified */
// if (NULL == param_stpc)
// {
// /* take default parameters */
// param_stpc = ¶mDef_stsc;
// }
//
//
// /* check here the initialization of the internal data structure in moduleData_sts */
// if ( 0U != moduleData_sts.modulePrivat_u16 )
// {
// trace_MSG (traceprj_SRC_UNDEF, trace_SEV_INFO, "Module successfully initialized");
//
// /* mark this module as initialized */
// moduleState_ens = MOD_STAT_INITIALIZED;
//
// success_bol = true;
// }
// else
// {
// trace_MSG (traceprj_SRC_UNDEF, trace_SEV_ERR, "Module initialization failed");
// }
return (success_bol);
}
/**---------------------------------------------------------------------------------------
* @brief This function activates the module functionality.
* @author sahosou
* @date 07 Okt. 2020
* @return This function returns 'true' if the function processing was successful.
* In all other cases it returns 'false'.
*//*-----------------------------------------------------------------------------------*/
//bool compression_Activate_bol (void)
//{
// bool success_bol = false;
//
// /* if the module is in the correct state */
// assertion_Check (0u != ((uint16_t) moduleState_ens & ((uint16_t) MOD_STAT_INITIALIZED |
// (uint16_t) MOD_STAT_ACTIVATED |
// (uint16_t) MOD_STAT_DEACTIVATED)));
// /* if no error has occurred */
// if (success_bol)
// {
// trace_MSG (traceprj_SRC_UNDEF, trace_SEV_INFO, "Module activated");
//
// /* mark this module as activated */
// moduleState_ens = MOD_STAT_ACTIVATED;
// }
//
// return(success_bol);
//}
/**---------------------------------------------------------------------------------------
* @brief This function deactivates the module functionality.
* @author sahosou
* @date 07 Okt. 2020
* @return This function returns 'true' if the function processing was successful.
* In all other cases it returns 'false'.
*//*-----------------------------------------------------------------------------------*/
//bool compression_Deactivate_bol (void)
//{
// bool success_bol = true;
//
// /* if the module is in the correct state */
// assertion_Check (0u != ((uint16_t) moduleState_ens & ((uint16_t) MOD_STAT_ACTIVATED)));
//
// /* Deactivate the module e.g. stop task or other elements */
// trace_MSG (traceprj_SRC_UNDEF, trace_SEV_INFO, "Module deactivated");
//
// /* mark this module as deactivated */
// moduleState_ens = MOD_STAT_DEACTIVATED;
//
// return(success_bol);
//}
//void getScaledRowData(uint32_t *input_fa)
//{
// for(uint16_t cnt=0; cnt<=8192; cnt++)
// {
// //dataProcess.workingBuf[cnt]=0;
// CompParam_st.workingBuf[cnt]=*input_fa;
// input_fa++;
// }
//}
/**---------------------------------------------------------------------------------------
* @brief This function gets the maximum absolute row data.
* @author sahosou
* @date 07 Okt. 2020
* @param[in] var1 pointer to the input floating point array located in Ext-RAM
* @param[in] maxAbsRowData pointer to maxAbsRowData[16]
*//*-----------------------------------------------------------------------------------*/
static void getMaxAbsRowData(const float *var1, float *maxAbsRowData)
{
(void) memset (&CompParam_st.maxAbsRowData[0], 0x00, sizeof(CompParam_st.maxAbsRowData));
(void) memset (&CompParam_st.scaleRowData[0], 0x00, sizeof(CompParam_st.scaleRowData));
for(uint16_t i=0; i<16U; i++)
{
for(uint16_t x=0; x<512U; x++)
{
if(abs(*var1)> maxAbsRowData[i])
{
maxAbsRowData[i]=fabs(*var1);
}
var1++;
}
CompParam_st.scaleRowData[i]=32767.0 *(1/maxAbsRowData[i]);
}
var1=0;
}
/**---------------------------------------------------------------------------------------
* @brief This function gets the scaled row data.
* @author sahosou
* @date 07 Okt. 2020
* @param[in] var2 pointer to the input floating point array located in Ext-RAM
* @param[in] calculated maxAbsRowData
* @return This function returns 'true' if the function processing was successful.
*//*-----------------------------------------------------------------------------------*/
static void getScaledRowData(const float *var2,const float scaleRowData[16])
{
(void) memset(&CompParam_st.scaledRowData[0], 0x00, sizeof(CompParam_st.scaledRowData));
static uint16_t num=0U;
for(uint16_t i=0; i<16U; i++)
{
for(uint16_t x=0; x<512U; x++)
{
CompParam_st.scaledRowData[num+x]=32767U+(int16_t)((((float)(*var2)*(float)(scaleRowData[i])) < 0.0f) ? (((float)(*var2)*(float)(scaleRowData[i])) - 0.5f) : (((float)(*var2)*(float)(scaleRowData[i])) + 0.5f));/*-scaled data should be all positive-*/
var2++;
}
num=num+512U;
}
var2=0;
}
/**---------------------------------------------------------------------------------------
* @brief This function gets the scaled row data in proper format for the algorithm model
* @author sahosou
* @date 07 Okt. 2020
* @param[in] dataIn[] input scaled row data array
* @param[in] index
* @return none.
*//*-----------------------------------------------------------------------------------*/
static void getModelInputData(const uint16_t dataIn[], uint8_t seg)
{
static uint16_t x=0U;
static uint16_t i=0U;
(void) memset(&CompParam_st.modelInBuf[0], 0x00, sizeof(CompParam_st.modelInBuf));
for(i=0; i<32U; i++)
{
x=i<<4;
for(uint16_t j=0; j<16U; j++)
{
CompParam_st.modelInBuf[x+j]=dataIn[i+(j<< 9)+(seg<< 5)];
}
}
}
/**---------------------------------------------------------------------------------------
* @brief This function compresses the scaled row data
* @author sahosou
* @date 07 Okt. 2020
* @return This function returns 'true' if the function processing was successful.
* In all other cases it returns 'false'.
*//*-----------------------------------------------------------------------------------*/
bool compression_Data_bol(void)
{
const statData_t* compData_st;
static uint16_t clear_u16s = (uint16_t)1;
static uint16_t windows_u16s = (uint16_t)1;
static uint16_t lastIdx=0U;
static uint16_t compDataCnt=0U;
static float compRatio=0U;
bool success_bol = (bool)(1 == 1);
// /* reset the internal module data */
(void) memset (&CompParam_st, 0x00, sizeof(CompParam_st));
/*----SysInfo: Start point of time measurement----*/
if (*((bool*) soundtrack_dataCompression_stps)) { sysinfo_StatObjEntryTrigger_vd(soundtrack_dataCompression_stps); } (void)(0);
/*------------------------------------------------*/
getMaxAbsRowData(extRamDataIn, CompParam_st.maxAbsRowData);
getScaledRowData(extRamDataIn, CompParam_st.scaleRowData);
/* copy DtParam that has been received through SDE */
for(uint16_t cnt=0; cnt<16; cnt++)
{
// getModelInputData(CompParam_st.scaledRowData,cnt);
// /*-----bestcase test-------*/
// //(void) memset(&CompParam_st.modelInBuf[0], 0x00, sizeof(CompParam_st.modelInBuf));
// agN50069TI28335_main(CompParam_st.modelInBuf,NUMBER_OF_SENSORS,fitBit_u16sca,NUMBER_OF_ROWS_IN_SEGMENT,
// windows_u16s,clear_u16s,CompParam_st.pwqOut_u16sa,CompParam_st.refVal_u16a);
// memcpy(&CompParam_st.modelOutBuf[0]+(compDataCnt), &CompParam_st.pwqOut_u16sa[0],
// CompParam_st.refVal_u16a[0]*sizeof(uint16_t));
// lastIdx=CompParam_st.refVal_u16a[0];
compDataCnt +=lastIdx;
}
compRatio=((float)compDataCnt/8192.0f)*100.0f;
if ( (0U != ((((uint32_t) 1) << ((uint32_t) traceprj_SRC_UNDEF)) & (* *trace_srcRelMask_u32cpp))) && (0U != ((((uint32_t) 1) << ((uint32_t) trace_SEV_INFO)) & (*(*trace_sevRelMask_u16cpp+traceprj_SRC_UNDEF))))) { (void) trace_TraceMsg_bol(traceprj_SRC_UNDEF, trace_SEV_INFO, "Comp Ratio= %f",compRatio); } (void)(0);
/*----SysInfo: End point of time measurement----*/
if (*((bool*) soundtrack_dataCompression_stps)) { sysinfo_StatObjExitTrigger_vd(soundtrack_dataCompression_stps); } (void)(0);
compData_st = sysinfo_GetStatObjStatisticData (soundtrack_dataCompression_stps);
compPrcTime_u32 = compData_st->prcTimeLastUs_u32 ;
if ( (0U != ((((uint32_t) 1) << ((uint32_t) traceprj_SRC_UNDEF)) & (* *trace_srcRelMask_u32cpp))) && (0U != ((((uint32_t) 1) << ((uint32_t) trace_SEV_INFO)) & (*(*trace_sevRelMask_u16cpp+traceprj_SRC_UNDEF))))) { (void) trace_TraceMsg_bol(traceprj_SRC_UNDEF, trace_SEV_INFO, "Comp proccesing time: %ld us",compPrcTime_u32); } (void)(0);
/*------------------------------------------------*/
return(success_bol);
}
/****************************************************************************************/
/* Local functions (always use static to limit visibility): */
/****************************************************************************************/