X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fbaylibre-acme%2Fprotocol.h;h=3972aa2cc6da6326fb1d5905a40e958dd7ed9668;hb=98bfc4741f76b07e7db4c9628a6924004fc4fff4;hp=b70182c7a8989ba825e0481101da238ed6e22df0;hpb=61f2b7f74cd2d05cacb2bfb3cad2c2d67c856f47;p=libsigrok.git diff --git a/src/hardware/baylibre-acme/protocol.h b/src/hardware/baylibre-acme/protocol.h index b70182c7..3972aa2c 100644 --- a/src/hardware/baylibre-acme/protocol.h +++ b/src/hardware/baylibre-acme/protocol.h @@ -22,7 +22,7 @@ #include #include -#include /* pipe() */ +#include #include "libsigrok.h" #include "libsigrok-internal.h" @@ -42,7 +42,7 @@ #define TEMP_PROBE_NAME "tmp435" /* For the user we number the probes starting from 1. */ -#define PROBE_NUM(n) ((n)+1) +#define PROBE_NUM(n) ((n) + 1) enum probe_type { PROBE_ENRG = 1, @@ -85,6 +85,10 @@ SR_PRIV int bl_acme_get_shunt(const struct sr_channel_group *cg, uint64_t *shunt); SR_PRIV int bl_acme_set_shunt(const struct sr_channel_group *cg, uint64_t shunt); +SR_PRIV int bl_acme_read_power_state(const struct sr_channel_group *cg, + gboolean *off); +SR_PRIV int bl_acme_set_power_off(const struct sr_channel_group *cg, + gboolean off); SR_PRIV int bl_acme_receive_data(int fd, int revents, void *cb_data);