1 Reply Latest reply on Apr 20, 2020 3:39 AM by RashiV_61

    Interval units

    WGT_4383351

      CyU3PThreadSleep: unit is timer ticks, how to know how long is the timer tick?

      CyU3PDmaChannelGetBuffer: what is the unit of waitOption?

      CyU3PBusyWait: unit is micro-seconds. Commonly timing unit is ms.

       

      For most methods, there is no description about unit in the header. Where to find this information?

        • 1. Re: Interval units
          RashiV_61

          Hello,

           

          Please refer to this KBA EZ-USB® FX3™ Timer Ticks – KBA93074

           

          CyU3PThreadSleep: unit is timer ticks, how to know how long is the timer tick?

          >> The default value of one timer tick is one millisecond.This function puts the current thread to sleep for the specified number of timer ticks. so you can pass the argument accordingly.

           

           

          CyU3PDmaChannelGetBuffer: what is the unit of waitOption?

          >> The wait option is Timeout duration in timer ticks

           

           

          CyU3PBusyWait

          >>This function is used to insert small delays (of the order of micro-seconds) into the firmware application. The delay

          is implemented using a busy spin loop and can be used anywhere. This API should not be used for large delays as

          other lower or same priority threads will not be able to run during this.

           

          You can refer to this KBA and the FX3 API Guide in the SDK

           

          Regards,

          Rashi

          1 of 1 people found this helpful