X-Git-Url: https://sigrok.org/gitweb/?p=sigrok-cli.git;a=blobdiff_plain;f=sigrok-cli.h;h=03e3136738f4e0059e8020b78cea3d5d8fc04889;hp=6d635117f4eeee81ba085986ec0e99faece54b0a;hb=6da249da0628ad1ecfb880a19bbe4795ada755c7;hpb=39aedc34ab864e95a395558f8b8d4be3beb11371 diff --git a/sigrok-cli.h b/sigrok-cli.h index 6d63511..03e3136 100644 --- a/sigrok-cli.h +++ b/sigrok-cli.h @@ -28,9 +28,10 @@ #include #define DEFAULT_OUTPUT_FORMAT "bits:width=64" +#define SAVE_CHUNK_SIZE 524288 /* main.c */ -int select_probes(struct sr_dev_inst *sdi); +int select_channels(struct sr_dev_inst *sdi); /* show.c */ void show_version(void); @@ -40,15 +41,15 @@ void show_pd_detail(void); /* device.c */ GSList *device_scan(void); -struct sr_probe_group *select_probe_group(struct sr_dev_inst *sdi); +struct sr_channel_group *select_channel_group(struct sr_dev_inst *sdi); /* session.c */ -int setup_output_format(void); void datafeed_in(const struct sr_dev_inst *sdi, const struct sr_datafeed_packet *packet, void *cb_data); int opt_to_gvar(char *key, char *value, struct sr_config *src); int set_dev_options(struct sr_dev_inst *sdi, GHashTable *args); void run_session(void); +void save_chunk_logic(uint8_t *data, uint64_t data_len, int unitsize); /* input.c */ void load_input_file(void); @@ -63,12 +64,12 @@ int setup_pd_binary(char *opt_pd_binary); void show_pd_annotations(struct srd_proto_data *pdata, void *cb_data); void show_pd_meta(struct srd_proto_data *pdata, void *cb_data); void show_pd_binary(struct srd_proto_data *pdata, void *cb_data); -void map_pd_probes(struct sr_dev_inst *sdi); +void map_pd_channels(struct sr_dev_inst *sdi); #endif /* parsers.c */ -struct sr_probe *find_probe(GSList *probelist, const char *probename); -GSList *parse_probestring(struct sr_dev_inst *sdi, const char *probestring); +struct sr_channel *find_channel(GSList *channellist, const char *channelname); +GSList *parse_channelstring(struct sr_dev_inst *sdi, const char *channelstring); GHashTable *parse_generic_arg(const char *arg, gboolean sep_first); int canon_cmp(const char *str1, const char *str2);