MAX32665 SDK Documentation  0.2
Software Development Kit Overview and API Documentation
External Memory Cache Controller (EMCC)

Modules

 EMCC_Registers
 Registers, Bit Masks and Bit Positions for the EMCC Peripheral Module.
 

Enumerations

enum  emcc_cache_id_t {
  EMCC_CACHE_ID_RELNUM,
  EMCC_CACHE_ID_PARTNUM,
  EMCC_CACHE_ID_CCHID
}
 Enumeration type for the EMCC Cache ID Register.
 

Functions

uint32_t EMCC_ID (emcc_cache_id_t id)
 Reads the data from the EMCC Cache ID Register. More...
 
uint32_t EMCC_Cache_Size (void)
 Gets the cache size in Kbytes. More...
 
uint32_t EMCC_Mem_Size (void)
 Gets the main memory size in units of 128KB. More...
 
void EMCC_Enable (void)
 Enables the data cache controller.
 
void EMCC_Disable (void)
 Disables the data cache controller.
 
void EMCC_Flush (void)
 Flushes the data cache controller.
 
void EMCC_Write_Alloc_Enable (void)
 Enables write-allocate mode with data cache controller.
 
void EMCC_Write_Alloc_Disable (void)
 Disables write-allocate mode with data cache controller.
 
void EMCC_Critical_Word_First_Enable (void)
 Enables critical-word-first mode with data cache controller.
 
void EMCC_Critical_Word_First_Disable (void)
 Disables critical-word-first mode with data cache controller.
 
uint32_t EMCC_Ready (void)
 Reads the EMCC Cache ready flag, which is set and cleared by hardware. More...
 
void EMCC_Invalidate_All (void)
 Invalidate the entire contents of the data cache.
 

Detailed Description

Function Documentation

◆ EMCC_ID()

uint32_t EMCC_ID ( emcc_cache_id_t  id)
Parameters
idEnumeration type for the EMCC Cache ID Register
Returns
The contents of EMCC cache ID Register

◆ EMCC_Cache_Size()

uint32_t EMCC_Cache_Size ( void  )

The default value is 16KB.

Returns
Cache size, in Kbytes

◆ EMCC_Mem_Size()

uint32_t EMCC_Mem_Size ( void  )

The default value is 512MB.

Returns
Main memory size, in units of 128KB

◆ EMCC_Ready()

uint32_t EMCC_Ready ( void  )
Returns
EMCC Cache ready flag