SR_MQ_RELATIVE_HUMIDITY,
/** Time */
SR_MQ_TIME,
+ /** Wind speed */
+ SR_MQ_WIND_SPEED,
+ /** Pressure */
+ SR_MQ_PRESSURE,
};
/** Unit of measured quantity, sr_datafeed_analog.unit. */
SR_UNIT_WATT,
/** Consumption [Wh]. */
SR_UNIT_WATT_HOUR,
+ /** Wind speed in meters per second. */
+ SR_UNIT_METER_SECOND,
+ /** Pressure in hectopascal */
+ SR_UNIT_HECTOPASCAL,
+ /** Relative humidity assuming air temperature of 293 kelvin (%rF). */
+ SR_UNIT_HUMIDITY_293K,
};
/** Values for sr_datafeed_analog.flags. */
*/
struct sr_context;
+/**
+ * @struct sr_session
+ * Opaque structure representing a libsigrok session.
+ *
+ * None of the fields of this structure are meant to be accessed directly.
+ *
+ * @see sr_session_new(), sr_session_destroy().
+ */
+struct sr_session;
+
/** Packet in a sigrok data feed. */
struct sr_datafeed_packet {
uint16_t type;
void *conn;
/** Device instance private data (used?) */
void *priv;
+ /** Session to which this device is currently assigned. */
+ struct sr_session *session;
};
/** Types of device instance, struct sr_dev_inst.type */