]> sigrok.org Git - libsigrok.git/blobdiff - src/device.c
scpi-pps: Reimplemention of switching channel groups (PSU channels)
[libsigrok.git] / src / device.c
index 519a1726399b060719df6c43f2432900266e3273..99ccd42f1d9be3b78693a7f626c79e4d2b5010cd 100644 (file)
@@ -135,10 +135,18 @@ SR_API int sr_dev_channel_enable(struct sr_channel *channel, gboolean state)
        return SR_OK;
 }
 
-/* Returns the next enabled channel, wrapping around if necessary. */
-/** @private */
+/**
+ * Returns the next enabled channel, wrapping around if necessary.
+ *
+ * @param[in] sdi The device instance the channel is connected to.
+ *                Must not be NULL.
+ * @param[in] cur_channel The current channel.
+ *
+ * @return A pointer to the next enabled channel of this device.
+ *
+ * @private
+ */
 SR_PRIV struct sr_channel *sr_next_enabled_channel(const struct sr_dev_inst *sdi,
-
                struct sr_channel *cur_channel)
 {
        struct sr_channel *next_channel;