xpci3xxx  1.00.00
Macros
Digital Inputs

Macros

#define CMD_xpci3xxx_Read32DigitalInputs   _IOR(xpci3xxx_MAGIC, 60,long)
 Read the digital input register of the board. More...
 
#define CMD_xpci3xxx_InitDigitalInputModuleFilter   _IOR(xpci3xxx_MAGIC, 61,long)
 Initializes the digital input filter. More...
 

Detailed Description

Macro Definition Documentation

◆ CMD_xpci3xxx_InitDigitalInputModuleFilter

#define CMD_xpci3xxx_InitDigitalInputModuleFilter   _IOR(xpci3xxx_MAGIC, 61,long)

Initializes the digital input filter.

Parameters
[in]uint32_targ[2]
  • arg[0] Control flag = 0: Disable | 1: Enable
  • arg[1] Reload value in microsecond units
Return values
0: OK
1: Internal error
2: Wrong filter flag
3: Wrong filter reload value
4: Digital input not available

TODO: describe this filter

Definition at line 991 of file xpci3xxx.h.

◆ CMD_xpci3xxx_Read32DigitalInputs

#define CMD_xpci3xxx_Read32DigitalInputs   _IOR(xpci3xxx_MAGIC, 60,long)

Read the digital input register of the board.

The input range of the channels set to "1" is within the high voltage range (See chapter 4 "Limit values" of the technical manual of the board concerned). The input range of the channels set to "1" is within the low voltage range (See chapter 4 "Limit values" of the technical manual of the board concerned).

Parameters
[out]uint32_t*arg Values of the digital input

arg contains the value of the TTL and the 24V inputs (if the board supports them)

  • The values for the TTL are encoded in the 4 higher bytes (mask 0xFFFF0000)
  • The values for the 24V are encoded in the lower byte (mask 0x0000000F)
Return values
0: OK
1: Internal error

Definition at line 974 of file xpci3xxx.h.