beautypg.com

Usb_tc08_get_unit_info – Omega Speaker Systems 8 Channel Thermocouple USB Data Acquisition Module TC-08 User Manual

Page 29

background image

Technical reference

25

3.3.2.8

usb_tc08_get_unit_info

short usb_tc08_get_unit_info
(

short handle,
USBTC08_INFO * info

)

This routine gets the unit information and copies it to the USBTC08_INFO structure,
declared in the usbtc08.h header file. If you pass zero to the function as the handle,
only the driver version member will be valid, but the function will return 1 (success.)

Arguments

handle

Specifies the TC-08 unit.

info

A pointer to a structure containing unit information.

Returns

0

Use

usb_tc08_get_last_error

.

1

Routine was successful.

You must assign the correct value to the

size

field of your USBTC08_INFO structure

before calling this routine. For example, in C, if

devinfo

is your structure, use this

code:

devinfo.size = sizeof(USBTC08_INFO);
usb_tc08_get_unit_info(hTC08, &devinfo);