|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ibm.jusb.UsbEndpointImp
public class UsbEndpointImp
UsbEndpoint implementation.
This must be set up before use.
setter.setter.setter.
Note the UsbPipeImp will automatically do this inside its setUsbEndpointImp method.
| Constructor Summary | |
|---|---|
UsbEndpointImp(UsbInterfaceImp iface,
UsbEndpointDescriptor desc)
Constructor. |
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UsbEndpointImp(UsbInterfaceImp iface,
UsbEndpointDescriptor desc)
iface - The parent interface.desc - This endpoint's descriptor.| Method Detail |
|---|
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()
UsbEndpoint
getUsbInterface 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 descriptor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||