Implementation. More...
#include <osvr/PluginKit/DeviceInterfaceC.h>
#include <osvr/PluginKit/PluginRegistration.h>
#include <osvr/PluginHost/RegistrationContext.h>
#include <osvr/Connection/DeviceToken.h>
#include <osvr/Connection/MessageType.h>
#include <osvr/Connection/Connection.h>
#include <osvr/Connection/DeviceInitObject.h>
#include <osvr/Util/Verbosity.h>
#include "HandleNullContext.h"
#include <boost/thread.hpp>
#include <string>
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... | |