# tmr_status.h File Reference

Mercury API - status codes. More...

`#include "tm_config.h"`
`#include <stdint.h>`

## Defines

#define | TMR_ERROR_MSG_WRONG_NUMBER_OF_DATA TMR_ERROR_CODE(0x100)
#define | TMR_ERROR_INVALID_OPCODE TMR_ERROR_CODE(0x101)
#define | TMR_ERROR_UNIMPLEMENTED_OPCODE TMR_ERROR_CODE(0x102)
#define | TMR_ERROR_MSG_POWER_TOO_HIGH TMR_ERROR_CODE(0x103)
#define | TMR_ERROR_MSG_INVALID_FREQ_RECEIVED TMR_ERROR_CODE(0x104)
#define | TMR_ERROR_MSG_INVALID_PARAMETER_VALUE TMR_ERROR_CODE(0x105)
#define | TMR_ERROR_MSG_POWER_TOO_LOW TMR_ERROR_CODE(0x106)
#define | TMR_ERROR_UNIMPLEMENTED_FEATURE TMR_ERROR_CODE(0x109)
#define | TMR_ERROR_INVALID_BAUD_RATE TMR_ERROR_CODE(0x10a)
#define | TMR_ERROR_INVALID_REGION TMR_ERROR_CODE(0x10b)
#define | TMR_ERROR_INVALID_LICENSE_KEY TMR_ERROR_CODE(0x10c)
#define | TMR_ERROR_BL_INVALID_IMAGE_CRC TMR_ERROR_CODE(0x200)
#define | TMR_ERROR_BL_INVALID_APP_END_ADDR TMR_ERROR_CODE(0x201)
#define | TMR_ERROR_FLASH_BAD_ERASE_PASSWORD TMR_ERROR_CODE(0x300)
#define | TMR_ERROR_FLASH_BAD_WRITE_PASSWORD TMR_ERROR_CODE(0x301)
#define | TMR_ERROR_FLASH_UNDEFINED_SECTOR TMR_ERROR_CODE(0x302)
#define | TMR_ERROR_FLASH_ILLEGAL_SECTOR TMR_ERROR_CODE(0x303)
#define | TMR_ERROR_FLASH_WRITE_TO_NON_ERASED_AREA TMR_ERROR_CODE(0x304)
#define | TMR_ERROR_FLASH_WRITE_TO_ILLEGAL_SECTOR TMR_ERROR_CODE(0x305)
#define | TMR_ERROR_FLASH_VERIFY_FAILED TMR_ERROR_CODE(0x306)
#define | TMR_ERROR_NO_TAGS_FOUND TMR_ERROR_CODE(0x400)
#define | TMR_ERROR_NO_PROTOCOL_DEFINED TMR_ERROR_CODE(0x401)
#define | TMR_ERROR_INVALID_PROTOCOL_SPECIFIED TMR_ERROR_CODE(0x402)
#define | TMR_ERROR_WRITE_PASSED_LOCK_FAILED TMR_ERROR_CODE(0x403)
#define | TMR_ERROR_PROTOCOL_NO_DATA_READ TMR_ERROR_CODE(0x404)
#define | TMR_ERROR_AFE_NOT_ON TMR_ERROR_CODE(0x405)
#define | TMR_ERROR_PROTOCOL_WRITE_FAILED TMR_ERROR_CODE(0x406)
#define | TMR_ERROR_NOT_IMPLEMENTED_FOR_THIS_PROTOCOL TMR_ERROR_CODE(0x407)
#define | TMR_ERROR_PROTOCOL_INVALID_WRITE_DATA TMR_ERROR_CODE(0x408)
#define | TMR_ERROR_PROTOCOL_INVALID_ADDRESS TMR_ERROR_CODE(0x409)
#define | TMR_ERROR_GENERAL_TAG_ERROR TMR_ERROR_CODE(0x40a)
#define | TMR_ERROR_DATA_TOO_LARGE TMR_ERROR_CODE(0x40b)
#define | TMR_ERROR_PROTOCOL_INVALID_KILL_PASSWORD TMR_ERROR_CODE(0x40c)
#define | TMR_ERROR_PROTOCOL_KILL_FAILED TMR_ERROR_CODE(0x40e)
#define | TMR_ERROR_PROTOCOL_BIT_DECODING_FAILED TMR_ERROR_CODE(0x40f)
#define | TMR_ERROR_PROTOCOL_INVALID_EPC TMR_ERROR_CODE(0x410)
#define | TMR_ERROR_PROTOCOL_INVALID_NUM_DATA TMR_ERROR_CODE(0x411)
#define | TMR_ERROR_GEN2_PROTOCOL_OTHER_ERROR TMR_ERROR_CODE(0x420)
#define | TMR_ERROR_GEN2_PROTOCOL_MEMORY_OVERRUN_BAD_PC TMR_ERROR_CODE(0x423)
#define | TMR_ERROR_GEN2_PROTOCOL_MEMORY_LOCKED TMR_ERROR_CODE(0x424)
#define | TMR_ERROR_GEN2_PROTOCOL_V2_AUTHEN_FAILED TMR_ERROR_CODE(0x425)
#define | TMR_ERROR_GEN2_PROTOCOL_V2_UNTRACE_FAILED TMR_ERROR_CODE(0x426)
#define | TMR_ERROR_GEN2_PROTOCOL_INSUFFICIENT_POWER TMR_ERROR_CODE(0x42b)
#define | TMR_ERROR_GEN2_PROTOCOL_NON_SPECIFIC_ERROR TMR_ERROR_CODE(0x42f)
#define | TMR_ERROR_GEN2_PROTOCOL_UNKNOWN_ERROR TMR_ERROR_CODE(0x430)
#define | TMR_ERROR_AHAL_INVALID_FREQ TMR_ERROR_CODE(0x500)
#define | TMR_ERROR_AHAL_CHANNEL_OCCUPIED TMR_ERROR_CODE(0x501)
#define | TMR_ERROR_AHAL_TRANSMITTER_ON TMR_ERROR_CODE(0x502)
#define | TMR_ERROR_ANTENNA_NOT_CONNECTED TMR_ERROR_CODE(0x503)
#define | TMR_ERROR_TEMPERATURE_EXCEED_LIMITS TMR_ERROR_CODE(0x504)
#define | TMR_ERROR_HIGH_RETURN_LOSS TMR_ERROR_CODE(0x505)
#define | TMR_ERROR_TAG_ID_BUFFER_NOT_ENOUGH_TAGS_AVAILABLE TMR_ERROR_CODE(0x600)
#define | TMR_ERROR_TAG_ID_BUFFER_FULL TMR_ERROR_CODE(0x601)
#define | TMR_ERROR_TAG_ID_BUFFER_REPEATED_TAG_ID TMR_ERROR_CODE(0x602)
#define | TMR_ERROR_TAG_ID_BUFFER_NUM_TAG_TOO_LARGE TMR_ERROR_CODE(0x603)
#define | TMR_ERROR_TAG_ID_BUFFER_AUTH_REQUEST TMR_ERROR_CODE(0x604)
#define | TMR_ERROR_SYSTEM_UNKNOWN_ERROR TMR_ERROR_CODE(0x7f00)
#define | TMR_ERROR_TM_ASSERT_FAILED TMR_ERROR_CODE(0x7f01)

## Detailed Description

Mercury API - status codes.

Author:
  Nathan Williams

Date:
  11/24/2009

## Define Documentation

#define TMR_ERROR_AFE_NOT_ON TMR_ERROR_CODE(0x405)

Reader not fully initialized and hasn't yet turned on its radio. Have you set region?

#define TMR_ERROR_AHAL_CHANNEL_OCCUPIED TMR_ERROR_CODE(0x501)

With LBT enabled an attempt was made to set the frequency to an occupied channel.

#define TMR_ERROR_AHAL_INVALID_FREQ TMR_ERROR_CODE(0x500)

A command was received to set a frequency outside the specified range.

#define TMR_ERROR_AHAL_TRANSMITTER_ON TMR_ERROR_CODE(0x502)

Checking antenna status while CW is on is not allowed.

#define TMR_ERROR_ANTENNA_NOT_CONNECTED TMR_ERROR_CODE(0x503)

Antenna not detected during pre-transmit safety test.

#define TMR_ERROR_BL_INVALID_APP_END_ADDR TMR_ERROR_CODE(0x201)

Serial protocol status code for this exception.

#define TMR_ERROR_BL_INVALID_IMAGE_CRC TMR_ERROR_CODE(0x200)

Firmware is corrupt: Checksum doesn't match content.

#define TMR_ERROR_DATA_TOO_LARGE TMR_ERROR_CODE(0x40b)

Read Tag Data was asked for more data than it supports.

#define TMR_ERROR_FLASH_BAD_ERASE_PASSWORD TMR_ERROR_CODE(0x300)

Internal reader error. Contact support.

#define TMR_ERROR_FLASH_BAD_WRITE_PASSWORD TMR_ERROR_CODE(0x301)

Internal reader error. Contact support.

#define TMR_ERROR_FLASH_ILLEGAL_SECTOR TMR_ERROR_CODE(0x303)

Internal reader error. Contact support.

#define TMR_ERROR_FLASH_UNDEFINED_SECTOR TMR_ERROR_CODE(0x302)

Internal reader error. Contact support.

#define TMR_ERROR_FLASH_VERIFY_FAILED TMR_ERROR_CODE(0x306)

Internal reader error. Contact support.

#define TMR_ERROR_FLASH_WRITE_TO_ILLEGAL_SECTOR TMR_ERROR_CODE(0x305)

Internal reader error. Contact support.

#define TMR_ERROR_FLASH_WRITE_TO_NON_ERASED_AREA TMR_ERROR_CODE(0x304)

Internal reader error. Contact support.

#define TMR_ERROR_GEN2_PROTOCOL_INSUFFICIENT_POWER TMR_ERROR_CODE(0x42b)

Internal reader error. Contact support.

#define TMR_ERROR_GEN2_PROTOCOL_MEMORY_LOCKED TMR_ERROR_CODE(0x424)

Internal reader error. Contact support.

#define TMR_ERROR_GEN2_PROTOCOL_MEMORY_OVERRUN_BAD_PC TMR_ERROR_CODE(0x423)

Internal reader error. Contact support.

#define TMR_ERROR_GEN2_PROTOCOL_NON_SPECIFIC_ERROR TMR_ERROR_CODE(0x42f)

Internal reader error. Contact support.

#define TMR_ERROR_GEN2_PROTOCOL_OTHER_ERROR TMR_ERROR_CODE(0x420)

Internal reader error. Contact support.

#define TMR_ERROR_GEN2_PROTOCOL_UNKNOWN_ERROR TMR_ERROR_CODE(0x430)

Internal reader error. Contact support.

#define TMR_ERROR_GEN2_PROTOCOL_V2_AUTHEN_FAILED TMR_ERROR_CODE(0x425)

Authentication failed with specified key.

#define TMR_ERROR_GEN2_PROTOCOL_V2_UNTRACE_FAILED TMR_ERROR_CODE(0x426)

Untrace operation failed.

#define TMR_ERROR_GENERAL_TAG_ERROR TMR_ERROR_CODE(0x40a)

Unknown error during RFID operation.

#define TMR_ERROR_HIGH_RETURN_LOSS TMR_ERROR_CODE(0x505)

Excess power detected at transmitter port, usually due to antenna tuning mismatch.

#define TMR_ERROR_INVALID_BAUD_RATE TMR_ERROR_CODE(0x10a)

Requested serial speed is not supported.

#define TMR_ERROR_INVALID_LICENSE_KEY TMR_ERROR_CODE(0x10c)

License key code is invalid

#define TMR_ERROR_INVALID_OPCODE TMR_ERROR_CODE(0x101)

Command opcode not recognized.

#define TMR_ERROR_INVALID_PROTOCOL_SPECIFIED TMR_ERROR_CODE(0x402)

Requested RFID protocol is not recognized.

#define TMR_ERROR_INVALID_REGION TMR_ERROR_CODE(0x10b)

Region is not supported.

#define TMR_ERROR_MSG_INVALID_FREQ_RECEIVED TMR_ERROR_CODE(0x104)

Requested frequency is outside the allowed range.

#define TMR_ERROR_MSG_INVALID_PARAMETER_VALUE TMR_ERROR_CODE(0x105)

Parameter value is outside the allowed range.

#define TMR_ERROR_MSG_POWER_TOO_HIGH TMR_ERROR_CODE(0x103)

Requested power setting is above the allowed maximum.

#define TMR_ERROR_MSG_POWER_TOO_LOW TMR_ERROR_CODE(0x106)

Requested power setting is below the allowed minimum.

#define TMR_ERROR_MSG_WRONG_NUMBER_OF_DATA TMR_ERROR_CODE(0x100)

Invalid number of arguments

#define TMR_ERROR_NO_PROTOCOL_DEFINED TMR_ERROR_CODE(0x401)

RFID protocol has not been configured.

#define TMR_ERROR_NO_TAGS_FOUND TMR_ERROR_CODE(0x400)

Reader was asked to find tags, but none were detected.

#define TMR_ERROR_NOT_IMPLEMENTED_FOR_THIS_PROTOCOL TMR_ERROR_CODE(0x407)

Command is not supported in the current RFID protocol.

#define TMR_ERROR_PROTOCOL_BIT_DECODING_FAILED TMR_ERROR_CODE(0x40f)

Internal reader error. Contact support.

#define TMR_ERROR_PROTOCOL_INVALID_ADDRESS TMR_ERROR_CODE(0x409)

Requested data address is outside the valid range.

#define TMR_ERROR_PROTOCOL_INVALID_EPC TMR_ERROR_CODE(0x410)

Internal reader error. Contact support.

#define TMR_ERROR_PROTOCOL_INVALID_KILL_PASSWORD TMR_ERROR_CODE(0x40c)

Incorrect password was provided to Kill Tag.

#define TMR_ERROR_PROTOCOL_INVALID_NUM_DATA TMR_ERROR_CODE(0x411)

Internal reader error. Contact support.

#define TMR_ERROR_PROTOCOL_INVALID_WRITE_DATA TMR_ERROR_CODE(0x408)

Data does not conform to protocol standards.

#define TMR_ERROR_PROTOCOL_KILL_FAILED TMR_ERROR_CODE(0x40e)

Kill failed for unknown reason.

#define TMR_ERROR_PROTOCOL_NO_DATA_READ TMR_ERROR_CODE(0x404)

Tag data was requested, but could not be read.

#define TMR_ERROR_PROTOCOL_WRITE_FAILED TMR_ERROR_CODE(0x406)

Write to tag failed.

#define TMR_ERROR_SYSTEM_UNKNOWN_ERROR TMR_ERROR_CODE(0x7f00)

Internal reader error. Contact support.

#define TMR_ERROR_TAG_ID_BUFFER_AUTH_REQUEST TMR_ERROR_CODE(0x604)

Blocked response to get additional data from host.

#define TMR_ERROR_TAG_ID_BUFFER_FULL TMR_ERROR_CODE(0x601)

Too many tags are in buffer. Remove some with Get Tag ID Buffer or Clear Tag ID Buffer.

#define TMR_ERROR_TAG_ID_BUFFER_NOT_ENOUGH_TAGS_AVAILABLE TMR_ERROR_CODE(0x600)

Asked for more tags than were available in the buffer.

#define TMR_ERROR_TAG_ID_BUFFER_NUM_TAG_TOO_LARGE TMR_ERROR_CODE(0x603)

Asked for tags than a single transaction can handle.

#define TMR_ERROR_TAG_ID_BUFFER_REPEATED_TAG_ID TMR_ERROR_CODE(0x602)

Internal error -- reader is trying to insert a duplicate tag record. Contact support.

#define TMR_ERROR_TEMPERATURE_EXCEED_LIMITS TMR_ERROR_CODE(0x504)

Reader temperature outside safe range.

#define TMR_ERROR_TM_ASSERT_FAILED TMR_ERROR_CODE(0x7f01)

Internal reader error. Contact support.

#define TMR_ERROR_UNIMPLEMENTED_FEATURE TMR_ERROR_CODE(0x109)

Command not supported.

#define TMR_ERROR_UNIMPLEMENTED_OPCODE TMR_ERROR_CODE(0x102)

Command opcode recognized, but is not supported.

#define TMR_ERROR_WRITE_PASSED_LOCK_FAILED TMR_ERROR_CODE(0x403)

For write-then-lock commands, tag was successfully written, but lock failed.