/**
*   @file           Pwm_Notif.h
*   @version        1.0.0
*
*   @brief          AUTOSAR Pwm - Pwm notifications API header.
*   @details        Pwm 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_NOTIF_H
#define PWM_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_Notif_h_REF_1
* Violates MISRA 2012 Advisory Rule 20.1, #include directives should only be preceded by preprocessor directives or comments.
* <MA>_MemMap.h is included after each section define in order to set the current memory section as defined by AUTOSAR.
*
* @section Pwm_Notif_h_REF_2
* Violates MISRA 2012 Required Directive 4.10, Precautions shall be taken in order to prevent the contents of a header
* file being included more than once.
* This violation is not fixed since the inclusion of <MA>_MemMap.h is as per AUTOSAR requirement [SWS_MemMap_00003].
*/



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

#include "Pwm.h"



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

/**
* @{
* @file         Pwm_Notif.h
*/
#define PWM_NOTIF_VENDOR_ID                       43
#define PWM_NOTIF_AR_RELEASE_MAJOR_VERSION        4
#define PWM_NOTIF_AR_RELEASE_MINOR_VERSION        3
#define PWM_NOTIF_AR_RELEASE_REVISION_VERSION     1
#define PWM_NOTIF_SW_MAJOR_VERSION                1
#define PWM_NOTIF_SW_MINOR_VERSION                0
#define PWM_NOTIF_SW_PATCH_VERSION                0
/**@}*/



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

/* Check if header file and Pwm header file are of the same vendor */
#if (PWM_NOTIF_VENDOR_ID != PWM_VENDOR_ID)
    #error "Vendor IDs Pwm_Notif.h and Pwm.h are different."
#endif

/* Check if header file and Pwm header file are of the same AUTOSAR version */
#if ((PWM_NOTIF_AR_RELEASE_MAJOR_VERSION    != PWM_AR_RELEASE_MAJOR_VERSION) || \
     (PWM_NOTIF_AR_RELEASE_MINOR_VERSION    != PWM_AR_RELEASE_MINOR_VERSION) || \
     (PWM_NOTIF_AR_RELEASE_REVISION_VERSION != PWM_AR_RELEASE_REVISION_VERSION))
    #error "AUTOSAR version numbers of Pwm_Notif.h and Pwm.h are different."
#endif

/* Check if header file and Pwm_Notif header file are of the same software version */
#if ((PWM_NOTIF_SW_MAJOR_VERSION != PWM_SW_MAJOR_VERSION) || \
     (PWM_NOTIF_SW_MINOR_VERSION != PWM_SW_MINOR_VERSION) || \
     (PWM_NOTIF_SW_PATCH_VERSION != PWM_SW_PATCH_VERSION))
    #error "Software version numbers of Pwm_Notif.h and Pwm.h are different."
#endif



/*===============================================================================================
*                                           CONSTANTS
===============================================================================================*/




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




/*===============================================================================================
*                                             ENUMS
===============================================================================================*/




/*===============================================================================================
*                                STRUCTURES AND OTHER TYPEDEFS
===============================================================================================*/




/*===============================================================================================
*                                 GLOBAL VARIABLE DECLARATIONS
===============================================================================================*/




/*===============================================================================================
*                                     FUNCTION PROTOTYPES
===============================================================================================*/

#define PWM_START_SEC_CODE
/*
* @violates @ref Pwm_Notif_h_REF_2 This violation is not fixed since the inclusion
*                of Pwm_MemMap.h is as per AUTOSAR requirement 
* @violates @ref Pwm_Notif_h_REF_1 Pwm_MemMap.h is included after each section define
*                in order to set the current memory section as defined by AUTOSAR
*/
#include "Pwm_MemMap.h"


/*=============================================================================================*/
#if (PWM_NOTIFICATION_SUPPORTED == STD_ON)
FUNC (void, PWM_CODE) Pwm_Notification
(
    VAR         (Pwm_ChannelType,           AUTOMATIC)                      Channel
);
#endif /* PWM_NOTIFICATION_SUPPORTED */



/*=============================================================================================*/
#if ((PWM_FAULT_SUPPORTED == STD_ON) || (PWM_RELOAD_NOTIF_SUPPORTED == STD_ON))
FUNC (P2CONST(Pwm_IpConfigType, AUTOMATIC, PWM_APPL_CONST), PWM_CODE) Pwm_GetIpConfigPtr
(
    void
);
#endif /* PWM_FAULT_SUPPORTED || PWM_RELOAD_NOTIF_SUPPORTED */


#define PWM_STOP_SEC_CODE
/*
* @violates @ref Pwm_Notif_h_REF_2 This violation is not fixed since the inclusion
*                of Pwm_MemMap.h is as per AUTOSAR requirement 
* @violates @ref Pwm_Notif_h_REF_1 Pwm_MemMap.h is included after each section define
*                in order to set the current memory section as defined by AUTOSAR
*/
#include "Pwm_MemMap.h"


#ifdef __cplusplus
}
#endif

#endif /* PWM_NOTIF_H */

/** @} */
