beautypg.com

Driver routines, Introduction, 1 introduction – Omega Speaker Systems 8 Channel Thermocouple USB Data Acquisition Module TC-08 User Manual

Page 18: 3 driver routines

background image

TC-08 User's Guide

14

3.3

Driver routines

3.3.1

Introduction

The following table explains each of the USB TC-08 routines:

Routine

Description

New USB and serial mode

usb_tc08_open_unit

Opens the USB TC-08 unit and gets a valid USB handle.

usb_tc08_open_unit_async

Opens the unit asynchronously.

usb_tc08_open_unit_progress

Polls the unit's enumeration progress during
asynchronous operation.

usb_tc08_close_unit

Closes the handle.

usb_tc08_stop

Stops the unit streaming.

usb_tc08_set_mains

Sets the mains interference rejection filter to either 50
Hz or 60 Hz.

usb_tc08_get_minimum_interval_ms

Returns the minimum sampling interval for the current
setup.

usb_tc08_get_unit_info

Retrieves information on a particular unit and presents it
as a structure.

usb_tc08_get_formatted_info

Retrieves information on a particular unit and presents it
in string form.

usb_tc08_get_last_error

Returns the last error for a specified unit or for a call to
open a unit.

New USB mode only

usb_tc08_set_channel

Sets up a USB TC-08 channel.

usb_tc08_run

Starts the USB TC-08 unit streaming.

usb_tc08_get_single

Converts readings from currently set up channels on
demand.

usb_tc08_get_temp

In streaming mode, retrieves temperature readings from
a specified channel.

usb_tc08_get_temp_deskew

In streaming mode, retrieves temperature readings from
a specified channel with time deskewed.

Legacy mode only

usb_tc08_legacy_run

Starts the USB TC-08 unit running in legacy mode.

usb_tc08_legacy_set_channel

Sets up a USB TC-08 channel.

usb_tc08_legacy_get_temp

Retrieves temperature readings from a specified channel.

usb_tc08_legacy_get_cold_junction

Retrieves a temperature reading for the cold junction.

usb_tc08_legacy_get_driver_version

Returns the driver version.

usb_tc08_legacy_get_version

Returns the hardware version of the USB TC-08 unit.

usb_tc08_legacy_get_cycle

Returns the number of readings taken so far.