Home |
Function RTUEndpointPacketSize |
Function RTUEndpointPacketSizeRTUEndpointPacketSize determines the maximum data packet size supported by an endpoint: int RTUEndpointPacketSize(const RTUEndpointDescriptor * Endpoint); ParametersEndpointPointer to an endpoint descriptor returned by RTUGetEndpoint. return valueMaximum number of bytes per packet transferred to/from the endpoint. RTUSB-32 can transfer any number of bytes with a single call to RTUStartIO. If required, the transfer is split into multiple packets to stay within the maximum packet size of the endpoint. High-Speed Interrupt and High-Speed Isochronous endpoints can transfer 1, 2 or 3 packets within a single microframe. RTUSB-32 views such transfers as a single logical packet consisting of 1, 2, or 3 physical packets. This function returns the logical packet size. If the value returned by this function is larger than 1024, then the endpoint is such a high bandwidth endpoint with more than one packet transferred per microframe.
|