Radio Datalogger Project
Version 2.0
|
Data Structures | |
struct | USB_Descriptor_Configuration_t |
Macros | |
#define | MASS_STORAGE_IN_EPNUM 3 |
#define | MASS_STORAGE_OUT_EPNUM 4 |
#define | MASS_STORAGE_IO_EPSIZE 64 |
#define | GENERIC_IN_EPNUM 1 |
#define | GENERIC_EPSIZE 32 |
#define | GENERIC_REPORT_SIZE sizeof(Device_Report_t) |
Functions | |
uint16_t | CALLBACK_USB_GetDescriptor (const uint16_t wValue, const uint8_t wIndex, const void **const DescriptorAddress) ATTR_WARN_UNUSED_RESULT ATTR_NON_NULL_PTR_ARG(3) |
#define GENERIC_EPSIZE 32 |
Size in bytes of the Generic HID reporting endpoint.
#define GENERIC_IN_EPNUM 1 |
Endpoint number of the Generic HID reporting IN endpoint.
#define GENERIC_REPORT_SIZE sizeof(Device_Report_t) |
Size in bytes of the Generic HID reports (including report ID byte).
#define MASS_STORAGE_IN_EPNUM 3 |
Endpoint number of the Mass Storage device-to-host data IN endpoint.
#define MASS_STORAGE_IO_EPSIZE 64 |
Size in bytes of the Mass Storage data endpoints.
#define MASS_STORAGE_OUT_EPNUM 4 |
Endpoint number of the Mass Storage host-to-device data OUT endpoint.
uint16_t CALLBACK_USB_GetDescriptor | ( | const uint16_t | wValue, |
const uint8_t | wIndex, | ||
const void **const | DescriptorAddress | ||
) |
This function is called by the library when in device mode, and must be overridden (see library "USB Descriptors" documentation) by the application code so that the address and size of a requested descriptor can be given to the USB library. When the device receives a Get Descriptor request on the control endpoint, this function is called so that the descriptor details can be passed back and the appropriate descriptor sent back to the USB host.