-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmyo.h
58 lines (47 loc) · 1.23 KB
/
myo.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#ifndef myo_h
#define myo_h
#include "Arduino.h"
#include <BLEDevice.h>
#include <BLEClient.h>
#include <BLEUtils.h>
#include <BLEScan.h>
#include <BLEAdvertisedDevice.h>
#include <stdint.h>
#include <BLEValue.h>
#include <BLEAddress.h>
class myo
{
public:
void getMyoInfo();
void getFirmwareVersion();
void connect();
void EMGNotify();
void IMUNotify();
void BATTNotify();
void getAllData();
BLEAddress pAddress = BLEAddress("f9:64:aa:5e:d8:ef");
BLEClient* pClient;
int temp;
bool initDo = true;
bool getMyoInfoDone = false;
bool getFirmwareVersionDone = false;
bool connected = false;
bool EMGNotifyDone = false;
bool IMUNotifyDone = false;
bool BATTNotifyDone = false;
bool getAllDataDone = false;
uint16_t fw_major;
uint16_t fw_minor;
uint16_t fw_patch;
uint16_t fw_hardware_rev;
uint8_t fw_serial_number[6];
uint16_t fw_unlock_pose;
uint8_t fw_active_classifier_type;
uint8_t fw_active_classifier_index;
uint8_t fw_has_custom_classifier;
uint8_t fw_stream_indicating;
uint8_t fw_sku;
uint8_t fw_reserved[7];
private:
};
#endif