APIs, concepts, guides, and more

The RapidCodeOS object provides access to operating system (Windows) features. Accessible via MotionController . More...

Functions

void Sleep (int32_t milliseconds)
 Put the current thread to sleep.
int32_t KeyGet (int32_t milliseconds)
 Wait for a key to be pressed and return its value.
int32_t TimerCountGet ()
 Gets the time since startup.
int32_t TimerFrequencyGet ()
 Get the number milliseconds per second.
int32_t PerformanceTimerCountGet ()
 Gets the current high performance counter value.
int32_t PerformanceTimerFrequencyGet ()
 Gets the frequency of the performance counter.

Description


The RapidCodeOS object is a base class.

RapidCodeOS is primarily responsible for handling timer/sleep functionality. The most common example uses of which are:

while (controller->OS->KeyGet(RSIWaitPOLL) < 0) // Hold Execution in a while loop until a key is pressed.
// and/or
controller->OS->Sleep(timeInMilliseconds); // Hold Execution until a certain amount of time has passed.
@ RSIWaitPOLL
return immediately, use polling
Definition rsienums.h:1080

Definition at line 493 of file rsi.h.