MCPcopy Create free account
hub / github.com/davidgiven/fluxengine / USBFS_HandleVendorRqst

Function USBFS_HandleVendorRqst

FluxEngine.cydsn/main.c:985–1011  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

983};
984
985uint8 USBFS_HandleVendorRqst(void)
986{
987 if (!(USBFS_bmRequestTypeReg & USBFS_RQST_DIR_D2H))
988 return false;
989
990 switch (USBFS_bRequestReg)
991 {
992 case USBFS_GET_EXTENDED_CONFIG_DESCRIPTOR:
993 switch (USBFS_wIndexLoReg)
994 {
995 case 4:
996 USBFS_currentTD.pData = (volatile uint8 *) &USBFS_MSOS_CONFIGURATION_DESCR[0u];
997 USBFS_currentTD.count = USBFS_MSOS_CONFIGURATION_DESCR[0u];
998 return USBFS_InitControlRead();
999
1000 case 5:
1001 USBFS_currentTD.pData = (volatile uint8 *) &USBFS_MSOS_EXTENDED_PROPERTIES_DESCR[0u];
1002 USBFS_currentTD.count = USBFS_MSOS_EXTENDED_PROPERTIES_DESCR[0u];
1003 return USBFS_InitControlRead();
1004 }
1005
1006 default:
1007 break;
1008 }
1009
1010 return true;
1011}
1012

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected