123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350 |
- #ifndef PORT_IPW_H
- #define PORT_IPW_H
- #ifdef __cplusplus
- extern "C"{
- #endif
- #include "Port_Ci_Port_Ip.h"
- #include "Port_Cfg.h"
- #define PORT_VENDOR_ID_IPW_H 43
- #define PORT_AR_RELEASE_MAJOR_VERSION_IPW_H 4
- #define PORT_AR_RELEASE_MINOR_VERSION_IPW_H 4
- #define PORT_AR_RELEASE_REVISION_VERSION_IPW_H 0
- #define PORT_SW_MAJOR_VERSION_IPW_H 1
- #define PORT_SW_MINOR_VERSION_IPW_H 0
- #define PORT_SW_PATCH_VERSION_IPW_H 0
- #if (PORT_VENDOR_ID_IPW_H != PORT_CI_PORT_IP_VENDOR_ID_H)
- #error "Port_Ipw.h and Port_Ci_Port_Ip.h have different vendor ids"
- #endif
- #if ((PORT_AR_RELEASE_MAJOR_VERSION_IPW_H != PORT_CI_PORT_IP_AR_RELEASE_MAJOR_VERSION_H) || \
- (PORT_AR_RELEASE_MINOR_VERSION_IPW_H != PORT_CI_PORT_IP_AR_RELEASE_MINOR_VERSION_H) || \
- (PORT_AR_RELEASE_REVISION_VERSION_IPW_H != PORT_CI_PORT_IP_AR_RELEASE_REVISION_VERSION_H) \
- )
- #error "AutoSar Version Numbers of Port_Ipw.h and Port_Ci_Port_Ip.h are different"
- #endif
- #if ((PORT_SW_MAJOR_VERSION_IPW_H != PORT_CI_PORT_IP_SW_MAJOR_VERSION_H) || \
- (PORT_SW_MINOR_VERSION_IPW_H != PORT_CI_PORT_IP_SW_MINOR_VERSION_H) || \
- (PORT_SW_PATCH_VERSION_IPW_H != PORT_CI_PORT_IP_SW_PATCH_VERSION_H) \
- )
- #error "Software Version Numbers of Port_Ipw.h and Port_Ci_Port_Ip.h are different"
- #endif
- #if (PORT_VENDOR_ID_IPW_H != PORT_VENDOR_ID_CFG_H)
- #error "Port_Ipw.h and Port_Cfg.h have different vendor ids"
- #endif
- #if ((PORT_AR_RELEASE_MAJOR_VERSION_IPW_H != PORT_AR_RELEASE_MAJOR_VERSION_CFG_H) || \
- (PORT_AR_RELEASE_MINOR_VERSION_IPW_H != PORT_AR_RELEASE_MINOR_VERSION_CFG_H) || \
- (PORT_AR_RELEASE_REVISION_VERSION_IPW_H != PORT_AR_RELEASE_REVISION_VERSION_CFG_H) \
- )
- #error "AutoSar Version Numbers of Port_Ipw.h and Port_Cfg.h are different"
- #endif
- #if ((PORT_SW_MAJOR_VERSION_IPW_H != PORT_SW_MAJOR_VERSION_CFG_H) || \
- (PORT_SW_MINOR_VERSION_IPW_H != PORT_SW_MINOR_VERSION_CFG_H) || \
- (PORT_SW_PATCH_VERSION_IPW_H != PORT_SW_PATCH_VERSION_CFG_H) \
- )
- #error "Software Version Numbers of Port_Ipw.h and Port_Cfg.h are different"
- #endif
- #define PORT_MODE_BIT_OFFSET_MASK_U8 ((uint8)0x0F)
- #define PORT_PIN_LEVEL_LOW_U8 ((uint8)0)
- #define PORT_PIN_LEVEL_HIGH_U8 ((uint8)1)
- #define PORT_CI_PCR_ALT_MODE_U32 (0x00000700UL)
- #define PORT_CI_BIT_OFFSET_MASK_U8 ((uint8)0x0F)
- #define PORT_CI_PCR_ALT_MODE_OFFSET_U32 ((uint32)8)
- #define PORT_START_SEC_CODE
- #include "Port_MemMap.h"
- void Port_Ipw_SetGpioDirChangeability
- (
- uint16 PadID,
- boolean bStatus
- );
- void Port_Ipw_SetGpioPadOutput
- (
- Port_PinType PinIndex,
- const Port_ConfigType * pConfigPtr
- );
- void Port_Ipw_Init
- (
- const Port_ConfigType * pConfigPtr
- );
- #if (STD_ON == PORT_SET_PIN_DIRECTION_API) || (STD_ON == PORT_SET_PIN_MODE_API)
- Std_ReturnType Port_Ipw_SetPinDirection
- (
- Port_PinType PinIndex,
- Port_PinDirectionType eDirection,
- const Port_ConfigType * pConfigPtr
- );
- #endif
- #if defined(PORT_SET_2_PINS_DIRECTION_API) && (STD_ON == PORT_SET_2_PINS_DIRECTION_API)
- Std_ReturnType Port_Ipw_Set2PinsDirection
- (
- Port_PinType Pin1Index,
- Port_PinType Pin2Index,
- Port_PinDirectionType eDirection,
- const Port_ConfigType * pConfigPtr
- );
- #endif
- #if (STD_ON == PORT_SET_PIN_MODE_API)
- Std_ReturnType Port_Ipw_SetPinMode
- (
- Port_PinType PinIndex,
- Port_PinModeType PinMode,
- const Port_ConfigType * pConfigPtr
- );
- #endif
- void Port_Ipw_RefreshPortDirection
- (
- const Port_ConfigType * pConfigPtr
- );
- #ifdef PORT_SET_AS_UNUSED_PIN_API
- #if (STD_ON == PORT_SET_AS_UNUSED_PIN_API)
- void Port_Ipw_SetAsUnusedPin
- (
- Port_PinType PinIndex,
- const Port_ConfigType * pConfigPtr
- );
- void Port_Ipw_SetAsUsedPin
- (
- Port_PinType PinIndex,
- const Port_ConfigType * pConfigPtr
- );
- #endif
- #endif
- #ifdef PORT_RESET_PIN_MODE_API
- #if (STD_ON == PORT_RESET_PIN_MODE_API)
- void Port_Ipw_ResetPinMode
- (
- Port_PinType PinIndex,
- const Port_ConfigType * pConfigPtr
- );
- #endif
- #endif
- #define PORT_STOP_SEC_CODE
- #include "Port_MemMap.h"
- #ifdef __cplusplus
- }
- #endif
- #endif
|