Function RTUEndpointDirection
RTUEndpointDirection determines the I/O direction implemented by an endpoint:
typedef enum { RTUSetup, RTUOutput, RTUInput } RTUIODirection;
RTUIODirection RTUEndpointDirection(const RTUEndpointDescriptor * Endpoint);
ParametersEndpointPointer to an endpoint descriptor returned by RTUGetEndpoint.
return valueRTUSetup (Control transfers which are bidirectional), RTUOutput (from host to device), or RTUInput (from device to host).
Device Query
Function RTUGetEndpoint
Function RTUEndpointType
|