@Namespace(value="FlyCapture2") @NoOffset @Properties(inherit=FlyCapture2.class) public class BusManager extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
BusManager()
Default constructor.
|
BusManager(long size)
Native array allocator.
|
BusManager(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
static Error |
DiscoverGigECameras(CameraInfo gigECameras,
int[] arraySize) |
static Error |
DiscoverGigECameras(CameraInfo gigECameras,
IntBuffer arraySize) |
static Error |
DiscoverGigECameras(CameraInfo gigECameras,
IntPointer arraySize)
Discover all cameras connected to the network even if they reside
on a different subnet.
|
Error |
FireBusReset(PGRGuid pGuid)
Fire a bus reset.
|
static Error |
ForceAllIPAddressesAutomatically()
Force all cameras on the network to be assigned sequential IP addresses
on the same subnet as the netowrk adapters that they are connected to.
|
static Error |
ForceAllIPAddressesAutomatically(int serialNumber)
Force a camera on the network to be assigned an IP address
on the same subnet as the netowrk adapters that it is connected to.
|
static Error |
ForceIPAddressToCamera(MACAddress macAddress,
IPAddress ipAddress,
IPAddress subnetMask,
IPAddress defaultGateway)
Force the camera with the specific MAC address to the specified
IP address, subnet mask and default gateway.
|
Error |
GetCameraFromIndex(int index,
PGRGuid pGuid)
Gets the PGRGuid for a camera on the PC.
|
Error |
GetCameraFromIPAddress(IPAddress ipAddress,
PGRGuid pGuid)
Gets the PGRGuid for a camera with the specified IPv4 address.
|
Error |
GetCameraFromSerialNumber(int serialNumber,
PGRGuid pGuid)
Gets the PGRGuid for a camera on the PC.
|
Error |
GetCameraSerialNumberFromIndex(int index,
int[] pSerialNumber) |
Error |
GetCameraSerialNumberFromIndex(int index,
IntBuffer pSerialNumber) |
Error |
GetCameraSerialNumberFromIndex(int index,
IntPointer pSerialNumber)
Gets the serial number of the camera with the specified index.
|
Error |
GetDeviceFromIndex(int index,
PGRGuid pGuid)
Gets the PGRGuid for a device.
|
Error |
GetInterfaceTypeFromGuid(PGRGuid pGuid,
int[] pInterfaceType) |
Error |
GetInterfaceTypeFromGuid(PGRGuid pGuid,
IntBuffer pInterfaceType) |
Error |
GetInterfaceTypeFromGuid(PGRGuid pGuid,
IntPointer pInterfaceType)
Gets the interface type associated with a PGRGuid.
|
Error |
GetNumOfCameras(int[] pNumCameras) |
Error |
GetNumOfCameras(IntBuffer pNumCameras) |
Error |
GetNumOfCameras(IntPointer pNumCameras)
Gets the number of cameras attached to the PC.
|
Error |
GetNumOfDevices(int[] pNumDevices) |
Error |
GetNumOfDevices(IntBuffer pNumDevices) |
Error |
GetNumOfDevices(IntPointer pNumDevices)
Gets the number of devices.
|
BusManager |
getPointer(long i) |
Error |
GetTopology(TopologyNode pNode)
Gets the topology information for the PC.
|
Error |
GetUsbLinkInfo(PGRGuid guid,
int[] pValue) |
Error |
GetUsbLinkInfo(PGRGuid guid,
IntBuffer pValue) |
Error |
GetUsbLinkInfo(PGRGuid guid,
IntPointer pValue)
Read usb link info for the port that the specified device is connected to.
|
Error |
GetUsbPortStatus(PGRGuid guid,
int[] pValue) |
Error |
GetUsbPortStatus(PGRGuid guid,
IntBuffer pValue) |
Error |
GetUsbPortStatus(PGRGuid guid,
IntPointer pValue)
Read usb port status for the port that the specified device is connected to.
|
Error |
IsCameraControlable(PGRGuid pGuid,
boolean[] pControlable) |
Error |
IsCameraControlable(PGRGuid pGuid,
BoolPointer pControlable)
Query CCP status on camera with corresponding PGRGuid.
|
BusManager |
position(long position) |
Error |
ReadPhyRegister(PGRGuid guid,
int page,
int port,
int _address,
int[] pValue) |
Error |
ReadPhyRegister(PGRGuid guid,
int page,
int port,
int _address,
IntBuffer pValue) |
Error |
ReadPhyRegister(PGRGuid guid,
int page,
int port,
int _address,
IntPointer pValue)
Read a phy register on the specified device.
|
Error |
RegisterCallback(BusEventCallback busEventCallback,
int callbackType,
Pointer pParameter,
CallbackHandle pCallbackHandle)
Register a callback function that will be called when the
specified callback event occurs.
|
Error |
RescanBus()
Force a rescan of the buses.
|
Error |
UnregisterCallback(CallbackHandle callbackHandle)
Unregister a callback function.
|
Error |
WritePhyRegister(PGRGuid guid,
int page,
int port,
int _address,
int value)
Write a phy register on the specified device.
|
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public BusManager(Pointer p)
Pointer(Pointer)
.public BusManager(long size)
Pointer.position(long)
.public BusManager()
public BusManager position(long position)
public BusManager getPointer(long i)
getPointer
in class Pointer
@ByVal public Error FireBusReset(PGRGuid pGuid)
pGuid
- PGRGuid of the camera or the device to cause bus reset.@ByVal public Error GetNumOfCameras(@Cast(value="unsigned int*") IntPointer pNumCameras)
pNumCameras
- The number of cameras attached.@ByVal public Error GetNumOfCameras(@Cast(value="unsigned int*") IntBuffer pNumCameras)
@ByVal public Error GetCameraFromIPAddress(@ByVal IPAddress ipAddress, PGRGuid pGuid)
ipAddress
- IP address to get GUID for.pGuid
- Unique PGRGuid for the camera.@ByVal public Error GetCameraFromIndex(@Cast(value="unsigned int") int index, PGRGuid pGuid)
index
- Zero based index of camera.pGuid
- Unique PGRGuid for the camera.GetCameraFromSerialNumber()
@ByVal public Error GetCameraFromSerialNumber(@Cast(value="unsigned int") int serialNumber, PGRGuid pGuid)
serialNumber
- Serial number of camera.pGuid
- Unique PGRGuid for the camera.GetCameraFromIndex()
@ByVal public Error GetCameraSerialNumberFromIndex(@Cast(value="unsigned int") int index, @Cast(value="unsigned int*") IntPointer pSerialNumber)
index
- Zero based index of desired camera.pSerialNumber
- Serial number of camera.@ByVal public Error GetCameraSerialNumberFromIndex(@Cast(value="unsigned int") int index, @Cast(value="unsigned int*") IntBuffer pSerialNumber)
@ByVal public Error GetCameraSerialNumberFromIndex(@Cast(value="unsigned int") int index, @Cast(value="unsigned int*") int[] pSerialNumber)
@ByVal public Error GetInterfaceTypeFromGuid(PGRGuid pGuid, @Cast(value="FlyCapture2::InterfaceType*") IntPointer pInterfaceType)
pGuid
- The PGRGuid to get the interface for.pInterfaceType
- The interface type of the PGRGuid.@ByVal public Error GetInterfaceTypeFromGuid(PGRGuid pGuid, @Cast(value="FlyCapture2::InterfaceType*") IntBuffer pInterfaceType)
@ByVal public Error GetInterfaceTypeFromGuid(PGRGuid pGuid, @Cast(value="FlyCapture2::InterfaceType*") int[] pInterfaceType)
@ByVal public Error GetNumOfDevices(@Cast(value="unsigned int*") IntPointer pNumDevices)
pNumDevices
- The number of devices found.@ByVal public Error GetNumOfDevices(@Cast(value="unsigned int*") IntBuffer pNumDevices)
@ByVal public Error GetDeviceFromIndex(@Cast(value="unsigned int") int index, PGRGuid pGuid)
index
- Zero based index of device.pGuid
- Unique PGRGuid for the device.GetNumOfDevices()
@ByVal public Error ReadPhyRegister(@ByVal PGRGuid guid, @Cast(value="unsigned int") int page, @Cast(value="unsigned int") int port, @Cast(value="unsigned int") int _address, @Cast(value="unsigned int*") IntPointer pValue)
guid
- PGRGuid of the device to read from.page
- Page to read from.port
- Port to read from.address
- Address to read from.pValue
- Value read from the phy register.@ByVal public Error ReadPhyRegister(@ByVal PGRGuid guid, @Cast(value="unsigned int") int page, @Cast(value="unsigned int") int port, @Cast(value="unsigned int") int _address, @Cast(value="unsigned int*") IntBuffer pValue)
@ByVal public Error ReadPhyRegister(@ByVal PGRGuid guid, @Cast(value="unsigned int") int page, @Cast(value="unsigned int") int port, @Cast(value="unsigned int") int _address, @Cast(value="unsigned int*") int[] pValue)
@ByVal public Error WritePhyRegister(@ByVal PGRGuid guid, @Cast(value="unsigned int") int page, @Cast(value="unsigned int") int port, @Cast(value="unsigned int") int _address, @Cast(value="unsigned int") int value)
guid
- PGRGuid of the device to write to.page
- Page to write to.port
- Port to write to.address
- Address to write to.value
- Value to write to phy register.@ByVal public Error GetUsbLinkInfo(@ByVal PGRGuid guid, @Cast(value="unsigned int*") IntPointer pValue)
guid
- PGRGuid of the device to read from.pValue
- Value read from the card register.
Bit 15:0 = Link %Error Count. Default = 0. This field returns the number of link errors detected by the port. Bit 19:16 = Rx Lane Count. Default = 0. This field that identifies the number of Receive Lanes negotiated by the port. Bit 23:20 = Tx Lane Count. Default = 0. This field that identifies the number of Transmit Lanes negotiated by the port. Bit 31:24 = Reserved. Refer to XHCI 1.1 section 5.4.10 for Port Link Info:
eXtensible Host Controller interface for USB xHCI
@ByVal public Error GetUsbLinkInfo(@ByVal PGRGuid guid, @Cast(value="unsigned int*") IntBuffer pValue)
@ByVal public Error GetUsbLinkInfo(@ByVal PGRGuid guid, @Cast(value="unsigned int*") int[] pValue)
@ByVal public Error GetUsbPortStatus(@ByVal PGRGuid guid, @Cast(value="unsigned int*") IntPointer pValue)
guid
- PGRGuid of the device to read from.pValue
- Value read from the card register.
Bit 0 = Current Connect Status. Default = 0. 1 = A device is connected to the port 0 = A device is not connected. This value reflects the current state of the port, and may not correspond directly to the event that caused the Connect Status Change (CSC) bit to be set to 1. Bit 1 = Port Enabled/Disabled. Default = 0. 1 = Enabled. 0 = Disabled. Bit 2 = Reserved. Bit 3 = Over-current Active. Default = 0. 1 = This port currently has an over-current condition. 0 = This port does not have an over-current condition. Bit 4 = Port Reset. Default = 0. 1 = Port Reset signaling is asserted. 0 = Port is not in Reset. Bit 8:5 = Port Link State. Default = RxDetect(5). This field is used to power manage the port and reflects its current link state. Bit 9 = Port Power. Default = 1. This flag reflects a port's logical, power control state. 0 = This port is in the powered-off state. 1 = This port is not in the powered-off state. Bit 13:10 = Port Speed. Default = 0. This field identifies the speed of the connected USB Device. This field is only relevant if a device is connected, in all other cases this field shall indicate Undefined Speed. 0 : Undefined speed 1-15 : Protocol Speed ID (refer to other sections) Bit 15:14 = Port Indicator Control. Default = 0. 0 = Port indicators are off. 1 = Amber. 2 = Green. 3 = Undefined. Bit 16 = Port Link State Write Strobe. Default = 0. When this bit is set to 1 on a write reference to this register, this flag enables writes to the PLS field. Bit 17 = Connect Status Change. Default = 0. 1 = Change in current connect status. 0 = No change. Bit 18 = Port Enabled/Disabled Change. Default = 0. 1 = change in PED. 0 = No change. Bit 19 = Warm Port Reset Change. Default = 0. This bit is set when Warm Reset processing on this port completes. 0 = No change. 1 = Warm Reset complete. Bit 20 = Over current change. Default = 0. This bit shall be set to a 1 when there is a 0 to 1 or 1 to 0 transition of Over-current Active. Bit 21 = Port Reset Change. Default = 0. This flag is set to 1 due to a 1 to 0 transition of Port Reset. Bit 22 = Port Link State Change. Default = 0. This flag is set to 1 due to PLS transitions (refer to document) Bit 23 = Port Config %Error Change. Default = 0. This flag indicates that the port failed to configure its link partner. 0 = No change. 1 = Port Config %Error detected. Bit 24 = Cold Attach Status. Default = 0. 1 = Far-end receiver terminations were detected in the disconnected state and the root hub port state machine was unable to advance to the enabled state. 0 - This flag is 0 if PP is 0 or for USB2 protocol parts. Bit 25 = Wake on Connect Enable. Default = 0. Writing this bit to a 1 enables to port to be sensitive to device connects as system wake up events. Bit 26 = Wake on Disconnect Enable. Default = 0. Writing this bit to a 1 enables the port to be sensitive to device disconnects as system wake up events. Bit 27 = Wake on Over-current Enable. Default = 0. Writing this bit to a 1 enables the port to be sensitive to over-current conditions as system wake up events. Bit 29:28 = Reserved Bit 30 = Device Removable. This flag indicates if this port has a removable device attached. 1 = Device is non-removable. 0 = Device is removable. Bit 31 = Warm Port Reset. Default = 0. This flag shall always return 0 when read. Refer to document for writing. Refer to XHCI 1.1 section 5.4.8 for Port Status:
eXtensible Host Controller interface for USB xHCI
@ByVal public Error GetUsbPortStatus(@ByVal PGRGuid guid, @Cast(value="unsigned int*") IntBuffer pValue)
@ByVal public Error GetUsbPortStatus(@ByVal PGRGuid guid, @Cast(value="unsigned int*") int[] pValue)
@ByVal public Error GetTopology(TopologyNode pNode)
pNode
- TopologyNode object that will contain the topology
information.@ByVal public Error RegisterCallback(BusEventCallback busEventCallback, @Cast(value="FlyCapture2::BusCallbackType") int callbackType, Pointer pParameter, @ByPtrPtr CallbackHandle pCallbackHandle)
busEventCallback
- Pointer to function that will receive
the callback.callbackType
- Type of callback to register for.pParameter
- Callback parameter to be passed to callback.pCallbackHandle
- Unique callback handle used for
unregistering callback.UnregisterCallback()
@ByVal public Error UnregisterCallback(CallbackHandle callbackHandle)
callbackHandle
- Unique callback handle.RegisterCallback()
@ByVal public Error RescanBus()
@ByVal public static Error ForceIPAddressToCamera(@ByVal MACAddress macAddress, @ByVal IPAddress ipAddress, @ByVal IPAddress subnetMask, @ByVal IPAddress defaultGateway)
macAddress
- MAC address of the camera.ipAddress
- IP address to set on the camera.subnetMask
- Subnet mask to set on the camera.defaultGateway
- Default gateway to set on the camera.@ByVal public static Error ForceAllIPAddressesAutomatically()
@ByVal public static Error ForceAllIPAddressesAutomatically(@Cast(value="unsigned int") int serialNumber)
@ByVal public static Error DiscoverGigECameras(CameraInfo gigECameras, @Cast(value="unsigned int*") IntPointer arraySize)
gigECameras
- Pointer to an array of CameraInfo structures.arraySize
- Size of the array. Number of discovered cameras
is returned in the same value.@ByVal public static Error DiscoverGigECameras(CameraInfo gigECameras, @Cast(value="unsigned int*") IntBuffer arraySize)
@ByVal public static Error DiscoverGigECameras(CameraInfo gigECameras, @Cast(value="unsigned int*") int[] arraySize)
@ByVal public Error IsCameraControlable(PGRGuid pGuid, @Cast(value="bool*") BoolPointer pControlable)
pGuid
- PGRGuid of the camerapControlable
- Indicates whether camera is controllableCopyright © 2023. All rights reserved.