Usb Bulk Tranceport driver Made by Shoichi Yamasuge. LoadLibray USBDEViCE. moive http://youtu.be/uGPH3AwrFpU USB バルク通信用のドライバーです 使用時には、USBDEVICEライブラリの追加必要。 動画は下記 http://youtu.be/uGPH3AwrFpU

Committer:
yamasho
Date:
Mon Apr 28 07:37:14 2014 +0000
Revision:
3:a71b7d2b97ef
Parent:
0:e8c90969688d
Description Modify;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
yamasho 0:e8c90969688d 1 #ifndef USB_BULK_H
yamasho 0:e8c90969688d 2 #define USB_BULK_H
yamasho 0:e8c90969688d 3
yamasho 0:e8c90969688d 4 #include "USBEndpoints.h"
yamasho 0:e8c90969688d 5 #include "USBDescriptor.h"
yamasho 0:e8c90969688d 6 #include "USBDevice_Types.h"
yamasho 0:e8c90969688d 7
yamasho 0:e8c90969688d 8 #include "USBBULK_Types.h"
yamasho 0:e8c90969688d 9 #include "USBDevice.h"
yamasho 0:e8c90969688d 10
yamasho 0:e8c90969688d 11 /* Made By Shoichi Yamasuge */
yamasho 0:e8c90969688d 12 /* Operatration Movie */
yamasho 0:e8c90969688d 13 /* http://youtu.be/uGPH3AwrFpU */
yamasho 0:e8c90969688d 14
yamasho 0:e8c90969688d 15 class USBBULK : public USBDevice {
yamasho 0:e8c90969688d 16 public:
yamasho 0:e8c90969688d 17 USBBULK( uint16_t vendor_id, uint16_t product_id, uint16_t product_release );
yamasho 0:e8c90969688d 18 bool Write(uint8_t *Data);
yamasho 0:e8c90969688d 19 bool WriteNB(uint8_t *Data);
yamasho 0:e8c90969688d 20 bool read(uint8_t *Data);
yamasho 0:e8c90969688d 21 bool readNB(uint8_t *Data);
yamasho 0:e8c90969688d 22
yamasho 0:e8c90969688d 23 protected:
yamasho 0:e8c90969688d 24 virtual uint8_t * stringLangidDesc();
yamasho 0:e8c90969688d 25 virtual uint8_t * stringImanufacturerDesc();
yamasho 0:e8c90969688d 26 virtual uint8_t * stringIserialDesc();
yamasho 0:e8c90969688d 27 virtual uint8_t * stringIproductDesc();
yamasho 0:e8c90969688d 28 virtual uint8_t * stringIConfigurationDesc();
yamasho 0:e8c90969688d 29 virtual uint8_t * stringIinterfaceDesc();
yamasho 0:e8c90969688d 30 virtual uint8_t * configurationDesc();
yamasho 0:e8c90969688d 31
yamasho 0:e8c90969688d 32
yamasho 0:e8c90969688d 33 virtual bool USBCallback_setConfiguration(uint8_t configuration);
yamasho 0:e8c90969688d 34 private:
yamasho 0:e8c90969688d 35 uint16_t VendorId;
yamasho 0:e8c90969688d 36 uint16_t ProductId;
yamasho 0:e8c90969688d 37 uint16_t ProductReleas;
yamasho 0:e8c90969688d 38 };
yamasho 0:e8c90969688d 39
yamasho 0:e8c90969688d 40 #endif