|
SmartSnippets DA1459x SDK
|
Go to the documentation of this file.
45 #if dg_configUSE_HW_CACHE
67 CACHE->CACHE_MRM_MISSES_THRES_REG = thres;
78 return CACHE->CACHE_MRM_MISSES_THRES_REG;
92 CACHE->CACHE_MRM_HITS_THRES_REG = thres;
103 return CACHE->CACHE_MRM_HITS_THRES_REG;
114 return REG_GETF(CACHE, CACHE_MRM_CTRL_REG, MRM_IRQ_MISSES_THRES_STATUS);
124 REG_CLR_BIT(CACHE, CACHE_MRM_CTRL_REG, MRM_IRQ_MISSES_THRES_STATUS);
135 return REG_GETF(CACHE, CACHE_MRM_CTRL_REG, MRM_IRQ_HITS_THRES_STATUS);
145 REG_CLR_BIT(CACHE, CACHE_MRM_CTRL_REG, MRM_IRQ_HITS_THRES_STATUS);
162 CACHE->CACHE_MRM_TINT_REG = tint;
185 return REG_GETF(CACHE, CACHE_MRM_CTRL_REG, MRM_IRQ_TINT_STATUS);
194 REG_CLR_BIT(CACHE, CACHE_MRM_CTRL_REG, MRM_IRQ_TINT_STATUS);
227 return CACHE->CACHE_MRM_MISSES_REG;
240 CACHE->CACHE_MRM_MISSES_REG = misses;
251 return CACHE->CACHE_MRM_HITS_REG;
264 CACHE->CACHE_MRM_HITS_REG = hits;
#define REG_CLR_BIT(base, reg, field)
Clear a bit of a register.
Definition: sdk_defs.h:781
#define REG_SET_BIT(base, reg, field)
Set a bit of a register.
Definition: sdk_defs.h:766
void hw_cache_mrm_enable_interrupt(hw_cache_mrm_cb_t cb)
Enable the MRM interrupt generation.
__STATIC_INLINE uint32_t hw_cache_mrm_get_hits(void)
Get the cache MRM cache hits number.
Definition: hw_cache.h:249
__STATIC_INLINE void hw_cache_mrm_start_counters(void)
Start MRM counters.
Definition: hw_cache.h:205
__STATIC_INLINE bool hw_cache_mrm_get_misses_thres_status(void)
Get the cache MRM misses threshold IRQ status.
Definition: hw_cache.h:112
Definition of DA1459x specific API for the iCache Controller Low Level Driver.
__STATIC_INLINE uint32_t hw_cache_mrm_get_hits_thres(void)
Get the cache MRM interrupt threshold for hits.
Definition: hw_cache.h:101
Central include header file with platform definitions.
__STATIC_INLINE uint32_t hw_cache_mrm_get_tint(void)
Get the cache MRM monitoring time interval.
Definition: hw_cache.h:171
void hw_cache_mrm_disable_interrupt(void)
Disable the MRM interrupt generation.
__STATIC_INLINE bool hw_cache_mrm_get_hits_thres_status(void)
Get the cache MRM hits threshold IRQ status.
Definition: hw_cache.h:133
__STATIC_INLINE void hw_cache_mrm_set_misses_thres(uint32_t thres)
Set the cache MRM interrupt threshold for misses.
Definition: hw_cache.h:65
__STATIC_INLINE void hw_cache_mrm_set_tint(uint32_t tint)
Set the cache MRM monitoring time interval.
Definition: hw_cache.h:159
__STATIC_INLINE void hw_cache_mrm_freeze_counters(void)
Freeze MRM counters.
Definition: hw_cache.h:214
__STATIC_INLINE void hw_cache_mrm_clr_tint_status(void)
Clear the cache MRM timer interval IRQ status.
Definition: hw_cache.h:192
__STATIC_INLINE void hw_cache_mrm_set_misses(uint32_t misses)
Set the cache MRM cache misses number.
Definition: hw_cache.h:238
#define REG_GETF(base, reg, field)
Return the value of a register field.
Definition: sdk_defs.h:711
__STATIC_INLINE void hw_cache_mrm_clr_hits_thres_status(void)
Clear the cache MRM hits threshold IRQ status.
Definition: hw_cache.h:143
__STATIC_INLINE uint32_t hw_cache_mrm_get_misses_thres(void)
Get the cache MRM interrupt threshold for misses.
Definition: hw_cache.h:76
__STATIC_INLINE void hw_cache_mrm_clr_misses_thres_status(void)
Clear the cache MRM misses threshold IRQ status.
Definition: hw_cache.h:122
__STATIC_INLINE void hw_cache_mrm_set_hits(uint32_t hits)
Set the cache MRM cache hits number.
Definition: hw_cache.h:262
#define CACHE_CACHE_MRM_TINT_REG_MRM_TINT_Msk
Definition: DA1459x-00.h:1670
__STATIC_INLINE uint32_t hw_cache_mrm_get_misses(void)
Get the cache MRM misses number.
Definition: hw_cache.h:225
__STATIC_INLINE void hw_cache_mrm_set_hits_thres(uint32_t thres)
Set the cache MRM interrupt threshold for hits.
Definition: hw_cache.h:90
__STATIC_INLINE bool hw_cache_mrm_get_tint_status(void)
Get the cache MRM timer interval IRQ status.
Definition: hw_cache.h:183
void(* hw_cache_mrm_cb_t)(void)
Application defined callback for the MRM interrupt.
Definition: hw_cache.h:273