Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
USBBULK.h
- Committer:
- yamasho
- Date:
- 2014-04-28
- Revision:
- 3:a71b7d2b97ef
- Parent:
- 0:e8c90969688d
File content as of revision 3:a71b7d2b97ef:
#ifndef USB_BULK_H
#define USB_BULK_H
#include "USBEndpoints.h"
#include "USBDescriptor.h"
#include "USBDevice_Types.h"
#include "USBBULK_Types.h"
#include "USBDevice.h"
/* Made By Shoichi Yamasuge */
/* Operatration Movie */
/* http://youtu.be/uGPH3AwrFpU */
class USBBULK : public USBDevice {
public:
USBBULK( uint16_t vendor_id, uint16_t product_id, uint16_t product_release );
bool Write(uint8_t *Data);
bool WriteNB(uint8_t *Data);
bool read(uint8_t *Data);
bool readNB(uint8_t *Data);
protected:
virtual uint8_t * stringLangidDesc();
virtual uint8_t * stringImanufacturerDesc();
virtual uint8_t * stringIserialDesc();
virtual uint8_t * stringIproductDesc();
virtual uint8_t * stringIConfigurationDesc();
virtual uint8_t * stringIinterfaceDesc();
virtual uint8_t * configurationDesc();
virtual bool USBCallback_setConfiguration(uint8_t configuration);
private:
uint16_t VendorId;
uint16_t ProductId;
uint16_t ProductReleas;
};
#endif