X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/90858b95ad0ae44ed2fdf2e7525c170135ce00b7..6792435739c20c270ca3cc4259e5427783ae5fe1:/common/usb_cdc.h?ds=sidebyside

diff --git a/common/usb_cdc.h b/common/usb_cdc.h
index c42da8db..3fff154d 100644
--- a/common/usb_cdc.h
+++ b/common/usb_cdc.h
@@ -32,18 +32,20 @@
  * @brief
  */
 
-#ifndef _USB_CDC_H_
-#define _USB_CDC_H_
+#ifndef USB_CDC_H__
+#define USB_CDC_H__
 
-#include "common.h"
+#include <stddef.h>
+#include <stdint.h>
+#include <stdbool.h>
+#include "usb_cmd.h"
 
-void usb_disable();
-void usb_enable();
-bool usb_check();
-bool usb_poll();
-bool usb_poll_validate_length();
-uint32_t usb_read(byte_t* data, size_t len);
-uint32_t usb_write(const byte_t* data, const size_t len);
-
-#endif // _USB_CDC_H_
+extern void usb_disable();
+extern void usb_enable();
+extern bool usb_poll();
+extern bool usb_poll_validate_length();
+extern bool cmd_receive(UsbCommand* cmd);
+extern bool cmd_send(uint16_t cmd, uint32_t arg0, uint32_t arg1, uint32_t arg2, void* data, uint16_t datalen); // new variable sized response
+extern bool cmd_send_old(uint16_t cmd, uint32_t arg0, uint32_t arg1, uint32_t arg2, void* data, uint16_t datalen); // old fixed size response
 
+#endif // USB_CDC_H__