summaryrefslogtreecommitdiff
path: root/class/tmc/usbd_tmc.h
diff options
context:
space:
mode:
Diffstat (limited to 'class/tmc/usbd_tmc.h')
-rw-r--r--class/tmc/usbd_tmc.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/class/tmc/usbd_tmc.h b/class/tmc/usbd_tmc.h
new file mode 100644
index 00000000..ca17d0d6
--- /dev/null
+++ b/class/tmc/usbd_tmc.h
@@ -0,0 +1,27 @@
+/*
+ * Copyright (c) 2024, sakumisu
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ */
+#ifndef USBD_TMC_H
+#define USBD_TMC_H
+
+#include "usb_tmc.h"
+#include "scpi/scpi.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/* Init tmc interface driver */
+struct usbd_interface *usbd_tmc_init_intf(uint8_t busid,
+ struct usbd_interface *intf,
+ const uint8_t out_ep, const uint8_t in_ep,
+ const scpi_command_t *scpi_commands,
+ const char **idn);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* USBD_TMC_H */