X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=hardware%2Fagilent-dmm%2Fagilent-dmm.h;h=2277111f62c3d3ecc74f760af40f7b437dbc3799;hb=2388ae860c369171d8728539ce2e9aab5810896b;hp=9af01f3e2a68d94c3b149657e5291a9d8fbdf161;hpb=e93cdf428c6383b9868d08bdae07ff775bedd0c0;p=libsigrok.git diff --git a/hardware/agilent-dmm/agilent-dmm.h b/hardware/agilent-dmm/agilent-dmm.h index 9af01f3e..2277111f 100644 --- a/hardware/agilent-dmm/agilent-dmm.h +++ b/hardware/agilent-dmm/agilent-dmm.h @@ -1,5 +1,5 @@ /* - * This file is part of the sigrok project. + * This file is part of the libsigrok project. * * Copyright (C) 2012 Bert Vermeulen * @@ -17,37 +17,36 @@ * along with this program. If not, see . */ +#ifndef LIBSIGROK_HARDWARE_AGILENT_DMM_AGILENT_DMM_H +#define LIBSIGROK_HARDWARE_AGILENT_DMM_AGILENT_DMM_H -#ifndef LIBSIGROK_AGILENT_DMM_H -#define LIBSIGROK_AGILENT_DMM_H +#define LOG_PREFIX "agilent-dmm" #define AGDMM_BUFSIZE 256 /* Supported models */ enum { - AGILENT_U1232A = 1, + AGILENT_U1231A = 1, + AGILENT_U1232A, + AGILENT_U1233A, + AGILENT_U1251A, + AGILENT_U1252A, + AGILENT_U1253A, }; /* Supported device profiles */ struct agdmm_profile { int model; const char *modelname; - int serial_speed; const struct agdmm_job *jobs; const struct agdmm_recv *recvs; }; -/* Private driver context. */ -struct drv_context { - GSList *instances; -}; - /* Private, per-device-instance driver context. */ struct dev_context { const struct agdmm_profile *profile; uint64_t limit_samples; uint64_t limit_msec; - struct sr_serial_dev_inst *serial; /* Opaque pointer passed in by the frontend. */ void *cb_data; @@ -58,10 +57,12 @@ struct dev_context { unsigned char buf[AGDMM_BUFSIZE]; int buflen; int cur_mq; - int cur_mq_unit; - int cur_mq_flags; + int cur_unit; + int cur_mqflags; int cur_divider; int cur_acdc; + int mode_tempaux; + int mode_continuity; }; struct agdmm_job { @@ -76,4 +77,4 @@ struct agdmm_recv { SR_PRIV int agdmm_receive_data(int fd, int revents, void *cb_data); -#endif /* LIBSIGROK_AGILENT_DMM_H */ +#endif