The reason code identifies the nature of the problem. It is zero if the return code was zero, a valid reason code otherwise. Reason codes are in the format 0x1080gggg. gggg contains an information code.
The __iew_fd_get_reason_code() function returns fast data reason code which is stored in the FD context from previous API call.
#include <__iew_api.h>
unsigned int __iew_fd_get_reason_code(_IEWFDContext *__context);
__iew_fd_get_reason_code() returns fast data access reason code.