Prusa MINI Firmware overview
USBD_DESC_Private_Functions

Private functions. More...

Collaboration diagram for USBD_DESC_Private_Functions:

Functions

uint8_tUSBD_FS_DeviceDescriptor (USBD_SpeedTypeDef speed, uint16_t *length)
 Return the device descriptor. More...
 
uint8_tUSBD_FS_LangIDStrDescriptor (USBD_SpeedTypeDef speed, uint16_t *length)
 Return the LangID string descriptor. More...
 
uint8_tUSBD_FS_ProductStrDescriptor (USBD_SpeedTypeDef speed, uint16_t *length)
 Return the product string descriptor. More...
 
uint8_tUSBD_FS_ManufacturerStrDescriptor (USBD_SpeedTypeDef speed, uint16_t *length)
 Return the manufacturer string descriptor. More...
 
uint8_tUSBD_FS_SerialStrDescriptor (USBD_SpeedTypeDef speed, uint16_t *length)
 Return the serial number string descriptor. More...
 
uint8_tUSBD_FS_ConfigStrDescriptor (USBD_SpeedTypeDef speed, uint16_t *length)
 Return the configuration string descriptor. More...
 
uint8_tUSBD_FS_InterfaceStrDescriptor (USBD_SpeedTypeDef speed, uint16_t *length)
 Return the interface string descriptor. More...
 

Detailed Description

Private functions.

Function Documentation

◆ USBD_FS_DeviceDescriptor()

uint8_t * USBD_FS_DeviceDescriptor ( USBD_SpeedTypeDef  speed,
uint16_t *  length 
)

Return the device descriptor.

Parameters
speed: Current device speed
length: Pointer to data length variable
Return values
Pointerto descriptor buffer
264  {
265  *length = sizeof(USBD_FS_DeviceDesc);
266  return USBD_FS_DeviceDesc;
267 }

◆ USBD_FS_LangIDStrDescriptor()

uint8_t * USBD_FS_LangIDStrDescriptor ( USBD_SpeedTypeDef  speed,
uint16_t *  length 
)

Return the LangID string descriptor.

Parameters
speed: Current device speed
length: Pointer to data length variable
Return values
Pointerto descriptor buffer
275  {
276  *length = sizeof(USBD_LangIDDesc);
277  return USBD_LangIDDesc;
278 }

◆ USBD_FS_ProductStrDescriptor()

uint8_t * USBD_FS_ProductStrDescriptor ( USBD_SpeedTypeDef  speed,
uint16_t *  length 
)

Return the product string descriptor.

Parameters
speed: Current device speed
length: Pointer to data length variable
Return values
Pointerto descriptor buffer
286  {
287  if (speed == 0) {
289  } else {
291  }
292  return USBD_StrDesc;
293 }
Here is the call graph for this function:

◆ USBD_FS_ManufacturerStrDescriptor()

uint8_t * USBD_FS_ManufacturerStrDescriptor ( USBD_SpeedTypeDef  speed,
uint16_t *  length 
)

Return the manufacturer string descriptor.

Parameters
speed: Current device speed
length: Pointer to data length variable
Return values
Pointerto descriptor buffer
301  {
303  return USBD_StrDesc;
304 }
Here is the call graph for this function:

◆ USBD_FS_SerialStrDescriptor()

uint8_t * USBD_FS_SerialStrDescriptor ( USBD_SpeedTypeDef  speed,
uint16_t *  length 
)

Return the serial number string descriptor.

Parameters
speed: Current device speed
length: Pointer to data length variable
Return values
Pointerto descriptor buffer
312  {
313  if (speed == USBD_SPEED_HIGH) {
315  } else {
317  }
318  return USBD_StrDesc;
319 }
Here is the call graph for this function:

◆ USBD_FS_ConfigStrDescriptor()

uint8_t * USBD_FS_ConfigStrDescriptor ( USBD_SpeedTypeDef  speed,
uint16_t *  length 
)

Return the configuration string descriptor.

Parameters
speed: Current device speed
length: Pointer to data length variable
Return values
Pointerto descriptor buffer
327  {
328  if (speed == USBD_SPEED_HIGH) {
330  } else {
332  }
333  return USBD_StrDesc;
334 }
Here is the call graph for this function:

◆ USBD_FS_InterfaceStrDescriptor()

uint8_t * USBD_FS_InterfaceStrDescriptor ( USBD_SpeedTypeDef  speed,
uint16_t *  length 
)

Return the interface string descriptor.

Parameters
speed: Current device speed
length: Pointer to data length variable
Return values
Pointerto descriptor buffer
342  {
343  if (speed == 0) {
345  } else {
347  }
348  return USBD_StrDesc;
349 }
Here is the call graph for this function:
USBD_CONFIGURATION_STRING_FS
#define USBD_CONFIGURATION_STRING_FS
Definition: usbd_desc.c:100
USBD_INTERFACE_STRING_FS
#define USBD_INTERFACE_STRING_FS
Definition: usbd_desc.c:101
USBD_SERIALNUMBER_STRING_FS
#define USBD_SERIALNUMBER_STRING_FS
Definition: usbd_desc.c:99
USBD_MANUFACTURER_STRING
#define USBD_MANUFACTURER_STRING
Definition: usbd_desc.c:96
USBD_PRODUCT_STRING_FS
#define USBD_PRODUCT_STRING_FS
Definition: usbd_desc.c:98
USBD_SPEED_HIGH
Definition: usbd_def.h:188
uint8_t
const uint8_t[]
Definition: 404_html.c:3
USBD_GetString
void USBD_GetString(uint8_t *desc, uint8_t *unicode, uint16_t *len)
USBD_GetString Convert Ascii string into unicode one.
Definition: usbd_ctlreq.c:732
length
png_uint_32 length
Definition: png.c:2247