X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=hardware%2Flink-mso19%2Flink-mso19.h;h=53112bef320081aa43ea3794c81b875c8d1bdca6;hb=40dda2c3a509e9e031078427e32249e2ebc33ec5;hp=0e9dec300154612cf41792f78f2678c669122d85;hpb=a29360733d32e8479147178774d6a72e62f4e56c;p=libsigrok.git diff --git a/hardware/link-mso19/link-mso19.h b/hardware/link-mso19/link-mso19.h index 0e9dec30..53112bef 100644 --- a/hardware/link-mso19/link-mso19.h +++ b/hardware/link-mso19/link-mso19.h @@ -18,8 +18,8 @@ * along with this program. If not, see . */ -#ifndef SIGROK_LINK_MSO19_H -#define SIGROK_LINK_MSO19_H +#ifndef LIBSIGROK_HARDWARE_LINK_MSO19_LINK_MSO19_H +#define LIBSIGROK_HARDWARE_LINK_MSO19_LINK_MSO19_H /* Structure for the pattern generator state */ struct mso_patgen { @@ -51,7 +51,7 @@ struct mso_prototrig { uint8_t spimode; }; -/* our private per-instance data */ +/* Private, per-device-instance driver context. */ struct mso { /* info */ uint8_t hwmodel; @@ -78,7 +78,7 @@ struct mso { double dso_trigger_voltage; uint16_t dso_trigger_width; struct mso_prototrig protocol_trigger; - gpointer session_id; + void *session_dev_id; uint16_t buffer_n; char buffer[4096]; }; @@ -150,7 +150,7 @@ static struct rate_map rate_map[] = { }; /* FIXME: Determine corresponding voltages */ -uint16_t la_threshold_map[] = { +static uint16_t la_threshold_map[] = { 0x8600, 0x8770, 0x88ff,