xpci3xxx: Analog Outputs

xpci3xxx 1.00.00

Macros
Analog Outputs

## Macros
#define | CMD_xpci3xxx_InitAnalogOutput _IOR(xpci3xxx_MAGIC, 50,long)
| Initializes one analog output channel.
#define | CMD_xpci3xxx_ReadAnalogOutputBit _IOR(xpci3xxx_MAGIC, 51,long)
| Returns the EOC bit.
#define | CMD_xpci3xxx_WriteAnalogOutputValue _IOR(xpci3xxx_MAGIC, 52,long)
| Writes to the analog output channel.

## Detailed Description

## Macro Definition Documentation

## ◆ CMD_xpci3xxx_InitAnalogOutput

#define CMD_xpci3xxx_InitAnalogOutput _IOR(xpci3xxx_MAGIC, 50,long)

Initializes one analog output channel.

Parameters

  [in] | uint8_t | arg[2]

- arg[0] Channel number of the output to be initialized
- arg[1] Voltage mode of the analog output
  - ADDIDATA_BIPOLAR: 0: -10V - +10V
  - ADDIDATA_UNIPOLAR:1: 0V - +10V

Return values

  0 | : Success
  1 | : Internal error
  2 | : Wrong channel number
  3 | : Wrong voltage mode
  4 | : A conversion is already started

Definition at line 923 of file xpci3xxx.h.

## ◆ CMD_xpci3xxx_ReadAnalogOutputBit

#define CMD_xpci3xxx_ReadAnalogOutputBit _IOR(xpci3xxx_MAGIC, 51,long)

Returns the EOC bit.

Reads the EOC (End Of Conversion) bit of the analog output. This bit is set by the hardware to indicate that a conversion is finished.

Parameters

  [out] | uint8_t | *arg = 0: no analog output conversion finished | 1: analog output conversion finished

Return values

  0 | : Success
  1 | : Internal error

Definition at line 935 of file xpci3xxx.h.

## ◆ CMD_xpci3xxx_WriteAnalogOutputValue

#define CMD_xpci3xxx_WriteAnalogOutputValue _IOR(xpci3xxx_MAGIC, 52,long)

Writes to the analog output channel.

Parameters

  [in] | uint32_t | arg[2]

- arg[0] Channel number of the output to be initialized
- arg[1] New value

Return values

  0 | : Success
  1 | : Internal error
  2 | : Wrong channel number
  3 | : Wrong write value

Definition at line 949 of file xpci3xxx.h.