User manual
USB DrDAQ Programmer's Guide 29
Copyright © 2010-2011 Pico Technology Ltd. All rights reserved. usbdrdaqpg.en
3.5.20
UsbDrDaqSetDO
PICO_STATUS UsbDrDaqSetDO(
short handle,
USB_DRDAQ_GPIO IOChannel,
short value
)
This function is used to configure the general-purpose I/Os as digital outputs.
Arguments:
handle: handle returned from UsbDrDaqOpenUnit or
UsbDrDaqOpenUnitProgress
IOChannel: One of the following:
USB_DRDAQ_GPIO_1 = 1,
USB_DRDAQ_GPIO_2,
USB_DRDAQ_GPIO_3,
USB_DRDAQ_GPIO_4
value: Used to set or clear the digital output. Any non-zero value
will set the output and zero will clear it.
Returns:
PICO_OK
PICO_NOT_FOUND
PICO_NOT_RESPONDING
PICO_INVALID_PARAMETER
11
23
37
37
37
37