X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Frdtech-dps%2Fprotocol.h;h=26c196ff43755d1585206c0e60df30f6bcf54e03;hb=884ae8c02167e9575c84f09c7eee427e0c7353b7;hp=fc23ed3ab1c087e2fdbe86484e330c4728386dc4;hpb=d7a4dad881bf78ce17519d3d7728f74d0ec11415;p=libsigrok.git diff --git a/src/hardware/rdtech-dps/protocol.h b/src/hardware/rdtech-dps/protocol.h index fc23ed3a..26c196ff 100644 --- a/src/hardware/rdtech-dps/protocol.h +++ b/src/hardware/rdtech-dps/protocol.h @@ -32,7 +32,14 @@ #define LOG_PREFIX "rdtech-dps" +enum rdtech_dps_model_type { + MODEL_NONE, + MODEL_DPS, + MODEL_RD, +}; + struct rdtech_dps_model { + enum rdtech_dps_model_type model_type; unsigned int id; const char *name; unsigned int max_current; @@ -85,7 +92,8 @@ SR_PRIV int rdtech_dps_set_state(const struct sr_dev_inst *sdi, struct rdtech_dps_state *state); SR_PRIV int rdtech_dps_get_model_version(struct sr_modbus_dev_inst *modbus, - uint16_t *model, uint16_t *version); + enum rdtech_dps_model_type model_type, + uint16_t *model, uint16_t *version, uint32_t *serno); SR_PRIV int rdtech_dps_seed_receive(const struct sr_dev_inst *sdi); SR_PRIV int rdtech_dps_receive_data(int fd, int revents, void *cb_data);