--- title: CBSE PUS 1_X Actions Code tags: CBSE-PUS description: robots: noindex, nofollow --- # CBSE PUS 1_X. Código de las Acciones de las clases componentes ## Clase CCEPDManager #### void CCEPDManager::EDROOMIRQ18HandlerTopHalfFunction() :::info <div style="color:blue"; > { bool EDROOMIRQ18BottomHalfSignal=true; </div> ::: ```c= // Complete Data #ifdef NEXYS_PLATFORM EDROOMIRQ18BottomHalfSignal=EDROOMVarIRQ18.HandleIRQ(); #endif ``` :::info <div style="color:blue"; > if (EDROOMIRQ18BottomHalfSignal) EDROOMEventIRQ18.Signal(); </div> <div style="color:blue"; > } </div> ::: --- #### void CCEPDManager::EDROOMIRQ18BottomHalfTask() :::info <div style="color:blue"; > do { </div> <div style="color:blue"; > EDROOMEventIRQ18.Wait(); </div> <div style="color:blue"; > bool EDROOMIRQ18SendMsgToCmp=true; </div> ::: ```c= // Complete Data #ifndef NEXYS_PLATFORM SC_Channel_GetNextTC(&EDROOMVarIRQ18); #endif ``` :::info <div style="color:blue"; > ... }while(!endTask); </div> <div style="color:blue"; > } </div> ::: --- #### CCEPDManager::EDROOM_CTX_Top_0::FInit() :::info <div style="color:blue"; > { </div> ::: ```c= // Data access RxTC.MaskIRQ(); RxTC.InstallHandler(); SC_Channel_Init(); RxTC.UnMaskIRQ(); ``` :::info <div style="color:blue"; > } </div> ::: --- #### CCEPDManager::EDROOM_CTX_Top_0::FGetTC() :::info <div style="color:blue"; > { CDTCHandler & varEDROOMIRQsignal = *(CDTCHandler *)Msg->data; </div> ::: ```c= // Data access VCurrentTC=varEDROOMIRQsignal; PUSService1::TryTCAcceptation(VCurrentTC); ``` :::info <div style="color:blue"; > } </div> ::: --- #### void CCEPDManager::EDROOM_CTX_Top_0::FMngTCAcceptation() :::info <div style="color:blue"; > { </div> ::: ```c= // Complete Data PUSService1::BuildTM_1_1(VCurrentTC, VCurrentTMList); ``` :::info <div style="color:blue"; > } </div> ::: --- #### void CCEPDManager::EDROOM_CTX_Top_0::FMngTCRejection() :::info <div style="color:blue"; > { </div> ::: ```c= // Complete Data PUSService1::BuildTM_1_2(VCurrentTC, VCurrentTMList); PUSService1::CompleteTCRejection(VCurrentTC); ``` :::info <div style="color:blue"; > } </div> ::: --- #### void CCEPDManager::EDROOM_CTX_Top_0::FExecPrioTC() :::info <div style="color:blue"; > { </div> ::: ```c= // Complete Data PUSPrioTCExecutor::ExecTC(VCurrentTC,VCurrentTMList,VCurrentEvList); ``` :::info <div style="color:blue"; > } </div> ::: --- #### void CCEPDManager::FInvokeTxTMList() :::info <div style="color:blue"; > {CDTMList * pSTxTM_Data=EDROOMPoolCDTMList.AllocData(); </div> ::: ```c= // Complete Data *pSTxTM_Data=VCurrentTMList; VCurrentTMList.Clear(); ``` :::info <div style="color:blue"; > MsgBack=TMChannelCtrl.invoke(STxTM,pSTxTM_Data,&EDROOMPoolCDTMList); </div> <div style="color:blue"; > } </div> ::: --- #### bool CCEPDManager::GAcceptTC() :::info <div style="color:blue"; > { </div> ::: ```c= // Complete Data return VCurrentTC.IsAccepted(); ``` :::info <div style="color:blue"; > } </div> ::: --- #### bool CCEPDManager::GToReboot() :::info <div style="color:blue"; > { </div> ::: ```c= // Complete Data return VCurrentTC.IsRebootTC(); ``` :::info <div style="color:blue"; > } </div> ::: --- ## Clase CCTM_ChannelCtrl --- #### void CCTM_ChannelCtrl::FTxTMList() :::info <div style="color:blue"; > { CDTMList & varSTxTM = *(CDTMList *)Msg->data; </div> ::: ```c= // Data access SC_Channel_TxTMList(&varSTxTM); ``` :::info <div style="color:blue"; > } </div> ::: --- #### void CCTM_ChannelCtrl::FReplyTMQueued() :::info <div style="color:blue"; > { </div> ::: ```c= ``` :::info <div style="color:blue"; > Msg->reply(STMQueued);} </div> :::