Defines | Functions
readasync.c File Reference
#include <tm_reader.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <inttypes.h>
#include <unistd.h>
Include dependency graph for readasync.c:

Go to the source code of this file.

Defines

#define usage()
#define USE_TRANSPORT_LISTENER   0

Functions

void callback (TMR_Reader *reader, const TMR_TagReadData *t, void *cookie)
void checkerr (TMR_Reader *rp, TMR_Status ret, int exitval, const char *msg)
void errx (int exitval, const char *fmt,...)
void exceptionCallback (TMR_Reader *reader, TMR_Status error, void *cookie)
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)

Detailed Description

Sample program that reads tags in the background

Definition in file readasync.c.


Define Documentation

#define usage ( )
Value:
{errx(1, "Please provide reader URL, such as:\n"\
                         "tmr:///com4 or tmr:///com4 --ant 1,2\n"\
                         "tmr://my-reader.example.com or tmr://my-reader.example.com --ant 1,2\n");}

Definition at line 21 of file readasync.c.

#define USE_TRANSPORT_LISTENER   0

Definition at line 18 of file readasync.c.


Function Documentation

void callback ( TMR_Reader reader,
const TMR_TagReadData t,
void *  cookie 
)

Definition at line 258 of file readasync.c.

void checkerr ( TMR_Reader rp,
TMR_Status  ret,
int  exitval,
const char *  msg 
)

Definition at line 35 of file readasync.c.

void errx ( int  exitval,
const char *  fmt,
  ... 
)

Definition at line 25 of file readasync.c.

void exceptionCallback ( TMR_Reader reader,
TMR_Status  error,
void *  cookie 
)

Definition at line 267 of file readasync.c.

int main ( int  argc,
char *  argv[] 
)

Definition at line 105 of file readasync.c.

void parseAntennaList ( uint8_t *  antenna,
uint8_t *  antennaCount,
char *  args 
)

Definition at line 67 of file readasync.c.

void serialPrinter ( bool  tx,
uint32_t  dataLen,
const uint8_t  data[],
uint32_t  timeout,
void *  cookie 
)

Definition at line 43 of file readasync.c.

void stringPrinter ( bool  tx,
uint32_t  dataLen,
const uint8_t  data[],
uint32_t  timeout,
void *  cookie 
)

Definition at line 59 of file readasync.c.



thingmagic_rfid
Author(s): Brian Bingham
autogenerated on Thu May 16 2019 03:01:25