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. More...
 
int32_t KeyGet (int32_t milliseconds)
 Wait for a key to be pressed and return its value. More...
 
int32_t TimerCountGet ()
 Gets the time since startup. More...
 
int32_t TimerFrequencyGet ()
 Get the number milliseconds per second. More...
 
int32_t PerformanceTimerCountGet ()
 Gets the current high performance counter value. More...
 
int32_t PerformanceTimerFrequencyGet ()
 Gets the frequency of the performance counter. More...
 

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.

Definition at line 497 of file rsi.h.

RSI::RapidCode::MotionController::OS
RapidCodeOS * OS
Provides access to operating system (Windows) features.
Definition: rsi.h:3781
RSI::RapidCode::RapidCodeOS::Sleep
void Sleep(int32_t milliseconds)
Put the current thread to sleep.
RSI::RapidCode::RapidCodeOS::KeyGet
int32_t KeyGet(int32_t milliseconds)
Wait for a key to be pressed and return its value.