User Manual
Driver information8
Copyright © 2010-2011 Pico Technology Ltd. All rights reserved.usbpt104pg.en
2.7
UsbPt104IpDetails
PICO_STATUS UsbPt104IpDetails (
short handle,
short * enabled,
char * ipaddress,
unsigned short * length,
unsigned short * listeningPort,
IP_DETAILS_TYPE type
)
This routine either reads or writes the the IP details of a specified device. The type
argument controls whether the operation is a read or a write.
Arguments:
handle, identifies the device that is the target of the operation
enabled, input: 1 to enable the device, 0 to disable
output: 1 if the device is enabled, 0 if disabled
ipaddress, input or output: the IP address of the device
length, input or output: the length of the IP address string
listeningPort, input or output: the local IP port connected to the
device
type, the type of operation to be performed. Can be either of the
following types:
IDT_GET, to read information from the driver
IDT_SET, to write information to the driver
Returns:
defined in picoStatus.h