Fork of https://developer.mbed.org/users/bscott/code/STM32_USBDevice/
Fork of STM32_USBDevice by
Diff: USBDevice/USBDevice.h
- Revision:
- 79:d28244984385
- Parent:
- 76:eef92651f52f
--- a/USBDevice/USBDevice.h Fri Oct 27 17:22:45 2017 +0200 +++ b/USBDevice/USBDevice.h Wed Jul 25 14:04:48 2018 +0200 @@ -103,7 +103,7 @@ * @param size the number of bytes to write * @param maxSize the maximum length that can be written on this endpoint */ - bool write(uint8_t endpoint, uint8_t * buffer, uint32_t size, uint32_t maxSize); + bool write(uint8_t endpoint, const uint8_t * buffer, uint32_t size, uint32_t maxSize); /* @@ -116,7 +116,7 @@ * @param size the number of bytes to write * @param maxSize the maximum length that can be written on this endpoint */ - bool writeNB(uint8_t endpoint, uint8_t * buffer, uint32_t size, uint32_t maxSize); + bool writeNB(uint8_t endpoint, const uint8_t * buffer, uint32_t size, uint32_t maxSize); /* @@ -179,6 +179,13 @@ virtual uint8_t * configurationDesc(){return NULL;}; /* + * Get BOS descriptor + * + * @returns pointer to the BOS descriptor + */ + virtual uint8_t * bosDesc() { return nullptr; } + + /* * Get string lang id descriptor * * @return pointer to the string lang id descriptor