-
-
Notifications
You must be signed in to change notification settings - Fork 331
/
muse_constants.h
33 lines (28 loc) · 1.45 KB
/
muse_constants.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#pragma once
// common constants
#define MUSE_S_DATA_SIZE 15
// handles for bglib
#define FIRST_HANDLE 0x0001
#define LAST_HANDLE 0xffff
// info about services and chars
#define CLIENT_CHARACTERISTIC_UUID 0x2902
#define MUSE_SERVICE_UUID 0xFE8D
#define MUSE_GATT_ATTR_SERVICECHANGED "00002a05-0000-1000-8000-00805f9b34fb"
#define MUSE_GATT_ATTR_STREAM_TOGGLE "273e0001-4c4d-454d-96be-f03bac821358"
#define MUSE_GATT_ATTR_LEFTAUX "273e0002-4c4d-454d-96be-f03bac821358"
#define MUSE_GATT_ATTR_TP9 "273e0003-4c4d-454d-96be-f03bac821358"
#define MUSE_GATT_ATTR_AF7 "273e0004-4c4d-454d-96be-f03bac821358"
#define MUSE_GATT_ATTR_AF8 "273e0005-4c4d-454d-96be-f03bac821358"
#define MUSE_GATT_ATTR_TP10 "273e0006-4c4d-454d-96be-f03bac821358"
#define MUSE_GATT_ATTR_RIGHTAUX "273e0007-4c4d-454d-96be-f03bac821358"
#define MUSE_GATT_ATTR_REFDRL "273e0008-4c4d-454d-96be-f03bac821358"
#define MUSE_GATT_ATTR_GYRO "273e0009-4c4d-454d-96be-f03bac821358"
#define MUSE_GATT_ATTR_ACCELEROMETER "273e000a-4c4d-454d-96be-f03bac821358"
#define MUSE_GATT_ATTR_TELEMETRY "273e000b-4c4d-454d-96be-f03bac821358"
#define MUSE_GATT_ATTR_PPG0 "273e000f-4c4d-454d-96be-f03bac821358"
#define MUSE_GATT_ATTR_PPG1 "273e0010-4c4d-454d-96be-f03bac821358"
#define MUSE_GATT_ATTR_PPG2 "273e0011-4c4d-454d-96be-f03bac821358"
#define MUSE_GATT_ATTR_THERMISTOR "273e0012-4c4d-454d-96be-f03bac821358"
// info for equations
#define MUSE_ACCELEROMETER_SCALE_FACTOR 0.0000610352
#define MUSE_GYRO_SCALE_FACTOR 0.007476