X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fbaylibre-acme%2Fprotocol.h;h=3972aa2cc6da6326fb1d5905a40e958dd7ed9668;hb=391e23a97fe5b919f7f0716702bd1b151c601f66;hp=5252118815b7070af1e87c76cd7603db0f64247f;hpb=6b80b80dcf2c6f6cdc4c8a782085846c861bd10d;p=libsigrok.git diff --git a/src/hardware/baylibre-acme/protocol.h b/src/hardware/baylibre-acme/protocol.h index 52521188..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, @@ -81,6 +81,15 @@ SR_PRIV gboolean bl_acme_detect_probe(unsigned int addr, SR_PRIV gboolean bl_acme_register_probe(struct sr_dev_inst *sdi, int type, unsigned int addr, int prb_num); +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); #endif