* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#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 {
uint8_t spimode;
};
-/* our private per-instance data */
+/* Private, per-device-instance driver context. */
struct mso {
/* info */
uint8_t hwmodel;
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];
};
};
/* FIXME: Determine corresponding voltages */
-uint16_t la_threshold_map[] = {
+static uint16_t la_threshold_map[] = {
0x8600,
0x8770,
0x88ff,