DNA-CAR-550 Carrier Board
Chapter 3
Programming with the Low-Level API
Edit: TBD
Checked: TBD
Date:210
Vers:
Draft
Scheidt & Bachmann
550_Chap3.fm
© Copyright February 15, 2010 Scheidt &
Bachmann USA
www.ueidaq.com
Vers:
1.0
printed February 2010
Fax: 781-821-2891
Electronic Industries, Inc.
-821-2890
Tel: 508-921-4600
www.ueidaq.com
Vers:
1.2
Date: February 2010
550_Chap3.fm
© Copyright 2010 all rights reserved
United Electronic Industries, Inc.
Chapter 3
Programming with the Low-Level API
The low-level API offers direct access to PowerDNA DaqBIOS protocol and
allows you to access device registers directly.
Please refer to the
API Reference Manual
document under:
Start » Programs » UEI » PowerDNA » Documentation
for pre-defined types, error codes, and functions for use with this board.
NOTE:
High-level UEI Framework support for this layer is not available in the
current release of the CAR-550 board.
At present, only one low-level function is available for use with the CAR-550
board, as described below:
3.1
Low-Level
DqAdv
Functions
DqAdvSetWirelessState( )
• Syntax
:
DqAdvSetWirelessState(int hd, int devn, uint32 cmd,
uint32 data)
• Command
:
DQE
Input
int hd
Handle to the IOM received from DqOpenIOM()
int devn
Layer inside the IOM
uint32 cmd
What parameter to set
uint32 data
Value depending on cmd parameter.
If cmd is DQ_CAR550_WIRELESS_EN_DIS, data is 32-bit value to
enable or disable wireless system. Zero to disable wireless, non-zero
to enable.
Output
None
Return
DQ_ILLEGAL_HANDLE
Illegal IOM Descriptor or communication wasn’t established.
DQ_BAD_DEVN
Device indicated by devn does not exist or is not a CAR-550.
DQ_SEND_ERROR
Unable to send the Command to IOM.
DQ_TIMEOUT_ERROR
Nothing is heard from the IOM for Time out duration.
DQ_IOM_ERROR
Error occurred at the IOM when performing this command.
DQ_SUCCESS
Successful completion.
Other negative values
Low level IOM error.