#include <tm_reader.h>
#include <time.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <inttypes.h>
Go to the source code of this file.
Defines | |
#define | numberof(x) (sizeof((x))/sizeof((x)[0])) |
#define | PRINT_TAG_METADATA 0 |
#define | READPOWER_NULL (-12345) |
#define | usage() |
#define | USE_TRANSPORT_LISTENER 0 |
Functions | |
void | checkerr (TMR_Reader *rp, TMR_Status ret, int exitval, const char *msg) |
void | errx (int exitval, const char *fmt,...) |
int | main (int argc, char *argv[]) |
void | parseAntennaList (uint8_t *antenna, uint8_t *antennaCount, char *args) |
void | serialPrinter (bool tx, uint32_t dataLen, const uint8_t data[], uint32_t timeout, void *cookie) |
void | stringPrinter (bool tx, uint32_t dataLen, const uint8_t data[], uint32_t timeout, void *cookie) |
Sample program that reads tags for a fixed period of time (500ms) and prints the tags found.
Definition in file read.c.
#define PRINT_TAG_METADATA 0 |
#define READPOWER_NULL (-12345) |
#define usage | ( | ) |
#define USE_TRANSPORT_LISTENER 0 |
void checkerr | ( | TMR_Reader * | rp, |
TMR_Status | ret, | ||
int | exitval, | ||
const char * | msg | ||
) |
int main | ( | int | argc, |
char * | argv[] | ||
) |
void parseAntennaList | ( | uint8_t * | antenna, |
uint8_t * | antennaCount, | ||
char * | args | ||
) |
void serialPrinter | ( | bool | tx, |
uint32_t | dataLen, | ||
const uint8_t | data[], | ||
uint32_t | timeout, | ||
void * | cookie | ||
) |
void stringPrinter | ( | bool | tx, |
uint32_t | dataLen, | ||
const uint8_t | data[], | ||
uint32_t | timeout, | ||
void * | cookie | ||
) |