]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/ipdbg-logic-analyser/protocol.h
ipdbg-la: Consistently use the same naming everywhere.
[libsigrok.git] / src / hardware / ipdbg-logic-analyser / protocol.h
diff --git a/src/hardware/ipdbg-logic-analyser/protocol.h b/src/hardware/ipdbg-logic-analyser/protocol.h
deleted file mode 100644 (file)
index 7f4052c..0000000
+++ /dev/null
@@ -1,89 +0,0 @@
-/*
- * This file is part of the libsigrok project.
- *
- * Copyright (C) 2016 danselmi <da@da>
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * 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, see <http://www.gnu.org/licenses/>.
- */
-
-#ifndef LIBSIGROK_HARDWARE_IPDBG_ORG_LA_PROTOCOL_H
-#define LIBSIGROK_HARDWARE_IPDBG_ORG_LA_PROTOCOL_H
-
-#include <stdint.h>
-#include <glib.h>
-#include <libsigrok/libsigrok.h>
-#include "libsigrok-internal.h"
-
-#define LOG_PREFIX "ipdbg-org-la"
-
-struct ipdbg_org_la_tcp {
-       char *address;
-       char *port;
-       int socket;
-};
-
-/** Private, per-device-instance driver context. */
-struct ipdbg_org_la_dev_context {
-       uint32_t DATA_WIDTH;
-       uint32_t DATA_WIDTH_BYTES;
-       uint32_t ADDR_WIDTH;
-       uint32_t ADDR_WIDTH_BYTES;
-
-       uint64_t limit_samples;
-       uint64_t limit_samples_max;
-       uint8_t capture_ratio;
-       uint8_t *trigger_mask;
-       uint8_t *trigger_value;
-       uint8_t *trigger_mask_last;
-       uint8_t *trigger_value_last;
-       uint8_t *trigger_edge_mask;
-       uint64_t delay_value;
-       int num_stages;
-       uint64_t num_transfers;
-       uint8_t *raw_sample_buf;
-};
-
-int data_available(struct ipdbg_org_la_tcp *tcp);
-
-SR_PRIV struct ipdbg_org_la_tcp *ipdbg_org_la_tcp_new(void);
-SR_PRIV void ipdbg_org_la_tcp_free(struct ipdbg_org_la_tcp *tcp);
-SR_PRIV int ipdbg_org_la_tcp_open(struct ipdbg_org_la_tcp *tcp);
-SR_PRIV int ipdbg_org_la_tcp_close(struct ipdbg_org_la_tcp *tcp);
-SR_PRIV int ipdbg_org_la_tcp_send(struct ipdbg_org_la_tcp *tcp,
-       const uint8_t *buf, size_t len);
-SR_PRIV int ipdbg_org_la_tcp_receive_blocking(struct ipdbg_org_la_tcp *tcp,
-       uint8_t *buf, int bufsize);
-SR_PRIV int ipdbg_org_la_tcp_receive(struct ipdbg_org_la_tcp *tcp,
-       uint8_t *buf);
-
-SR_PRIV int ipdbg_org_la_convert_trigger(const struct sr_dev_inst *sdi);
-
-SR_PRIV struct ipdbg_org_la_dev_context *ipdbg_org_la_dev_new(void);
-SR_PRIV void ipdbg_org_la_get_addrwidth_and_datawidth(
-       struct ipdbg_org_la_tcp *tcp, struct ipdbg_org_la_dev_context *devc);
-SR_PRIV int send_escaping(struct ipdbg_org_la_tcp *tcp, uint8_t *dataToSend,
-       uint32_t length);
-SR_PRIV int ipdbg_org_la_send_reset(struct ipdbg_org_la_tcp *tcp);
-SR_PRIV int ipdbg_org_la_request_id(struct ipdbg_org_la_tcp *tcp);
-SR_PRIV int ipdbg_org_la_send_start(struct ipdbg_org_la_tcp *tcp);
-SR_PRIV int ipdbg_org_la_send_trigger(struct ipdbg_org_la_dev_context *devc,
-       struct ipdbg_org_la_tcp *tcp);
-SR_PRIV int ipdbg_org_la_send_delay(struct ipdbg_org_la_dev_context *devc,
-       struct ipdbg_org_la_tcp *tcp);
-SR_PRIV int ipdbg_org_la_receive_data(int fd, int revents, void *cb_data);
-SR_PRIV void ipdbg_org_la_abort_acquisition(const struct sr_dev_inst *sdi);
-SR_PRIV int ipdbg_org_la_tcp_receive_blocking(struct ipdbg_org_la_tcp *tcp,
-       uint8_t * buf, int bufsize);
-
-#endif