Interval units

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
WGT_4383351
Level 5
Level 5
First like received

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?

0 Likes
1 Solution
Rashi_Vatsa
Moderator
Moderator
Moderator
5 likes given 500 solutions authored 1000 replies posted

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

Regards,
Rashi

View solution in original post

1 Reply
Rashi_Vatsa
Moderator
Moderator
Moderator
5 likes given 500 solutions authored 1000 replies posted

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

Regards,
Rashi