cancel
Showing results for 
Search instead for 
Did you mean: 

USB Superspeed Peripherals

New Contributor II

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
Reply
1 Solution
Moderator
Moderator

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
Moderator
Moderator

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