#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)
struct input_format {
char *extension;
char *description;
- int (*format_match) (char *filename);
- int (*in_loadfile) (char *filename);
+ int (*format_match) (const char *filename);
+ int (*in_loadfile) (const char *filename);
};
struct input_format **input_list(void);
uint64_t *length_out);
char *sigrok_samplerate_string(uint64_t samplerate);
+char *sigrok_period_string(uint64_t frequency);
/*--- analyzer.c ------------------------------------------------------------*/
struct datastore *datastore;
};
-#define MAX_PROBENAME_LEN 32
struct probe {
int index;
gboolean enabled;