X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fchronovu-la%2Fprotocol.h;h=5a051da3882238e49f1ab673ff8f0ceb2e4b3244;hb=4fff7b3c8a84a5593ddf780992355d9ebf434a90;hp=44e2c861b3c639561a8b9db08cb5c7d9625a8b7a;hpb=695dc859c15ba4190f5c1aa2e1a6e2dc6a6e5845;p=libsigrok.git
diff --git a/src/hardware/chronovu-la/protocol.h b/src/hardware/chronovu-la/protocol.h
index 44e2c861..5a051da3 100644
--- a/src/hardware/chronovu-la/protocol.h
+++ b/src/hardware/chronovu-la/protocol.h
@@ -14,8 +14,7 @@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ * along with this program; if not, see .
*/
#ifndef LIBSIGROK_HARDWARE_CHRONOVU_LA_PROTOCOL_H
@@ -29,7 +28,7 @@
#include
#include "libsigrok-internal.h"
-#define LOG_PREFIX "la8/la16"
+#define LOG_PREFIX "chronovu-la"
#define SDRAM_SIZE (8 * 1024 * 1024)
#define MAX_NUM_SAMPLES SDRAM_SIZE
@@ -45,28 +44,18 @@ enum {
struct cv_profile {
int model;
const char *modelname;
- const char *iproduct; /* USB iProduct string */
+ const char *iproduct;
unsigned int num_channels;
uint64_t max_samplerate;
const int num_trigger_matches;
float trigger_constant;
};
-/* Private, per-device-instance driver context. */
struct dev_context {
- /** Device profile struct for this device. */
const struct cv_profile *prof;
-
- /** FTDI device context (used by libftdi). */
struct ftdi_context *ftdic;
-
- /** The currently configured samplerate of the device. */
uint64_t cur_samplerate;
-
- /** The current sampling limit (in ms). */
uint64_t limit_msec;
-
- /** The current sampling limit (in number of samples). */
uint64_t limit_samples;
/**
@@ -125,7 +114,6 @@ struct dev_context {
uint64_t samplerates[255];
};
-/* protocol.c */
extern SR_PRIV const char *cv_channel_names[];
extern const struct cv_profile cv_profiles[];
SR_PRIV void cv_fill_samplerates_if_needed(const struct sr_dev_inst *sdi);