* Software limits helper functions
*/
-#include <config.h>
-#include <stdio.h>
-#include <stdint.h>
-#include <string.h>
+#include "config.h"
+
#include <ctype.h>
#include <libsigrok/libsigrok.h>
+#include <stdint.h>
+#include <stdio.h>
+#include <string.h>
+
#include "libsigrok-internal.h"
#define LOG_PREFIX "sw_limits"
* @param limits software limit instance
* @param key config item key
* @param data config item data
+ *
* @return SR_ERR_NA if @p key is not a supported limit, SR_OK otherwise
*/
-SR_PRIV int sr_sw_limits_config_get(const struct sr_sw_limits *limits, uint32_t key,
- GVariant **data)
+SR_PRIV int sr_sw_limits_config_get(const struct sr_sw_limits *limits,
+ uint32_t key, GVariant **data)
{
switch (key) {
case SR_CONF_LIMIT_SAMPLES:
* @param limits software limit instance
* @param key config item key
* @param data config item data
+ *
* @return SR_ERR_NA if @p key is not a supported limit, SR_OK otherwise
*/
-SR_PRIV int sr_sw_limits_config_set(struct sr_sw_limits *limits, uint32_t key,
- GVariant *data)
+SR_PRIV int sr_sw_limits_config_set(struct sr_sw_limits *limits,
+ uint32_t key, GVariant *data)
{
switch (key) {
case SR_CONF_LIMIT_SAMPLES:
* processing has been done.
*
* @param limits software limits instance
+ *
* @returns TRUE if any of the software limits has been reached and the driver
* should stop data acquisition, otherwise FALSE.
*/
* @param[out] samples remaining samples count until the limit is reached
* @param[out] frames remaining frames count until the limit is reached
* @param[out] msecs remaining milliseconds until the limit is reached
+ * @param[out] exceeded whether configured limits were reached before
*
* @return SR_ERR_* upon error, SR_OK otherwise
*/