📄 csl_rtiaux.h
字号:
* @n Returns compare2 register value
*
* @b Modifies
* @n None
*
* @b Example
* @verbatim
CSL_RtiHandle hRti;
Uint32 compCnt;
...
compCnt = CSL_rtiGetComp2Cnt (hRti);
...
@endverbatim
* ===========================================================================
*/
static inline
Uint32 CSL_rtiGetComp2Cnt (
CSL_RtiHandle hRti
)
{
Uint32 compCnt = 0;
/* Read the compare2 register value */
compCnt = (Uint32)hRti->regs->RTICOMP2;
return compCnt;
}
/** ============================================================================
* @n@b CSL_rtiGetComp3Cnt
*
* @b Description
* @n Get the compare3 register value
*
* @b Arguments
* @verbatim
hRti Handle to the real time interrupt instance
* @endverbatim
*
* <b> Return Value </b> Uint32
*
* <b> Pre Condition </b>
* @n None
*
* <b> Post Condition </b>
* @n Returns compare3 register value
*
* @b Modifies
* @n None
*
* @b Example
* @verbatim
CSL_RtiHandle hRti;
Uint32 compCnt;
...
compCnt = CSL_rtiGetComp3Cnt (hRti);
...
@endverbatim
* ===========================================================================
*/
static inline
Uint32 CSL_rtiGetComp3Cnt (
CSL_RtiHandle hRti
)
{
Uint32 compCnt = 0;
/* Read the compare3 register value */
compCnt = (Uint32)hRti->regs->RTICOMP3;
return compCnt;
}
/** ============================================================================
* @n@b CSL_rtiGetOvlInt0Stat
*
* @b Description
* @n Get the status overflow interrupt0
*
* @b Arguments
* @verbatim
hRti Handle to the real time interrupt instance
* @endverbatim
*
* <b> Return Value </b> Bool
*
* <b> Pre Condition </b>
* @n None
*
* <b> Post Condition </b>
* @n Returns status overflow interrupt0
*
* @b Modifies
* @n None
*
* @b Example
* @verbatim
CSL_RtiHandle hRti;
Bool pend;
...
pend = CSL_rtiGetOvlInt0Stat (hRti);
...
@endverbatim
* ===========================================================================
*/
static inline
Bool CSL_rtiGetOvlInt0Stat (
CSL_RtiHandle hRti
)
{
Bool pend;
/* Read status overflow interrupt0 */
pend = (Bool) CSL_FEXT(hRti->regs->RTIINTFLAG, RTI_RTIINTFLAG_OVL0INT);
return pend;
}
/** ============================================================================
* @n@b CSL_rtiGetOvlInt1Stat
*
* @b Description
* @n Get the status overflow interrupt1
*
* @b Arguments
* @verbatim
hRti Handle to the real time interrupt instance
* @endverbatim
*
* <b> Return Value </b> Bool
*
* <b> Pre Condition </b>
* @n None
*
* <b> Post Condition </b>
* @n Returns status overflow interrupt1
*
* @b Modifies
* @n None
*
* @b Example
* @verbatim
CSL_RtiHandle hRti;
Bool pend;
...
pend = CSL_rtiGetOvlInt1Stat (hRti);
...
@endverbatim
* ===========================================================================
*/
static inline
Bool CSL_rtiGetOvlInt1Stat (
CSL_RtiHandle hRti
)
{
Bool pend;
/* Read status overflow interrupt1 */
pend = (Bool) CSL_FEXT(hRti->regs->RTIINTFLAG, RTI_RTIINTFLAG_OVL1INT);
return pend;
}
/** ============================================================================
* @n@b CSL_rtiGetInt0Stat
*
* @b Description
* @n Get the status compare interrupt0
*
* @b Arguments
* @verbatim
hRti Handle to the real time interrupt instance
* @endverbatim
*
* <b> Return Value </b> Bool
*
* <b> Pre Condition </b>
* @n None
*
* <b> Post Condition </b>
* @n Returns status compare interrupt0
*
* @b Modifies
* @n None
*
* @b Example
* @verbatim
CSL_RtiHandle hRti;
Bool pend;
...
pend = CSL_rtiGetInt0Stat (hRti);
...
@endverbatim
* ===========================================================================
*/
static inline
Bool CSL_rtiGetInt0Stat (
CSL_RtiHandle hRti
)
{
Bool pend;
/* Read status compare interrupt0 */
pend = (Bool) CSL_FEXT(hRti->regs->RTIINTFLAG, RTI_RTIINTFLAG_INT0);
return pend;
}
/** ============================================================================
* @n@b CSL_rtiGetInt1Stat
*
* @b Description
* @n Get the status compare interrupt1
*
* @b Arguments
* @verbatim
hRti Handle to the real time interrupt instance
* @endverbatim
*
* <b> Return Value </b> Bool
*
* <b> Pre Condition </b>
* @n None
*
* <b> Post Condition </b>
* @n Returns status compare interrupt1
*
* @b Modifies
* @n None
*
* @b Example
* @verbatim
CSL_RtiHandle hRti;
Bool pend;
...
pend = CSL_rtiGetInt1Stat (hRti);
...
@endverbatim
* ===========================================================================
*/
static inline
Bool CSL_rtiGetInt1Stat (
CSL_RtiHandle hRti
)
{
Bool pend;
/* Read status compare interrupt1 */
pend = (Bool) CSL_FEXT(hRti->regs->RTIINTFLAG, RTI_RTIINTFLAG_INT1);
return pend;
}
/** ============================================================================
* @n@b CSL_rtiGetInt2Stat
*
* @b Description
* @n Get the status compare interrupt2
*
* @b Arguments
* @verbatim
hRti Handle to the real time interrupt instance
* @endverbatim
*
* <b> Return Value </b> Bool
*
* <b> Pre Condition </b>
* @n None
*
* <b> Post Condition </b>
* @n Returns status compare interrupt2
*
* @b Modifies
* @n None
*
* @b Example
* @verbatim
CSL_RtiHandle hRti;
Bool pend;
...
pend = CSL_rtiGetInt2Stat (hRti);
...
@endverbatim
* ===========================================================================
*/
static inline
Bool CSL_rtiGetInt2Stat (
CSL_RtiHandle hRti
)
{
Bool pend;
/* Read status compare interrupt2 */
pend = (Bool) CSL_FEXT(hRti->regs->RTIINTFLAG, RTI_RTIINTFLAG_INT2);
return pend;
}
/** ============================================================================
* @n@b CSL_rtiGetInt3Stat
*
* @b Description
* @n Get the status compare interrupt3
*
* @b Arguments
* @verbatim
hRti Handle to the real time interrupt instance
* @endverbatim
*
* <b> Return Value </b> Bool
*
* <b> Pre Condition </b>
* @n None
*
* <b> Post Condition </b>
* @n Returns status compare interrupt3
*
* @b Modifies
* @n None
*
* @b Example
* @verbatim
CSL_RtiHandle hRti;
Bool pend;
...
pend = CSL_rtiGetInt3Stat (hRti);
...
@endverbatim
* ===========================================================================
*/
static inline
Bool CSL_rtiGetInt3Stat (
CSL_RtiHandle hRti
)
{
Bool pend;
/* Read status compare interrupt3 */
pend = (Bool) CSL_FEXT(hRti->regs->RTIINTFLAG, RTI_RTIINTFLAG_INT3);
return pend;
}
/** ============================================================================
* @n@b CSL_rtiGetDwdStatus
*
* @b Description
* @n Get the status digital watchdog
*
* @b Arguments
* @verbatim
hRti Handle to the real time interrupt instance
* @endverbatim
*
* <b> Return Value </b> Bool
*
* <b> Pre Condition </b>
* @n None
*
* <b> Post Condition </b>
* @n Returns status digital watchdog
*
* @b Modifies
* @n None
*
* @b Example
* @verbatim
CSL_RtiHandle hRti;
Bool status;
...
status = CSL_rtiGetDwdStatus (hRti);
...
@endverbatim
* ===========================================================================
*/
static inline
Bool CSL_rtiGetDwdStatus (
CSL_RtiHandle hRti
)
{
Bool status;
/* Read status digital watchdog */
status = (Bool) CSL_FEXT(hRti->regs->RTIWDSTATUS, RTI_RTIWDSTATUS_DWDST);
return status;
}
/** ============================================================================
* @n@b CSL_rtiGetDwdDwnCtrStatus
*
* @b Description
* @n Get the status of digital watchdog down counter
*
* @b Arguments
* @verbatim
hRti Handle to the real time interrupt instance
* @endverbatim
*
* <b> Return Value </b> Uint32
*
* <b> Pre Condition </b>
* @n None
*
* <b> Post Condition </b>
* @n Returns status digital watchdog down counter
*
* @b Modifies
* @n None
*
* @b Example
* @verbatim
CSL_RtiHandle hRti;
Uint32 status;
...
status = CSL_rtiGetDwdDwnCtrStatus (hRti);
...
@endverbatim
* ===========================================================================
*/
static inline
Uint32 CSL_rtiGetDwdDwnCtrStatus (
CSL_RtiHandle hRti
)
{
Uint32 status;
/* Read status digital watchdog */
status = (Uint32) CSL_FEXT(hRti->regs->RTIDWDCNTR, RTI_RTIDWDCNTR_DWDCNTR);
return status;
}
/**
* Control command functions of the Real time interrupt
*/
/** ============================================================================
* @n@b CSL_rtiBlock0Start
*
* @b Description
* Start the Block0 Counters
*
* @b Arguments
* @verbatim
hRti Handle to the real time interrupt instance
@endverbatim
*
* <b> Return Value </b>
* None
*
* <b> Pre Condition </b>
* @n None
*
* <b> Post Condition </b>
* @n real time interrupt block0 counters started
*
* @b Modifies
* @n RTI Global Control register
*
* @b Example
* @verbatim
CSL_RtiHandle hRti;
...
CSL_rtiBlock0Start (hRti);
...
@endverbatim
* ===========================================================================
*/
static inline
void CSL_rtiBlock0Start (
CSL_RtiHandle hRti
)
{
CSL_FINST (hRti->regs->RTIGCTRL, RTI_RTIGCTRL_CNT0EN, STARTBLK0);
}
/** ============================================================================
* @n@b CSL_rtiBlock0Stop
*
* @b Description
* Stop the Block0 Counters
*
* @b Arguments
* @verbatim
hRti Handle to the real time interrupt instance
@endverbatim
*
* <b> Return Value </b>
* None
*
* <b> Pre Condition </b>
* @n None
*
* <b> Post Condition </b>
* @n real time interrupt block0 counters stoped
*
* @b Modifies
* @n RTI Global Control register
*
* @b Example
* @verbatim
CSL_RtiHandle hRti;
...
CSL_rtiBlock0Stop (hRti);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -