ZHCUAO0C November 2022 – November 2023 TMS320F280033 , TMS320F280034 , TMS320F280034-Q1 , TMS320F280036-Q1 , TMS320F280036C-Q1 , TMS320F280037 , TMS320F280037-Q1 , TMS320F280037C , TMS320F280037C-Q1 , TMS320F280038-Q1 , TMS320F280038C-Q1 , TMS320F280039 , TMS320F280039-Q1 , TMS320F280039C , TMS320F280039C-Q1
其为包含所有可能返回的状态代码的主类型。
typedef enum
{
Fapi_Status_Success=0, /* Function completed successfully */
Fapi_Status_FsmBusy, /* FSM is Busy */
Fapi_Status_FsmReady, /* FSM is Ready */
Fapi_Status_AsyncBusy, /* Async function operation is Busy */
Fapi_Status_AsyncComplete, /* Async function operation is Complete */
Fapi_Error_Fail=500, /* Generic Function Fail code */
Fapi_Error_OtpChecksumMismatch, /* Returned if OTP checksum does not match expected value */
Fapi_Error_InvalidDelayValue, /* Returned if the Calculated RWAIT value exceeds 15 -
Legacy Error */
Fapi_Error_InvalidHclkValue, /* Returned if FClk is above max FClk value -
FClk is a calculated from SYSCLK and RWAIT */
Fapi_Error_InvalidCpu, /* Returned if the specified Cpu does not exist */
Fapi_Error_InvalidBank, /* Returned if the specified bank does not exist */
Fapi_Error_InvalidAddress, /* Returned if the specified Address does not exist in Flash
or OTP */
Fapi_Error_InvalidReadMode, /* Returned if the specified read mode does not exist */
Fapi_Error_AsyncIncorrectDataBufferLength,
Fapi_Error_AsyncIncorrectEccBufferLength,
Fapi_Error_AsyncDataEccBufferLengthMismatch,
Fapi_Error_FeatureNotAvailable, /* FMC feature is not available on this device */
Fapi_Error_FlashRegsNotWritable, /* Returned if Flash registers are not writable due to
security */
Fapi_Error_InvalidCPUID, /* Returned if OTP has an invalid CPUID */
Fapi_Error_InvalidBaseRegCntlAddress, /* Returned if base address of register control is incorrect */
Fapi_Warning_BaseRegCntlAddressMismatch /* Returned if base address of register control is incorrect */
} ATTRIBUTE_PACKED Fapi_StatusType;