You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @brief Update sensor data by reading the FIFO buffer on the BHI260 and then pass it to a suitable parser.
62
+
* @brief Requests new sensor data from the client (Nicla Sense ME) and saves it locally so it can be retrieved via `Sensor` objects.
63
63
*
64
64
* @param ms (optional) Time (in milliseconds) to wait before returning data.
65
65
*/
66
66
voidupdate();
67
+
/**
68
+
* @brief Requests new sensor data from the client (Nicla Sense ME) and saves it locally so it can be retrieved via `Sensor` objects. The Nicla Sense ME's sensors are then put to sleep for the given amount of milliseconds.
69
+
*
70
+
* @param ms (optional) time to set Nicla Sense ME to sleep in milliseconds
71
+
*/
67
72
voidupdate(unsignedlong ms); // Update and then sleep
68
73
69
74
// Functions for controlling the BHY when PASSTHROUGH is DISABLED
70
75
/**
71
-
* @brief Configure a virtual sensor on the BHI260 to have a set sample rate (Hz) and latency (milliseconds)
72
-
* This can be achieved
76
+
* @brief Configures a sensor to be read using a given sample rate and latency. The configuration is packaged up in a `SensorConfigurationPacket` object.
73
77
*
74
78
* @param config Instance of @see SensorConfigurationPacket class, with sensorID, sampleRate and latency
Copy file name to clipboardExpand all lines: src/EslovHandler.h
+9-5
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@
14
14
#defineI2C_INT_PIN (0)
15
15
16
16
/**
17
-
* @brief Enumerator for ESLOV operational state
17
+
* @brief Enumerator for ESLOV operational state. Defines what state the I2C protocol of the ESLOV device should be in. Used to set DFU (Device Firmware Update) mode in the ANNA-B112 and BHY260 of the Nicla Sense ME.
18
18
*
19
19
*/
20
20
enum EslovOpcode {
@@ -24,6 +24,10 @@ enum EslovOpcode {
24
24
ESLOV_SENSOR_STATE_OPCODE /*!< ESLOV Sensor State */
25
25
};
26
26
27
+
/**
28
+
* @brief Enumeration for the host device operational status.
0 commit comments