X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=hardware%2Fcolead-slm%2Fprotocol.h;h=0e37cd95ab4b8122bbfed1de0aafad245e57d597;hb=8386096f013a2735553d5066ed2b96f519c12a76;hp=5bf2d5ad3c44be65eb74b85366588c9aa64dc339;hpb=4d729ddcaf395de1d04af93dd5ea569cfbc17de4;p=libsigrok.git diff --git a/hardware/colead-slm/protocol.h b/hardware/colead-slm/protocol.h index 5bf2d5ad..0e37cd95 100644 --- a/hardware/colead-slm/protocol.h +++ b/hardware/colead-slm/protocol.h @@ -33,6 +33,11 @@ #define sr_warn(s, args...) sr_warn(DRIVER_LOG_DOMAIN s, ## args) #define sr_err(s, args...) sr_err(DRIVER_LOG_DOMAIN s, ## args) +enum { + IDLE, + COMMAND_SENT, +}; + /** Private, per-device-instance driver context. */ struct dev_context { /** The current sampling limit (in number of samples). */ @@ -46,6 +51,10 @@ struct dev_context { /** The current number of already received samples. */ uint64_t num_samples; + struct sr_serial_dev_inst *serial; + int state; + char buf[10]; + int buflen; }; SR_PRIV int colead_slm_receive_data(int fd, int revents, void *cb_data);