예제 #1
0
void ML::_0901_0010(PS_MlRejectCause pCause_Ml)
{
    OSCL_UNUSED_ARG(pCause_Ml);
    T102TimerStop() ;
    StatusWrite(ML_OUTGOING_NOT_LOOPED) ;
    MsgLoopOffSend() ;
}
예제 #2
0
void ML::_0904_0010(PS_MaintenanceLoopAck pMaintenanceLoopAck)
{
    OSCL_UNUSED_ARG(pMaintenanceLoopAck);
    T102TimerStop() ;
    StatusWrite(ML_OUTGOING_LOOPED) ;
    PtvLoopCfmSend() ;
}
예제 #3
0
void ML::_0907_0011(void)
{
    S_MlRejectCause    cause;

    cause.index = 0 ;  /* canNotPerformLoop */

    StatusWrite(ML_INCOMING_NOT_LOOPED) ;
    PtvRlsIdcSend(Src_USER , &cause) ;
}
예제 #4
0
void RTD::_0803_0010(int32 Param)
{
    if (Param == TmrSqcNumberRead())    /* check timer-sequence number */
    {
        /* Update status */
        StatusWrite(RTD_IDLE) ;
        /* EXPIRY.indication send */
        PtvExpIndSend() ;
    }
}
예제 #5
0
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) ;
}
예제 #6
0
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() ;
}
예제 #7
0
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) ;
    }
}
예제 #8
0
/******************************************************************************
  函数(模块)名称: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);
}
예제 #9
0
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) ;
    }
}
예제 #10
0
void ML::_0900_0000(PS_MlRequestType pLoop_Type)
{
    StatusWrite(ML_OUTGOING_AWTING_RPS) ;
    MsgLoopReqSend(pLoop_Type) ;
    T102TimerStart() ;
}
예제 #11
0
void ML::_0905_0020(PS_MaintenanceLoopReject pMaintenanceLoopReject)
{
    StatusWrite(ML_OUTGOING_NOT_LOOPED) ;
    PtvErrIdcSend(ErrCode_Ml_A) ;
    PtvRlsIdcSend(Src_MLSE , &pMaintenanceLoopReject->mlRejectCause) ;
}
예제 #12
0
void ML::_0905_0010(PS_MaintenanceLoopReject pMaintenanceLoopReject)
{
    T102TimerStop() ;
    StatusWrite(ML_OUTGOING_NOT_LOOPED) ;
    PtvRlsIdcSend(Src_USER , &pMaintenanceLoopReject->mlRejectCause) ;
}
예제 #13
0
void ML::_0903_0011(void)
{
    StatusWrite(ML_INCOMING_LOOPED) ;
    MsgLoopAckSend() ;
}
예제 #14
0
void ML::_0902_0001(PS_MaintenanceLoopRequest pMaintenanceLoopRequest)
{
    LoopTypeWrite(&pMaintenanceLoopRequest->mlRequestType) ;
    StatusWrite(ML_INCOMING_AWTING_RPS) ;
    PtvLoopIdcSend(pMaintenanceLoopRequest) ;
}
예제 #15
0
void ML::_0901_0011(PS_MlRejectCause pCause_Ml)
{
    StatusWrite(ML_INCOMING_NOT_LOOPED) ;
    MsgLoopRjtSend(pCause_Ml) ;
}
예제 #16
0
파일: GDIDisplay.c 프로젝트: cdrr/MAME_hack
/* control keyboard leds or other indicators */
static void GDI_led_w(int led, int on)
{
    StatusWrite(led, on & 1);
}