The RMP Motion Controller APIs
RapidCodeOS

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.
RapidCodeOS * OS
Provides access to operating system (Windows) features.
Definition rsi.h:3736
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.
@ RSIWaitPOLL
return immediately, use polling

Definition at line 505 of file rsi.h.