示例#1
0
文件: CanSM.c 项目: digideskio/moped
void CanSM_Internal_ComM_BusSM_ModeIndication( NetworkHandleType NetworkHandle, ComM_ModeType ComM_Mode )
{
	/* Update internals */
	CanSM_Internal.Networks[NetworkHandle].currentMode = ComM_Mode;
	/* Indicate to ComM */
	ComM_BusSM_ModeIndication(CanSM_Config->Networks[NetworkHandle].ComMNetworkHandle, &ComM_Mode);
}
示例#2
0
文件: LinSM.c 项目: uincore/OpenSAR
void LinSM_GotoSleep_Confirmation(NetworkHandleType channel,boolean success){
	VALIDATE( (LinSMStatus != LINSM_UNINIT), LINSM_GOTO_SLEEP_CONF_SERVICE_ID, LINSM_E_UNINIT);
	VALIDATE( (channel < LINIF_CONTROLLER_CNT), LINSM_GOTO_SLEEP_CONF_SERVICE_ID, LINSM_E_NOXEXISTENT_CHANNEL);

	if(TRUE == success)
	{
		if(GoToSleepTimer[channel]!=0){
			GoToSleepTimer[channel]=0;
			LinSMChannelStatus[channel] = LINSM_NO_COM;
			ComM_BusSM_ModeIndication(channel,COMM_NO_COMMUNICATION);
		}
	}
}
示例#3
0
文件: LinSM.c 项目: uincore/OpenSAR
void LinSM_WakeUp_Confirmation(NetworkHandleType channel,boolean success){
	VALIDATE( (LinSMStatus != LINSM_UNINIT), LINSM_WAKEUP_CONF_SERVICE_ID, LINSM_E_UNINIT);
	VALIDATE( (channel < LINIF_CONTROLLER_CNT), LINSM_WAKEUP_CONF_SERVICE_ID, LINSM_E_NOXEXISTENT_CHANNEL);

	if(TRUE == success)
	{
		if(WakeUpTimer[channel]!=0){
			WakeUpTimer[channel]=0;
			ComM_BusSM_ModeIndication(channel,COMM_FULL_COMMUNICATION);
			LinSMChannelStatus[channel] = LINSM_RUN_SCHEDULE;
		}
	}
}