MAX32665 SDK Documentation  0.2
Software Development Kit Overview and API Documentation
emcc.h
1 
50 #ifndef _EMCC_H_
51 #define _EMCC_H_
52 
53 /***** Includes *****/
54 #include "emcc_regs.h"
55 #include "mxc_config.h"
56 
57 #ifdef __cplusplus
58 extern "C" {
59 #endif
60 
61 /***** Definitions *****/
62 
66 typedef enum {
67  EMCC_CACHE_ID_RELNUM, // Release Number
68  EMCC_CACHE_ID_PARTNUM, // Part Number
69  EMCC_CACHE_ID_CCHID // Cache ID
70 }
72 
73 /***** Function Prototypes *****/
74 
80 uint32_t EMCC_ID(emcc_cache_id_t id);
81 
86 uint32_t EMCC_Cache_Size(void);
87 
92 uint32_t EMCC_Mem_Size(void);
93 
97 void EMCC_Enable(void);
98 
102 void EMCC_Disable(void);
103 
107 void EMCC_Flush(void);
108 
112 void EMCC_Write_Alloc_Enable(void);
113 
117 void EMCC_Write_Alloc_Disable(void);
118 
123 
128 
133 uint32_t EMCC_Ready(void);
134 
138 void EMCC_Invalidate_All(void);
139 
140 
141 #ifdef __cplusplus
142 }
143 #endif
144 
145 
146 #endif /* _EMCC_H_*/
147 
emcc_cache_id_t
Enumeration type for the EMCC Cache ID Register.
Definition: emcc.h:66
void EMCC_Disable(void)
Disables the data cache controller.
uint32_t EMCC_Cache_Size(void)
Gets the cache size in Kbytes.
uint32_t EMCC_ID(emcc_cache_id_t id)
Reads the data from the EMCC Cache ID Register.
void EMCC_Enable(void)
Enables the data cache controller.
uint32_t EMCC_Mem_Size(void)
Gets the main memory size in units of 128KB.
void EMCC_Critical_Word_First_Disable(void)
Disables critical-word-first mode with data cache controller.
void EMCC_Invalidate_All(void)
Invalidate the entire contents of the data cache.
void EMCC_Write_Alloc_Disable(void)
Disables write-allocate mode with data cache controller.
uint32_t EMCC_Ready(void)
Reads the EMCC Cache ready flag, which is set and cleared by hardware.
void EMCC_Write_Alloc_Enable(void)
Enables write-allocate mode with data cache controller.
void EMCC_Flush(void)
Flushes the data cache controller.
void EMCC_Critical_Word_First_Enable(void)
Enables critical-word-first mode with data cache controller.