void ML::_0901_0010(PS_MlRejectCause pCause_Ml) { OSCL_UNUSED_ARG(pCause_Ml); T102TimerStop() ; StatusWrite(ML_OUTGOING_NOT_LOOPED) ; MsgLoopOffSend() ; }
void ML::_0904_0010(PS_MaintenanceLoopAck pMaintenanceLoopAck) { OSCL_UNUSED_ARG(pMaintenanceLoopAck); T102TimerStop() ; StatusWrite(ML_OUTGOING_LOOPED) ; PtvLoopCfmSend() ; }
void ML::_0907_0011(void) { S_MlRejectCause cause; cause.index = 0 ; /* canNotPerformLoop */ StatusWrite(ML_INCOMING_NOT_LOOPED) ; PtvRlsIdcSend(Src_USER , &cause) ; }
void RTD::_0803_0010(int32 Param) { if (Param == TmrSqcNumberRead()) /* check timer-sequence number */ { /* Update status */ StatusWrite(RTD_IDLE) ; /* EXPIRY.indication send */ PtvExpIndSend() ; } }
void ML::_0902_0011(PS_MaintenanceLoopRequest pMaintenanceLoopRequest) { S_MlRejectCause cause; cause.index = 0 ; /* canNotPerformLoop */ StatusWrite(ML_INCOMING_AWTING_RPS) ; PtvRlsIdcSend(Src_USER, &cause) ; LoopTypeWrite(&pMaintenanceLoopRequest->mlRequestType) ; PtvLoopIdcSend(pMaintenanceLoopRequest) ; }
void RTD::_0800_0000(void) { /* Increment out-sequence number */ OutSqcInc() ; /* RoundTripDelayRequest message send */ StatusWrite(RTD_AWTING_RPS) ; MsgRequestSend() ; /* Start mesurement of delay time */ StartMeasurement() ; /* Start timer for waiting response */ T105TimerStart() ; }
void ML::_0906_0010(int32 Timer_Sequence_Number) { S_MlRejectCause cause; if (Timer_Sequence_Number == TmrSqcNumberRead()) /* Receive Timer Sequense Number Equal Timer Sequence Number */ { StatusWrite(ML_OUTGOING_NOT_LOOPED) ; PtvErrIdcSend(ErrCode_Ml_B) ; MsgLoopOffSend() ; cause.index = 0 ; /* canNotPerformLoop */ PtvRlsIdcSend(Src_MLSE , &cause) ; } }
/****************************************************************************** 函数(模块)名称:void SST25VF010_Init(void) 功能: FLASH芯片初始化 输入参数:无 输出参数: 无 其它说明: *******************************************************************************/ void SST25VF010_Init(void) { SPI_CE_H; SPI_HOLD_H; SPI_WP_H; SPI_CE_OUT; SPI_HOLD_OUT; SPI_WP_OUT; SPI_PowerOut; SPI_PowerOn; __delay_cycles(1000); // Delay; SPI_Init(); StatusWrite(0X00); }
void RTD::_0802_0010(PS_RoundTripDelayResponse pRoundTripDelayResponse) { int32 Delay ; if (pRoundTripDelayResponse->sequenceNumber == OutSqcRead()) /* Ckeck Sequence number */ { /* Stop timer for waiting response */ T105TimerStop() ; /* Stop measurement and get delay time */ Delay = StopMeasurement() ; /* Update status */ StatusWrite(RTD_IDLE) ; /* TRANSFER.confirm send */ PtvTrnsCfmSend(Delay) ; } }
void ML::_0900_0000(PS_MlRequestType pLoop_Type) { StatusWrite(ML_OUTGOING_AWTING_RPS) ; MsgLoopReqSend(pLoop_Type) ; T102TimerStart() ; }
void ML::_0905_0020(PS_MaintenanceLoopReject pMaintenanceLoopReject) { StatusWrite(ML_OUTGOING_NOT_LOOPED) ; PtvErrIdcSend(ErrCode_Ml_A) ; PtvRlsIdcSend(Src_MLSE , &pMaintenanceLoopReject->mlRejectCause) ; }
void ML::_0905_0010(PS_MaintenanceLoopReject pMaintenanceLoopReject) { T102TimerStop() ; StatusWrite(ML_OUTGOING_NOT_LOOPED) ; PtvRlsIdcSend(Src_USER , &pMaintenanceLoopReject->mlRejectCause) ; }
void ML::_0903_0011(void) { StatusWrite(ML_INCOMING_LOOPED) ; MsgLoopAckSend() ; }
void ML::_0902_0001(PS_MaintenanceLoopRequest pMaintenanceLoopRequest) { LoopTypeWrite(&pMaintenanceLoopRequest->mlRequestType) ; StatusWrite(ML_INCOMING_AWTING_RPS) ; PtvLoopIdcSend(pMaintenanceLoopRequest) ; }
void ML::_0901_0011(PS_MlRejectCause pCause_Ml) { StatusWrite(ML_INCOMING_NOT_LOOPED) ; MsgLoopRjtSend(pCause_Ml) ; }
/* control keyboard leds or other indicators */ static void GDI_led_w(int led, int on) { StatusWrite(led, on & 1); }