phyphox BLE
Plot your Arduino's data in the phyphox app and control the board from the phone
Loading...
Searching...
No Matches
Config.h
Go to the documentation of this file.
1
// phyphox BLE 2.0 — compile-time constants.
2
//
3
// There are no capacity pools. The experiment description is copied into ONE exactly-sized
4
// block allocated at addExperiment() and never freed (the sketch's builder objects may then
5
// die), so RAM is what the experiment needs and nothing more, and a big experiment is not a
6
// compile-time setting. What remains fixed here is bounded by nature: the protocol, the
7
// format, or a sanity check.
8
#ifndef PHYPHOX_BLE_CORE_CONFIG_H
9
#define PHYPHOX_BLE_CORE_CONFIG_H
10
11
#include <stdint.h>
12
#include <stddef.h>
13
17
#define PHYPHOX_BLE_FORMAT_VERSION "1.20"
18
20
#define PHYPHOX_BLE_VERSION "2.0.0"
21
25
#define PHYPHOX_BLE_DATA_CHANNELS 5
26
30
#ifndef PHYPHOX_BLE_MAX_INPUT_CHANNEL
31
#define PHYPHOX_BLE_MAX_INPUT_CHANNEL 16
32
#endif
33
35
#define PHYPHOX_BLE_SENSOR_COMPONENTS 6
36
40
#ifndef PHYPHOX_BLE_INLINE_OPTIONS
41
#define PHYPHOX_BLE_INLINE_OPTIONS 8
42
#endif
43
47
#ifndef PHYPHOX_BLE_MAX_STRING_LENGTH
48
#define PHYPHOX_BLE_MAX_STRING_LENGTH 250
49
#endif
50
52
#define PHYPHOX_BLE_DEFAULT_MTU 20
53
#define PHYPHOX_BLE_MAX_MTU 512
54
59
#define PHYPHOX_BLE_TRANSFER_RETRY_DELAY_MS 5
60
#define PHYPHOX_BLE_TRANSFER_RETRY_MAX_MS 50
63
#define PHYPHOX_BLE_TRANSFER_STALL_MS 3000
68
#define PHYPHOX_BLE_TRANSFER_START_DELAY_MS 150
71
#define PHYPHOX_BLE_TRANSFER_BURST 8
76
#define PHYPHOX_BLE_CORDIO_PACKET_GAP_MS 30
77
80
#define PHYPHOX_BLE_NINA_EVENT_QUEUE 8
81
82
#endif
src
core
Config.h
Generated by
1.9.8