2.106 Static Memory Controller (SMC)

This Plib implements software abstraction for SMC Peripheral.

Library Interface

Static Memory Controller peripheral library provides the following interfaces:

Functions

NameDescription
SMC_InitializeInitializes Static Memory Controller (SMC) interface
SMC_DataAddressGetReturns the External Bus Interface (EBI) address for the requested chip select number
SMC_CommandWriteWrites command to the External Bus Interface (EBI) address
SMC_CommandWrite16Writes 16-bit command to the External Bus Interface (EBI) address
SMC_AddressWriteWrites address to the External Bus Interface (EBI) address
SMC_AddressWrite16Writes 16-bit address to the External Bus Interface (EBI) address
SMC_DataWriteWrites data to the External Bus Interface (EBI) address
SMC_DataWrite16Writes 16-bit data to the External Bus Interface (EBI) address
SMC_DataReadReads data from the External Bus Interface (EBI) address
SMC_DataRead16Reads 16-bit data from the External Bus Interface (EBI) address
SMC_CallbackRegisterSets the pointer to the function (and it's context) to be called when the given SMC's interrupt occurred
PMECC_CallbackRegisterSets the pointer to the function (and it's context) to be called when the given PMECC's interrupt occurred
PMERRLOC_CallbackRegisterSets the pointer to the function (and it's context) to be called when the given PMERRLOC's interrupt occurred
PMECC_DataPhaseStartEnables PMECC Write access and start data phase
PMECC_StatusIsBusyReturns PMECC busy status
PMECC_ErrorGetReturns PMECC error
PMECC_RemainderGetReturns PMECC remainder
PMECC_ECCGetReturns error correction code (ECC)
PMERRLOC_ErrorLocationGetFind and returns error location of memory
PMERRLOC_ErrorLocationDisableDisables error location of memory
PMERRLOC_SigmaSetSet sigma value to the PMERRLOC register
PMERRLOC_ErrorLocationFindNumOfRootsFind the number of roots using PMERRLOC acceleration

Data types and constants

NameTypeDescription
SMC_CALLBACKTypedefDefines the data type and function signature for the SMC peripheral callback function
PMECC_CALLBACKTypedefDefines the data type and function signature for the PMECC peripheral callback function
PMERRLOC_CALLBACKTypedefDefines 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.