Technical description Chapter 9
PA 358
37
9.2
Software functions (API)
9.2.1 Base
address
1) i_PA358_SetBoardInformation (...)
Syntax:
<Return value> = i_PA358_SetBoardInfomation
(UINT ui_Address,
BYTE b_AnalogOutputChannelNbr,
PBYTE pb_BoardHandle)
Parameter:
UINT
ui_Address
Base address of board
PA 358
BYTE
b_AnalogOutputChannelNbr Number of analog output channels
PBYTE pb_BoardHandle
of board
PA 358
for
using the functions
Task:
Stores the following information:
- base address,
- number of analog output channels.
A handle is returned to the user which allows to use the next functions.
Handles allow to operate several boards.
Return value:
0: No error
-1: Base address already used
-2: Number of analog output channels is wrong.
-3: No handle is available for the board (up to 10 handles can be used)
2) i_PA358_CloseBoardHandle (..)
IMPORTANT!
Call up this function each time when you want to leave the user
program!
Syntax:
<Return value> = i_PA358_CloseBoardHandle (BYTE b_BoardHandle)
Parameter:
BYTE
b_BoardHandle
Handle of board
PA 358
Task:
Releases the handle of the board. Blocks the access to the board.
Return value:
0: No error
-1: The handle parameter of the board is wrong
1 Identification number of the board