Treehopper C++ API
Settings.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <stdint.h>
4 #include "Treehopper.h"
5 
6 namespace Treehopper {
8  public:
9  Settings(Settings const &) = delete;
10 
11  void operator=(Settings const &) = delete;
12 
13  static Settings &instance() {
14  static Settings instance;
15  return instance;
16  }
17 
18  bool throwExceptions = false;
19  bool printExceptions = true;
20  uint16_t vid = 0x10c4;
21  uint16_t pid = 0x8a7e;
22  uint16_t bootloaderPid = 0xeac9;
23  uint16_t bootloaderVid = 0x10c4;
24 
25  private:
26  Settings() {}
27  };
28 }
29 
static Settings & instance()
Definition: Settings.h:13
Definition: AdcPin.h:3
Definition: Settings.h:7
#define TREEHOPPER_API
Definition: Treehopper.h:17