public class UsbEndpointImp extends Object implements UsbEndpoint
This must be set up before use.
setter.setter.setter.
Note the UsbPipeImp will automatically do this inside its setUsbEndpointImp method.| Constructor and Description |
|---|
UsbEndpointImp(UsbInterfaceImp iface,
UsbEndpointDescriptor desc)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
byte |
getDirection()
Get this endpoint's direction.
|
byte |
getType()
Get this endpoint's type.
|
UsbEndpointDescriptor |
getUsbEndpointDescriptor()
Get the descriptor for this UsbEndpoint.
|
UsbInterface |
getUsbInterface()
Get the parent UsbInterface that this UsbEndpoint belongs to.
|
UsbInterfaceImp |
getUsbInterfaceImp() |
UsbPipe |
getUsbPipe()
Get the UsbPipe for this UsbEndpoint.
|
UsbPipeImp |
getUsbPipeImp() |
void |
setUsbEndpointDescriptor(UsbEndpointDescriptor desc) |
void |
setUsbInterfaceImp(UsbInterfaceImp iface)
Set the UsbInterfaceImp.
|
void |
setUsbPipeImp(UsbPipeImp pipe) |
public UsbEndpointImp(UsbInterfaceImp iface, UsbEndpointDescriptor desc)
iface - The parent interface.desc - This endpoint's descriptor.public byte getDirection()
UsbEndpoint
This is the logical AND of the
direction mask and the
endpoint descriptor's
address.
getDirection in interface UsbEndpointUsbConst.ENDPOINT_DIRECTION_IN,
UsbConst.ENDPOINT_DIRECTION_OUTpublic byte getType()
UsbEndpoint
This is the logical AND of the
type mask and the
endpoint descriptor's
attributes.
getType in interface UsbEndpointUsbConst.ENDPOINT_TYPE_CONTROL,
UsbConst.ENDPOINT_TYPE_BULK,
UsbConst.ENDPOINT_TYPE_INTERRUPT,
UsbConst.ENDPOINT_TYPE_ISOCHRONOUSpublic UsbInterface getUsbInterface()
UsbEndpointgetUsbInterface in interface UsbEndpointpublic UsbInterfaceImp getUsbInterfaceImp()
public void setUsbInterfaceImp(UsbInterfaceImp iface)
This will also add this to the parent UsbInterfaceImp.
iface - The interfacepublic UsbPipe getUsbPipe()
UsbEndpointThis is the only method of communication to this endpoint.
getUsbPipe in interface UsbEndpointpublic UsbPipeImp getUsbPipeImp()
public void setUsbPipeImp(UsbPipeImp pipe)
pipe - The pipepublic UsbEndpointDescriptor getUsbEndpointDescriptor()
UsbEndpointThe descriptor may be cached.
getUsbEndpointDescriptor in interface UsbEndpointpublic void setUsbEndpointDescriptor(UsbEndpointDescriptor desc)
desc - the endpoint descriptorCopyright © 2014 LSST. All Rights Reserved.