We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 170b896 commit 7fa51b5Copy full SHA for 7fa51b5
src/sensors/SensorClass.h
@@ -11,7 +11,14 @@ class SensorClass {
11
virtual ~SensorClass();
12
13
uint8_t id();
14
- bool begin(float rate = 1, uint32_t latency = 0);
+ /*
15
+ * Sample rate: it indicates the frequency at which a sensor is sampled.
16
+ * It is expressed in Hz.
17
+ * Latency: it indicates how much ms time a new value is retained in its fifo
18
+ * before a notification to the host is sent via interrupt.
19
+ * It is expressed in ms.
20
+ */
21
+ bool begin(float rate = 1000, uint32_t latency = 0);
22
void configure(float rate, uint32_t latency);
23
void end();
24
0 commit comments