55 #include <adi_processor.h> 56 #include <adi_callback.h> 57 #include <rtos_map/adi_rtos_map.h> 99 #define ADI_FEE_MEMORY_SIZE (44u + ADI_SEM_SIZE) 146 ADI_FEE_RESULT
adi_fee_Open (uint32_t
const nDeviceNum,
void*
const pMemory, uint32_t
const nMemorySize, ADI_FEE_HANDLE*
const phDevice);
148 ADI_FEE_RESULT
adi_fee_RegisterCallback (ADI_FEE_HANDLE
const hDevice, ADI_CALLBACK
const pfCallback,
void*
const pCBParam);
150 ADI_FEE_RESULT
adi_fee_PageErase (ADI_FEE_HANDLE
const hDevice, uint32_t
const nPageNumStart, uint32_t
const nPageNumEnd, uint32_t*
const pHwErrors);
151 ADI_FEE_RESULT
adi_fee_MassErase (ADI_FEE_HANDLE
const hDevice, uint32_t*
const pHwErrors);
157 ADI_FEE_RESULT
adi_fee_GetBuffer (ADI_FEE_HANDLE
const hDevice, uint32_t*
const pHwErrors);
159 ADI_FEE_RESULT
adi_fee_GetPageNumber (ADI_FEE_HANDLE
const hDevice, uint32_t
const nAddress, uint32_t*
const pnPageNum);
160 ADI_FEE_RESULT
adi_fee_GetBlockNumber (ADI_FEE_HANDLE
const hDevice, uint32_t
const nAddress, uint32_t*
const pnBlockNum);
162 ADI_FEE_RESULT
adi_fee_VerifySignature (ADI_FEE_HANDLE
const hDevice, uint32_t
const nStartPage, uint32_t
const nEndPage, uint32_t*
const pSigResult, uint32_t*
const pHwErrors);
165 ADI_FEE_RESULT
adi_fee_Sleep (ADI_FEE_HANDLE
const hDevice,
bool const bSleep);
169 ADI_FEE_RESULT
adi_fee_ConfigECC (ADI_FEE_HANDLE
const hDevice, uint32_t
const nStartPage,
bool const bInfoECCEnable);
170 ADI_FEE_RESULT
adi_fee_EnableECC (ADI_FEE_HANDLE
const hDevice,
bool const bEnable);
175 #if defined (__ADUCM4x50__) 176 ADI_FEE_RESULT adi_fee_ConfigureWaitStates (ADI_FEE_HANDLE
const hDevice, uint8_t numWaitStates);
ADI_FEE_RESULT adi_fee_GetBuffer(ADI_FEE_HANDLE const hDevice, uint32_t *const pHwErrors)
Blocking mode call to await transaction completion.
ADI_FEE_RESULT adi_fee_IsBufferAvailable(ADI_FEE_HANDLE const hDevice, bool *const pbCompletionState)
Non-blocking check if a write transaction complete.
ADI_FEE_RESULT adi_fee_GetECCCorrections(ADI_FEE_HANDLE const hDevice, uint32_t *const pnNumCorrections)
Get the number of 1-bit error corrections.
ADI_FEE_RESULT adi_fee_MassErase(ADI_FEE_HANDLE const hDevice, uint32_t *const pHwErrors)
Erase the entire flash user space memory. This is a blocking call.
ADI_FEE_RESULT adi_fee_GetBlockNumber(ADI_FEE_HANDLE const hDevice, uint32_t const nAddress, uint32_t *const pnBlockNum)
Get the zero-based (16kB) block number within which a flash address resides.
ADI_FEE_RESULT adi_fee_GetECCErrAddr(ADI_FEE_HANDLE const hDevice, uint32_t *const pnAddress)
Get the address for which the ECC event is detected.
ADI_FEE_RESULT adi_fee_GetAbortAddr(ADI_FEE_HANDLE const hDevice, uint32_t *const pnAddress)
Get the address of recently aborted write command.
ADI_FEE_RESULT adi_fee_Sleep(ADI_FEE_HANDLE const hDevice, bool const bSleep)
Sleep or awake the flash controller. This is a blocking call.
ADI_FEE_RESULT adi_fee_ConfigECC(ADI_FEE_HANDLE const hDevice, uint32_t const nStartPage, bool const bInfoECCEnable)
Configure ECC start page and enablement.
struct __ADI_FEE_DEV_DATA_TYPE * ADI_FEE_HANDLE
ADI_FEE_RESULT adi_fee_Open(uint32_t const nDeviceNum, void *const pMemory, uint32_t const nMemorySize, ADI_FEE_HANDLE *const phDevice)
Open the flash controller.
ADI_FEE_RESULT adi_fee_ConfigECCEvents(ADI_FEE_HANDLE const hDevice, ADI_FEE_ECC_EVENT_TYPE const eEvent, ADI_FEE_ECC_RESPONSE const eResponse)
Confifure ECC event response.
ADI_FEE_RESULT adi_fee_WriteProtectBlock(ADI_FEE_HANDLE const hDevice, uint32_t const nBlockNum)
Set write protection on an (16kB) block.
ADI_FEE_RESULT adi_fee_Write(ADI_FEE_HANDLE const hDevice, ADI_FEE_TRANSACTION *const pTransaction, uint32_t *const pHwErrors)
Perform a blocking flash data write operation.
ADI_FEE_RESULT adi_fee_EnableECC(ADI_FEE_HANDLE const hDevice, bool const bEnable)
Enable/Disable user space ECC for the device.
ADI_FEE_RESULT adi_fee_RegisterCallback(ADI_FEE_HANDLE const hDevice, ADI_CALLBACK const pfCallback, void *const pCBParam)
Register an application-defined callback function.
ADI_FEE_RESULT adi_fee_SubmitBuffer(ADI_FEE_HANDLE const hDevice, ADI_FEE_TRANSACTION *const pTransaction)
Submit a non-blocking flash data write operation for background processing.
ADI_FEE_RESULT adi_fee_GetPageNumber(ADI_FEE_HANDLE const hDevice, uint32_t const nAddress, uint32_t *const pnPageNum)
Get the zero-based (2kB) page number within which a flash address resides.
ADI_FEE_RESULT adi_fee_Abort(ADI_FEE_HANDLE const hDevice)
Forcefully ABORT an ongoing flash operation. This is a blocking call.
ADI_FEE_RESULT adi_fee_VerifySignature(ADI_FEE_HANDLE const hDevice, uint32_t const nStartPage, uint32_t const nEndPage, uint32_t *const pSigResult, uint32_t *const pHwErrors)
Generate the CRC signature for a range of flash data page(s). This is a blocking call.
ADI_FEE_RESULT adi_fee_PageErase(ADI_FEE_HANDLE const hDevice, uint32_t const nPageNumStart, uint32_t const nPageNumEnd, uint32_t *const pHwErrors)
Erase the given range of (2kB) page(s) within the flash user space memory. This is a blocking call...
ADI_FEE_RESULT adi_fee_Close(ADI_FEE_HANDLE const hDevice)
Close the flash controller.