Eep_IPW.h 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. /*==================================================================================================
  2. * Project : RTD AUTOSAR 4.4
  3. * Platform : CORTEXM
  4. * Peripheral : IPV_FTFC
  5. * Dependencies :
  6. *
  7. * Autosar Version : 4.4.0
  8. * Autosar Revision : ASR_REL_4_4_REV_0000
  9. * Autosar Conf.Variant :
  10. * SW Version : 1.0.0
  11. * Build Version : S32K1_RTD_1_0_0_HF01_D2109_ASR_REL_4_4_REV_0000_20210907
  12. *
  13. * (c) Copyright 2020-2021 NXP Semiconductors
  14. * All Rights Reserved.
  15. *
  16. * NXP Confidential. This software is owned or controlled by NXP and may only be
  17. * used strictly in accordance with the applicable license terms. By expressly
  18. * accepting such terms or by downloading, installing, activating and/or otherwise
  19. * using the software, you are agreeing that you have read, and that you agree to
  20. * comply with and are bound by, such license terms. If you do not agree to be
  21. * bound by the applicable license terms, then you may not retain, install,
  22. * activate or otherwise use the software.
  23. ==================================================================================================*/
  24. #ifndef EEP_IPW_H
  25. #define EEP_IPW_H
  26. /**
  27. * @file Eep_IPW.h
  28. *
  29. * @{
  30. */
  31. #ifdef __cplusplus
  32. extern "C" {
  33. #endif
  34. /*==================================================================================================
  35. INCLUDE FILES
  36. 1) system and project includes
  37. 2) needed interfaces from external units
  38. 3) internal and external interfaces from this unit
  39. ==================================================================================================*/
  40. #include "Eep_InternalTypes.h"
  41. #include "Ftfc_Eep_Ip.h"
  42. /*==================================================================================================
  43. * SOURCE FILE VERSION INFORMATION
  44. ==================================================================================================*/
  45. #define EEP_IPW_VENDOR_ID_H 43
  46. #define EEP_IPW_AR_RELEASE_MAJOR_VERSION_H 4
  47. #define EEP_IPW_AR_RELEASE_MINOR_VERSION_H 4
  48. #define EEP_IPW_AR_RELEASE_REVISION_VERSION_H 0
  49. #define EEP_IPW_SW_MAJOR_VERSION_H 1
  50. #define EEP_IPW_SW_MINOR_VERSION_H 0
  51. #define EEP_IPW_SW_PATCH_VERSION_H 0
  52. /*==================================================================================================
  53. * FILE VERSION CHECKS
  54. ==================================================================================================*/
  55. /* Version checks for Eep_InternalTypes.h */
  56. #if (EEP_IPW_VENDOR_ID_H != EEP_INTERNALTYPES_VENDOR_ID)
  57. #error "Eep_IPW.h and Eep_InternalTypes.h have different vendor ids"
  58. #endif
  59. #if ((EEP_IPW_AR_RELEASE_MAJOR_VERSION_H != EEP_INTERNALTYPES_AR_RELEASE_MAJOR_VERSION) || \
  60. (EEP_IPW_AR_RELEASE_MINOR_VERSION_H != EEP_INTERNALTYPES_AR_RELEASE_MINOR_VERSION) || \
  61. (EEP_IPW_AR_RELEASE_REVISION_VERSION_H != EEP_INTERNALTYPES_AR_RELEASE_REVISION_VERSION) \
  62. )
  63. #error "AutoSar Version Numbers of Eep_IPW.h and Eep_InternalTypes.h are different"
  64. #endif
  65. #if ((EEP_IPW_SW_MAJOR_VERSION_H != EEP_INTERNALTYPES_SW_MAJOR_VERSION) || \
  66. (EEP_IPW_SW_MINOR_VERSION_H != EEP_INTERNALTYPES_SW_MINOR_VERSION) || \
  67. (EEP_IPW_SW_PATCH_VERSION_H != EEP_INTERNALTYPES_SW_PATCH_VERSION) \
  68. )
  69. #error "Software Version Numbers of Eep_IPW.h and Eep_InternalTypes.h are different"
  70. #endif
  71. /* Version checks for Ftfc_Eep_Ip.h */
  72. #if (EEP_IPW_VENDOR_ID_H != FTFC_EEP_IP_VENDOR_ID_H)
  73. #error "Eep_IPW.h and Ftfc_Eep_Ip.h have different vendor IDs!"
  74. #endif
  75. #if ((EEP_IPW_AR_RELEASE_MAJOR_VERSION_H != FTFC_EEP_IP_AR_RELEASE_MAJOR_VERSION_H) || \
  76. (EEP_IPW_AR_RELEASE_MINOR_VERSION_H != FTFC_EEP_IP_AR_RELEASE_MINOR_VERSION_H) || \
  77. (EEP_IPW_AR_RELEASE_REVISION_VERSION_H != FTFC_EEP_IP_AR_RELEASE_REVISION_VERSION_H) \
  78. )
  79. #error "Eep_IPW.h and Ftfc_Eep_Ip.h are for different AUTOSAR versions!"
  80. #endif
  81. #if ((EEP_IPW_SW_MAJOR_VERSION_H != FTFC_EEP_IP_SW_MAJOR_VERSION_H) || \
  82. (EEP_IPW_SW_MINOR_VERSION_H != FTFC_EEP_IP_SW_MINOR_VERSION_H) || \
  83. (EEP_IPW_SW_PATCH_VERSION_H != FTFC_EEP_IP_SW_PATCH_VERSION_H) \
  84. )
  85. #error "Eep_IPW.h and Ftfc_Eep_Ip.h have different SW versions!"
  86. #endif
  87. /*==================================================================================================
  88. * CONSTANTS
  89. ==================================================================================================*/
  90. /*==================================================================================================
  91. * DEFINES AND MACROS
  92. ==================================================================================================*/
  93. /*==================================================================================================
  94. * ENUMS
  95. ==================================================================================================*/
  96. /*==================================================================================================
  97. * STRUCTURES AND OTHER TYPEDEFS
  98. ==================================================================================================*/
  99. /*==================================================================================================
  100. * GLOBAL VARIABLE DECLARATIONS
  101. ==================================================================================================*/
  102. /*==================================================================================================
  103. * FUNCTION PROTOTYPES
  104. ==================================================================================================*/
  105. #define EEP_START_SEC_CODE
  106. #include "Eep_MemMap.h"
  107. Eep_ReturnType Eep_Ipw_Init (Eep_ConfigType const * pxEepConfig);
  108. Std_ReturnType Eep_Ipw_CheckReadParams (Eep_AddressType SrcAddress,
  109. uint8 const * pu8DestAddress,
  110. Eep_LengthType Length
  111. );
  112. Eep_ReturnType Eep_Ipw_Read (Eep_AddressType SrcAddress,
  113. uint8 * pu8DestAddress,
  114. Eep_LengthType Length
  115. );
  116. #if (EEP_COMPARE_API == STD_ON)
  117. Std_ReturnType Eep_Ipw_CheckCompareParams (Eep_AddressType SrcAddress,
  118. uint8 const * pu8DestAddress,
  119. Eep_LengthType Length
  120. );
  121. Eep_ReturnType Eep_Ipw_CompareSync (Eep_AddressType SrcAddress,
  122. uint8 const * pu8DestAddress,
  123. Eep_LengthType Length
  124. );
  125. #endif
  126. Std_ReturnType Eep_Ipw_CheckEraseParams (Eep_AddressType Address,
  127. Eep_LengthType Length
  128. );
  129. Eep_ReturnType Eep_Ipw_Erase (Eep_AddressType Address,
  130. Eep_LengthType Length
  131. );
  132. Std_ReturnType Eep_Ipw_CheckWriteParams (Eep_AddressType DestAddress,
  133. uint8 const * pu8SrcAddress,
  134. Eep_LengthType Length
  135. );
  136. Eep_ReturnType Eep_Ipw_Write (Eep_AddressType DestAddress,
  137. uint8 const * pu8SrcAddress,
  138. Eep_LengthType Length
  139. );
  140. #if (EEP_QUICK_WRITES_API == STD_ON)
  141. Std_ReturnType Eep_Ipw_CheckQuickWriteParams (Eep_AddressType DestAddress,
  142. uint8 const * pu8SrcAddress,
  143. Eep_LengthType Length,
  144. Eep_LengthType QuickWritesLength
  145. );
  146. Eep_ReturnType Eep_Ipw_QuickWrite (Eep_AddressType DestAddress,
  147. uint8 const * pu8SrcAddress,
  148. Eep_LengthType Length
  149. );
  150. #endif
  151. #if (EEP_CANCEL_API == STD_ON)
  152. Eep_ReturnType Eep_Ipw_Cancel (void);
  153. #endif
  154. #define EEP_STOP_SEC_CODE
  155. #include "Eep_MemMap.h"
  156. #ifdef __cplusplus
  157. }
  158. #endif
  159. /** @}*/
  160. #endif /* EEP_IPW_H */