rfid_driver_data.h
Go to the documentation of this file.
00001 #ifndef __RFID_DRIVER_DATA_H__
00002 #define __RFID_DRIVER_DATA_H__
00003 
00027 
00028 // maximum data size for label for HF
00029 #define BLOCK_SIZE_HF   4
00030 
00032 
00033 // number of readers in the robot
00034 #define NUM_READERS     1
00035 
00037 
00038 // reader id
00039 #define BASE_READER_ID  216135657
00040 #define HEAD_READER_ID  216132099
00041 
00043 
00044 // reader bus direction
00045 #define BUS_ADDRESS_HEAD_READER     0xFF
00046 #define BUS_ADDRESS_BASE_READER     0xFE
00047 
00049 
00050 // reader port
00051 #define HEAD_READER_PORT    268435458
00052 #define BASE_READER_PORT    268435459
00053 
00055 
00056 // RFID reader names
00057 #define HF_NAME  "ID ISC.MR101-U"
00058 
00060 
00061 // data from the card is a matrix
00062 #define NUM_COLUMNS 4
00063 #define NUM_ROWS    255
00064 
00066 
00067 // maximum length of the data
00068 #define MAX_LENGTH  (NUM_COLUMNS * NUM_ROWS)
00069 
00071 
00072 // length of the UID
00073 #define UID_LENGTH  24
00074 
00076 
00082 typedef struct {
00083         char UID[UID_LENGTH];
00084 
00085         struct {
00086                 unsigned int length;
00087                 unsigned char value[MAX_LENGTH];
00088         } data;
00089 } card_data;
00090 
00092 
00093 #endif


maggie_rfid_drivers
Author(s): Raul Perula-Martinez
autogenerated on Mon Sep 14 2015 03:05:31