This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

version change of usb component in keil

Hi all,
I need to get version id and product id of usb connected.

i found that for USB Component version 6.10.0 , the library itself is providing following functions to read usb details

1. uint16_t USBH_Device_GetVID (uint8_t device);
2. uint16_t USBH_Device_GetPID (uint8_t device);

but for component version 6.6 and below, there is no library functions to get version id and product id of usb.

Is there any way to get those details. i am using USB Component version 6.5 and keil mdk version 516a. I dont want to move to latest version.

Parents
  • Hi Cvjetkovic,

    Thank you very much for your reply.

    I have gone through the function USBH_DeviceRequest_GetDescriptor but i am confused with some arguments.

    usbStatus USBH_DeviceRequest_GetDescriptor ( uint8_t device,
    uint8_t recipient,
    uint8_t descriptor_type,
    uint8_t descriptor_index,
    uint16_t language_id,
    uint8_t * descriptor_data,
    uint16_t descriptor_length
    )

    I read the functional overview but its not clearly explained.
    It will be helpful share a sample code or explain those parameters.

    Regards
    Arun

Reply
  • Hi Cvjetkovic,

    Thank you very much for your reply.

    I have gone through the function USBH_DeviceRequest_GetDescriptor but i am confused with some arguments.

    usbStatus USBH_DeviceRequest_GetDescriptor ( uint8_t device,
    uint8_t recipient,
    uint8_t descriptor_type,
    uint8_t descriptor_index,
    uint16_t language_id,
    uint8_t * descriptor_data,
    uint16_t descriptor_length
    )

    I read the functional overview but its not clearly explained.
    It will be helpful share a sample code or explain those parameters.

    Regards
    Arun

Children
No data