📄 camcregacc.c
字号:
/*****************************************************************************
* TEXAS INSTRUMENTS INCORPORATED PROPRIETARY INFORMATION
*
* Property of Texas Instruments
* For Unrestricted Internal Use Only
* Unauthorized reproduction and/or distribution is strictly prohibited.
* This product is protected under copyright law and trade secret law
* as an unpublished work.
* Created 2004, (C) Copyright 2004 Texas Instruments. All rights reserved.
*
*
* File content: C Header file containing level 1 EASI function
* declarations
*
* Generated by: EASI-GEN from Beach Solutions Ltd.
*
* Generator version: 2.0
*
* Template version: 12
*
*
*
* Filename: CAMCRegAcc.c
*
* Description: CAMC register access source
*
* Module name: CAMC
*
* Module version: 1
*
*****************************************************************************/
/*****************************************************************************
* INCLUDE FILES
******************************************************************************
*/
#include "GlobalTypes.h"
#include "BaseAddress.h"
#include "EasiGlobal.h"
#include "EasiBase.h"
#include "CAMCAccInt.h"
#include "CAMCRegAcc.h"
/*****************************************************************************
* GLOBAL VARIABLES DECLARATIONS
******************************************************************************
*/
/*****************************************************************************
* LOCAL TYPES AND DEFINITIONS
******************************************************************************
*/
/*****************************************************************************
* LOCAL VARIABLES DECLARATIONS
******************************************************************************
*/
/*****************************************************************************
* LOCAL FUNCTIONS PROTOTYPES
******************************************************************************
*/
/*****************************************************************************
* FUNCTIONS
******************************************************************************
*/
#if !defined(USE_LEVEL_1_MACROS)
UWORD32 CAMCCC_REVISIONReadRegister32(const UWORD32 baseAddress)
{
const UWORD32 offset = CAMC_CC_REVISION_OFFSET; /* Register offset from the Base Address */
register UWORD32 data = RD_MEM_32_VOLATILE(baseAddress+offset); /* Read the register */
_DEBUG_LEVEL_1_EASI(EASIL1_CAMCCC_REVISIONReadRegister32); /* Log the call to this function */
return(data);
}
/********************************************************************/
UWORD32 CAMCCC_REVISIONCC_REV_NBRead32(const UWORD32 baseAddress)
{
const UWORD32 offset = CAMC_CC_REVISION_OFFSET; /* Register offset from the Base Address */
register UWORD32 data = RD_MEM_32_VOLATILE(baseAddress+offset); /* Read the register */
_DEBUG_LEVEL_1_EASI(EASIL1_CAMCCC_REVISIONCC_REV_NBRead32); /* Log the call to this function */
data &= CAMC_CC_REVISION_CC_REV_NB_MASK; /* Mask off other bitfields. */
data >>= CAMC_CC_REVISION_CC_REV_NB_OFFSET; /* Shift bitfield to align LSB with word LSB */
return(data);
}
/********************************************************************/
UWORD32 CAMCCC_REVISIONCC_REV_NBGet32(const UWORD32 var)
{
register UWORD32 data = var; /* COPY from argument into data */
_DEBUG_LEVEL_1_EASI(EASIL1_CAMCCC_REVISIONCC_REV_NBGet32); /* Log the call to this function */
data &= CAMC_CC_REVISION_CC_REV_NB_MASK; /* Mask off other bitfields. */
data >>= CAMC_CC_REVISION_CC_REV_NB_OFFSET; /* Shift bitfield to align LSB with word LSB */
return((UWORD32)data);
}
/********************************************************************/
UWORD32 CAMCCC_SYSCONFIGReadRegister32(const UWORD32 baseAddress)
{
const UWORD32 offset = CAMC_CC_SYSCONFIG_OFFSET; /* Register offset from the Base Address */
register UWORD32 data = RD_MEM_32_VOLATILE(baseAddress+offset); /* Read the register */
_DEBUG_LEVEL_1_EASI(EASIL1_CAMCCC_SYSCONFIGReadRegister32); /* Log the call to this function */
return(data);
}
/********************************************************************/
void CAMCCC_SYSCONFIGWriteRegister32(const UWORD32 baseAddress, const UWORD32 value)
{
const UWORD32 offset = CAMC_CC_SYSCONFIG_OFFSET; /* Register offset from the Base Address */
register UWORD32 newValue = value; /* Copy 'value' into 'newValue' */
_DEBUG_LEVEL_1_EASI(EASIL1_CAMCCC_SYSCONFIGWriteRegister32); /* Log the call to this function */
WR_MEM_32_VOLATILE(baseAddress+offset, newValue); /* Write value back to the register */
}
/********************************************************************/
UWORD32 CAMCCC_SYSCONFIGSIdleModeRead32(const UWORD32 baseAddress)
{
const UWORD32 offset = CAMC_CC_SYSCONFIG_OFFSET; /* Register offset from the Base Address */
register UWORD32 data = RD_MEM_32_VOLATILE(baseAddress+offset); /* Read the register */
_DEBUG_LEVEL_1_EASI(EASIL1_CAMCCC_SYSCONFIGSIdleModeRead32); /* Log the call to this function */
data &= CAMC_CC_SYSCONFIG_SIdleMode_MASK; /* Mask off other bitfields. */
data >>= CAMC_CC_SYSCONFIG_SIdleMode_OFFSET; /* Shift bitfield to align LSB with word LSB */
return(data);
}
/********************************************************************/
int CAMCCC_SYSCONFIGSIdleModeReadIsforce_idle32(const UWORD32 baseAddress)
{
const UWORD32 offset = CAMC_CC_SYSCONFIG_OFFSET; /* Register offset from the Base Address */
register UWORD32 data = RD_MEM_32_VOLATILE(baseAddress+offset); /* Read the register */
_DEBUG_LEVEL_1_EASI(EASIL1_CAMCCC_SYSCONFIGSIdleModeReadIsforce_idle32); /* Log the call to this function */
data &= CAMC_CC_SYSCONFIG_SIdleMode_MASK; /* Mask off other bitfields. */
data >>= CAMC_CC_SYSCONFIG_SIdleMode_OFFSET; /* Shift bitfield to align LSB with word LSB */
return(CAMCCC_SYSCONFIGSIdleModeforce_idle==(CAMCCC_SYSCONFIGSIdleModeE)data);
}
/********************************************************************/
int CAMCCC_SYSCONFIGSIdleModeReadIsno_idle32(const UWORD32 baseAddress)
{
const UWORD32 offset = CAMC_CC_SYSCONFIG_OFFSET; /* Register offset from the Base Address */
register UWORD32 data = RD_MEM_32_VOLATILE(baseAddress+offset); /* Read the register */
_DEBUG_LEVEL_1_EASI(EASIL1_CAMCCC_SYSCONFIGSIdleModeReadIsno_idle32); /* Log the call to this function */
data &= CAMC_CC_SYSCONFIG_SIdleMode_MASK; /* Mask off other bitfields. */
data >>= CAMC_CC_SYSCONFIG_SIdleMode_OFFSET; /* Shift bitfield to align LSB with word LSB */
return(CAMCCC_SYSCONFIGSIdleModeno_idle==(CAMCCC_SYSCONFIGSIdleModeE)data);
}
/********************************************************************/
int CAMCCC_SYSCONFIGSIdleModeReadIsreserved132(const UWORD32 baseAddress)
{
const UWORD32 offset = CAMC_CC_SYSCONFIG_OFFSET; /* Register offset from the Base Address */
register UWORD32 data = RD_MEM_32_VOLATILE(baseAddress+offset); /* Read the register */
_DEBUG_LEVEL_1_EASI(EASIL1_CAMCCC_SYSCONFIGSIdleModeReadIsreserved132); /* Log the call to this function */
data &= CAMC_CC_SYSCONFIG_SIdleMode_MASK; /* Mask off other bitfields. */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -