| CAEN FERS Library v1.1.4 SDK for FERS systems

Macros
A5256 macros
Macros

A5256 macros. More...

Collaboration diagram for A5256 macros:

## Macros
#define | A5256_CH0_POSITIVE 0
| CH0 positive polarity. More...
#define | A5256_CH0_NEGATIVE 1
| CH0 negative polarity. More...
#define | A5256_CH0_DUAL 2
| CH0 dual polarity. More...
#define | ADAPTER_NONE 0x0000
| No adapter. More...
#define | ADAPTER_A5255 0x0000
| A5255 is just a mechanical adapter (same as NONE) More...
#define | ADAPTER_A5256 0x0002
| 16+1 ch discriminator with programmable thresholds More...
#define | ADAPTER_A5256_REV0_POS 0x0100
| Proto0 of A5256 used with positive signals (discontinued) More...
#define | ADAPTER_A5256_REV0_NEG 0x0101
| Proto0 of A5256 used with negative signals (discontinued) More...
#define | NC -1
#define | A5256_DAC_LSB ((float)2500/4095)
| LSB of the threshold in mV. More...
#define | A5256_mV_to_DAC(mV) (uint32_t)round((1250 - (mV)) / A5256_DAC_LSB)
| Convert Threshold from mV into DAC LSB. More...
#define | A5256_DAC_to_mV(lsb) (1250 - (float)((lsb) * A5256_DAC_LSB))
| Convert Threshold from DAC LSB to mV. More...

## Detailed Description

A5256 macros.

## Macro Definition Documentation

## ◆ A5256_CH0_POSITIVE

#define A5256_CH0_POSITIVE 0

CH0 positive polarity.

Definition at line 681 of file FERSlib.h.

## ◆ A5256_CH0_NEGATIVE

#define A5256_CH0_NEGATIVE 1

CH0 negative polarity.

Definition at line 682 of file FERSlib.h.

## ◆ A5256_CH0_DUAL

#define A5256_CH0_DUAL 2

CH0 dual polarity.

Definition at line 683 of file FERSlib.h.

## ◆ ADAPTER_NONE

#define ADAPTER_NONE 0x0000

No adapter.

Definition at line 686 of file FERSlib.h.

## ◆ ADAPTER_A5255

#define ADAPTER_A5255 0x0000

A5255 is just a mechanical adapter (same as NONE)

Definition at line 687 of file FERSlib.h.

## ◆ ADAPTER_A5256

#define ADAPTER_A5256 0x0002

16+1 ch discriminator with programmable thresholds

Definition at line 688 of file FERSlib.h.

## ◆ ADAPTER_A5256_REV0_POS

#define ADAPTER_A5256_REV0_POS 0x0100

Proto0 of A5256 used with positive signals (discontinued)

Definition at line 689 of file FERSlib.h.

## ◆ ADAPTER_A5256_REV0_NEG

#define ADAPTER_A5256_REV0_NEG 0x0101

Proto0 of A5256 used with negative signals (discontinued)

Definition at line 690 of file FERSlib.h.

## ◆ NC

#define NC -1

Definition at line 693 of file FERSlib.h.

## ◆ A5256_DAC_LSB

#define A5256_DAC_LSB ((float)2500/4095)

LSB of the threshold in mV.

Definition at line 695 of file FERSlib.h.

## ◆ A5256_mV_to_DAC

#define A5256_mV_to_DAC | ( |  | mV | ) | (uint32_t)round((1250 - (mV)) / A5256_DAC_LSB)

Convert Threshold from mV into DAC LSB.

Definition at line 696 of file FERSlib.h.

## ◆ A5256_DAC_to_mV

#define A5256_DAC_to_mV | ( |  | lsb | ) | (1250 - (float)((lsb) * A5256_DAC_LSB))

Convert Threshold from DAC LSB to mV.

Definition at line 697 of file FERSlib.h.