X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fkorad-kaxxxxp%2Fprotocol.h;h=b0f3d4979ba6e3747db3db1c3c1a4e117ddc35fe;hb=81ceb6a51dd666987fb5c67b83c5ba14d105b301;hp=ec71f6f45b2b2d5984a89b1cc888907f5644aff8;hpb=8b58a519e4d9e972f2cfc2f05ab2fc2c9f3fd591;p=libsigrok.git diff --git a/src/hardware/korad-kaxxxxp/protocol.h b/src/hardware/korad-kaxxxxp/protocol.h index ec71f6f4..b0f3d497 100644 --- a/src/hardware/korad-kaxxxxp/protocol.h +++ b/src/hardware/korad-kaxxxxp/protocol.h @@ -39,15 +39,19 @@ enum { KORAD_KA3005P_0XBC, KORAD_KA3005P_V42, KORAD_KA3005P_V55, - KORAD_KD3005P, + KORAD_KD3005P_V20, KORAD_KD3005P_V20_NOSP, + KORAD_KD3005P_V21_NOSP, + KORAD_KD3005P_V41, RND_320_KD3005P, RND_320_KA3005P, RND_320K30PV, + TENMA_72_2550_V2, TENMA_72_2540_V20, TENMA_72_2540_V21, TENMA_72_2540_V52, TENMA_72_2535_V21, + TENMA_72_2710_V66, STAMOS_SLS31_V20, KORAD_KD6005P, /* Support for future devices with this protocol. */ @@ -117,7 +121,7 @@ struct dev_context { SR_PRIV int korad_kaxxxxp_send_cmd(struct sr_serial_dev_inst *serial, const char *cmd); SR_PRIV int korad_kaxxxxp_read_chars(struct sr_serial_dev_inst *serial, - int count, char *buf); + size_t count, char *buf); SR_PRIV int korad_kaxxxxp_set_value(struct sr_serial_dev_inst *serial, int target, struct dev_context *devc); SR_PRIV int korad_kaxxxxp_get_value(struct sr_serial_dev_inst *serial,