/* ======================================================================
 *   Copyright (C) 2022 Texas Instruments Incorporated
 *
 *   All rights reserved. Property of Texas Instruments Incorporated.
 *   Restricted rights to use, duplicate or disclose this code are
 *   granted through contract.
 *
 *   The program may not be used without the written permission
 *   of Texas Instruments Incorporated or against the terms and conditions
 *   stipulated in the agreement under which this program has been
 *   supplied.
 * ==================================================================== */

/**
 *  \file     Cdd_I2c_Cfg.h
 *
 *  \brief    This file contains generated pre compile configurations
 *            for CDD I2C MCAL driver
 *
 */

/******************************************************************************
    Project         : Cdd_AM263x
    Date            : 2022-08-26 20:53:14
    SW Ver          : 0.9.0
    Module Rele Ver : AUTOSAR 4.3.1 0

    This file is generated by EB Tresos
    Do not modify this file,otherwise the software may behave in unexpected way.
******************************************************************************/

/**
 *  \defgroup MCAL_I2c_CFG CDD I2c Configuration
 *
 *  This files defines CDD I2c configuration structures
 *  @{
 */

#ifndef CDD_I2C_CFG_H_
#define CDD_I2C_CFG_H_

/* ========================================================================== */
/*                             Include Files                                  */
/* ========================================================================== */

#include "Dem.h"

#include "Det.h"
#ifdef __cplusplus
extern "C" {
#endif

/* ========================================================================== */
/*                           Macros & Typedefs                                */
/* ========================================================================== */
/**
*  \brief I2C Build Variant.
*   Build variants.(i.e Pre Compile,Post Build or Link time)
*/

#define I2C_PRE_COMPILE_VARIANT	(STD_ON)
/**
 *  \name I2c Driver Configuration SW Version Info
 *
 *  Defines for I2c Driver configuration version
 *  @{
 */
/** \brief Spi configuration Major Version */
#define I2C_CFG_MAJOR_VERSION           (0U)
/** \brief Spi configuration Minor Version */
#define I2C_CFG_MINOR_VERSION           (9U)
/** \brief Spi configuration Patch Version */
#define I2C_CFG_PATCH_VERSION           (0U)
/* @} */
/**
 *  \brief Pre Compile config macro name.
 */


/** \brief Enable/disable CDD I2c dev detect error */
#define I2C_DEV_ERROR_DETECT        (STD_ON)
/** \brief Enable/disable Interrupts  */
#define I2C_USE_INTERRUPTS        (STD_OFF)
/** \brief Enable/disable version info API */
#define I2C_VERSION_INFO_API        (STD_ON)
#define I2C_MAX_LENGTH	     (8U)

#define I2C_DEFAULT_ADDR     (50U)

#define I2C_POLTIMEOUT     (10000U)

/** \brief Concurrent sync transmit support - by defualt this is off */
#define I2C_SUPPORT_CONCURRENT_SYNC_TRANSMIT(STD_OFF)
/** \brief Enable/disable SPI HW Status API */
#define I2C_HW_STATUS_API(STD_OFF)
/** \brief Maximum configured sequence */
#define I2C_MAX_SEQUENCE_CONFIG	     (6U)

/** \brief Maximum configured channel */
#define I2C_MAX_CHANNEL_CONFIG	     (8U)
/**
*  \brief Channel ID
*   Configured channel ID(s)
*/

#define I2C_NUM_SEQ_INQUEUE     (10U)
/**
*  \brief Sequence Id
*   Configured Sequence Id(s)
*/

/**
*  \brief Channel Index
*   Configured channel Index(s)
*/

/**
 *  \brief I2c timeout - used in I2c IP reset
 *   Each tick is 31.25us (for 32K Counter). Wait for 100ms which comes to
 *   below value
 */
#define I2C_TIMEOUT    (32000U)

/** \brief Enable/disable SPI register read back API */
#define I2C_REGISTER_READBACK_API(STD_OFF)
/**
 *  \brief Total HW units - used for array allocation. This should be +1 of the
 *  max unit number
 */
#define I2C_HW_UNIT_CNT                 (6U)

extern const uint32 I2c_HwUnitBaseAddr[I2C_HW_UNIT_CNT];


/* ========================================================================== */
/*                         Structures and Enums                               */
/* ========================================================================== */

/* ========================================================================== */
/*                           Globals Variables                                */
/* ========================================================================== */

/* ========================================================================== */
/*                          Function Declarations                             */
/* ========================================================================== */




#ifdef __cplusplus
}
#endif

#endif  /* #ifndef Cdd_I2c_CFG_H_ */

/* @} */
