📄 csl_vlynqaux.h
字号:
* @b Description * @n Clears the corresponding bit in the interrupt pending register. * * @b Arguments * @verbatim hVlynq Handle to the VLYNQ instance intVecVal value to be cleared @endverbatim * * <b> Return Value </b> * None * * <b> Pre Condition </b> * @n None * * <b> Post Condition </b> * @n Clears the corresponding bit in the interrupt pending register. * * @b Modifies * @n VLYNQ control register. * * @b Example * @verbatim CSL_VlynqHandle hVlynq; ... CSL_vlynqIntVecClear (hVlynq, CSL_VLYNQ_INT_VECTOR_2); ... @endverbatim * =========================================================================== */CSL_IDEF_INLINEvoid CSL_vlynqIntVecClear ( CSL_VlynqHandle hVlynq, CSL_VlynqIntVector intVecVal){ /* Clear the interrupt vector bits */ hVlynq->regs->CTRL &= ~(CSL_FMK(VLYNQ_CTRL_INTVEC, intVecVal)); return;}/** ============================================================================ * @n@b CSL_vlynqInt2CfgConfigure * * @b Description * @n Configure the value of the INT2CFG bit. * * @b Arguments * @verbatim hVlynq Handle to the VLYNQ instance int2Cfg Value to be configured @endverbatim * * <b> Return Value </b> * None * * <b> Pre Condition </b> * @n None * * <b> Post Condition </b> * @n The INT2CFG bit is configured with the value passed. * * @b Modifies * @n VLYNQ control register. * * @b Example * @verbatim CSL_VlynqHandle hVlynq; ... CSL_vlynqInt2CfgConfigure (hVlynq, 0x01); ... @endverbatim * =========================================================================== */CSL_IDEF_INLINEvoid CSL_vlynqInt2CfgConfigure ( CSL_VlynqHandle hVlynq, Uint32 int2CfgVal){ /* Configure the INT2CFG bit */ CSL_FINS(hVlynq->regs->CTRL, VLYNQ_CTRL_INT2CFG, int2CfgVal); return;}/** ============================================================================ * @n@b CSL_vlynqAoptConfigure * * @b Description * @n Configure the value of the Address Optimization bit. * * @b Arguments * @verbatim hVlynq Handle to the VLYNQ instance aOptval Value to be configured @endverbatim * * <b> Return Value </b> * None * * <b> Pre Condition </b> * @n None * * <b> Post Condition </b> * @n The Address Optimization bit is configured with the value passed. * * @b Modifies * @n VLYNQ control register. * * @b Example * @verbatim CSL_VlynqHandle hVlynq; ... CSL_vlynqAoptConfigure (hVlynq, aOptval); ... @endverbatim * =========================================================================== */CSL_IDEF_INLINEvoid CSL_vlynqAoptConfigure ( CSL_VlynqHandle hVlynq, Uint32 aOptval){ /** Configure Address Optimization */ CSL_FINS(hVlynq->regs->CTRL, VLYNQ_CTRL_AOPTDISABLE, aOptval); return;}/** ============================================================================ * @n@b CSL_vlynqILoopConfigure * * @b Description * @n Configure the value of the internal loopback bit. * * @b Arguments * @verbatim hVlynq Handle to the VLYNQ instance iLoopVal Value to be configured @endverbatim * * <b> Return Value </b> * None * * <b> Pre Condition </b> * @n None * * <b> Post Condition </b> * @n The ILOOP bit is configured with the value passed. * * @b Modifies * @n VLYNQ control register. * * @b Example * @verbatim CSL_VlynqHandle hVlynq; ... CSL_vlynqILoopConfigure (hVlynq, 0x01); ... @endverbatim * =========================================================================== */CSL_IDEF_INLINEvoid CSL_vlynqILoopConfigure ( CSL_VlynqHandle hVlynq, Uint32 iLoopVal){ /* Configure internal loopback */ CSL_FINS (hVlynq->regs->CTRL, VLYNQ_CTRL_ILOOP, iLoopVal); return;}/** ============================================================================ * @n@b CSL_vlynqSoftResetAssert * * @b Description * @n Configure the value of the reset bit. * * @b Arguments * @verbatim hVlynq Handle to the VLYNQ instance reset Value to be configured @endverbatim * * <b> Return Value </b> * None * * <b> Pre Condition </b> * @n None * * <b> Post Condition </b> * @n The reset bit is configured with the value passed. * * @b Modifies * @n VLYNQ control register. * * @b Example * @verbatim CSL_VlynqHandle hVlynq; ... CSL_vlynqSoftResetAssert (hVlynq, reset); ... @endverbatim * =========================================================================== */CSL_IDEF_INLINEvoid CSL_vlynqSoftResetAssert ( CSL_VlynqHandle hVlynq, Uint32 reset){ /** Soft RESET:assert/Deassert soft reset */ CSL_FINS(hVlynq->regs->CTRL, VLYNQ_CTRL_RESET, reset); return;}/** ============================================================================ * @n@b CSL_vlynqRErrorClear * * @b Description * @n Clear the remote error status bit. * * @b Arguments * @verbatim hVlynq Handle to the VLYNQ instance @endverbatim * * <b> Return Value </b> * None * * <b> Pre Condition </b> * @n None * * <b> Post Condition </b> * @n The remote error status bit is cleared. * * @b Modifies * @n VLYNQ status register. * * @b Example * @verbatim CSL_VlynqHandle hVlynq; ... CSL_vlynqRErrorClear (hVlynq); ... @endverbatim * =========================================================================== */CSL_IDEF_INLINEvoid CSL_vlynqRErrorClear ( CSL_VlynqHandle hVlynq){ /** Clear remote error status flag * (This is write-1-to-clear filed) */ hVlynq->regs->STAT |= CSL_FMK(VLYNQ_STAT_RERROR, CSL_VLYNQ_STAT_RERROR_CLEAR); return;}/** ============================================================================ * @n@b CSL_vlynqLErrorClear * * @b Description * @n Clear the local error status bit. * * @b Arguments * @verbatim hVlynq Handle to the VLYNQ instance @endverbatim * * <b> Return Value </b> * None * * <b> Pre Condition </b> * @n None * * <b> Post Condition </b> * @n The local error status bit is cleared. * * @b Modifies * @n VLYNQ status register. * * @b Example * @verbatim CSL_VlynqHandle hVlynq; ... CSL_vlynqLErrorClear (hVlynq); ... @endverbatim * =========================================================================== */CSL_IDEF_INLINEvoid CSL_vlynqLErrorClear ( CSL_VlynqHandle hVlynq){ /** Clear local error status flag * (This is write-1-to-clear filed) */ hVlynq->regs->STAT |= CSL_FMK(VLYNQ_STAT_LERROR, CSL_VLYNQ_STAT_LERROR_CLEAR); return;}/** ============================================================================ * @n@b CSL_vlynqPriIntrStatClear * * @b Description * @n Clear the interrupt status bits. * * @b Arguments * @verbatim hVlynq Handle to the VLYNQ instance @endverbatim * * <b> Return Value </b> * None * * <b> Pre Condition </b> * @n None * * <b> Post Condition </b> * @n The corresponding interrupt status bits are cleared. * * @b Modifies * @n VLYNQ interrupt status register. * * @b Example * @verbatim CSL_VlynqHandle hVlynq; ... CSL_vlynqPriIntrStatClear (hVlynq); ... @endverbatim * =========================================================================== */CSL_IDEF_INLINEvoid CSL_vlynqPriIntrStatClear ( CSL_VlynqHandle hVlynq){ /** Clears the interrupt status (which has got highest priority) * pending from the INTSTATCLR register */ hVlynq->regs->INTPRI |= CSL_FMK(VLYNQ_INTPRI_INSTAT, CSL_FEXT(hVlynq->regs->INTPRI, VLYNQ_INTPRI_INSTAT)); return;}/** ============================================================================ * @n@b CSL_vlynqIntrStatClear * * @b Description * @n Clear the interrupt status bits. * * @b Arguments * @verbatim hVlynq Handle to the VLYNQ instance intrStatClrVal interrupt status bits to be cleared. @endverbatim * * <b> Return Value </b> * None * * <b> Pre Condition </b> * @n None * * <b> Post Condition </b> * @n The corresponding interrupt status bits are cleared. * * @b Modifies * @n VLYNQ interrupt status register. * * @b Example * @verbatim CSL_VlynqHandle hVlynq; ... CSL_vlynqIntrStatClear (hVlynq, 0xFF); ... @endverbatim * =========================================================================== */CSL_IDEF_INLINEvoid CSL_vlynqIntrStatClear ( CSL_VlynqHandle hVlynq, Uint32 intrStatClrVal){ /** Clear interrupt(s) status bits (refers to INTSTATCLR) * (This is write-1-to-clear filed) */ hVlynq->regs->INTSTATCLR |= CSL_FMK(VLYNQ_INTSTATCLR_INTCLR, intrStatClrVal); return;}/** ============================================================================ * @n@b CSL_vlynqIntrPendSet * * @b Description * @n Set the interrupt pending bits. * * @b Arguments * @verbatim hVlynq Handle to the VLYNQ instance intrPend interrupt pend bits to be set. @endverbatim * * <b> Return Value </b> * None * * <b> Pre Condition </b> * @n None * * <b> Post Condition </b> * @n The corresponding interrupt pending bits are set. * * @b Modifies * @n VLYNQ interrupt pending register. * * @b Example * @verbatim CSL_VlynqHandle hVlynq; ... CSL_vlynqIntrPendSet (hVlynq, 0xFF); ... @endverbatim * =========================================================================== */CSL_IDEF_INLINEvoid CSL_vlynqIntrPendSet ( CSL_VlynqHandle hVlynq, Uint32 intrPend){ /** Sets/generates interrupt (refers to INTPENDSET register) */ hVlynq->regs->INTPENDSET |= intrPend; return;}/** ============================================================================ * @n@b CSL_vlynqIntrPendSetClr * * @b Description * @n Clear the interrupt pending bits. * * @b Arguments * @verbatim hVlynq Handle to the VLYNQ instance intrPend interrupt pend bits to be cleared. @endverbatim * * <b> Return Value </b> * None * * <b> Pre Condition </b> * @n None * * <b> Post Condition </b> * @n The corresponding interrupt pending bits are cleared. * * @b Modifies * @n VLYNQ interrupt pending register. * * @b Example * @verbatim CSL_VlynqHandle hVlynq; ... CSL_vlynqIntrPendSetClr (hVlynq, 0xFF); ... @endverbatim * =========================================================================== */CSL_IDEF_INLINEvoid CSL_vlynqIntrPendSetClr ( CSL_VlynqHandle hVlynq, Uint32 intrPendClr){ /** Clear pending interrupts from INTPENDSET register */ hVlynq->regs->INTPENDSET &= ~(*(Uint32*)intrPendClr); return;}/** ============================================================================ * @n@b CSL_vlynqIntrPtrSet * * @b Description * @n Set the interrupt pointer register to the address passed. * * @b Arguments * @verbatim hVlynq Handle to the VLYNQ instance intrPtr interrupt address pointer. @endverbatim * * <b> Return Value </b> * None * * <b> Pre Condition </b> * @n None * * <b> Post Condition </b> * @n The interrupt pointer is set to the value passed. * * @b Modifies * @n VLYNQ interrupt pointer register. * * @b Example * @verbatim CSL_VlynqHandle hVlynq; ... CSL_vlynqIntrPtrSet (hVlynq, 0xFF0000FF); ... @endverbatim * =========================================================================== */CSL_IDEF_INLINEvoid CSL_vlynqIntrPtrSet ( CSL_VlynqHandle hVlynq, CSL_VlynqAdrPtr intrPtr){ /** Sets the INTPTR to point a configuration register/memory */ CSL_FINS(hVlynq->regs->INTPTR, VLYNQ_INTPTR_INTPTR, (Uint32)intrPtr); return;}/** ============================================================================ * @n@b CSL_vlynqTxAddrMapSet * * @b Description * @n Set the transmit address map to the address passed. *
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -