| CAEN FERS Library v1.1.4 SDK for FERS systems

Macros
Handles and indexing
Macros

Handles and indexing. More...

Collaboration diagram for Handles and indexing:

## Macros
#define | FERS_INDEX(handle) ((handle) & 0xFF)
#define | FERS_CONNECTIONTYPE(handle) ((handle) & 0xF0000)
#define | FERS_CONNECTIONTYPE_ETH 0x00000
#define | FERS_CONNECTIONTYPE_USB 0x10000
#define | FERS_CONNECTIONTYPE_TDL 0x20000
#define | FERS_CONNECTIONTYPE_CNC 0x80000
#define | FERS_NODE(handle) ((handle >> 20) & 0xF)
#define | FERS_CHAIN(handle) ((handle >> 24) & 0xF)
#define | FERS_CNCINDEX(handle) ((handle >> 30) & 0xF)
#define | FERS_CNC_HANDLE(handle) (0x80000 | ((handle >> 30) & 0xF))

## Detailed Description

Handles and indexing.

## Macro Definition Documentation

## ◆ FERS_INDEX

#define FERS_INDEX | ( |  | handle | ) | ((handle) & 0xFF)

Board Index

Definition at line 434 of file FERSlib.h.

## ◆ FERS_CONNECTIONTYPE

#define FERS_CONNECTIONTYPE | ( |  | handle | ) | ((handle) & 0xF0000)

Connection Type

Definition at line 435 of file FERSlib.h.

## ◆ FERS_CONNECTIONTYPE_ETH

#define FERS_CONNECTIONTYPE_ETH 0x00000

Handle bit for eth connection

Definition at line 436 of file FERSlib.h.

## ◆ FERS_CONNECTIONTYPE_USB

#define FERS_CONNECTIONTYPE_USB 0x10000

Handle bit for usb connection

Definition at line 437 of file FERSlib.h.

## ◆ FERS_CONNECTIONTYPE_TDL

#define FERS_CONNECTIONTYPE_TDL 0x20000

Handle bit for tdl connection

Definition at line 438 of file FERSlib.h.

## ◆ FERS_CONNECTIONTYPE_CNC

#define FERS_CONNECTIONTYPE_CNC 0x80000

Handle bit for connection to concentrator only

Definition at line 439 of file FERSlib.h.

## ◆ FERS_NODE

#define FERS_NODE | ( |  | handle | ) | ((handle >> 20) & 0xF)

Tdl node index

Definition at line 440 of file FERSlib.h.

## ◆ FERS_CHAIN

#define FERS_CHAIN | ( |  | handle | ) | ((handle >> 24) & 0xF)

Tdl chain index

Definition at line 441 of file FERSlib.h.

## ◆ FERS_CNCINDEX

#define FERS_CNCINDEX | ( |  | handle | ) | ((handle >> 30) & 0xF)

Concentrator index

Definition at line 442 of file FERSlib.h.

## ◆ FERS_CNC_HANDLE

#define FERS_CNC_HANDLE | ( |  | handle | ) | (0x80000 | ((handle >> 30) & 0xF))

returns the CNC handle to which a FERS unit is connected

Definition at line 443 of file FERSlib.h.