xpci3xxx
1.00.00
|
Macros | |
#define | CMD_xpci3xxx_InitAnalogInputSequence _IOR(xpci3xxx_MAGIC, 20,long) |
Initialize an analog input sequence acquisition. More... | |
#define | CMD_xpci3xxx_StartAnalogInputSequence _IOR(xpci3xxx_MAGIC, 21,long) |
Start an analog input sequence acquisition. More... | |
#define | CMD_xpci3xxx_StopAnalogInputSequence _IOR(xpci3xxx_MAGIC, 22,long) |
Stop an analog input sequence acquisition. More... | |
#define | CMD_xpci3xxx_ReleaseAnalogInputSequence _IOR(xpci3xxx_MAGIC, 23,long) |
Release an analog input sequence conversion. More... | |
#define CMD_xpci3xxx_InitAnalogInputSequence _IOR(xpci3xxx_MAGIC, 20,long) |
Initialize an analog input sequence acquisition.
This function prepare the board for an acquisition in sequence mode and allocate the relevant resources. A call to CMD_xpci3xxx_ReleaseAnalogInputSequence is necessary to release theses resources before being able to start another type of acquisition.
[in] | uint32_t | arg[((3*Number Of Channels) + 8)] Parameters |
arg[0] Number of channel to initialize ( 1 .. ADDIDATA_MAX_AI)
0 | Success |
1 | Internal error |
2 | Wrong number of channels |
3 | Wrong channel number |
4 | Wrong gain factor |
5 | Wrong polarity |
6 | Wrong single diff parameter (not 0 or 1) |
7 | Wrong use DMA parameter |
8 | Wrong number of sequence for each interrupt parameter |
9 | Wrong delay mode parameter |
10 | Wrong delay time unit parameter |
11 | Wrong delay time parameter |
12 | A conversion is already started |
13 | DMA mode not supported |
14 | No memory space available |
15 | Error by initialising the DMA |
16 | Requested single/differential mode not supported by the board |
17 | Inconsistent parameters for DMA mode |
Let NumberOfAnalogInput be the number of analog inputs (4,8,16) of the board, then NumberOfChannel is correct if
"List of Channel" describes the sequence to follow during acquisition. It must contain indexes of valid channels. Which index is valid depends on the connection mode of the board (single or differential).
The order of the index in this array is the order of the values returned after the acquisition.
Let NumberOfAnalogInput be the number of analog inputs (4,8,16) of the board, then "List of Channel to initialize" is correct if:
Definition at line 716 of file xpci3xxx.h.
#define CMD_xpci3xxx_ReleaseAnalogInputSequence _IOR(xpci3xxx_MAGIC, 23,long) |
Release an analog input sequence conversion.
This function frees the resources allocated by a CMD_xpci3xxx_InitAnalogInputSequence and must be called before initializing another acquisition.
NULL | (ignored) |
0 | Success |
1 | Internal error |
2 | Auto refresh not initialized |
3 | A conversion is already started |
4 | Error by releasing DMA |
Definition at line 765 of file xpci3xxx.h.
#define CMD_xpci3xxx_StartAnalogInputSequence _IOR(xpci3xxx_MAGIC, 21,long) |
Start an analog input sequence acquisition.
[in] | uint16_t | arg[2] Parameters |
0 | Success |
1 | Internal error |
2 | Sequence not initialized |
3 | Wrong convert time unit |
4 | Wrong convert time |
5 | A conversion is already started |
6 | Error by starting DMA |
Definition at line 738 of file xpci3xxx.h.
#define CMD_xpci3xxx_StopAnalogInputSequence _IOR(xpci3xxx_MAGIC, 22,long) |
Stop an analog input sequence acquisition.
NULL | (ignored) |
0 | Success |
1 | Internal error |
2 | Auto refresh not initialized |
3 | Sequence not started |
4 | Error by stoping DMA |
Definition at line 750 of file xpci3xxx.h.