2.113 Static Memory Controller (SMC)
This Plib implements software abstraction for SMC Peripheral.
Library Interface
Static Memory Controller peripheral library provides the following interfaces:
Functions
| Name | Description |
|---|---|
| SMC_Initialize | Initializes Static Memory Controller (SMC) interface |
| SMC_DataAddressGet | Returns the External Bus Interface (EBI) address for the requested chip select number |
| SMC_CommandWrite | Writes command to the External Bus Interface (EBI) address |
| SMC_CommandWrite16 | Writes 16-bit command to the External Bus Interface (EBI) address |
| SMC_AddressWrite | Writes address to the External Bus Interface (EBI) address |
| SMC_AddressWrite16 | Writes 16-bit address to the External Bus Interface (EBI) address |
| SMC_DataWrite | Writes data to the External Bus Interface (EBI) address |
| SMC_DataWrite16 | Writes 16-bit data to the External Bus Interface (EBI) address |
| SMC_DataRead | Reads data from the External Bus Interface (EBI) address |
| SMC_DataRead16 | Reads 16-bit data from the External Bus Interface (EBI) address |
| SMC_CallbackRegister | Sets the pointer to the function (and it's context) to be called when the given SMC's interrupt occurred |
| PMECC_CallbackRegister | Sets the pointer to the function (and it's context) to be called when the given PMECC's interrupt occurred |
| PMERRLOC_CallbackRegister | Sets the pointer to the function (and it's context) to be called when the given PMERRLOC's interrupt occurred |
| PMECC_DataPhaseStart | Enables PMECC Write access and start data phase |
| PMECC_StatusIsBusy | Returns PMECC busy status |
| PMECC_ErrorGet | Returns PMECC error |
| PMECC_RemainderGet | Returns PMECC remainder |
| PMECC_ECCGet | Returns error correction code (ECC) |
| PMERRLOC_ErrorLocationGet | Find and returns error location of memory |
| PMERRLOC_ErrorLocationDisable | Disables error location of memory |
| PMERRLOC_SigmaSet | Set sigma value to the PMERRLOC register |
| PMERRLOC_ErrorLocationFindNumOfRoots | Find the number of roots using PMERRLOC acceleration |
Data types and constants
| Name | Type | Description |
|---|---|---|
| SMC_CALLBACK | Typedef | Defines the data type and function signature for the SMC peripheral callback function |
| PMECC_CALLBACK | Typedef | Defines the data type and function signature for the PMECC peripheral callback function |
| PMERRLOC_CALLBACK | Typedef | Defines the data type and function signature for the PMERRLOC peripheral callback function |
Note: Not all APIs maybe implemented. See the specific device family
section for available APIs.
