Example #1
0
    def prepareReceive(self):
        # prepare work, create tx rx buffer
        IrisUtil.Process_CreateReceiveBuffer(self)
        IrisUtil.Process_ClearStreamBuffer(self)
        # activate
        IrisUtil.Process_ComputeTimeToDoThings_UseHasTime(self, delay = 10000000)
        IrisUtil.Process_RxActivate_SetupContinuousReadRxStream(self)

        # setup registers of how many samples are already received (initialized as 0)
        IrisUtil.Process_BuildAsyncRxRegisters(self)

        # set register and time
        self.lastTime = time.time()
        self.running = True
Example #2
0
    def doSimpleRx(self):
        # prepare work, create tx rx buffer
        IrisUtil.Process_CreateReceiveBuffer(self)
        IrisUtil.Process_ClearStreamBuffer(self)
        # activate
        IrisUtil.Process_ComputeTimeToDoThings_UseHasTime(self, delay = 10000000)
        IrisUtil.Process_RxActivate_WriteFlagToRxStream_UseHasTime(self, rx_delay = 57)

        # sleep to wait
        IrisUtil.Process_WaitForTime_NoTrigger(self)

        # read stream
        IrisUtil.Process_ReadFromRxStream(self)
        IrisUtil.Process_HandlePostcode(self)  # postcode is work on received data
    
        # deactive
        IrisUtil.Process_RxDeactive(self)
Example #3
0
    def doSimpleRx(self):
        # prepare work, create tx rx buffer
        IrisUtil.Process_CreateReceiveBuffer(self)
        IrisUtil.Process_ClearStreamBuffer(self)
        # activate
        IrisUtil.Process_ComputeTimeToDoThings_UseHasTime(self,
                                                          delay=10000000,
                                                          alignment=2730667)
        IrisUtil.Process_RxActivate_WriteFlagToRxStream_UseHasTime(self,
                                                                   rx_delay=0)

        # sleep to wait
        IrisUtil.Process_WaitForTime_NoTrigger(self)

        # read stream
        IrisUtil.Process_ReadFromRxStream(self)
        IrisUtil.Process_HandlePostcode(
            self)  # postcode is work on received data

        # deactive
        IrisUtil.Process_RxDeactive(self)

        # do correlation
        IrisUtil.Process_DoCorrelation2FindFirstPFDMSymbol(self)