Question:
How peripheral Errors are reported in device driver programming?
Answer:
If a callback is registered, peripheral errors and DMA errors are reported via the callback. If a callback is not registered, peripheral errors and DMA errors are reported via the adi_xxx_GetRx/TxBuffer or adi_xxx_Read/Write API calls. The adi_xxx_GetRx/TxBuffer and adi_xxx_Read/Write calls return a single error code (ADI_XXX_HW_ERROR) upon detecting an error. An application can call adi_xxx_GetHWErrorStatus to find out the exact cause of an error.