# tm_config.h File Reference

Mercury API - Build Configuration. More...

## Defines

#define | TMR_VERSION "1.29.4.34"
#define | TMR_ENABLE_SERIAL_READER
#define | TMR_ENABLE_SERIAL_TRANSPORT_NATIVE
#define | TMR_MAX_READER_NAME_LENGTH 64
#define | TMR_MAX_SERIAL_MULTIPROTOCOL_LENGTH 6
#define | TMR_MAX_QUEUE_SLOTS 20
#define | TMR_MAX_EMBEDDED_DATA_LENGTH 128
#define | TMR_MAX_PROBE_BAUDRATE_LENGTH 8
#define | TMR_ENABLE_LLRP_TRANSPORT
#define | TMR_LLRP_KEEP_ALIVE_TIMEOUT 5000
#define | TMR_ENABLE_GEN2_CUSTOM_TAGOPS
#define | TMR_ENABLE_ISO180006B
#define | TMR_ENABLE_BACKGROUND_READS
#define | TMR_ENABLE_ERROR_STRINGS
#define | TMR_ENABLE_PARAM_STRINGS
#define | TMR_ENABLE_STDIO
#define | TMR_USE_STRERROR
#define | TMR_SR_MAX_ANTENNA_PORTS (32)
#define | TMR_ENABLE_API_SIDE_DEDUPLICATION
#define | TMR_DEFAULT_READ_FILTER_TIMEOUT -1
#define | TMR_MAX_TRANSPORT_SCHEME_NAME 50

## Detailed Description

Mercury API - Build Configuration.

Author:
  Nathan Williams

Date:
  10/20/2009

## Define Documentation

#define TMR_DEFAULT_READ_FILTER_TIMEOUT -1

Default read filter timeout.

#define TMR_ENABLE_API_SIDE_DEDUPLICATION

Define when compiling on a big-endian host platform to enable some endian optimizations. Without this, no endianness will be assumed. Define this to enable API-side tag read deduplication. Under certain conditions, the module runs out of buffer space to detect reads of a previously-seen EPC.

#define TMR_ENABLE_BACKGROUND_READS

Define this to enable support for small microcontrollers. Enabling this option will reduce the code which is not relevant to serial readers in order to minimize the program footprint To compile for Serial Reader only.

To compile for Serial Reader only, use one of the following options: Uncomment the following define Run make with TMR_ENABLE_SERIAL_READER_ONLY=1 defined Add -DTMR_ENABLE_SERIAL_READER_ONLY=1 to your compiler flags Define this to enable support for background reads using native threads. This feature is also available for windows (using pthreads-win32)

#define TMR_ENABLE_ERROR_STRINGS

Define this to include TMR_strerror().

#define TMR_ENABLE_GEN2_CUSTOM_TAGOPS

Define this to enable async read using single thread

Note:To run readsync_baremetal codelet you have to define it. Otherwise keep it undefined. Define this to enable for BARE_METAL API Define this to enable support for the GEN2 Custom Tag Operations parameters and access commands

#define TMR_ENABLE_ISO180006B

Define this to enable support for the ISO180006B protocol parameters and access commands

#define TMR_ENABLE_LLRP_TRANSPORT

Define this to enable support for LLRP readers. (Not yet available for Windows)

#define TMR_ENABLE_PARAM_STRINGS

Define this to include TMR_paramName() and TMR_paramID().

#define TMR_ENABLE_SERIAL_READER

Define this to enable support for devices that support the serial reader command set (M5e, M6e, Vega, etc.)

#define TMR_ENABLE_SERIAL_TRANSPORT_NATIVE

Define this to enable support for local serial port access via native interfaces (COM1 on Windows, /dev/ttyS0, /dev/ttyUSB0 on Linux, etc.).

#define TMR_ENABLE_STDIO

Enabling this option will enable the support for the parameters defined in stdio.h header file like FILE *. This check is required as stdio.h does not exist in some of the embedded architectures.

#define TMR_LLRP_KEEP_ALIVE_TIMEOUT 5000

LLRP reader keep alive timeout in milli seconds

#define TMR_MAX_EMBEDDED_DATA_LENGTH 128

Number of bytes to allocate for embedded data return in each TagReadData.

#define TMR_MAX_PROBE_BAUDRATE_LENGTH 8

The maximum length of the probe baudrate list. This list specifies the baudrates which are used while connecting to the serial reader.

#define TMR_MAX_QUEUE_SLOTS 20

The maximum size of the Queue, used to share the streamed messages between the do_background_reads thread and parse_tag_reads thread.

#define TMR_MAX_READER_NAME_LENGTH 64

The longest possible name for a reader.

#define TMR_MAX_SERIAL_MULTIPROTOCOL_LENGTH 6

The maximum number of protocols supported in a multiprotocol search command

#define TMR_MAX_TRANSPORT_SCHEME_NAME 50

The max length of the custom transport scheme name

#define TMR_SR_MAX_ANTENNA_PORTS (32)

Define the largest number serial reader antenna ports that will be supported

#define TMR_USE_STRERROR

Enabling this option will enable the support for the parameters defined in string.h header file like strerror(). This check is required as string.h does not exist in some of the embedded architectures.

#define TMR_VERSION "1.29.4.34"

API version number