]> sigrok.org Git - libsigrok.git/blobdiff - libsigrok.h
Doxygen: Initial groups and topic short descriptions.
[libsigrok.git] / libsigrok.h
index 251a2e4d4d247cf64fa9af12699a1d08f6202a8c..8a51f728dd615612d3ada75eac9d1a80d1c2f7fb 100644 (file)
@@ -202,6 +202,8 @@ enum {
        SR_MQFLAG_RELATIVE = 0x100,
 };
 
+struct sr_context;
+
 struct sr_datafeed_packet {
        uint16_t type;
        void *payload;
@@ -321,13 +323,22 @@ struct sr_hwopt {
 enum {
        SR_HWOPT_DUMMY = 0, /* Used to terminate lists. Must be 0! */
 
-       /** Some drivers cannot detect the exact model they're talking to. */
+       /** Some drivers cannot detect the exact model they're talking to
+        * (may be phased out). */
        SR_HWOPT_MODEL,
 
-       /** Specification on how to connect to a device */
+       /** Specification on how to connect to a device. In combination
+        * with SR_HWOPT_SERIALCOMM, this is a serial port in the form
+        * which makes sense to the operating system (/dev/ttyS0).
+        * Otherwise this specifies a USB device, either in the form of
+        * <bus>.<address> (decimal, e.g. 1.65) or <vendorid>.<productid>
+        * (hexadecimal, e.g. 1d6b.0001). */
        SR_HWOPT_CONN,
 
-       /** Serial communication spec: <data bits><parity><stop bit> e.g. 8n1 */
+       /** Serial communication specification, in the form:
+        *   <speed>/<data bits><parity><stop bit> e.g.9600/ 8n1
+        * This is always an optional parameter, since a driver typically
+        * knows the speed at which the device wants to communicate */
        SR_HWOPT_SERIALCOMM,
 };
 
@@ -551,11 +562,6 @@ struct sr_dev_driver {
        void *priv;
 };
 
-/* Private driver context. */
-struct drv_context {
-       GSList *instances;
-};
-
 struct sr_session {
        /* List of struct sr_dev* */
        GSList *devs;