* <a href="http://sigrok.org/wiki/Libsigrok">sigrok.org/wiki/Libsigrok</a>
*/
+/**
+ * @defgroup grp_init Initialization
+ *
+ * Initializing and shutting down libsigrok.
+ *
+ * @{
+ */
+
/**
* Initialize libsigrok.
*
return SR_OK;
}
+
+/** @} */
#include "libsigrok.h"
#include "libsigrok-internal.h"
+/**
+ * @defgroup grp_datastore Datastore
+ *
+ * Creating, using, or destroying libsigrok datastores.
+ *
+ * @{
+ */
+
static gpointer new_chunk(struct sr_datastore **ds);
/**
return chunk; /* TODO: SR_OK later? */
}
+
+/** @} */
#include "libsigrok.h"
#include "libsigrok-internal.h"
+/**
+ * @defgroup grp_devices Devices
+ *
+ * Device handling in libsigrok.
+ *
+ * @{
+ */
+
/** @private */
SR_PRIV struct sr_probe *sr_probe_new(int index, int type,
gboolean enabled, const char *name)
return SR_OK;
}
+/** @} */
#include "libsigrok.h"
+/**
+ * @defgroup grp_error Error handling
+ *
+ * Error handling in libsigrok.
+ *
+ * @{
+ */
+
/**
* Return a human-readable error string for the given libsigrok error code.
*
return str;
}
+
+/** @} */
#include "libsigrok.h"
#include "libsigrok-internal.h"
+/**
+ * @defgroup grp_filter Probe filter
+ *
+ * Helper functions to filter out unused probes from samples.
+ *
+ * @{
+ */
+
/**
* Remove unused probes from samples.
*
return SR_OK;
}
+
+/** @} */
#include "libsigrok.h"
#include "libsigrok-internal.h"
+/**
+ * @defgroup grp_driver Hardware drivers
+ *
+ * Hardware driver handling in libsigrok.
+ *
+ * @{
+ */
/* Driver scanning options. */
static struct sr_hwcap_option sr_drvopts[] = {
{
return sr_session_source_add(fd, events, timeout, cb, cb_data);
}
+
+/** @} */
#include "libsigrok.h"
#include "libsigrok-internal.h"
+/**
+ * @defgroup grp_input Input formats
+ *
+ * Input file/data format handling.
+ *
+ * @{
+ */
+
/** @cond PRIVATE */
extern SR_PRIV struct sr_input_format input_chronovu_la8;
extern SR_PRIV struct sr_input_format input_binary;
{
return input_module_list;
}
+
+/** @} */
* Logging support.
*/
+/**
+ * @defgroup grp_logging Logging
+ *
+ * Controlling the libsigrok message logging functionality.
+ *
+ * @{
+ */
+
/* Currently selected libsigrok loglevel. Default: SR_LOG_WARN. */
static int sr_loglevel = SR_LOG_WARN; /* Show errors+warnings per default. */
return ret;
}
+
+/** @} */
#include "libsigrok.h"
#include "libsigrok-internal.h"
+/**
+ * @defgroup grp_output Output formats
+ *
+ * Output file/data format handling.
+ *
+ * @{
+ */
+
/** @cond PRIVATE */
extern SR_PRIV struct sr_output_format output_text_bits;
extern SR_PRIV struct sr_output_format output_text_hex;
{
return output_module_list;
}
+
+/** @} */
#include "libsigrok.h"
#include "libsigrok-internal.h"
+/**
+ * @defgroup grp_session Session handling
+ *
+ * Creating, using, or destroying libsigrok sessions.
+ *
+ * @{
+ */
+
struct source {
int timeout;
sr_receive_data_callback_t cb;
{
return _sr_session_source_remove((gintptr)channel);
}
+
+/** @} */
#include "libsigrok.h"
#include "libsigrok-internal.h"
+/**
+ * @ingroup grp_device
+ *
+ * @{
+ */
+
extern struct sr_session *session;
extern SR_PRIV struct sr_dev_driver session_driver;
return SR_OK;
}
+
+/** @} */
#include "libsigrok.h"
#include "libsigrok-internal.h"
+/**
+ * @defgroup grp_strutil String utilities
+ *
+ * Helper functions for handling or converting libsigrok-related strings.
+ *
+ * @{
+ */
+
/**
* Convert a numeric value value to its "natural" string representation.
* in SI units
return SR_OK;
}
-
+/** @} */
#include "libsigrok.h"
+/**
+ * @defgroup grp_versions Versions
+ *
+ * Version number querying functions.
+ *
+ * @{
+ */
+
SR_API int sr_package_version_major_get(void)
{
return SR_PACKAGE_VERSION_MAJOR;
{
return SR_LIB_VERSION_STRING;
}
+
+/** @} */