/* BEGIN_FILE_HDR ******************************************************************************** * NOTICE * This software is the property of HiRain Technologies. Any information * contained in this doc should not be reproduced, or used, or disclosed * without the written authorization from HiRain Technologies. ******************************************************************************** * File Name : Nm_Cbk.h ******************************************************************************** * Project/Product : AUTOSAR R21-11 * Title : Nm Callback module Source File * Author : Hirain ******************************************************************************** * Description : Callback header file of the AUTOSAR NM. * The header file contains the declaration of the API used * by BusNm module. ******************************************************************************** * Limitations : None * ******************************************************************************** * ******************************************************************************** * Revision History: * Reference to Core C File ******************************************************************************** * END_FILE_HDR*/ #ifndef NM_CBK_H #define NM_CBK_H /******************************************************************************* * Includes *******************************************************************************/ #include "NmStack_Types.h" #include "Nm_Version.h" /******************************************************************************* * Callback functions *******************************************************************************/ #define NM_START_SEC_CODE #include "Nm_MemMap.h" /*SWS_Nm_00154*/ extern FUNC(void, NM_CODE) Nm_NetworkStartIndication ( NetworkHandleType nmNetworkHandle ); /*SWS_Nm_00156*/ extern FUNC(void, NM_CODE) Nm_NetworkMode ( NetworkHandleType nmNetworkHandle ); /*SWS_Nm_00162*/ extern FUNC(void, NM_CODE) Nm_BusSleepMode ( NetworkHandleType nmNetworkHandle ); /*SWS_Nm_00159*/ extern FUNC(void, NM_CODE) Nm_PrepareBusSleepMode ( NetworkHandleType nmNetworkHandle ); #if(NM_NUM_OF_FR_CHANNEL > 0) /*SWS_Nm_91002*/ extern FUNC(void, NM_CODE) Nm_SynchronizeMode ( NetworkHandleType nmNetworkHandle ); /*SWS_Nm_00194*/ extern FUNC(void, NM_CODE) Nm_SynchronizationPoint ( NetworkHandleType nmNetworkHandle ); #endif /*SWS_Nm_00277*//*SWS_Nm_00278*/ #if(STD_ON == NM_REMOTE_SLEEP_IND_ENABLED) /*SWS_Nm_00192*/ extern FUNC(void, NM_CODE) Nm_RemoteSleepIndication ( NetworkHandleType nmNetworkHandle ); /*SWS_Nm_00193*/ extern FUNC(void, NM_CODE) Nm_RemoteSleepCancellation ( NetworkHandleType nmNetworkHandle ); #endif /*SWS_Nm_00255*//*SWS_Nm_00273*/ #if(STD_ON == NM_COORDINATOR_SUPPORT) /*SWS_Nm_00254*/ extern FUNC(void, NM_CODE) Nm_CoordReadyToSleepIndication ( NetworkHandleType nmNetworkHandle ); /*SWS_Nm_00272*/ extern FUNC(void, NM_CODE) Nm_CoordReadyToSleepCancellation ( NetworkHandleType nmNetworkHandle ); #endif #if(STD_ON == NM_PN_SUPPORT_ENABLED) #if(STD_ON == NM_SYNC_PNC_SHUTDOWN_ENABLED) /*SWS_Nm_91009*/ extern FUNC(void, NM_CODE) Nm_ForwardSynchronizedPncShutdown ( NetworkHandleType NetworkHandle, P2CONST(uint8, AUTOMATIC, NM_CONST) PncBitVectorPtr ); #endif /*SWS_Nm_91006*/ extern FUNC(void, NM_CODE) Nm_PncBitVectorRxIndication ( NetworkHandleType NetworkHandle, P2CONST(uint8, AUTOMATIC, NM_CONST) PncBitVectorPtr, P2VAR(boolean, AUTOMATIC, NM_APPL_DATA) RelevantPncRequestDetectedPtr ); /*SWS_Nm_91008*/ extern FUNC(void, NM_CODE) Nm_PncBitVectorTxIndication ( NetworkHandleType NetworkHandle, P2VAR(uint8, AUTOMATIC, NM_APPL_DATA) PncBitVectorPtr ); #if(STD_ON == NM_WAKEUP_CHECK_VALID_WITH_PN) extern FUNC(boolean, NM_CODE) Nm_CheckIfContainsValidPN ( NetworkHandleType NetworkHandle, P2CONST(PduInfoType, AUTOMATIC, NM_APPL_DATA) PduInfoPtr ); #endif #endif /*SWS_Nm_00164*/ #if(STD_ON == NM_PDU_RXINDICATION_ENABLED) /*SWS_Nm_00112*/ extern FUNC(void, NM_CODE) Nm_PduRxIndication ( NetworkHandleType nmNetworkHandle ); #endif /*SWS_Nm_00165*/ #if(STD_ON == NM_STATE_CHANGE_IND_ENABLED) /*SWS_Nm_00114*/ extern FUNC(void, NM_CODE) Nm_StateChangeNotification ( NetworkHandleType nmNetworkHandle, Nm_StateType nmPreviousState, Nm_StateType nmCurrentState ); #endif /*SWS_Nm_00230*/ extern FUNC(void, NM_CODE) Nm_RepeatMessageIndication ( NetworkHandleType nmNetworkHandle, boolean pnLearningBitSet ); /*SWS_Nm_00234*/ extern FUNC(void, NM_CODE) Nm_TxTimeoutException ( NetworkHandleType nmNetworkHandle ); /*SWS_Nm_00250*/ extern FUNC(void, NM_CODE) Nm_CarWakeUpIndication ( NetworkHandleType nmNetworkHandle ); #define NM_STOP_SEC_CODE #include "Nm_MemMap.h" #endif/*NM_CBK_H*/