RTI Driver API/interface file.
Go to the source code of this file.
Macros | |
RTI Global Control Stall Modes | |
#define | RTI_GC_STALL_MODE_ON (CSL_RTI_RTIGCTRL_COS_STOPPED) |
The counters will be stopped while in debug halting mode. More... | |
#define | RTI_GC_STALL_MODE_OFF (CSL_RTI_RTIGCTRL_COS_RUNNING) |
The counters will be running while in debug halting mode. More... | |
RTI Timer Counter Block Indexes | |
#define | RTI_TMR_CNT_BLK_INDEX_0 (0U) |
RTI Timer counter block 0. More... | |
#define | RTI_TMR_CNT_BLK_INDEX_1 (1U) |
RTI Timer counter block 1. More... | |
#define | RTI_TMR_CNT_BLK_INDEX_MAX (RTI_TMR_CNT_BLK_INDEX_1) |
RTI Timer counter block maximum. More... | |
RTI Timer Compare Block Indexes | |
#define | RTI_TMR_CMP_BLK_INDEX_0 (0U) |
RTI Timer compare block 0. More... | |
#define | RTI_TMR_CMP_BLK_INDEX_1 (1U) |
RTI Timer compare block 1. More... | |
#define | RTI_TMR_CMP_BLK_INDEX_2 (2U) |
RTI Timer compare block 2. More... | |
#define | RTI_TMR_CMP_BLK_INDEX_3 (3U) |
RTI Timer compare block 3. More... | |
#define | RTI_TMR_CMP_BLK_INDEX_MAX (RTI_TMR_CMP_BLK_INDEX_3) |
RTI Timer compare block maximum. More... | |
RTI Timer Prescaler Value Ranges | |
#define | RTI_TMR_MIN_PRESCALER_VAL (1U) |
Minimum possible prescaler value for RTI Timer UP counter. More... | |
#define | RTI_TMR_MAX_PRESACLER_VAL (0xFFFFFFFFU) |
Maximum possible prescaler value for RTI Timer UP counter(2^32). More... | |
RTI Timer Interrupt Set/Indication Flags | |
#define | RTI_TMR_INT_INT0_FLAG (CSL_RTI_RTISETINT_SETINT0_MASK) |
Comapre 0 match interrupt. More... | |
#define | RTI_TMR_INT_INT1_FLAG (CSL_RTI_RTISETINT_SETINT1_MASK) |
Comapre 1 match interrupt. More... | |
#define | RTI_TMR_INT_INT2_FLAG (CSL_RTI_RTISETINT_SETINT2_MASK) |
Comapre 2 match interrupt. More... | |
#define | RTI_TMR_INT_INT3_FLAG (CSL_RTI_RTISETINT_SETINT3_MASK) |
Comapre 3 match interrupt. More... | |
#define | RTI_TMR_INT_DMA0_FLAG (CSL_RTI_RTISETINT_SETDMA0_MASK) |
Comapre 0 match DMA request. More... | |
#define | RTI_TMR_INT_DMA1_FLAG (CSL_RTI_RTISETINT_SETDMA1_MASK) |
Comapre 1 match DMA request. More... | |
#define | RTI_TMR_INT_DMA2_FLAG (CSL_RTI_RTISETINT_SETDMA2_MASK) |
Comapre 2 match DMA request. More... | |
#define | RTI_TMR_INT_DMA3_FLAG (CSL_RTI_RTISETINT_SETDMA3_MASK) |
Comapre 3 match DMA request. More... | |
#define | RTI_TMR_INT_TB_FLAG (CSL_RTI_RTISETINT_SETTBINT_MASK) |
Timebase interrupt: detection of a missing external clock edge. More... | |
#define | RTI_TMR_INT_OVL0_FLAG (CSL_RTI_RTISETINT_SETOVL0INT_MASK) |
Free running counter 0 overflow. More... | |
#define | RTI_TMR_INT_OVL1_FLAG (CSL_RTI_RTISETINT_SETOVL1INT_MASK) |
Free running counter 1 overflow. More... | |
#define | RTI_TMR_INT_STATUS_ALL |
All interrupt status mask. More... | |
#define | RTI_TMR_INT_REQ_ALL |
All interrupt request mask. More... | |
RTI Timer Interrupt Auto Clear Enable/Disable Flags | |
#define | RTI_TMR_INT_AUTO_CLR_ENABLE_FLAG (0x0000000FU) |
Compare interrupt Auto Clear Enable. More... | |
#define | RTI_TMR_INT_AUTO_CLR_DISABLE_FLAG (0x00000005U) |
Compare interrupt Auto Clear Disable. More... | |
RTI Timer NTU IDs | |
#define | RTI_TMR_NTU_0 (0x0U) |
RTI Timer NTU 0. More... | |
#define | RTI_TMR_NTU_1 (0x5U) |
RTI Timer NTU 1. More... | |
#define | RTI_TMR_NTU_2 (0xAU) |
RTI Timer NTU 2. More... | |
#define | RTI_TMR_NTU_3 (0xFU) |
RTI Timer NTU 3. More... | |
RTI Timer Capture Event Indexes | |
#define | RTI_TMR_CAPTURE_EVT_0 (0U) |
RTI Timer Capture Event source 0. More... | |
#define | RTI_TMR_CAPTURE_EVT_1 (1U) |
RTI Timer Capture Event source 1. More... | |
#define | RTI_TMR_CAPTURE_EVT_MAX (RTI_TMR_CAPTURE_EVT_1) |
RTI Timer Capture Event source maximum. More... | |
RTI Timer Clock Source | |
#define | RTI_TMR_CLK_SRC_COUNTER (0U) |
Use counter block 0 up counter as clock source of the free runnung counter. More... | |
#define | RTI_TMR_CLK_SRC_NTU (1U) |
Use one of NTU as clock source of the free runnung counter. More... | |
Functions | |
int32_t | RTIG_setStallMode (uint32_t baseAddr, uint32_t stallMode) |
Set the stall mode in RTI Global Control. More... | |
int32_t | RTI_counterEnable (uint32_t baseAddr, uint32_t cntIndex) |
Start the timer. More... | |
int32_t | RTI_counterDisable (uint32_t baseAddr, uint32_t cntIndex) |
Stop the timer. More... | |
int32_t | RTI_counterClear (uint32_t baseAddr, uint32_t cntIndex) |
Clear Timer Counter block. More... | |
int32_t | RTI_compareClear (uint32_t baseAddr, uint32_t cmpIndex) |
Clear Timer Compare block. More... | |
int32_t | RTI_counterGet (uint32_t baseAddr, uint32_t cntIndex, uint32_t *counterLow, uint32_t *counterHigh) |
Get/Read the counter value from the counter registers. More... | |
int32_t | RTI_captureConfig (uint32_t baseAddr, uint32_t cntIndex, uint32_t cntrCapSrc) |
Configure Capture operation. More... | |
int32_t | RTI_captureCounterGet (uint32_t baseAddr, uint32_t cntIndex, uint32_t *counterLow, uint32_t *counterHigh) |
Get/Read the counter value from the capture registers. More... | |
int32_t | RTI_compareEventConfig (uint32_t baseAddr, uint32_t cmpIndex, uint32_t cntBlkIndex, uint32_t cmpVal, uint32_t period) |
Confiure Compare operation. More... | |
int32_t | RTI_counterConfigure (uint32_t baseAddr, uint32_t cntBlkIndex, uint32_t clkSrc, uint32_t ntu, uint32_t prescaler) |
Confiure Compare operation. More... | |
uint32_t | RTI_compareGet (uint32_t baseAddr, uint32_t cmpIndex) |
Get the compare match register contents. More... | |
int32_t | RTI_compareClearConfig (uint32_t baseAddr, uint32_t cmpIndex, uint32_t cmpClearVal) |
Confiure Compare Clear operation. More... | |
uint32_t | RTI_intStatusGet (uint32_t baseAddr) |
Read the status of INTFLAG register. More... | |
int32_t | RTI_intStatusClear (uint32_t baseAddr, uint32_t intFlags) |
Clear the status of interrupt events. More... | |
int32_t | RTI_intEnable (uint32_t baseAddr, uint32_t intFlags) |
Enable the Timer interrupts. More... | |
int32_t | RTI_intDisable (uint32_t baseAddr, uint32_t intFlags) |
Disable the Timer interrupts. More... | |
int32_t | RTI_intAutoClearEnable (uint32_t baseAddr, uint32_t cmpIndex) |
Enable the Compare interrupt auto clear. More... | |
int32_t | RTI_intAutoClearDisable (uint32_t baseAddr, uint32_t cmpIndex) |
Disable the Compare interrupt auto clear. More... | |