serial-dmm: Commented struct dmm_info.

This commit is contained in:
Matthias Heidbrink 2013-12-18 23:33:45 +01:00 committed by Uwe Hermann
parent e9a6213976
commit 5d03743096
1 changed files with 11 additions and 0 deletions

View File

@ -60,17 +60,28 @@ enum {
#define DMM_COUNT 24
struct dmm_info {
/** Manufacturer/brand */
char *vendor;
/** Model */
char *device;
/** serialconn string */
char *conn;
/** Baud rate */
uint32_t baudrate;
/** Packet size [bytes]. */
int packet_size;
/** Packet request function. */
int (*packet_request)(struct sr_serial_dev_inst *);
/** Packet validation function. */
gboolean (*packet_valid)(const uint8_t *);
/** Packet parsing function. */
int (*packet_parse)(const uint8_t *, float *,
struct sr_datafeed_analog *, void *);
/** */
void (*dmm_details)(struct sr_datafeed_analog *, void *);
/** libsigrok driver info struct. */
struct sr_dev_driver *di;
/** Data reception function. */
int (*receive_data)(int, int, void *);
};