-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathapi.h
42 lines (38 loc) · 1.53 KB
/
api.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
#ifndef API_H
#define API_H
#include "definitions.h"
#include "atoll_api.h"
#include "ble_server.h"
class Api : public Atoll::Api {
public:
static void setup(Api *instance,
::Preferences *p,
const char *preferencesNS,
const char *serviceUuid = nullptr);
virtual void beforeBleServiceStart(BLEService *service) override;
protected:
static Result *systemProcessor(Message *);
static Result *weightServiceProcessor(Message *);
static Result *calibrateStrainProcessor(Message *);
static Result *tareProcessor(Message *);
static Result *crankLengthProcessor(Message *);
static Result *reverseStrainProcessor(Message *);
static Result *doublePowerProcessor(Message *);
static Result *sleepDelayProcessor(Message *);
static Result *hallCharProcessor(Message *);
static Result *hallOffsetProcessor(Message *);
static Result *hallThresholdProcessor(Message *);
static Result *hallThresLowProcessor(Message *);
static Result *strainThresholdProcessor(Message *);
static Result *strainThresLowProcessor(Message *);
static Result *motionDetectionMethodProcessor(Message *);
static Result *sleepProcessor(Message *);
static Result *negativeTorqueMethodProcessor(Message *);
static Result *autoTareProcessor(Message *);
static Result *autoTareDelayMsProcessor(Message *);
static Result *autoTareRangeGProcessor(Message *);
#ifdef FEATURE_MPU
static Result *mpuLogIntervalProcessor(Message *);
#endif
};
#endif