|
|
#define | NRF_CACHE_HAS_CACHEDATA 1 |
| | Symbol indicating whether CACHEDATA structure is present.
|
| |
|
#define | NRF_CACHE_HAS_DCACHEDATA 1 |
| | Symbol indicating whether DCACHEDATA structure is present.
|
| |
|
#define | NRF_CACHE_HAS_ICACHEDATA 1 |
| | Symbol indicating whether ICACHEDATA structure is present.
|
| |
|
#define | NRF_CACHE_HAS_ANY_CACHEDATA 1 |
| | Symbol indicating whether any CACHEDATA structure is present.
|
| |
|
#define | NRF_CACHE_HAS_CACHEDATA_DU 1 |
| | Symbol indicating whether CACHEDATA data units field is present.
|
| |
|
#define | NRF_CACHE_HAS_CACHEINFO 1 |
| | Symbol indicating whether CACHEINFO structure is present.
|
| |
|
#define | NRF_CACHE_HAS_DCACHEINFO 1 |
| | Symbol indicating whether DCACHEINFO structure is present.
|
| |
|
#define | NRF_CACHE_HAS_ICACHEINFO 1 |
| | Symbol indicating whether ICACHEINFO structure is present.
|
| |
|
#define | NRF_CACHE_HAS_ANY_CACHEINFO 1 |
| | Symbol indicating whether any CACHEINFO structure is present.
|
| |
|
#define | NRF_CACHE_HAS_CACHEINFO_DU_DIRTY 1 |
| | Symbol indicating whether dirtiness check functionality for cache is supported.
|
| |
|
#define | NRF_CACHE_HAS_CACHEINFO_DU_VALIDATION 1 |
| | Symbol indicating whether data unit validation functionality for cache is supported.
|
| |
|
#define | NRF_CACHE_HAS_CACHEINFO_SET_WAY_INFO 1 |
| | Symbol indicating whether cache info has INFO register.
|
| |
|
#define | NRF_CACHE_HAS_TASKS 1 |
| | Symbol indicating whether cache tasks are supported.
|
| |
|
#define | NRF_CACHE_HAS_TASK_CLEAN 1 |
| | Symbol indicating whether the CLEAN cache/line tasks are supported.
|
| |
|
#define | NRF_CACHE_HAS_TASK_ERASE 1 |
| | Symbol indicating whether the cache ERASE task is supported.
|
| |
|
#define | NRF_CACHE_HAS_ERASE 1 |
| | Symbol indicating whether the cache ERASE is supported.
|
| |
|
#define | NRF_CACHE_HAS_TASK_INVALIDATELINE 1 |
| | Symbol indicating whether the cache INVALIDATELINE task is supported.
|
| |
|
#define | NRF_CACHE_HAS_LINEADDR 1 |
| | Symbol indicating whether the cache LINEADDR task is supported.
|
| |
|
#define | NRF_CACHE_HAS_WRITELOCK 1 |
| | Symbol indicating whether the cache WRITELOCK task is supported.
|
| |
|
#define | NRF_CACHE_HAS_TASK_FLUSH 1 |
| | Symbol indicating whether the FLUSH cache/line tasks are supported.
|
| |
|
#define | NRF_CACHE_HAS_TASK_SAVE_RESTORE 1 |
| | Symbol indicating whether save and restore tasks are supported.
|
| |
|
#define | NRF_CACHE_HAS_STATUS 1 |
| | Symbol indicating whether status check is supported.
|
| |
|
#define | NRF_CACHE_HAS_RAM_MODE 1 |
| | Symbol indicating whether splitting the dedicated RAM between cache and generic memory is supported.
|
| |
|
#define | NRF_CACHE_HAS_RAMSIZE 1 |
| | Symbol indicating whether configuration of split of dedicated RAM between cache and generic memory is supported.
|
| |
|
#define | NRF_CACHE_HAS_DEBUGLOCK 1 |
| | Symbol indicating whether cache DEBUGLOCK is supported.
|
| |
|
#define | NRF_CACHEDATA_DATA_WORDS_IN_UNIT_MAX CACHEDATA_SET_WAY_DU_DATA_MaxCount |
| | Max number of words in CACHEDATA data units.
|
| |
|
#define | NRF_CACHEDATA_DATA_UNITS_MAX CACHEDATA_SET_WAY_DU_MaxCount |
| | Max number of CACHEDATA data units.
|
| |
|
#define | NRF_CACHEDATA_WORD_INDEX_MAX (NRF_CACHEDATA_DATA_WORDS_IN_UNIT_MAX * NRF_CACHEDATA_DATA_UNITS_MAX) |
| | Max number of CACHEDATA words.
|
| |
|
#define | NRF_CACHEDATA_WAY_INDEX_MAX CACHEDATA_SET_WAY_MaxCount |
| | Max number of CACHEDATA ways.
|
| |
|
#define | NRF_CACHEDATA_SET_INDEX_MAX CACHEDATA_SET_MaxCount |
| | Max number of CACHEDATA sets.
|
| |
|
#define | NRF_DCACHEDATA_DATA_WORDS_IN_UNIT_MAX DCACHEDATA_SET_WAY_DU_DATA_MaxCount |
| | Max number of words in DCACHEDATA data units.
|
| |
|
#define | NRF_DCACHEDATA_DATA_UNITS_MAX DCACHEDATA_SET_WAY_DU_MaxCount |
| | Max number of DCACHEDATA data units.
|
| |
|
#define | NRF_DCACHEDATA_WORD_INDEX_MAX (NRF_DCACHEDATA_DATA_WORDS_IN_UNIT_MAX * NRF_DCACHEDATA_DATA_UNITS_MAX) |
| | Max number of DCACHEDATA words.
|
| |
|
#define | NRF_DCACHEDATA_WAY_INDEX_MAX DCACHEDATA_SET_WAY_MaxCount |
| | Max number of DCACHEDATA ways.
|
| |
|
#define | NRF_DCACHEDATA_SET_INDEX_MAX DCACHEDATA_SET_MaxCount |
| | Max number of DCACHEDATA sets.
|
| |
|
#define | NRF_ICACHEDATA_DATA_WORDS_IN_UNIT_MAX CACHEDATA_SET_WAY_DU_DATA_MaxCount |
| | Max number of words in ICACHEDATA data units.
|
| |
|
#define | NRF_ICACHEDATA_DATA_UNITS_MAX CACHEDATA_SET_WAY_DU_MaxCount |
| | Max number of ICACHEDATA data units.
|
| |
|
#define | NRF_ICACHEDATA_WORD_INDEX_MAX (NRF_ICACHEDATA_DATA_WORDS_IN_UNIT_MAX * NRF_ICACHEDATA_DATA_UNITS_MAX) |
| | Max number of ICACHEDATA words.
|
| |
|
#define | NRF_ICACHEDATA_WAY_INDEX_MAX CACHEDATA_SET_WAY_MaxCount |
| | Max number of ICACHEDATA ways.
|
| |
|
#define | NRF_ICACHEDATA_SET_INDEX_MAX CACHEDATA_SET_MaxCount |
| | Max number of ICACHEDATA sets.
|
| |
|
#define | NRF_CACHEINFO_DATA_WORDS_IN_UNIT_MAX CACHEDATA_SET_WAY_DU_DATA_MaxCount |
| | Max number of words in CACHEINFO data units.
|
| |
|
#define | NRF_CACHEINFO_DATA_UNITS_MAX CACHEDATA_SET_WAY_DU_MaxCount |
| | Max number of CACHEINFO data units.
|
| |
|
#define | NRF_CACHEINFO_WORD_INDEX_MAX (NRF_CACHEINFO_DATA_WORDS_IN_UNIT_MAX * NRF_CACHEINFO_DATA_UNITS_MAX) |
| | Max number of CACHEINFO words.
|
| |
|
#define | NRF_CACHEINFO_WAY_INDEX_MAX CACHEINFO_SET_WAY_MaxCount |
| | Max number of CACHEINFO ways.
|
| |
|
#define | NRF_CACHEINFO_SET_INDEX_MAX CACHEINFO_SET_MaxCount |
| | Max number of CACHEINFO sets.
|
| |
|
#define | NRF_DCACHEINFO_DATA_WORDS_IN_UNIT_MAX DCACHEDATA_SET_WAY_DU_DATA_MaxCount |
| | Max number of words in DCACHEINFO data units.
|
| |
|
#define | NRF_DCACHEINFO_DATA_UNITS_MAX DCACHEDATA_SET_WAY_DU_MaxCount |
| | Max number of DCACHEINFO data units.
|
| |
|
#define | NRF_DCACHEINFO_WORD_INDEX_MAX (NRF_DCACHEINFO_DATA_WORDS_IN_UNIT_MAX * NRF_DCACHEINFO_DATA_UNITS_MAX) |
| | Max number of DCACHEINFO words.
|
| |
|
#define | NRF_DCACHEINFO_WAY_INDEX_MAX DCACHEINFO_SET_WAY_MaxCount |
| | Max number of DCACHEINFO ways.
|
| |
|
#define | NRF_DCACHEINFO_SET_INDEX_MAX DCACHEINFO_SET_MaxCount |
| | Max number of CACHEINFO sets.
|
| |
|
#define | NRF_ICACHEINFO_DATA_WORDS_IN_UNIT_MAX CACHEDATA_SET_WAY_DU_DATA_MaxCount |
| | Max number of words in ICACHEINFO data units.
|
| |
|
#define | NRF_ICACHEINFO_DATA_UNITS_MAX CACHEDATA_SET_WAY_DU_MaxCount |
| | Max number of ICACHEINFO data units.
|
| |
|
#define | NRF_ICACHEINFO_WORD_INDEX_MAX (NRF_ICACHEINFO_DATA_WORDS_IN_UNIT_MAX * NRF_ICACHEINFO_DATA_UNITS_MAX) |
| | Max number of ICACHEINFO words.
|
| |
|
#define | NRF_ICACHEINFO_WAY_INDEX_MAX CACHEINFO_SET_WAY_MaxCount |
| | Max number of ICACHEINFO ways.
|
| |
|
#define | NRF_ICACHEINFO_SET_INDEX_MAX CACHEINFO_SET_MaxCount |
| | Max number of ICACHEINFO sets.
|
| |
|
#define | NRF_ICACHEINFO_TAG_MASK CACHEINFO_SET_WAY_INFO_TAG_Msk |
| | Mask of ICACHEINFO TAG field.
|
| |
|
#define | NRF_ICACHEINFO_V_MASK CACHEINFO_SET_WAY_INFO_V_Msk |
| | Mask of ICACHEINFO V field.
|
| |
|
#define | NRF_ICACHEINFO_V_POS CACHEINFO_SET_WAY_INFO_V_Pos |
| | Position of ICACHEINFO V field.
|
| |
|
#define | NRF_ICACHEINFO_V_VALID CACHEINFO_SET_WAY_INFO_V_Valid |
| | Valid value of ICACHEINFO V field.
|
| |
|
#define | NRF_ICACHEINFO_MRU_MASK CACHEINFO_SET_WAY_INFO_MRU_Msk |
| | Mask of ICACHEINFO MRU field.
|
| |
|
#define | NRF_ICACHEINFO_MRU_POS CACHEINFO_SET_WAY_INFO_MRU_Pos |
| | Position of ICACHEINFO MRU field.
|
| |
|
#define | NRF_ICACHEINFO_DUV0_MASK CACHEINFO_SET_WAY_INFO_DUV0_Msk |
| | Mask of ICACHEINFO DUV0 field.
|
| |
|
#define | NRF_ICACHEINFO_DUV0_POS CACHEINFO_SET_WAY_INFO_DUV0_Pos |
| | Position of ICACHEINFO DUV0 field.
|
| |
|
#define | NRF_ICACHEINFO_DUV0_VALID CACHEINFO_SET_WAY_INFO_DUV0_Valid |
| | Valid value of ICACHEINFO DUV0 field.
|
| |
|
#define | NRF_ICACHEINFO_DUV1_MASK CACHEINFO_SET_WAY_INFO_DUV1_Msk |
| | Mask of ICACHEINFO DUV1 field.
|
| |
|
#define | NRF_ICACHEINFO_DUV1_POS CACHEINFO_SET_WAY_INFO_DUV1_Pos |
| | Position of ICACHEINFO DUV1 field.
|
| |
|
#define | NRF_ICACHEINFO_DUV1_VALID CACHEINFO_SET_WAY_INFO_DUV1_Valid |
| | Valid value of ICACHEINFO DUV1 field.
|
| |
|
#define | NRF_ICACHEINFO_DUV2_MASK CACHEINFO_SET_WAY_INFO_DUV2_Msk |
| | Mask of ICACHEINFO DUV2 field.
|
| |
|
#define | NRF_ICACHEINFO_DUV2_POS CACHEINFO_SET_WAY_INFO_DUV2_Pos |
| | Position of ICACHEINFO DUV2 field.
|
| |
|
#define | NRF_ICACHEINFO_DUV2_VALID CACHEINFO_SET_WAY_INFO_DUV2_Valid |
| | Valid value of ICACHEINFO DUV2 field.
|
| |
|
#define | NRF_ICACHEINFO_DUV3_MASK CACHEINFO_SET_WAY_INFO_DUV3_Msk |
| | Mask of ICACHEINFO DUV3 field.
|
| |
|
#define | NRF_ICACHEINFO_DUV3_POS CACHEINFO_SET_WAY_INFO_DUV3_Pos |
| | Position of ICACHEINFO DUV3 field.
|
| |
|
#define | NRF_ICACHEINFO_DUV3_VALID CACHEINFO_SET_WAY_INFO_DUV3_Valid |
| | Valid value of ICACHEINFO DUV3 field.
|
| |
|
#define | NRF_CACHE_MODE_RAMSIZE_MAX CACHE_MODE_RAMSIZE_Max |
| | Max enumerator value of RAMSIZE field.
|
| |
|
| NRF_STATIC_INLINE void | nrf_cache_enable (NRF_CACHE_Type *p_reg) |
| | Function for enabling the CACHE peripheral.
|
| |
| NRF_STATIC_INLINE void | nrf_cache_disable (NRF_CACHE_Type *p_reg) |
| | Function for disabling the CACHE peripheral.
|
| |
| NRF_STATIC_INLINE bool | nrf_cache_enable_check (NRF_CACHE_Type const *p_reg) |
| | Function for checking if the CACHE peripheral is enabled.
|
| |
| NRF_STATIC_INLINE void | nrf_cache_invalidate (NRF_CACHE_Type *p_reg) |
| | Function for invalidating the cache content.
|
| |
| NRF_STATIC_INLINE void | nrf_cache_erase (NRF_CACHE_Type *p_reg) |
| | Function for erasing the cache content.
|
| |
| NRF_STATIC_INLINE bool | nrf_cache_erase_status_check (NRF_CACHE_Type const *p_reg) |
| | Function for checking the status of nrf_cache_erase().
|
| |
| NRF_STATIC_INLINE void | nrf_cache_erase_status_clear (NRF_CACHE_Type *p_reg) |
| | Function for clearing the status of the cache erase.
|
| |
| NRF_STATIC_INLINE void | nrf_cache_profiling_set (NRF_CACHE_Type *p_reg, bool enable) |
| | Function for setting the cache profiling.
|
| |
| NRF_STATIC_INLINE void | nrf_cache_profiling_counters_clear (NRF_CACHE_Type *p_reg) |
| | Function for clearing the cache profiling counters.
|
| |
| NRF_STATIC_INLINE uint32_t | nrf_cache_instruction_hit_counter_get (NRF_CACHE_Type const *p_reg, nrf_cache_region_t region) |
| | Function for getting the number of cache hits for instruction fetch from the specified cache region.
|
| |
| NRF_STATIC_INLINE uint32_t | nrf_cache_instruction_miss_counter_get (NRF_CACHE_Type const *p_reg, nrf_cache_region_t region) |
| | Function for getting the number of cache misses for instruction fetch from the specified cache region.
|
| |
| NRF_STATIC_INLINE uint32_t | nrf_cache_data_hit_counter_get (NRF_CACHE_Type const *p_reg, nrf_cache_region_t region) |
| | Function for getting the number of cache hits for data fetch from the specified cache region.
|
| |
| NRF_STATIC_INLINE uint32_t | nrf_cache_data_miss_counter_get (NRF_CACHE_Type const *p_reg, nrf_cache_region_t region) |
| | Function for getting the number of cache misses for data fetch from the specified cache region.
|
| |
| NRF_STATIC_INLINE void | nrf_cache_ram_mode_set (NRF_CACHE_Type *p_reg, bool enable) |
| | Function for setting the cache RAM mode.
|
| |
| NRF_STATIC_INLINE bool | nrf_cache_ram_mode_check (NRF_CACHE_Type const *p_reg) |
| | Function for checking whether the cache is in RAM mode.
|
| |
| NRF_STATIC_INLINE void | nrf_cache_ramsize_set (NRF_CACHE_Type *p_reg, nrf_cache_ramsize_t ramsize) |
| | Function for setting the configuration of splitting the dedicated cache RAM.
|
| |
| NRF_STATIC_INLINE nrf_cache_ramsize_t | nrf_cache_ramsize_get (NRF_CACHE_Type const *p_reg) |
| | Function for getting the configuration of splitting the dedicated cache RAM.
|
| |
| NRF_STATIC_INLINE void | nrf_cache_read_lock_enable (NRF_CACHE_Type *p_reg) |
| | Function for blocking the cache content access.
|
| |
| NRF_STATIC_INLINE void | nrf_cache_update_lock_set (NRF_CACHE_Type *p_reg, bool enable) |
| | Function for blocking the cache content updates.
|
| |
| NRF_STATIC_INLINE uint32_t | nrf_cache_data_get (NRF_CACHE_Type const *p_reg, uint32_t set, uint8_t way, uint8_t word) |
| | Function for getting the cache data word.
|
| |
| NRF_STATIC_INLINE uint32_t | nrf_cache_tag_get (NRF_CACHE_Type const *p_reg, uint32_t set, uint8_t way) |
| | Function for getting the tag associated with the specified set and way.
|
| |
| NRF_STATIC_INLINE bool | nrf_cache_line_validity_check (NRF_CACHE_Type const *p_reg, uint32_t set, uint8_t way) |
| | Function for checking the validity of a cache line associated with the specified set and way.
|
| |
| NRF_STATIC_INLINE uint8_t | nrf_cache_mru_get (NRF_CACHE_Type const *p_reg, uint32_t set) |
| | Function for getting the most recently used way in the specified set.
|
| |
| NRF_STATIC_INLINE bool | nrf_cache_data_unit_validity_check (NRF_CACHE_Type const *p_reg, uint32_t set, uint8_t way, uint8_t word) |
| | Function for checking the validity of a data unit associated with the specified set, way and word.
|
| |
| NRF_STATIC_INLINE bool | nrf_cache_is_data_unit_dirty_check (NRF_CACHE_Type const *p_reg, uint32_t set, uint8_t way, uint8_t word) |
| | Function for checking the dirtiness of a data unit associated with the specified set, way and word.
|
| |
| NRF_STATIC_INLINE void | nrf_cache_lineaddr_set (NRF_CACHE_Type *p_reg, uint32_t addr) |
| | Function to set the memory address covered by the line to be maintained.
|
| |
| NRF_STATIC_INLINE uint32_t | nrf_cache_lineaddr_get (NRF_CACHE_Type const *p_reg) |
| | Function to get the memory address covered by the line to be maintained.
|
| |
| NRF_STATIC_INLINE void | nrf_cache_task_trigger (NRF_CACHE_Type *p_reg, nrf_cache_task_t task) |
| | Function for triggering the specified CACHE task.
|
| |
| NRF_STATIC_INLINE uint32_t | nrf_cache_task_address_get (NRF_CACHE_Type const *p_reg, nrf_cache_task_t task) |
| | Function for returning the address of the specified task register.
|
| |
| NRF_STATIC_INLINE bool | nrf_cache_busy_check (NRF_CACHE_Type const *p_reg) |
| | Function for checking if the cache is busy or not.
|
| |
The hardware access layer for managing the CACHE peripheral.