PlusLib  2.9.0
Software library for tracked ultrasound image acquisition, calibration, and processing.
Functions | Variables
ClariusBLE.cxx File Reference
#include "ClariusBLE.h"
#include <winrt/base.h>
#include <winrt/windows.devices.bluetooth.h>
#include <winrt/windows.devices.bluetooth.genericattributeprofile.h>
#include <winrt/windows.devices.enumeration.h>
#include <winrt/windows.foundation.h>
#include <winrt/windows.foundation.collections.h>
#include <winrt/windows.storage.h>
#include <winrt/windows.storage.streams.h>
#include <atomic>
#include <codecvt>
#include <future>
#include <mutex>
#include <iomanip>
#include <locale>
#include <sstream>
#include <stdexcept>
Include dependency graph for ClariusBLE.cxx:

Go to the source code of this file.

Functions

template<typename TAsyncOp >
PlusStatus await_async (TAsyncOp op)
 
std::string to_narrow_string (std::wstring wstr)
 
std::string to_narrow_string (winrt::hstring hstr)
 
std::wstring to_wide_string (std::string str)
 
std::string uuid_to_string (const winrt::guid &uuid)
 

Variables

static const uint64_t BLE_OP_TIMEOUT_SEC = 5
 
static const uint64_t POWER_ON_TIMEOUT_SEC = 30
 
static const winrt::guid POWER_PUBLISHED_CHAR_UUID { 0x8c853b6a, 0x2297, 0x44c1, { 0x82, 0x77, 0x73, 0x62, 0x7c, 0x8d, 0x2a, 0xbd } }
 
static const winrt::guid POWER_REQUEST_CHAR_UUID { 0x8c853b6a, 0x2297, 0x44c1, { 0x82, 0x77, 0x73, 0x62, 0x7c, 0x8d, 0x2a, 0xbe } }
 
static const winrt::guid POWER_SERVICE_UUID { 0x8c853b6a, 0x2297, 0x44c1, { 0x82, 0x77, 0x73, 0x62, 0x7c, 0x8d, 0x2a, 0xbc } }
 
static const winrt::guid WIFI_PUBLISHED_CHAR_UUID { 0xf9eb3fae, 0x947a, 0x4e5b, { 0xab, 0x7c, 0xc7, 0x99, 0xe9, 0x1e, 0xd7, 0x81 } }
 
static const winrt::guid WIFI_REQUEST_CHAR_UUID { 0xf9eb3fae, 0x947a, 0x4e5b, { 0xab, 0x7c, 0xc7, 0x99, 0xe9, 0x1e, 0xd7, 0x82 } }
 
static const winrt::guid WIFI_SERVICE_UUID { 0xf9eb3fae, 0x947a, 0x4e5b, { 0xab, 0x7c, 0xc7, 0x99, 0xe9, 0x1e, 0xd7, 0x80 } }
 

Function Documentation

◆ await_async()

template<typename TAsyncOp >
PlusStatus await_async ( TAsyncOp  op)

Definition at line 81 of file ClariusBLE.cxx.

◆ to_narrow_string() [1/2]

std::string to_narrow_string ( std::wstring  wstr)

Definition at line 131 of file ClariusBLE.cxx.

◆ to_narrow_string() [2/2]

std::string to_narrow_string ( winrt::hstring  hstr)

Definition at line 138 of file ClariusBLE.cxx.

◆ to_wide_string()

std::wstring to_wide_string ( std::string  str)

Definition at line 124 of file ClariusBLE.cxx.

◆ uuid_to_string()

std::string uuid_to_string ( const winrt::guid &  uuid)

Definition at line 146 of file ClariusBLE.cxx.

Variable Documentation

◆ BLE_OP_TIMEOUT_SEC

const uint64_t BLE_OP_TIMEOUT_SEC = 5
static

Definition at line 73 of file ClariusBLE.cxx.

◆ POWER_ON_TIMEOUT_SEC

const uint64_t POWER_ON_TIMEOUT_SEC = 30
static

Definition at line 70 of file ClariusBLE.cxx.

◆ POWER_PUBLISHED_CHAR_UUID

const winrt::guid POWER_PUBLISHED_CHAR_UUID { 0x8c853b6a, 0x2297, 0x44c1, { 0x82, 0x77, 0x73, 0x62, 0x7c, 0x8d, 0x2a, 0xbd } }
static

Definition at line 51 of file ClariusBLE.cxx.

◆ POWER_REQUEST_CHAR_UUID

const winrt::guid POWER_REQUEST_CHAR_UUID { 0x8c853b6a, 0x2297, 0x44c1, { 0x82, 0x77, 0x73, 0x62, 0x7c, 0x8d, 0x2a, 0xbe } }
static

Definition at line 55 of file ClariusBLE.cxx.

◆ POWER_SERVICE_UUID

const winrt::guid POWER_SERVICE_UUID { 0x8c853b6a, 0x2297, 0x44c1, { 0x82, 0x77, 0x73, 0x62, 0x7c, 0x8d, 0x2a, 0xbc } }
static

Definition at line 47 of file ClariusBLE.cxx.

◆ WIFI_PUBLISHED_CHAR_UUID

const winrt::guid WIFI_PUBLISHED_CHAR_UUID { 0xf9eb3fae, 0x947a, 0x4e5b, { 0xab, 0x7c, 0xc7, 0x99, 0xe9, 0x1e, 0xd7, 0x81 } }
static

Definition at line 63 of file ClariusBLE.cxx.

◆ WIFI_REQUEST_CHAR_UUID

const winrt::guid WIFI_REQUEST_CHAR_UUID { 0xf9eb3fae, 0x947a, 0x4e5b, { 0xab, 0x7c, 0xc7, 0x99, 0xe9, 0x1e, 0xd7, 0x82 } }
static

Definition at line 67 of file ClariusBLE.cxx.

◆ WIFI_SERVICE_UUID

const winrt::guid WIFI_SERVICE_UUID { 0xf9eb3fae, 0x947a, 0x4e5b, { 0xab, 0x7c, 0xc7, 0x99, 0xe9, 0x1e, 0xd7, 0x80 } }
static

Definition at line 59 of file ClariusBLE.cxx.