📄 camcregacc.c
字号:
/********************************************************************/
UWORD32 CAMCCC_SYSCONFIGAutoIdleGet32(const UWORD32 var)
{
register UWORD32 data = var; /* COPY from argument into data */
_DEBUG_LEVEL_1_EASI(EASIL1_CAMCCC_SYSCONFIGAutoIdleGet32); /* Log the call to this function */
data &= CAMC_CC_SYSCONFIG_AutoIdle_MASK; /* Mask off other bitfields. */
data >>= CAMC_CC_SYSCONFIG_AutoIdle_OFFSET; /* Shift bitfield to align LSB with word LSB */
return((UWORD32)data);
}
/********************************************************************/
int CAMCCC_SYSCONFIGAutoIdleIsclk_free32(const UWORD32 var)
{
register UWORD32 data = var; /* COPY from argument into data */
_DEBUG_LEVEL_1_EASI(EASIL1_CAMCCC_SYSCONFIGAutoIdleIsclk_free32); /* Log the call to this function */
data &= CAMC_CC_SYSCONFIG_AutoIdle_MASK; /* Remove other bitfields. */
data >>= CAMC_CC_SYSCONFIG_AutoIdle_OFFSET; /* Align bitfield LSB with word LSB */
return(CAMCCC_SYSCONFIGAutoIdleclk_free==(CAMCCC_SYSCONFIGAutoIdleE)data);
}
/********************************************************************/
int CAMCCC_SYSCONFIGAutoIdleIsauto_clk_gate32(const UWORD32 var)
{
register UWORD32 data = var; /* COPY from argument into data */
_DEBUG_LEVEL_1_EASI(EASIL1_CAMCCC_SYSCONFIGAutoIdleIsauto_clk_gate32); /* Log the call to this function */
data &= CAMC_CC_SYSCONFIG_AutoIdle_MASK; /* Remove other bitfields. */
data >>= CAMC_CC_SYSCONFIG_AutoIdle_OFFSET; /* Align bitfield LSB with word LSB */
return(CAMCCC_SYSCONFIGAutoIdleauto_clk_gate==(CAMCCC_SYSCONFIGAutoIdleE)data);
}
/********************************************************************/
void CAMCCC_SYSCONFIGAutoIdleWrite32(const UWORD32 baseAddress, const UWORD32 value)
{
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 */
register UWORD32 newValue = value; /* Copy 'value' into 'newValue' */
_DEBUG_LEVEL_1_EASI(EASIL1_CAMCCC_SYSCONFIGAutoIdleWrite32); /* Log the call to this function */
data &= ~(CAMC_CC_SYSCONFIG_AutoIdle_MASK); /* Clear existing bitfield value */
newValue <<= CAMC_CC_SYSCONFIG_AutoIdle_OFFSET; /* Shift new value into position */
newValue &= CAMC_CC_SYSCONFIG_AutoIdle_MASK; /* Remove other bitfield data which may be present */
newValue |= data; /* Or-in new bitfield data */
WR_MEM_32_VOLATILE(baseAddress+offset, newValue); /* Write value back to the register */
}
/********************************************************************/
void CAMCCC_SYSCONFIGAutoIdleWriteclk_free32(const UWORD32 baseAddress)
{
const UWORD32 offset = CAMC_CC_SYSCONFIG_OFFSET; /* Register offset from the Base Address */
const UWORD32 newValue = (UWORD32)CAMCCC_SYSCONFIGAutoIdleclk_free <<
CAMC_CC_SYSCONFIG_AutoIdle_OFFSET;
register UWORD32 data = RD_MEM_32_VOLATILE(baseAddress+offset); /* Read the register */
_DEBUG_LEVEL_1_EASI(EASIL1_CAMCCC_SYSCONFIGAutoIdleWriteclk_free32); /* Log the call to this function */
data &= ~(CAMC_CC_SYSCONFIG_AutoIdle_MASK); /* Clear the bitfield data */
data |= newValue; /* Or-in new bitfield data */
WR_MEM_32_VOLATILE(baseAddress+offset, data); /* Write value back to the register */
}
/********************************************************************/
void CAMCCC_SYSCONFIGAutoIdleWriteauto_clk_gate32(const UWORD32 baseAddress)
{
const UWORD32 offset = CAMC_CC_SYSCONFIG_OFFSET; /* Register offset from the Base Address */
const UWORD32 newValue = (UWORD32)CAMCCC_SYSCONFIGAutoIdleauto_clk_gate <<
CAMC_CC_SYSCONFIG_AutoIdle_OFFSET;
register UWORD32 data = RD_MEM_32_VOLATILE(baseAddress+offset); /* Read the register */
_DEBUG_LEVEL_1_EASI(EASIL1_CAMCCC_SYSCONFIGAutoIdleWriteauto_clk_gate32); /* Log the call to this function */
data &= ~(CAMC_CC_SYSCONFIG_AutoIdle_MASK); /* Clear the bitfield data */
data |= newValue; /* Or-in new bitfield data */
WR_MEM_32_VOLATILE(baseAddress+offset, data); /* Write value back to the register */
}
/********************************************************************/
UWORD32 CAMCCC_SYSCONFIGAutoIdleSet32(const UWORD32 var, const UWORD32 value)
{
register UWORD32 data = var; /* Copy from argument into data */
register UWORD32 newValue = value; /* Copy 'value' into 'newValue' */
_DEBUG_LEVEL_1_EASI(EASIL1_CAMCCC_SYSCONFIGAutoIdleSet32); /* Log the call to this function */
data &= ~(CAMC_CC_SYSCONFIG_AutoIdle_MASK); /* Clear existing bitfield value */
newValue <<= CAMC_CC_SYSCONFIG_AutoIdle_OFFSET; /* Shift new value into position */
newValue &= CAMC_CC_SYSCONFIG_AutoIdle_MASK; /* Remove other bitfield data which may be present */
newValue |= data; /* Or-in new bitfield data */
return((UWORD32)newValue);
}
/********************************************************************/
UWORD32 CAMCCC_SYSSTATUSReadRegister32(const UWORD32 baseAddress)
{
const UWORD32 offset = CAMC_CC_SYSSTATUS_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_SYSSTATUSReadRegister32); /* Log the call to this function */
return(data);
}
/********************************************************************/
UWORD32 CAMCCC_SYSSTATUSResetDoneRead32(const UWORD32 baseAddress)
{
const UWORD32 offset = CAMC_CC_SYSSTATUS_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_SYSSTATUSResetDoneRead32); /* Log the call to this function */
data &= CAMC_CC_SYSSTATUS_ResetDone_MASK; /* Mask off other bitfields. */
data >>= CAMC_CC_SYSSTATUS_ResetDone_OFFSET; /* Shift bitfield to align LSB with word LSB */
return(data);
}
/********************************************************************/
int CAMCCC_SYSSTATUSResetDoneReadIsrstOngoing32(const UWORD32 baseAddress)
{
const UWORD32 offset = CAMC_CC_SYSSTATUS_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_SYSSTATUSResetDoneReadIsrstOngoing32); /* Log the call to this function */
data &= CAMC_CC_SYSSTATUS_ResetDone_MASK; /* Mask off other bitfields. */
data >>= CAMC_CC_SYSSTATUS_ResetDone_OFFSET; /* Shift bitfield to align LSB with word LSB */
return(CAMCCC_SYSSTATUSResetDonerstOngoing==(CAMCCC_SYSSTATUSResetDoneE)data);
}
/********************************************************************/
int CAMCCC_SYSSTATUSResetDoneReadIsrstComp32(const UWORD32 baseAddress)
{
const UWORD32 offset = CAMC_CC_SYSSTATUS_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_SYSSTATUSResetDoneReadIsrstComp32); /* Log the call to this function */
data &= CAMC_CC_SYSSTATUS_ResetDone_MASK; /* Mask off other bitfields. */
data >>= CAMC_CC_SYSSTATUS_ResetDone_OFFSET; /* Shift bitfield to align LSB with word LSB */
return(CAMCCC_SYSSTATUSResetDonerstComp==(CAMCCC_SYSSTATUSResetDoneE)data);
}
/********************************************************************/
UWORD32 CAMCCC_SYSSTATUSResetDoneGet32(const UWORD32 var)
{
register UWORD32 data = var; /* COPY from argument into data */
_DEBUG_LEVEL_1_EASI(EASIL1_CAMCCC_SYSSTATUSResetDoneGet32); /* Log the call to this function */
data &= CAMC_CC_SYSSTATUS_ResetDone_MASK; /* Mask off other bitfields. */
data >>= CAMC_CC_SYSSTATUS_ResetDone_OFFSET; /* Shift bitfield to align LSB with word LSB */
return((UWORD32)data);
}
/********************************************************************/
int CAMCCC_SYSSTATUSResetDoneIsrstOngoing32(const UWORD32 var)
{
register UWORD32 data = var; /* COPY from argument into data */
_DEBUG_LEVEL_1_EASI(EASIL1_CAMCCC_SYSSTATUSResetDoneIsrstOngoing32); /* Log the call to this function */
data &= CAMC_CC_SYSSTATUS_ResetDone_MASK; /* Remove other bitfields. */
data >>= CAMC_CC_SYSSTATUS_ResetDone_OFFSET; /* Align bitfield LSB with word LSB */
return(CAMCCC_SYSSTATUSResetDonerstOngoing==(CAMCCC_SYSSTATUSResetDoneE)data);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -