X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fhp-59306a%2Fprotocol.h;h=6f1d5a19152457258db83625ea905b2102127099;hb=d65f51bf5c549e5dbacb5c6fb6636e482ff02da8;hp=4f6d969be49369ce290a4273eece2c67a73e8d33;hpb=12e7abe2197e303c484de0fa61bf2c2a96e3f596;p=libsigrok.git diff --git a/src/hardware/hp-59306a/protocol.h b/src/hardware/hp-59306a/protocol.h index 4f6d969b..6f1d5a19 100644 --- a/src/hardware/hp-59306a/protocol.h +++ b/src/hardware/hp-59306a/protocol.h @@ -28,8 +28,15 @@ #define LOG_PREFIX "hp-59306a" struct dev_context { + size_t channel_count; }; -SR_PRIV int hp_59306a_receive_data(int fd, int revents, void *cb_data); +struct channel_group_context { + /** The number of the channel group, as labled on the device. */ + size_t number; +}; + +SR_PRIV int hp_59306a_switch_cg(const struct sr_dev_inst *sdi, + const struct sr_channel_group *cg, gboolean enabled); #endif