X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=sigrok.h;h=9551b8874a8ad01fb0095c57f334a8809ea21cfa;hb=2a3f9541a4bece23b25e1b255c0fab31ba5a751b;hp=dd9881a79b58d814e821461968c316cca65b29a5;hpb=5e2ddeb098b677faca5d044f3523f5f6f3382d90;p=libsigrok.git diff --git a/sigrok.h b/sigrok.h index dd9881a7..9551b887 100644 --- a/sigrok.h +++ b/sigrok.h @@ -49,6 +49,11 @@ #define SIGROK_ERR_MALLOC -2 /* Malloc/calloc/realloc error */ #define SIGROK_ERR_SAMPLERATE -3 /* Incorrect samplerate */ +/* limited by uint64_t */ +#define MAX_NUM_PROBES 64 +#define MAX_PROBENAME_LEN 32 + + /* Handy little macros */ #define KHZ(n) ((n) * 1000) #define MHZ(n) ((n) * 1000000) @@ -153,6 +158,7 @@ int filter_probes(int in_unitsize, int out_unitsize, int *probelist, uint64_t *length_out); char *sigrok_samplerate_string(uint64_t samplerate); +char *sigrok_period_string(uint64_t frequency); /*--- analyzer.c ------------------------------------------------------------*/ @@ -210,7 +216,6 @@ struct device { struct datastore *datastore; }; -#define MAX_PROBENAME_LEN 32 struct probe { int index; gboolean enabled;