Data Type Reference

Universal Driver Documentation

Table of contents

Description

All the defines listed below can be found in the include file DSCUD.H. This file MUST be included in the C source file of the application using the universal driver.

NOTE: Proper care MUST be taken to ensure that the include file that is released along with the particular version of the Universal Driver is included in the application.

If the include file is from the Universal driver 6.00 and the library against which the applications is linked is from universal driver version 6.01, the driver would throw an error when running dscInit.

Structures

DSCCB
Structure containing hardware settings for the current board.

DSCADSETTINGS
Structure containing current A/D conversion settings.

DSCDASETTINGS
Structure containing current D/A conversion settings.

DSCADSCAN
Structure containing A/D scan settings.

ERRPARAMS
Structure containing DSCUD error information.

DSCAIOINT
Structure containing interrupt-based analog I/O settings.

DSCAUTOCAL
Legacy reference to maintain backwards-compatibility; refer to DSCADCALPARAMS

DSCADCALPARAMS
Structure containing A/D auto-calibration settings.

DSCDACS
Structure containing D/A conversion scan settings.

DSCDACALPARAMS
Structure containing D/A auto-calibration settings.

DSCS
Structure containing interrupt operation status information.

DSCCS
Structure containing individual counter information.

DSCCR
Structure containing information on all counters.

DSCEMMDIO
Structure containing current configuration of an Emerald-MM-DIO board.

DSCEMMDIORESETINT
Structure used to reset EMM-DIO user interrupts.

DSCUSERINT
Structure containing configuration data for user interrupt operation.

DSCUSERINTFUNCTION
Structure containing information about the user interrupt function and execution time.

DSCOPTOSTATE
Structure containing information on optoinput state

DSCPWM
Structure containing PWM parameters

DSCWATCHDOG
Structure containing watchdog settings

DSCQMMMMR
Structure containing configuration data for the Master Mode Register on the 9513 chip on GPIO-MM-11.

DSCQMMCMR
Structure containing configuration data for the Counter Mode Register of a counter on the 9513 chip on GPIO-MM-11.

DSCQMMMCC
Structure containing configuration data for Multiple Counter Control.

DSCQMMSCF
Structure containing configuration data for Special Counter Functions.

DSCQMMPWM
Structure containing configuration data for pulse width modulation function on GPIO-MM-11.

Recommended Usage of structures

It is recommended by DSC that any of the structures used should be initialized to 0 before using the same in the user code.

For example ...

DSCADSETTINGS adsettings ;

memset ( &adsettings , 0 , sizeof ( DSCADSETTINGS ) ) ;

Data Type Macros

BYTE
unsigned char

SBYTE
signed char

WORD
unsigned short

SWORD
signed short

DWORD
unsigned long

SDWORD
signed long

LONG
signed long

FLOAT
float

DFLOAT
double

BOOL
int

TRUE
(BOOL)1

FALSE
(BOOL)0

DSCSAMPLE
SWORD

DSCDACODE
DWORD

DSCB
SWORD

DSCUserInterruptFunction
Function datatype for user interrupts.


This page was last modified 04:53, 17 Jul 2009.
Copyright (c) 2004 Diamond Systems. All Rights Reserved.