EXCLUDE = config.h src/libsigrok-internal.h src/session_driver.c
EXCLUDE += src/std.c src/drivers.c src/ezusb.c src/fallback.c
EXCLUDE += src/soft-trigger.c src/usb.c src/sw_limits.c
+EXCLUDE += src/scpi.h
# The EXCLUDE_SYMLINKS tag can be used to select whether or not files or
# directories that are symbolic links (a Unix file system feature) are excluded
# - src/fallback.c: Fallback functions to API calls from serial.c.
# - src/soft-trigger.c: Non-public helpers, no public API stuff in there.
# - src/usb.c: Non-public helpers, no public API stuff in there.
+# - src/sw_limits.c: Non-public helpers, no public API stuff in there.
+# - src/scpi.h: Non-public helpers, no public API stuff in there.
# - src/hardware/*: Only driver-specific stuff, no public API stuff in there.
# - src/input/*: Only input.c contains public API, everything else doesn't.
# - src/output/*: Only output.c contains public API, everything else doesn't.
# - src/scpi/*: Non-public helpers, no public API stuff in there.
# - src/dmm/*: Non-public helpers, no public API stuff in there.
# - src/lcr/*: Non-public helpers, no public API stuff in there.
+# - src/modbus/*: Non-public helpers, no public API stuff in there.
+# - src/scale/*: Non-public helpers, no public API stuff in there.
# - tests/*: Unit tests, no public API stuff in there.
# - bindings/*: Language bindings, no public API stuff in there.
# - doxy/*: Potentially already generated docs, should not be scanned.
#
EXCLUDE_PATTERNS = */src/hardware/* */src/input/* */src/output/* */src/transform/*
EXCLUDE_PATTERNS += */src/scpi/* */src/dmm/* */src/lcr/*
+EXCLUDE_PATTERNS += */src/modbus/* */src/scale/*
EXCLUDE_PATTERNS += */src/tests/* */src/bindings/* */src/doxy/*
INPUT += src/input/input.c src/output/output.c
INPUT += src/transform/transform.c
ALL_ZERO
};
+/** @private */
SR_PRIV int sr_analog_init(struct sr_datafeed_analog *analog,
struct sr_analog_encoding *encoding,
struct sr_analog_meaning *meaning,
*/
SR_API const char *sr_analog_si_prefix(float *value, int *digits)
{
+/** @cond PRIVATE */
#define NEG_PREFIX_COUNT 5 /* number of prefixes below unity */
#define POS_PREFIX_COUNT (int)(ARRAY_SIZE(prefixes) - NEG_PREFIX_COUNT - 1)
+/** @endcond */
static const char *prefixes[] = { "f", "p", "n", "ยต", "m", "", "k", "M", "G", "T" };
if (!value || !digits || isnan(*value))
}
/* Returns the next enabled channel, wrapping around if necessary. */
+/** @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;
};
/* This must handle all the keys from enum sr_datatype (libsigrok.h). */
+/** @private */
SR_PRIV const GVariantType *sr_variant_type_get(int datatype)
{
switch (datatype) {
}
}
+/** @private */
SR_PRIV int sr_variant_type_check(uint32_t key, GVariant *value)
{
const struct sr_key_info *info;
#include <libsigrok/libsigrok.h>
#include "libsigrok-internal.h"
+/** @cond PRIVATE */
#define LOG_PREFIX "log"
+/** @endcond */
/**
* @file
return SR_OK;
}
+/** @private */
SR_PRIV int sr_session_fd_source_add(struct sr_session *session,
void *key, gintptr fd, int events, int timeout,
sr_receive_data_callback cb, void *cb_data)
g_memdup(src, sizeof(struct sr_config)));
}
+/** @private */
SR_PRIV int sr_packet_copy(const struct sr_datafeed_packet *packet,
struct sr_datafeed_packet **copy)
{
static int session_driver_initialized = 0;
#if !HAVE_ZIP_DISCARD
-/* Replacement for zip_discard() if it isn't available.
- */
+/* Replacement for zip_discard() if it isn't available. */
+/** @private */
SR_PRIV void sr_zip_discard(struct zip *archive)
{
if (zip_unchange_all(archive) < 0 || zip_close(archive) < 0)
}
#endif
-/** Read metadata entries from a session archive.
+/**
+ * Read metadata entries from a session archive.
+ *
* @param[in] archive An open ZIP archive.
* @param[in] entry Stat buffer filled in for the metadata archive member.
+ *
* @return A new key/value store containing the session metadata.
+ *
+ * @private
*/
SR_PRIV GKeyFile *sr_sessionfile_read_metadata(struct zip *archive,
const struct zip_stat *entry)
return SR_OK;
}
-
+
+/** @private */
SR_PRIV struct sr_dev_inst *sr_session_prepare_sdi(const char *filename, struct sr_session **session)
{
struct sr_dev_inst *sdi = NULL;