123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173 |
- #ifndef FLS_IPW_H
- #define FLS_IPW_H
- #ifdef __cplusplus
- extern "C"{
- #endif
- #include "Fls.h"
- #include "Qspi_Ip_Features.h"
- #define FLS_IPW_VENDOR_ID_H 43
- #define FLS_IPW_AR_RELEASE_MAJOR_VERSION_H 4
- #define FLS_IPW_AR_RELEASE_MINOR_VERSION_H 4
- #define FLS_IPW_AR_RELEASE_REVISION_VERSION_H 0
- #define FLS_IPW_SW_MAJOR_VERSION_H 1
- #define FLS_IPW_SW_MINOR_VERSION_H 0
- #define FLS_IPW_SW_PATCH_VERSION_H 0
- #if (FLS_IPW_VENDOR_ID_H != FLS_VENDOR_ID)
- #error "Fls_IPW.c and Fls.h have different vendor ids"
- #endif
- #if ((FLS_IPW_AR_RELEASE_MAJOR_VERSION_H != FLS_AR_RELEASE_MAJOR_VERSION) || \
- (FLS_IPW_AR_RELEASE_MINOR_VERSION_H != FLS_AR_RELEASE_MINOR_VERSION) || \
- (FLS_IPW_AR_RELEASE_REVISION_VERSION_H != FLS_AR_RELEASE_REVISION_VERSION) \
- )
- #error "AutoSar Version Numbers of Fls_IPW.c and Fls.h are different"
- #endif
- #if ((FLS_IPW_SW_MAJOR_VERSION_H != FLS_SW_MAJOR_VERSION) || \
- (FLS_IPW_SW_MINOR_VERSION_H != FLS_SW_MINOR_VERSION) || \
- (FLS_IPW_SW_PATCH_VERSION_H != FLS_SW_PATCH_VERSION) \
- )
- #error "Software Version Numbers of Fls_IPW.c and Fls.h are different"
- #endif
- #if (FLS_IPW_VENDOR_ID_H != QSPI_IP_FEATURES_VENDOR_ID_CFG)
- #error "Fls_IPW.c and Qspi_Ip_Features.h have different vendor ids"
- #endif
- #if ((FLS_IPW_AR_RELEASE_MAJOR_VERSION_H != QSPI_IP_FEATURES_AR_RELEASE_MAJOR_VERSION_CFG) || \
- (FLS_IPW_AR_RELEASE_MINOR_VERSION_H != QSPI_IP_FEATURES_AR_RELEASE_MINOR_VERSION_CFG) || \
- (FLS_IPW_AR_RELEASE_REVISION_VERSION_H != QSPI_IP_FEATURES_AR_RELEASE_REVISION_VERSION_CFG) \
- )
- #error "AutoSar Version Numbers of Fls_IPW.c and Qspi_Ip_Features.h are different"
- #endif
- #if ((FLS_IPW_SW_MAJOR_VERSION_H != QSPI_IP_FEATURES_SW_MAJOR_VERSION_CFG) || \
- (FLS_IPW_SW_MINOR_VERSION_H != QSPI_IP_FEATURES_SW_MINOR_VERSION_CFG) || \
- (FLS_IPW_SW_PATCH_VERSION_H != QSPI_IP_FEATURES_SW_PATCH_VERSION_CFG) \
- )
- #error "Software Version Numbers of Fls_IPW.c and Qspi_Ip_Features.h are different"
- #endif
- #define FLS_IPW_CFG_INVALID (uint8)0xFFU
- #define FLS_START_SEC_CODE
- #include "Fls_MemMap.h"
- void Fls_IPW_Init(void);
- void Fls_IPW_AbortSuspended(void);
- void Fls_IPW_ClearHVJob(void);
- void Fls_IPW_Cancel(void);
- void Fls_IPW_LLDMainFunction(void);
- Fls_LLDReturnType Fls_IPW_SectorRead(const Fls_AddressType u32SectorOffset,
- const Fls_AddressType u32Length,
- uint8 * pJobDataDestPtr,
- const uint8 * pJobDataSrcPtr
- );
- Fls_LLDReturnType Fls_IPW_SectorErase(const Fls_AddressType u32SectorOffset,
- const Fls_LengthType u32PhysicalSectorSize,
- const boolean bAsynch
- );
- Fls_LLDReturnType Fls_IPW_SectorWrite(const Fls_AddressType u32SectorOffset,
- const Fls_AddressType u32Length,
- const uint8 * pJobDataSrcPtr,
- const boolean bAsynch
- );
- #if ( STD_ON == FLS_INTERNAL_SECTORS_CONFIGURED )
- #if ( (STD_ON == FLS_ECC_CHECK) || (STD_ON == FLS_ECC_CHECK_BY_AUTOSAR_OS) )
- Fls_CompHandlerReturnType Fls_IPW_DsiHandler(const Fls_ExceptionDetailsType *pExceptionDetailsPtr);
- #endif
- #if (STD_ON == FLS_ECC_CHECK_BY_AUTOSAR_OS)
- void Fls_IPW_ReadEachBlock(void);
- #endif
- #endif
- #if ( STD_ON == FLS_AC_LOAD_ON_JOB_START )
- Fls_BlockNumberOfSectorType Fls_IPW_GetBlockNumberFromAddress(Fls_AddressType targetAddress);
- #endif
- #define FLS_STOP_SEC_CODE
- #include "Fls_MemMap.h"
- #ifdef __cplusplus
- }
- #endif
- #endif
|