|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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 UsbEndpoint
UsbConst.ENDPOINT_DIRECTION_IN
,
UsbConst.ENDPOINT_DIRECTION_OUT
public byte getType()
UsbEndpoint
This is the logical AND of the
type mask
and the
endpoint descriptor
's
attributes
.
getType
in interface UsbEndpoint
UsbConst.ENDPOINT_TYPE_CONTROL
,
UsbConst.ENDPOINT_TYPE_BULK
,
UsbConst.ENDPOINT_TYPE_INTERRUPT
,
UsbConst.ENDPOINT_TYPE_ISOCHRONOUS
public UsbInterface getUsbInterface()
UsbEndpoint
getUsbInterface
in interface UsbEndpoint
public UsbInterfaceImp getUsbInterfaceImp()
public void setUsbInterfaceImp(UsbInterfaceImp iface)
This will also add this to the parent UsbInterfaceImp.
iface
- The interfacepublic UsbPipe getUsbPipe()
UsbEndpoint
This is the only method of communication to this endpoint.
getUsbPipe
in interface UsbEndpoint
public UsbPipeImp getUsbPipeImp()
public void setUsbPipeImp(UsbPipeImp pipe)
pipe
- The pipepublic UsbEndpointDescriptor getUsbEndpointDescriptor()
UsbEndpoint
The descriptor may be cached.
getUsbEndpointDescriptor
in interface UsbEndpoint
public void setUsbEndpointDescriptor(UsbEndpointDescriptor desc)
desc
- the endpoint descriptor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |