/**
*   @file           Pwm_Ipw_Notif.h
*   @version        1.0.0
*
*   @brief          AUTOSAR Pwm - Pwm IP wrapper notifications API header.
*   @details        PWM IP wrapper notifications API header.
*
*   @addtogroup     PWM_MODULE
*   @{
*/
/*==================================================================================================
*   Project              : AUTOSAR 4.3 MCAL
*   Platform             : PA
*   Peripheral           : eMios
*   Dependencies         : none
*
*   AUTOSAR Version      : 4.3.1
*   AUTOSAR Revision     : ASR_REL_4_3_REV_0001
*   AUTOSAR Conf.Variant :
*   SW Version           : 1.0.0
*   Build Version        : MPC5777C_MCAL_1_0_0_RTM_ASR_REL_4_3_REV_0001_20190315
*
*   (c) Copyright 2006-2016 Freescale Semiconductor, Inc. 
*       Copyright 2017-2019 NXP
*   All Rights Reserved.
==================================================================================================*/
/*==================================================================================================
==================================================================================================*/

#ifndef PWM_IPW_NOTIF_H
#define PWM_IPW_NOTIF_H

#ifdef __cplusplus
extern "C" {
#endif

/**
* @page misra_violations MISRA-C:2012 violations
*
* @section [global]
* Violates MISRA 2012 Required Rule 5.1, External identifiers shall be distinct.
* The used compilers use more than 31 chars for identifiers.
*
* @section [global]
* Violates MISRA 2012 Required Rule 5.2, Identifiers declared in the same scope and name space shall be distinct.
* The used compilers use more than 31 chars for identifiers.
*
* @section [global]
* Violates MISRA 2012 Required Rule 5.4, Macro identifiers shall be distinct.
* The used compilers use more than 31 chars for identifiers.
*
* @section [global]
* Violates MISRA 2012 Required Rule 5.5, Identifiers shall be distinct from macro names.
* The used compilers use more than 31 chars for identifiers.
*
* @section Pwm_Ipw_Notif_h_REF_1
* Violates MISRA 2012 Advisory Directive 4.9, A function should be used in preference to a function-like macro 
* where they are interchangeable.
* Function like macro are used to reduce code complexity.
*
* @section Pwm_Ipw_Notif_h_REF_2
* Violates MISRA 2012 Advisory Rule 2.5, A project should not contain unused macro declarations
* Macros that are in <MDL>.h or <MDL>_Cfg.h… that are needed for the client (and are used only in tests)
*
*/



/*===============================================================================================
*                                         INCLUDE FILES
* 1) system and project includes
* 2) needed interfaces from external units
* 3) internal and external interfaces from this unit
===============================================================================================*/

#include "Pwm_Notif.h"



/*===============================================================================================
*                               SOURCE FILE VERSION INFORMATION
===============================================================================================*/

/**
* @{
* @file           Pwm_Ipw_Notif.h
*/
#define PWM_IPW_NOTIF_VENDOR_ID                       43
#define PWM_IPW_NOTIF_AR_RELEASE_MAJOR_VERSION        4
#define PWM_IPW_NOTIF_AR_RELEASE_MINOR_VERSION        3
#define PWM_IPW_NOTIF_AR_RELEASE_REVISION_VERSION     1
#define PWM_IPW_NOTIF_SW_MAJOR_VERSION                1
#define PWM_IPW_NOTIF_SW_MINOR_VERSION                0
#define PWM_IPW_NOTIF_SW_PATCH_VERSION                0
/**@}*/



/*===============================================================================================
*                                      FILE VERSION CHECKS
===============================================================================================*/

/* Check if header file and Pwm_Ipw_Types header file are of the same vendor */
#if (PWM_IPW_NOTIF_VENDOR_ID != PWM_NOTIF_VENDOR_ID)
    #error "Pwm_Ipw_Notif.h and Pwm_Notif.h have different vendor ids"
#endif

/* Check if header file and Pwm_Ipw_Types header file are of the same AUTOSAR version */
#if ((PWM_IPW_NOTIF_AR_RELEASE_MAJOR_VERSION    != PWM_NOTIF_AR_RELEASE_MAJOR_VERSION) || \
     (PWM_IPW_NOTIF_AR_RELEASE_MINOR_VERSION    != PWM_NOTIF_AR_RELEASE_MINOR_VERSION) || \
     (PWM_IPW_NOTIF_AR_RELEASE_REVISION_VERSION != PWM_NOTIF_AR_RELEASE_REVISION_VERSION))
    #error "AUTOSAR Version Numbers of Pwm_Ipw_Notif.h and Pwm_Notif.h are different"
#endif

/* Check if header file and Pwm_Ipw_Types header file are of the same software version */
#if ((PWM_IPW_NOTIF_SW_MAJOR_VERSION != PWM_NOTIF_SW_MAJOR_VERSION) || \
     (PWM_IPW_NOTIF_SW_MINOR_VERSION != PWM_NOTIF_SW_MINOR_VERSION) || \
     (PWM_IPW_NOTIF_SW_PATCH_VERSION != PWM_NOTIF_SW_PATCH_VERSION))
    #error "Software Version Numbers of Pwm_Ipw_Notif.h and Pwm_Notif.h are different"
#endif



/*===============================================================================================
*                                       DEFINES AND MACROS
===============================================================================================*/

#if (PWM_NOTIFICATION_SUPPORTED == STD_ON)

#if (PWM_EMIOS_USED == STD_ON)
    
/** @brief      Function for reporting period value error implemented through macro */
#if ((PWM_PARAM_CHECK == STD_ON) && ((PWM_SET_PERIOD_AND_DUTY_API == STD_ON) || (PWM_SET_PERIOD_AND_DUTY_NO_UPDATE_API == STD_ON)))
/* @violates @ref Pwm_Ipw_Notif_h_REF_1 Function like macro are used to reduce code complexity. */
/* @violates @ref Pwm_Ipw_Notif_h_REF_2 Macros that are in <MDL>.h or that are needed for the client. */
#define Pwm_Ipw_ReportPeriodValueError()            Pwm_ReportPeriodValueError()
#endif

/** @brief      Function for notifications of eMIOS channels implemented through macro */
/* @violates @ref Pwm_Ipw_Notif_h_REF_1 Function like macro are used to reduce code complexity. */
#define Pwm_Ipw_eMiosChannelNotification(Channel)   Pwm_Notification((Pwm_ChannelType)(Channel))

#endif /* PWM_EMIOS_USED */

#endif /* PWM_NOTIFICATION_SUPPORTED */



#ifdef __cplusplus
}
#endif

#endif /* PWM_IPW_NOTIF_H */
/** @} */
