/*
* Copyright (C) 2023-2024 Texas Instruments Incorporated
*
* All rights reserved not granted herein.
* Limited License.  
*
* Texas Instruments Incorporated grants a world-wide, royalty-free, 
* non-exclusive license under copyrights and patents it now or hereafter 
* owns or controls to make, have made, use, import, offer to sell and sell ("Utilize")
* this software subject to the terms herein.  With respect to the foregoing patent 
* license, such license is granted  solely to the extent that any such patent is necessary 
* to Utilize the software alone.  The patent license shall not apply to any combinations which 
* include this software, other than combinations with devices manufactured by or for TI ("TI Devices").  
* No hardware patent is licensed hereunder.
*
* Redistributions must preserve existing copyright notices and reproduce this license (including the 
* above copyright notice and the disclaimer and (if applicable) source code license limitations below) 
* in the documentation and/or other materials provided with the distribution
*
* Redistribution and use in binary form, without modification, are permitted provided that the following
* conditions are met:
*
*	* No reverse engineering, decompilation, or disassembly of this software is permitted with respect to any 
*     software provided in binary form.
*	* any redistribution and use are licensed by TI for use only with TI Devices.
*	* Nothing shall obligate TI to provide you with source code for the software licensed and provided to you in object code.
*
* If software source code is provided to you, modification and redistribution of the source code are permitted 
* provided that the following conditions are met:
*
*   * any redistribution and use of the source code, including any resulting derivative works, are licensed by 
*     TI for use only with TI Devices.
*   * any redistribution and use of any object code compiled from the source code and any resulting derivative 
*     works, are licensed by TI for use only with TI Devices.
*
* Neither the name of Texas Instruments Incorporated nor the names of its suppliers may be used to endorse or 
* promote products derived from this software without specific prior written permission.
*
* DISCLAIMER.
*
* THIS SOFTWARE IS PROVIDED BY TI AND TI'S LICENSORS "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 TI AND TI'S LICENSORS 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.
*/
  /*****************************************************************************
    Project: 
    Date   : 2026-03-15 20:51:07
    This file is generated by EB Tresos
    Do not modify this file, otherwise the software may behave in unexpected way

 ******************************************************************************/

/*******************************************************************************
 *  INCLUDES
 ******************************************************************************/
#include "Std_Types.h"
#include "Adc.h"
#include "Adc_Irq.h"
#include "msp.h"

/******************************************************************************
 *  VERSION CHECK
 ******************************************************************************/
#if ( (ADC_CFG_MAJOR_VERSION != (1U)) \
    ||(ADC_CFG_MINOR_VERSION != (2U)))
  #error "Version numbers of Adc_PBcfg.c and Adc_Cfg.h are inconsistent!"
#endif

/*******************************************************************************
 *  GLOBAL CONFIG DATA
 ******************************************************************************/
#define ADC_START_SEC_CONFIG_DATA
#include "Adc_MemMap.h"

#ifdef __cplusplus
extern "C" {
#endif




/* Create runtime configurations. */
CONST(struct Adc_ConfigType_s, ADC_CONFIG_DATA) AdcConfigSet =
{
    .maxGroup = 2U,
    .maxHwUnit = 2U,
    .groupCfg  =
    {
        [0] =
        {
            .groupId = AdcConf_AdcHwUnit_AdcHwUnit_0_AdcGroup_AdcGroup_ADC_0,
            .groupPriority =0U,
            .hwUnitId = 0,
            .Adc_GroupEndNotification =NULL_PTR,
            .streamNumSamples = (Adc_StreamNumSampleType)1,
            .resolution = ADC_DEF_CHANNEL_RESOLUTION,/* This is not configurable and should be set to ADC_DEF_CHANNEL_RESOLUTION */
            .convMode = ADC_CONV_MODE_ONESHOT,
            .repeatMode =ADC12_REPEAT_MODE_DISABLED,
            .triggSrc = ADC_TRIGG_SRC_SW,
            .accessMode = ADC_ACCESS_MODE_SINGLE,
            .streamBufMode = ADC_STREAM_BUFFER_CIRCULAR,
            .hwTrigSignal =ADC_HW_TRIG_BOTH_EDGES,
            .hwTrigTimer =ADC_TRIGGER_SW_ONLY,            
            .groupReplacement = (Adc_GroupReplacementType)ADC_GROUP_REPL_SUSPEND_RESUME,
            .groupChannelMask = 0x938f,
#if (STD_ON == ADC_ENABLE_LIMIT_CHECK)
            .grouplimitcheck = FALSE,
#endif
            .groupDataAccessMode = ADC_GROUP_POLLING_ACCESS,
            .numChannels = 9U,

            .channelConfig =
            {
                [0] =
                {
                    
              
                    .hwChannelId = 9U,                    
                    .voltageReference = ADC12_VRSEL_VDDA,                    
                    .channelHardwareAveragingEnabled  = FALSE,
                    .sampleTimeSelect = ADC12_SAMPLE_TIMER_SOURCE_SCOMP0,
#if (STD_ON == ADC_ENABLE_LIMIT_CHECK)
                    .channelEnableLimitCheck =FALSE,
#endif
                },
                [1] =
                {
                    
              
                    .hwChannelId = 12U,                    
                    .voltageReference = ADC12_VRSEL_VDDA,                    
                    .channelHardwareAveragingEnabled  = FALSE,
                    .sampleTimeSelect = ADC12_SAMPLE_TIMER_SOURCE_SCOMP0,
#if (STD_ON == ADC_ENABLE_LIMIT_CHECK)
                    .channelEnableLimitCheck =FALSE,
#endif
                },
                [2] =
                {
                    
              
                    .hwChannelId = 1U,                    
                    .voltageReference = ADC12_VRSEL_VDDA,                    
                    .channelHardwareAveragingEnabled  = FALSE,
                    .sampleTimeSelect = ADC12_SAMPLE_TIMER_SOURCE_SCOMP0,
#if (STD_ON == ADC_ENABLE_LIMIT_CHECK)
                    .channelEnableLimitCheck =FALSE,
#endif
                },
                [3] =
                {
                    
              
                    .hwChannelId = 2U,                    
                    .voltageReference = ADC12_VRSEL_VDDA,                    
                    .channelHardwareAveragingEnabled  = FALSE,
                    .sampleTimeSelect = ADC12_SAMPLE_TIMER_SOURCE_SCOMP0,
#if (STD_ON == ADC_ENABLE_LIMIT_CHECK)
                    .channelEnableLimitCheck =FALSE,
#endif
                },
                [4] =
                {
                    
              
                    .hwChannelId = 3U,                    
                    .voltageReference = ADC12_VRSEL_VDDA,                    
                    .channelHardwareAveragingEnabled  = FALSE,
                    .sampleTimeSelect = ADC12_SAMPLE_TIMER_SOURCE_SCOMP0,
#if (STD_ON == ADC_ENABLE_LIMIT_CHECK)
                    .channelEnableLimitCheck =FALSE,
#endif
                },
                [5] =
                {
                    
              
                    .hwChannelId = 7U,                    
                    .voltageReference = ADC12_VRSEL_VDDA,                    
                    .channelHardwareAveragingEnabled  = FALSE,
                    .sampleTimeSelect = ADC12_SAMPLE_TIMER_SOURCE_SCOMP0,
#if (STD_ON == ADC_ENABLE_LIMIT_CHECK)
                    .channelEnableLimitCheck =FALSE,
#endif
                },
                [6] =
                {
                    
              
                    .hwChannelId = 8U,                    
                    .voltageReference = ADC12_VRSEL_VDDA,                    
                    .channelHardwareAveragingEnabled  = FALSE,
                    .sampleTimeSelect = ADC12_SAMPLE_TIMER_SOURCE_SCOMP0,
#if (STD_ON == ADC_ENABLE_LIMIT_CHECK)
                    .channelEnableLimitCheck =FALSE,
#endif
                },
                [7] =
                {
                    
              
                    .hwChannelId = 0U,                    
                    .voltageReference = ADC12_VRSEL_VDDA,                    
                    .channelHardwareAveragingEnabled  = FALSE,
                    .sampleTimeSelect = ADC12_SAMPLE_TIMER_SOURCE_SCOMP0,
#if (STD_ON == ADC_ENABLE_LIMIT_CHECK)
                    .channelEnableLimitCheck =FALSE,
#endif
                },
                [8] =
                {
                    
              
                    .hwChannelId = 15U,                    
                    .voltageReference = ADC12_VRSEL_VDDA,                    
                    .channelHardwareAveragingEnabled  = FALSE,
                    .sampleTimeSelect = ADC12_SAMPLE_TIMER_SOURCE_SCOMP0,
#if (STD_ON == ADC_ENABLE_LIMIT_CHECK)
                    .channelEnableLimitCheck =FALSE,
#endif
                },
            },
        },
        [1] =
        {
            .groupId = AdcConf_AdcHwUnit_AdcHwUnit_1_AdcGroup_AdcGroup_ADC_1,
            .groupPriority =0U,
            .hwUnitId = 1,
            .Adc_GroupEndNotification =NULL_PTR,
            .streamNumSamples = (Adc_StreamNumSampleType)1,
            .resolution = ADC_DEF_CHANNEL_RESOLUTION,/* This is not configurable and should be set to ADC_DEF_CHANNEL_RESOLUTION */
            .convMode = ADC_CONV_MODE_ONESHOT,
            .repeatMode =ADC12_REPEAT_MODE_DISABLED,
            .triggSrc = ADC_TRIGG_SRC_SW,
            .accessMode = ADC_ACCESS_MODE_SINGLE,
            .streamBufMode = ADC_STREAM_BUFFER_CIRCULAR,
            .hwTrigSignal =ADC_HW_TRIG_BOTH_EDGES,
            .hwTrigTimer =ADC_TRIGGER_SW_ONLY,            
            .groupReplacement = (Adc_GroupReplacementType)ADC_GROUP_REPL_SUSPEND_RESUME,
            .groupChannelMask = 0x108f,
#if (STD_ON == ADC_ENABLE_LIMIT_CHECK)
            .grouplimitcheck = FALSE,
#endif
            .groupDataAccessMode = ADC_GROUP_POLLING_ACCESS,
            .numChannels = 6U,

            .channelConfig =
            {
                [0] =
                {
                    
              
                    .hwChannelId = 1U,                    
                    .voltageReference = ADC12_VRSEL_VDDA,                    
                    .channelHardwareAveragingEnabled  = FALSE,
                    .sampleTimeSelect = ADC12_SAMPLE_TIMER_SOURCE_SCOMP0,
#if (STD_ON == ADC_ENABLE_LIMIT_CHECK)
                    .channelEnableLimitCheck =FALSE,
#endif
                },
                [1] =
                {
                    
              
                    .hwChannelId = 0U,                    
                    .voltageReference = ADC12_VRSEL_VDDA,                    
                    .channelHardwareAveragingEnabled  = FALSE,
                    .sampleTimeSelect = ADC12_SAMPLE_TIMER_SOURCE_SCOMP0,
#if (STD_ON == ADC_ENABLE_LIMIT_CHECK)
                    .channelEnableLimitCheck =FALSE,
#endif
                },
                [2] =
                {
                    
              
                    .hwChannelId = 7U,                    
                    .voltageReference = ADC12_VRSEL_VDDA,                    
                    .channelHardwareAveragingEnabled  = FALSE,
                    .sampleTimeSelect = ADC12_SAMPLE_TIMER_SOURCE_SCOMP0,
#if (STD_ON == ADC_ENABLE_LIMIT_CHECK)
                    .channelEnableLimitCheck =FALSE,
#endif
                },
                [3] =
                {
                    
              
                    .hwChannelId = 2U,                    
                    .voltageReference = ADC12_VRSEL_VDDA,                    
                    .channelHardwareAveragingEnabled  = FALSE,
                    .sampleTimeSelect = ADC12_SAMPLE_TIMER_SOURCE_SCOMP0,
#if (STD_ON == ADC_ENABLE_LIMIT_CHECK)
                    .channelEnableLimitCheck =FALSE,
#endif
                },
                [4] =
                {
                    
              
                    .hwChannelId = 12U,                    
                    .voltageReference = ADC12_VRSEL_VDDA,                    
                    .channelHardwareAveragingEnabled  = FALSE,
                    .sampleTimeSelect = ADC12_SAMPLE_TIMER_SOURCE_SCOMP0,
#if (STD_ON == ADC_ENABLE_LIMIT_CHECK)
                    .channelEnableLimitCheck =FALSE,
#endif
                },
                [5] =
                {
                    
              
                    .hwChannelId = 3U,                    
                    .voltageReference = ADC12_VRSEL_VDDA,                    
                    .channelHardwareAveragingEnabled  = FALSE,
                    .sampleTimeSelect = ADC12_SAMPLE_TIMER_SOURCE_SCOMP0,
#if (STD_ON == ADC_ENABLE_LIMIT_CHECK)
                    .channelEnableLimitCheck =FALSE,
#endif
                },
            },
        },
    },
    .hwUnitCfg =
    {
        [0] =
        {
            .hwUnitId = (Adc_HWUnitType)ADC_HWUNIT_0,           
            .baseAddr = ADC0_BASE,
            .resolution = (Adc_mcalResolution_t)ADC_RESOLUTION_12BIT,
            .hwAverageNumerator = 0U,
            .hwAverageDenominator = 0U,
            .sampleTime0 = 160U,
            .sampleTime1 = 160U,
#if (STD_ON == ADC_ENABLE_LIMIT_CHECK)
            .highRange =4095,
            .lowRange =0,
#endif
            .cpuClockRef = 32000000U,
        },
        [1] =
        {
            .hwUnitId = (Adc_HWUnitType)ADC_HWUNIT_1,           
            .baseAddr = ADC1_BASE,
            .resolution = (Adc_mcalResolution_t)ADC_RESOLUTION_12BIT,
            .hwAverageNumerator = 0U,
            .hwAverageDenominator = 0U,
            .sampleTime0 = 160U,
            .sampleTime1 = 160U,
#if (STD_ON == ADC_ENABLE_LIMIT_CHECK)
            .highRange =4095,
            .lowRange =0,
#endif
            .cpuClockRef = 32000000U,
        },
    },
};


#ifdef __cplusplus
}
#endif

#define ADC_STOP_SEC_CONFIG_DATA
#include "Adc_MemMap.h"

/*******************************************************************************
 *  END OF FILE: Adc_PBcfg.c
 ******************************************************************************/
