X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=hardware%2Fasix-sigma%2Fasix-sigma.h;h=74178b1c7451490e351ce3c5197d8a2ed28aa4bf;hb=67d6f6fca2b85f2ef6a7e03383ebdcd2ce877eab;hp=dd601bd48a088d507337345299de1771291626b6;hpb=3cd3a20b350ed1e86675aee067f60ac5a2f576b1;p=libsigrok.git diff --git a/hardware/asix-sigma/asix-sigma.h b/hardware/asix-sigma/asix-sigma.h index dd601bd4..74178b1c 100644 --- a/hardware/asix-sigma/asix-sigma.h +++ b/hardware/asix-sigma/asix-sigma.h @@ -1,5 +1,5 @@ /* - * This file is part of the sigrok project. + * This file is part of the libsigrok project. * * Copyright (C) 2010 Håvard Espeland , * Copyright (C) 2010 Martin Stensgård @@ -22,6 +22,8 @@ #ifndef LIBSIGROK_HARDWARE_ASIX_SIGMA_ASIX_SIGMA_H #define LIBSIGROK_HARDWARE_ASIX_SIGMA_ASIX_SIGMA_H +#define LOG_PREFIX "asix-sigma" + enum sigma_write_register { WRITE_CLOCK_SELECT = 0, WRITE_TRIGGER_SELECT0 = 1, @@ -174,7 +176,7 @@ struct sigma_state { }; /* Private, per-device-instance driver context. */ -struct context { +struct dev_context { struct ftdi_context ftdic; uint64_t cur_samplerate; uint64_t period_ps; @@ -187,7 +189,7 @@ struct context { struct sigma_trigger trigger; int use_triggers; struct sigma_state state; - void *session_dev_id; + void *cb_data; }; #endif