LibTiePie  0.9.13
Library for interfacing TiePie engineering instruments
Macros

Description

Macros

#define TPVERSION_MAJOR(x)   ( x >> 48 )
 Extract the major number from a TpVersion_t value. More...
 
#define TPVERSION_MINOR(x)   ( ( x >> 32 ) & 0xffff )
 Extract the minor number from a TpVersion_t value. More...
 
#define TPVERSION_RELEASE(x)   ( ( x >> 16 ) & 0xffff )
 Extract the release number from a TpVersion_t value. More...
 
#define TPVERSION_BUILD(x)   ( x & 0xffff )
 Extract the build number from a TpVersion_t value. More...
 
#define TPDATE_YEAR(x)   ( x >> 16 )
 Extract year from a TpDate_t value. More...
 
#define TPDATE_MONTH(x)   ( ( x >> 8 ) & 0xff )
 Extract month from a TpDate_t value. More...
 
#define TPDATE_DAY(x)   ( x & 0xff )
 Extract day from a TpDate_t value. More...
 
#define TRIGGER_IO_ID(pgid, sgid, fid)   ( ( DN_MAIN << TIOID_SHIFT_DN ) | ( ( pgid ) << TIOID_SHIFT_PGID ) | ( ( sgid ) << TIOID_SHIFT_SGID ) | ( ( fid ) << TIOID_SHIFT_FID ) )
 
#define COMBI_TRIGGER_IO_ID(dn, tiid)   ( ( ( dn ) << TIOID_SHIFT_DN ) | ( ( tiid ) & ( ( 1 << TIOID_SHIFT_DN ) - 1 ) ) )
 

Macro Definition Documentation

#define TPVERSION_MAJOR (   x)    ( x >> 48 )

Extract the major number from a TpVersion_t value.

Definition at line 1489 of file libtiepie.h.

#define TPVERSION_MINOR (   x)    ( ( x >> 32 ) & 0xffff )

Extract the minor number from a TpVersion_t value.

Definition at line 1490 of file libtiepie.h.

#define TPVERSION_RELEASE (   x)    ( ( x >> 16 ) & 0xffff )

Extract the release number from a TpVersion_t value.

Definition at line 1491 of file libtiepie.h.

#define TPVERSION_BUILD (   x)    ( x & 0xffff )

Extract the build number from a TpVersion_t value.

Definition at line 1492 of file libtiepie.h.

#define TPDATE_YEAR (   x)    ( x >> 16 )

Extract year from a TpDate_t value.

Definition at line 1494 of file libtiepie.h.

#define TPDATE_MONTH (   x)    ( ( x >> 8 ) & 0xff )

Extract month from a TpDate_t value.

Definition at line 1495 of file libtiepie.h.

#define TPDATE_DAY (   x)    ( x & 0xff )

Extract day from a TpDate_t value.

Definition at line 1496 of file libtiepie.h.

#define TRIGGER_IO_ID (   pgid,
  sgid,
  fid 
)    ( ( DN_MAIN << TIOID_SHIFT_DN ) | ( ( pgid ) << TIOID_SHIFT_PGID ) | ( ( sgid ) << TIOID_SHIFT_SGID ) | ( ( fid ) << TIOID_SHIFT_FID ) )

Definition at line 1498 of file libtiepie.h.

#define COMBI_TRIGGER_IO_ID (   dn,
  tiid 
)    ( ( ( dn ) << TIOID_SHIFT_DN ) | ( ( tiid ) & ( ( 1 << TIOID_SHIFT_DN ) - 1 ) ) )

Definition at line 1500 of file libtiepie.h.