#include <ctype.h>
#include <errno.h>
#include <getopt.h>
#include <inttypes.h>
#include <time.h>
#include <stdint.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <unistd.h>
#include <readline/readline.h>
#include <readline/history.h>
#include "tm_reader.h"
#include "serial_reader_imp.h"
Go to the source code of this file.
Defines | |
#define | numberof(x) (sizeof((x))/sizeof((x)[0])) |
Functions | |
char * | command_generator (const char *, int) |
char ** | demo_completion (const char *, int, int) |
void | errx (int exitval, const char *fmt,...) |
char * | getcommand_interactive () |
char * | getcommand_noninteractive () |
int | listid (const char *list[], int listlen, const char *name) |
const char * | listname (const char *list[], int listlen, unsigned int id) |
int | main (int argc, char *argv[]) |
int | parseBytes (const char *arg, TMR_uint8List *list) |
int | parseEpc (const char *arg, TMR_TagData *tag, int *nchars) |
int | parseFilter (const char *arg, TMR_TagFilter **filterp, int *nchars) |
int | parseLockAction (const char *arg, TMR_TagLockAction *action) |
int | parseReadPlan (const char *arg, TMR_ReadPlan *plan, int *nchars) |
int | parseTagop (const char *arg, TMR_TagOp **tagopp, int *nchars) |
int | parseU32List (const char *arg, TMR_uint32List *list, int *nchars) |
int | parseU8List (const char *arg, TMR_uint8List *list, int *nchars) |
int | parseWords (const char *arg, TMR_uint16List *list) |
void | printFilter (TMR_TagFilter *filter) |
void | printPortValueList (TMR_PortValueList *list) |
void | printReadPlan (TMR_ReadPlan *plan) |
void | printTagop (TMR_TagOp *tagop) |
void | printU32List (TMR_uint32List *list) |
void | printU8List (TMR_uint8List *list) |
void | runcmd (int argc, char *argv[]) |
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) |
Variables | |
bool | connected |
TMR_TransportListenerBlock * | listener |
TMR_Reader | r |
TMR_Reader * | rp |
TMR_TagReadData | tag |
TMR_TransportListenerBlock | tb |
#define numberof | ( | x | ) | (sizeof((x))/sizeof((x)[0])) |
Definition at line 55 of file demo_test.c.
char* command_generator | ( | const char * | , |
int | |||
) |
char** demo_completion | ( | const char * | , |
int | , | ||
int | |||
) |
void errx | ( | int | exitval, |
const char * | fmt, | ||
... | |||
) |
Definition at line 173 of file thing_reader.cpp.
char * getcommand_interactive | ( | ) |
Definition at line 60 of file demo_test.c.
char* getcommand_noninteractive | ( | ) |
static int listid | ( | const char * | list[], |
int | listlen, | ||
const char * | name | ||
) |
Definition at line 138 of file tmr_loadsave_configuration.c.
const char * listname | ( | const char * | list[], |
int | listlen, | ||
unsigned int | id | ||
) |
Definition at line 172 of file tmr_loadsave_configuration.c.
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 66 of file demo_test.c.
int parseBytes | ( | const char * | arg, |
TMR_uint8List * | list | ||
) |
static int parseEpc | ( | const char * | arg, |
TMR_TagData * | tag, | ||
int * | nchars | ||
) |
Definition at line 480 of file tmr_loadsave_configuration.c.
static int parseFilter | ( | const char * | arg, |
TMR_TagFilter ** | filterp, | ||
int * | nchars | ||
) |
Definition at line 524 of file tmr_loadsave_configuration.c.
int parseLockAction | ( | const char * | arg, |
TMR_TagLockAction * | action | ||
) |
static int parseReadPlan | ( | const char * | arg, |
TMR_ReadPlan * | plan, | ||
int * | nchars | ||
) |
Definition at line 1004 of file tmr_loadsave_configuration.c.
static int parseTagop | ( | const char * | arg, |
TMR_TagOp ** | tagopp, | ||
int * | nchars | ||
) |
Definition at line 316 of file tmr_loadsave_configuration.c.
static int parseU32List | ( | const char * | arg, |
TMR_uint32List * | list, | ||
int * | nchars | ||
) |
Definition at line 429 of file tmr_loadsave_configuration.c.
static int parseU8List | ( | const char * | arg, |
TMR_uint8List * | list, | ||
int * | nchars | ||
) |
Definition at line 738 of file tmr_loadsave_configuration.c.
int parseWords | ( | const char * | arg, |
TMR_uint16List * | list | ||
) |
void printFilter | ( | TMR_TagFilter * | filter | ) |
void printPortValueList | ( | TMR_PortValueList * | list | ) |
void printReadPlan | ( | TMR_ReadPlan * | plan | ) |
void printTagop | ( | TMR_TagOp * | tagop | ) |
void printU32List | ( | TMR_uint32List * | list | ) |
void printU8List | ( | TMR_uint8List * | list | ) |
void runcmd | ( | int | argc, |
char * | argv[] | ||
) |
void serialPrinter | ( | bool | tx, |
uint32_t | dataLen, | ||
const uint8_t | data[], | ||
uint32_t | timeout, | ||
void * | cookie | ||
) |
Definition at line 125 of file demo_test.c.
void stringPrinter | ( | bool | tx, |
uint32_t | dataLen, | ||
const uint8_t | data[], | ||
uint32_t | timeout, | ||
void * | cookie | ||
) |
Definition at line 146 of file demo_test.c.
bool connected |
Definition at line 21 of file demo_test.c.
Definition at line 24 of file demo_test.c.
Definition at line 23 of file demo_test.c.
TMR_Reader * rp |
Definition at line 23 of file demo_test.c.
Definition at line 25 of file demo_test.c.
Definition at line 24 of file demo_test.c.