Mercury API - Tag Filter Interface. More...
Go to the source code of this file.
Classes | |
struct | TMR_TagFilter |
Typedefs | |
typedef enum TMR_FilterType | TMR_FilterType |
typedef struct TMR_TagFilter | TMR_TagFilter |
Enumerations | |
enum | TMR_FilterType { TMR_FILTER_TYPE_TAG_DATA = 0, TMR_FILTER_TYPE_GEN2_SELECT = 1, TMR_FILTER_TYPE_ISO180006B_SELECT = 2 } |
Functions | |
TMR_Status | TMR_TF_init_gen2_select (TMR_TagFilter *filter, bool invert, TMR_GEN2_Bank bank, uint32_t bitPointer, uint16_t maskBitLength, uint8_t *mask) |
TMR_Status | TMR_TF_init_ISO180006B_select (TMR_TagFilter *filter, bool invert, TMR_ISO180006B_SelectOp op, uint8_t address, uint8_t mask, uint8_t wordData[8]) |
TMR_Status | TMR_TF_init_tag (TMR_TagFilter *filter, TMR_TagData *tag) |
bool | TMR_TF_match (TMR_TagFilter *filter, TMR_TagData *tag) |
typedef enum TMR_FilterType TMR_FilterType |
Type of a TMR_TagFilter structure
enum TMR_FilterType |
Type of a TMR_TagFilter structure
TMR_FILTER_TYPE_TAG_DATA |
Tag data filter - non-protocol-specific |
TMR_FILTER_TYPE_GEN2_SELECT |
Gen2 Select filter |
TMR_FILTER_TYPE_ISO180006B_SELECT |
ISO180006B Select filter |
Definition at line 50 of file tmr_filter.h.
TMR_Status TMR_TF_init_gen2_select | ( | TMR_TagFilter * | filter, |
bool | invert, | ||
TMR_GEN2_Bank | bank, | ||
uint32_t | bitPointer, | ||
uint16_t | maskBitLength, | ||
uint8_t * | mask | ||
) |
Initialize a TMR_Filter structure as a Gen2 select filter with the provided parameters.
filter | Pointer to the filter structure to initialize |
invert | Whether to invert the result of the select |
bank | The memory bank on the tag to compare with the data |
bitPointer | The bit address of the tag data to compare |
maskBitLength | The length of the data to compare |
mask | The data to compare |
Definition at line 967 of file tm_reader.c.
TMR_Status TMR_TF_init_ISO180006B_select | ( | TMR_TagFilter * | filter, |
bool | invert, | ||
TMR_ISO180006B_SelectOp | op, | ||
uint8_t | address, | ||
uint8_t | mask, | ||
uint8_t | wordData[8] | ||
) |
TMR_Status TMR_TF_init_tag | ( | TMR_TagFilter * | filter, |
TMR_TagData * | tag | ||
) |
Initialize a TMR_Filter structure as tag data (EPC) filter with the provided tag (which is copied).
filter | Pointer to the filter structure to initialize |
tag | TMR_TagData to use as the filter value |
Definition at line 946 of file tm_reader.c.
bool TMR_TF_match | ( | TMR_TagFilter * | filter, |
TMR_TagData * | tag | ||
) |
Test if a tag matches this filter. Only applies to selects based on the EPC.
filter | The filter to test with. |
tag | The tag to test. |
Definition at line 1014 of file tm_reader.c.