Lines Matching refs:intf_desc

116 const usb_ep_desc_t *usb_parse_endpoint_descriptor_by_index(const usb_intf_desc_t *intf_desc, int i…  in usb_parse_endpoint_descriptor_by_index()  argument
118 assert(intf_desc != NULL && offset != NULL); in usb_parse_endpoint_descriptor_by_index()
119 if (index >= intf_desc->bNumEndpoints) { in usb_parse_endpoint_descriptor_by_index()
125 const usb_standard_desc_t *next_desc = (const usb_standard_desc_t *)intf_desc; in usb_parse_endpoint_descriptor_by_index()
146 …const usb_intf_desc_t *intf_desc = usb_parse_interface_descriptor(config_desc, bInterfaceNumber, b… in usb_parse_endpoint_descriptor_by_address() local
147 if (intf_desc == NULL) { in usb_parse_endpoint_descriptor_by_address()
155 for (int index = 0; index < intf_desc->bNumEndpoints; index++) { in usb_parse_endpoint_descriptor_by_address()
157 …ep_desc = usb_parse_endpoint_descriptor_by_index(intf_desc, index, config_desc->wTotalLength, &off… in usb_parse_endpoint_descriptor_by_address()
208 static void usbh_print_intf_desc(const usb_intf_desc_t *intf_desc) in usbh_print_intf_desc() argument
211 printf("\tbLength %d\n", intf_desc->bLength); in usbh_print_intf_desc()
212 printf("\tbDescriptorType %d\n", intf_desc->bDescriptorType); in usbh_print_intf_desc()
213 printf("\tbInterfaceNumber %d\n", intf_desc->bInterfaceNumber); in usbh_print_intf_desc()
214 printf("\tbAlternateSetting %d\n", intf_desc->bAlternateSetting); in usbh_print_intf_desc()
215 printf("\tbNumEndpoints %d\n", intf_desc->bNumEndpoints); in usbh_print_intf_desc()
216 printf("\tbInterfaceClass 0x%x\n", intf_desc->bInterfaceProtocol); in usbh_print_intf_desc()
217 printf("\tiInterface %d\n", intf_desc->iInterface); in usbh_print_intf_desc()