]> sigrok.org Git - libsigrok.git/blobdiff - include/libsigrok/libsigrok.h
siglent-sds: Drop superfluous log message.
[libsigrok.git] / include / libsigrok / libsigrok.h
index f0ad4d04c855714e8396f1893b3610600224ae8d..ad01ffc2a42ded4b1447aab8fcdc5a7015f83176 100644 (file)
@@ -84,11 +84,11 @@ enum sr_error_code {
 
 /* Handy little macros */
 #define SR_HZ(n)  (n)
-#define SR_KHZ(n) ((n) * (uint64_t)(1000ULL))
-#define SR_MHZ(n) ((n) * (uint64_t)(1000000ULL))
-#define SR_GHZ(n) ((n) * (uint64_t)(1000000000ULL))
+#define SR_KHZ(n) ((n) * UINT64_C(1000))
+#define SR_MHZ(n) ((n) * UINT64_C(1000000))
+#define SR_GHZ(n) ((n) * UINT64_C(1000000000))
 
-#define SR_HZ_TO_NS(n) ((uint64_t)(1000000000ULL) / (n))
+#define SR_HZ_TO_NS(n) (UINT64_C(1000000000) / (n))
 
 /** libsigrok loglevels. */
 enum sr_loglevel {
@@ -703,6 +703,9 @@ enum sr_configkey {
        /** The device can act as a function generator. */
        SR_CONF_SIGNAL_GENERATOR,
 
+       /** The device can measure power. */
+       SR_CONF_POWERMETER,
+
        /* Update sr_key_info_config[] (hwdriver.c) upon changes! */
 
        /*--- Driver scan options -------------------------------------------*/