![]() |
![]() |
MEMORY functional layer API header file. More...
#include <cslr.h>#include <csl_error.h>#include <csl_types.h>#include <soc.h>#include <csl_general.h>Go to the source code of this file.
Defines | |
| #define | CSL_DARAM_BANK_COUNT (8) |
| #define | CSL_SARAM_BANK_COUNT (32) |
| #define | CSL_DARAM_BANK_NUM_MAX (CSL_DARAM_BANK_COUNT - 1) |
| #define | CSL_SARAM_BANK_NUM_MAX (CSL_SARAM_BANK_COUNT - 1) |
| #define | CSL_MEM_DARAM_BANK0 (0) |
| #define | CSL_MEM_DARAM_BANK7 (7u) |
| #define | CSL_MEM_SARAM_BANK0 (0) |
| #define | CSL_MEM_SARAM_BANK8 (8u) |
| #define | CSL_MEM_SARAM_BANK16 (16u) |
| #define | CSL_MEM_SARAM_BANK24 (24u) |
| #define | CSL_MEM_SARAM_BANK31 (31u) |
| #define | CSL_MEM_ENABLE_ALL_SLEEP (0xAAAAu) |
| #define | CSL_MEM_DISABLE_ALL_SLEEP (0xFFFFu) |
| #define | CSL_MEM_ENABLE_BANK_SLEEP (0x0002) |
| #define | CSL_MEM_DISABLE_BANK_SLEEP (0x0003) |
| #define | CSL_MEM_SLEEPMODE_BIT_MASK (0x0003) |
| #define | CSL_MEM_DARAM_BANKMASK (0xFFu) |
| #define | CSL_MEM_MAKE_BANKMASK(bankNumber) ((Uint32)1 << bankNumber) |
Enumerations | |
| enum | CSL_MemType { CSL_MEM_DARAM, CSL_MEM_SARAM, CSL_MEM_INVALID } |
| This enum holds the values to represent the type of the CPU memory. Application program can send a request to a specific memory using this enum. | |
| enum | CSL_MEMmSDRAMClock { CSL_MEM_MSDARAM_CLOCK_ON, CSL_MEM_MSDARAM_CLOCK_OFF } |
| This enum holds the values to switch the mSDRAM output clock state. | |
Functions | |
| CSL_Status | MEM_init (void) |
| CSL_Status | MEM_enableRetentionMode (CSL_MemType memType) |
| CSL_Status | MEM_disableRetentionMode (CSL_MemType memType) |
| CSL_Status | MEM_enablePartialRetentionMode (CSL_MemType memType, Uint16 bankNumber, Uint32 bankMask) |
| CSL_Status | MEM_disablePartialRetentionMode (CSL_MemType memType, Uint16 bankNum, Uint32 bankMask) |
| CSL_Status | MEM_setmSDRAMClock (CSL_MEMmSDRAMClock clockSwitch) |
| Bool | MEM_getmSDRAMClock (void) |
MEMORY functional layer API header file.
Path: \(CSLPATH)\ inc
1.7.4