29 #include <sys/types.h>
30 #include <libplayercore/playercore.h>
49 int Connect (
int connect_speed);
52 int SetupSensor (
int transfer_speed);
57 int SendCommand (
const char* cmd);
60 player_rfid_data_t ReadTags ();
64 int assemblecommand (
unsigned char* command,
int len);
70 struct termios initial_options;
79 unsigned char buffer[4096];
80 unsigned int bufferlength;
84 unsigned char command[BUF_SIZE];
#define PLAYER_WARN1(msg, a)
Definition: error.h:90
#define PLAYER_MSG1(level, msg, a)
Definition: error.h:106
Generic message header.
Definition: player.h:162
uint8_t subtype
Message subtype; interface specific.
Definition: player.h:168
#define PLAYER_MSGTYPE_DATA
A data message.
Definition: player.h:95
#define PLAYER_ERROR2(msg, a, b)
Definition: error.h:83
virtual int ProcessMessage(QueuePointer &resp_queue, player_msghdr *hdr, void *data)
Message handler.
Class for loading configuration file information.
Definition: configfile.h:197
virtual int Setup()
Initialize the driver.
Definition: driver.h:386
An autopointer for the message queue.
Definition: message.h:74
#define PLAYER_ERROR1(msg, a)
Definition: error.h:82
Definition: rfi341_protocol.h:43
#define PLAYER_ERROR(msg)
Definition: error.h:81
uint32_t size
Size in bytes of the payload to follow.
Definition: player.h:174
virtual int Shutdown()
Finalize the driver.
Definition: driver.h:393
Base class for all drivers.
Definition: driver.h:109
#define PLAYER_MSGQUEUE_DEFAULT_MAXLEN
Default maximum length for a message queue.
Definition: player.h:76