/* 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 : BswM.h ******************************************************************************** * Project/Product : AUTOSAR R21-11 * Title : BswM.h * Author : Hirain ******************************************************************************** * Description : BswM.h ******************************************************************************** * Limitations : None * ******************************************************************************** * ******************************************************************************** * Revision History: * Reference to Core C File ******************************************************************************** * END_FILE_HDR*/ #ifndef BSWM_H #define BSWM_H /******************************************************************************* * Includes *******************************************************************************/ #include "BswM_Version.h" #include "BswM_Lcfg.h" #include "BswM_PBcfg.h" #include "BswM_Cfg.h" /******************************************************************************* * Macro *******************************************************************************/ /* Development Error */ #if (STD_ON == BSWM_DEV_ERROR_DETECT) /*SWS_EcuM_04032*/ #define BSWM_E_UNINIT (0x01u) #define BSWM_E_NULL_POINTER (0x02u) #define BSWM_E_PARAM_INVALID (0x03u) #define BSWM_E_REQ_USER_OUT_OF_RANGE (0x04u) #define BSWM_E_REQ_MODE_OUT_OF_RANGE (0x05u) #define BSWM_E_PARAM_CONFIG (0x06u) #define BSWM_E_PARAM_POINTER (0x07u) #define BSWM_E_INIT_FAILED (0x08u) #define BSWM_E_ACTION_FAILED (0xFFu) /* Non Autosar Standard */ /* API ID*/ #define BSWM_INIT_APIID (0x00u) #define BSWM_GETVERSIONINFO_APIID (0x01u) #define BSWM_REQUESTMODE_APIID (0x02u) #define BSWM_MAINFUNCTION_APIID (0x03u) #define BSWM_DEINIT_APIID (0x04u) #define BSWM_CANSM_CURRENTSTATE_APIID (0x05u) #define BSWM_DCM_COMMUNICATIONMODE_CURRENTSTATE_APIID (0x06u) #define BSWM_LINSM_CURRENTSTATE_APIID (0x09u) #define BSWM_LINSM_CURRENTSCHEDULE_APIID (0x0au) #define BSWM_LINTP_REQUESTMODE_APIID (0x0bu) #define BSWM_FRSM_CURRENTSTATE_APIID (0x0cu) #define BSWM_ETHSM_CURRENTSTATE_APIID (0x0du) #define BSWM_COMM_CURRENTMODE_APIID (0x0eu) #define BSWM_ECUM_CURRENTSTATE_APIID (0x28u) #define BSWM_ECUM_CURRENTWAKEUP_APIID (0x10u) #define BSWM_WDGM_REQUESTPARTITIONRESET_APIID (0x11u) #define BSWM_TRIGGERSTARTUPPHASE2_APIID (0x12u) #define BSWM_DCM_APPLICATIONUPDATED_APIID (0x14u) #define BSWM_COMM_CURRENTPNCMODE_APIID (0x15u) #define BSWM_NVM_CURRENTBLOCKMODE_APIID (0x16u) #define BSWM_NVM_CURRENTJOBMODE_APIID (0x17u) #define BSWM_J1938NM_STATECHANGENOTIFICATION_APIID (0x18u) #define BSWM_J1938DCMBROADCASTSTATUS_APIID (0x1bu) #define BSWM_BSWMPARTITIONRESTARTED_APIID (0x1eu) #define BSWM_SD_CLIENTSERVICECURRENTSTATE_APIID (0x1fu) #define BSWM_SD_EVENTHANDLERCURRENTSTATE_APIID (0x20u) #define BSWM_SD_CONSUMEDEVENTGROUPCURRENTSTATE_APIID (0x21u) #define BSWM_COMM_INITIATERESET_APIID (0x22u) #define BSWM_NM_CARWAKEUPINDICATION_APIID (0x24u) #define BSWM_ETHIF_PORTGROUPLINKSTATECHG_APIID (0x26u) #define BSWM_NM_STATECHANGENOTIFICATION_APIID (0x27u) #define BSWM_ECUM_REQUESTEDSTATE_APIID (0x29u) #define BSWM_SOAD_SOCONMODECHG_APIID (0x2au) #endif /******************************************************************************* * API Declaration *******************************************************************************/ #define BSWM_START_SEC_CODE #include "BswM_MemMap.h" extern FUNC(void, BSWM_CODE) BswM_Init ( P2CONST(BswM_ConfigType, AUTOMATIC, BSWM_CONST) ConfigPtr ); extern FUNC(void, BSWM_CODE) BswM_Deinit ( void ); #if(STD_ON == BSWM_VERSION_INFO_API) extern FUNC(void, BSWM_CODE) BswM_GetVersionInfo ( P2VAR(Std_VersionInfoType, AUTOMATIC, BSWM_APPL_DATA) VersionInfo ); #endif #if(STD_ON == BSWM_GENERIC_REQUEST_ENABLED) extern FUNC(void, BSWM_CODE) BswM_RequestMode ( BswM_UserType requesting_user, BswM_ModeType requested_mode ); #endif #if(STD_ON == BSWM_MULTIPATITION_ENABLED) extern FUNC(void, BSWM_CODE) BswM_BswMPartitionRestarted ( void ); #endif extern FUNC(void, BSWM_CODE) BswM_MainFunction ( void ); #if(STD_ON == BSWM_TIMER_ENABLED) extern FUNC(void, BSWM_CODE) BswM_SetTimer ( uint16 TimerValue ); extern FUNC(void, BSWM_CODE) BswM_StopTimer ( void ); #endif #define BSWM_STOP_SEC_CODE #include "BswM_MemMap.h" #endif/* BSWM_H */