APIs, concepts, guides, and more

◆ BackgroundCycleCounterGet()

int32_t BackgroundCycleCounterGet ( )
Description:
BackgroundCycleCounterGet returns the value of the counter
Returns
(int32_t) Background cycle counter value.
Sample Code:
// -- C++ -- //
printf("Background Cycle Counter reads %ld\n", controller->BackgroundCycleCounterGet());
int32_t BackgroundCycleCounterGet()
Get the current value of the controller's processor's background cycle counter.
// -- C# -- //
Console.WriteLine("Background Cycle Counter reads {0}", controller.BackgroundCycleCounterGet());
See also
SampleCounterGet
Note
The return value is a 32 bit counter which will roll over.