OSVR Framework (Internal Development Docs)  0.6-1962-g59773924
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
DeviceInterfaceC.cpp File Reference

Implementation. More...

Go to the source code of this file.

Functions

OSVR_DeviceInitOptions osvrDeviceCreateInitOptions (OSVR_PluginRegContext ctx)
 Create a OSVR_DeviceInitOptions object. More...
 
OSVR_ReturnCode osvrDeviceSendData (OSVR_DeviceToken dev, OSVR_MessageType msg, const char *bytestream, size_t len)
 Send a raw bytestream from your device. More...
 
OSVR_ReturnCode osvrDeviceSendTimestampedData (OSVR_DeviceToken dev, OSVR_TimeValue *timestamp, OSVR_MessageType msg, const char *bytestream, size_t len)
 
OSVR_ReturnCode osvrDeviceSendJsonDescriptor (OSVR_DeviceToken dev, const char *json, size_t len)
 Submit a JSON self-descriptor string for the device. More...
 
OSVR_ReturnCode osvrDeviceRegisterMessageType (OSVR_PluginRegContext ctx, const char *name, OSVR_MessageType *msgtype)
 Register (or recall) a message type by name. More...
 
OSVR_ReturnCode osvrDeviceSyncInit (OSVR_PluginRegContext ctx, const char *name, OSVR_DeviceToken *device)
 Initialize a synchronous device token. More...
 
OSVR_ReturnCode osvrDeviceSyncInitWithOptions (OSVR_PluginRegContext, const char *name, OSVR_DeviceInitOptions options, OSVR_DeviceToken *device)
 Initialize a synchronous device token. More...
 
OSVR_ReturnCode osvrDeviceRegisterUpdateCallback (OSVR_DeviceToken dev, OSVR_DeviceUpdateCallback updateCallback, void *userData)
 Register the update callback of a device. More...
 
OSVR_ReturnCode osvrDeviceAsyncInit (OSVR_PluginRegContext ctx, const char *name, OSVR_DeviceToken *device)
 Initialize an asynchronous device token. More...
 
OSVR_ReturnCode osvrDeviceAsyncInitWithOptions (OSVR_PluginRegContext, const char *name, OSVR_DeviceInitOptions options, OSVR_DeviceToken *device)
 Initialize an asynchronous device token. More...
 
OSVR_ReturnCode osvrDeviceMicrosleep (uint64_t microseconds)
 Request a thread sleep for at least the given number of microseconds. DO NOT use within a Sync plugin! More...
 

Detailed Description

Implementation.

Date
2014
Author
Sensics, Inc. http://sensics.com/osvr

Definition in file DeviceInterfaceC.cpp.