MAX32655 Peripheral Driver API
Peripheral Driver API for the MAX32655
emcc.h
1 
47 #ifndef _EMCC_H_
48 #define _EMCC_H_
49 
50 /***** Includes *****/
51 #include "emcc_regs.h"
52 #include "mxc_device.h"
53 
54 #ifdef __cplusplus
55 extern "C" {
56 #endif
57 
58 /***** Definitions *****/
59 
63 typedef enum {
64  EMCC_CACHE_ID_RELNUM, // Release Number
65  EMCC_CACHE_ID_PARTNUM, // Part Number
66  EMCC_CACHE_ID_CCHID // Cache ID
67 }
69 
70 /***** Function Prototypes *****/
71 
77 uint32_t MXC_EMCC_ID (mxc_emcc_cache_id_t id);
78 
83 uint32_t MXC_EMCC_CacheSize (void);
84 
89 uint32_t MXC_EMCC_MemSize (void);
90 
94 void MXC_EMCC_Enable (void);
95 
99 void MXC_EMCC_Disable (void);
100 
104 void MXC_EMCC_Flush (void);
105 
109 void MXC_EMCC_WriteAllocEnable (void);
110 
114 void MXC_EMCC_WriteAllocDisable (void);
115 
120 
125 
130 uint32_t MXC_EMCC_Ready (void);
131 
132 
133 #ifdef __cplusplus
134 }
135 #endif
136 
137 
138 #endif /* _EMCC_H_*/
139 
mxc_emcc_cache_id_t
Definition: emcc.h:63
uint32_t MXC_EMCC_ID(mxc_emcc_cache_id_t id)
Reads the data from the EMCC Cache ID Register.
void MXC_EMCC_WriteAllocEnable(void)
Enables write-allocate mode with data cache controller.
void MXC_EMCC_Flush(void)
Flushes the data cache controller.
uint32_t MXC_EMCC_MemSize(void)
Gets the main memory size in units of 128KB. The default value is 512MB.
void MXC_EMCC_Enable(void)
Enables the data cache controller.
void MXC_EMCC_WriteAllocDisable(void)
Disables write-allocate mode with data cache controller.
void MXC_EMCC_Disable(void)
Disables the data cache controller.
uint32_t MXC_EMCC_CacheSize(void)
Gets the cache size in Kbytes. The default value is 16KB.
uint32_t MXC_EMCC_Ready(void)
Reads the EMCC Cache ready flag, which is set and cleared by hardware.
void MXC_EMCC_CriticalWordFirstDisable(void)
Disables critical-word-first mode with data cache controller.
void MXC_EMCC_CriticalWordFirstEnable(void)
Enables critical-word-first mode with data cache controller.