Usage of XUD_Manager
Posted: Thu Jul 30, 2020 6:50 am
Hi,
I have question about the usage of the function "XUD_Manager" of the usb library. The function is documented in the corresponding pdf, but unfortunately some details are missing about the parameters "epTypeTableOut" and "epTypeTableIn". So far, I have understood, that the number of endpoints in the descriptor must match the array size of these parameters. Index 0 is always set to the control endpoint 0. But what is about the other, device specific endpoints, I have defined in the descriptor? Does the order of the endpoints in the descriptor, the defined endpoint address correspond to the index of the array or something totally different? I would expect, that the endpoint address is the right answer.
Am I right, that device specific endpoints must start from endpoint address 1 and 0 is invalid for a device specific endpoint, because it is already in use by the control endpoint 0?
I have question about the usage of the function "XUD_Manager" of the usb library. The function is documented in the corresponding pdf, but unfortunately some details are missing about the parameters "epTypeTableOut" and "epTypeTableIn". So far, I have understood, that the number of endpoints in the descriptor must match the array size of these parameters. Index 0 is always set to the control endpoint 0. But what is about the other, device specific endpoints, I have defined in the descriptor? Does the order of the endpoints in the descriptor, the defined endpoint address correspond to the index of the array or something totally different? I would expect, that the endpoint address is the right answer.
Am I right, that device specific endpoints must start from endpoint address 1 and 0 is invalid for a device specific endpoint, because it is already in use by the control endpoint 0?