Classes | Defines | Typedefs | Enumerations | Functions
Phidget RFID
Specific Phidgets
Collaboration diagram for Phidget RFID:

Classes

struct  _CPhidgetRFID_Tag
struct  CPhidgetRFIDInfo

Defines

#define RFID_4097_Active   0x02
#define RFID_4097_AmpDemod   0x00
#define RFID_4097_ClkOut   0x04
#define RFID_4097_DataOut   0x00
#define RFID_4097_DefaultON   (RFID_4097_AmpDemod | RFID_4097_Active | RFID_4097_DataOut | RFID_4097_IntPLL | RFID_4097_FastStart | RFID_4097_Gain960)
#define RFID_4097_ExtClk   0x08
#define RFID_4097_FastStart   0x10
#define RFID_4097_Gain120   0x20
#define RFID_4097_Gain240   0x60
#define RFID_4097_Gain480   0x00
#define RFID_4097_Gain960   0x40
#define RFID_4097_IntPLL   0x00
#define RFID_4097_PhaseDemod   0x01
#define RFID_4097_PowerDown   0x00
#define RFID_4097_TestMode   0x80
#define RFID_ANTENNA_FLAG   0x08
#define RFID_CONTROL_OUT_PACKET   0x40
#define RFID_DATA_ARRAY_MASK   0x3ff
#define RFID_DATA_ARRAY_SIZE   1024
#define RFID_ECHO_IN_PACKET   0x40
#define RFID_LED_FLAG   0x04
#define RFID_LISTEN_DURING_EOF_FLAG   0x10
#define RFID_MAX_DATA_PER_PACKET   63
#define RFID_MAX_TAG_STRING_LEN   25
#define RFID_MAXOUTPUTS   2
#define RFID_PACKET_OUTPUT_ECHO   1
#define RFID_PACKET_TAG   0
#define RFID_READ_DATA_IN_PACKET   0x00
#define RFID_T5577_EndGap   15
#define RFID_T5577_EOF   100
#define RFID_T5577_One   56
#define RFID_T5577_PrePulse   (136 + RFID_T5577_Zero)
#define RFID_T5577_StartGap   30
#define RFID_T5577_WriteGap   15
#define RFID_T5577_Zero   24
#define RFID_WRITE_DATA_OUT_PACKET   0x00

Typedefs

typedef struct _CPhidgetRFID_Tag CPhidgetRFID_Tag
typedef struct _CPhidgetRFID_TagCPhidgetRFID_TagHandle

Enumerations

enum  CPhidgetRFID_Encoding { PHIDGET_RFID_ENCODING_MANCHESTER = 1, PHIDGET_RFID_ENCODING_BIPHASE }
enum  CPhidgetRFID_Protocol {
  PHIDGET_RFID_PROTOCOL_EM4100 = 1, PHIDGET_RFID_PROTOCOL_ISO11785_FDX_B, PHIDGET_RFID_PROTOCOL_PHIDGETS, PHIDGET_RFID_PROTOCOL_EM4100 = 1,
  PHIDGET_RFID_PROTOCOL_ISO11785_FDX_B, PHIDGET_RFID_PROTOCOL_PHIDGETS
}

Functions

PHIDGET21_API int CCONV CPhidgetRFID_getRawData (CPhidgetRFIDHandle phid, int *data, int *dataLength)
PHIDGET21_API int CCONV CPhidgetRFID_write (CPhidgetRFIDHandle phid, char *tagString, CPhidgetRFID_Protocol protocol, int lock)
PHIDGET21_API int CCONV CPhidgetRFID_writeRaw (CPhidgetRFIDHandle phid, unsigned char *data, int bitlength, int pregap, int space, int postgap, int zero, int one, int prepulse, int eof, int listenDuringEOF)

Detailed Description

These calls are specific to the Phidget RFID object. See your device's User Guide for more specific API details, technical information, and revision details. The User Guide, along with other resources, can be found on the product page for your device.


Define Documentation

#define RFID_4097_Active   0x02

Definition at line 176 of file cphidgetrfid.h.

#define RFID_4097_AmpDemod   0x00

Definition at line 172 of file cphidgetrfid.h.

#define RFID_4097_ClkOut   0x04

Definition at line 179 of file cphidgetrfid.h.

#define RFID_4097_DataOut   0x00

Definition at line 178 of file cphidgetrfid.h.

Definition at line 193 of file cphidgetrfid.h.

#define RFID_4097_ExtClk   0x08

Definition at line 182 of file cphidgetrfid.h.

#define RFID_4097_FastStart   0x10

Definition at line 184 of file cphidgetrfid.h.

#define RFID_4097_Gain120   0x20

Definition at line 189 of file cphidgetrfid.h.

#define RFID_4097_Gain240   0x60

Definition at line 188 of file cphidgetrfid.h.

#define RFID_4097_Gain480   0x00

Definition at line 187 of file cphidgetrfid.h.

#define RFID_4097_Gain960   0x40

Definition at line 186 of file cphidgetrfid.h.

#define RFID_4097_IntPLL   0x00

Definition at line 181 of file cphidgetrfid.h.

#define RFID_4097_PhaseDemod   0x01

Definition at line 173 of file cphidgetrfid.h.

#define RFID_4097_PowerDown   0x00

Definition at line 175 of file cphidgetrfid.h.

#define RFID_4097_TestMode   0x80

Definition at line 191 of file cphidgetrfid.h.

#define RFID_ANTENNA_FLAG   0x08

Definition at line 154 of file cphidgetrfid.h.

#define RFID_CONTROL_OUT_PACKET   0x40

Definition at line 158 of file cphidgetrfid.h.

#define RFID_DATA_ARRAY_MASK   0x3ff

Definition at line 166 of file cphidgetrfid.h.

#define RFID_DATA_ARRAY_SIZE   1024

Definition at line 165 of file cphidgetrfid.h.

#define RFID_ECHO_IN_PACKET   0x40

Definition at line 161 of file cphidgetrfid.h.

#define RFID_LED_FLAG   0x04

Definition at line 153 of file cphidgetrfid.h.

#define RFID_LISTEN_DURING_EOF_FLAG   0x10

Definition at line 155 of file cphidgetrfid.h.

#define RFID_MAX_DATA_PER_PACKET   63

Definition at line 163 of file cphidgetrfid.h.

#define RFID_MAX_TAG_STRING_LEN   25

Definition at line 220 of file cphidgetrfid.h.

#define RFID_MAXOUTPUTS   2

Definition at line 168 of file cphidgetrfid.h.

#define RFID_PACKET_OUTPUT_ECHO   1

Definition at line 151 of file cphidgetrfid.h.

#define RFID_PACKET_TAG   0

Definition at line 150 of file cphidgetrfid.h.

#define RFID_READ_DATA_IN_PACKET   0x00

Definition at line 160 of file cphidgetrfid.h.

#define RFID_T5577_EndGap   15

Definition at line 199 of file cphidgetrfid.h.

#define RFID_T5577_EOF   100

Definition at line 202 of file cphidgetrfid.h.

#define RFID_T5577_One   56

Definition at line 201 of file cphidgetrfid.h.

#define RFID_T5577_PrePulse   (136 + RFID_T5577_Zero)

Definition at line 203 of file cphidgetrfid.h.

#define RFID_T5577_StartGap   30

Definition at line 197 of file cphidgetrfid.h.

#define RFID_T5577_WriteGap   15

Definition at line 198 of file cphidgetrfid.h.

#define RFID_T5577_Zero   24

Definition at line 200 of file cphidgetrfid.h.

#define RFID_WRITE_DATA_OUT_PACKET   0x00

Definition at line 157 of file cphidgetrfid.h.


Typedef Documentation


Enumeration Type Documentation

Enumerator:
PHIDGET_RFID_ENCODING_MANCHESTER 
PHIDGET_RFID_ENCODING_BIPHASE 

Definition at line 212 of file cphidgetrfid.h.

RFID encoding protocols supported by the PhidgetRFID Read-Write

Enumerator:
PHIDGET_RFID_PROTOCOL_EM4100 

EM4100 (EM4102) 40-bit

PHIDGET_RFID_PROTOCOL_ISO11785_FDX_B 

ISO11785 FDX-B encoding (Animal ID)

PHIDGET_RFID_PROTOCOL_PHIDGETS 

PhidgetTAG Protocol 24 character ASCII

PHIDGET_RFID_PROTOCOL_EM4100 
PHIDGET_RFID_PROTOCOL_ISO11785_FDX_B 
PHIDGET_RFID_PROTOCOL_PHIDGETS 

Definition at line 22 of file cphidgetrfid.h.


Function Documentation

PHIDGET21_API int CCONV CPhidgetRFID_getRawData ( CPhidgetRFIDHandle  phid,
int *  data,
int *  dataLength 
)

Definition at line 2302 of file cphidgetrfid.c.

PHIDGET21_API int CCONV CPhidgetRFID_write ( CPhidgetRFIDHandle  phid,
char *  tagString,
CPhidgetRFID_Protocol  protocol,
int  lock 
)

Gets the number of outputs supported by this board.

Parameters:
phidAn attached phidget rfid handle.
countThe output count. Gets the state of an output.
phidAn attached phidget rfid handle.
indexThe output index.
outputStateThe output state. Possible values are PTRUE and PFALSE. Sets the state of an output.
phidAn attached phidget rfid handle.
indexThe output index.
outputStateThe output state. Possible values are PTRUE and PFALSE. Set an output change handler. This is called when an output changes.
phidAn attached phidget rfid handle.
fptrCallback function pointer.
userPtrA pointer for use by the user - this value is passed back into the callback function. Gets the state of the antenna.
phidAn attached phidget rfid handle.
antennaStateThe antenna state. Possible values are PTRUE and PFALSE. Sets the state of the antenna. Note that the antenna must be enabled before tags will be read.
phidAn attached phidget rfid handle.
antennaStateThe antenna state. Possible values are PTRUE and PFALSE. Gets the state of the onboard LED.
phidAn attached phidget rfid handle.
LEDStateThe LED state. Possible values are PTRUE and PFALSE. Sets the state of the onboard LED.
phidAn attached phidget rfid handle.
LEDStateThe LED state. Possible values are PTRUE and PFALSE. Gets the last tag read by the reader. This tag may or may not still be on the reader.
phidAn attached phidget rfid handle.
tagStringA pointer which will be set to point to a char array containing the tag string.
protocolThe tag protocol. Gets the tag present status. This is whether or not a tag is being read by the reader.
phidAn attached phidget rfid handle.
statusThe tag status. Possible values are PTRUE and PFALSE. Program a tag. This requires a T5577 tag.
phidAn attached phidget rfid handle.
tagStringThe tag data to write. EM4100 (40-bit hex): "90fd32987b" FDX-B (15 digit decimal): "999000000003471" Phidgets (7-bit ASCII, up to 24 characters): "I'm a PHIDGET tag"
protocolThe tag protocol to write
lockLock the tag so that it cannot be written again.

Definition at line 2348 of file cphidgetrfid.c.

PHIDGET21_API int CCONV CPhidgetRFID_writeRaw ( CPhidgetRFIDHandle  phid,
unsigned char *  data,
int  bitlength,
int  pregap,
int  space,
int  postgap,
int  zero,
int  one,
int  prepulse,
int  eof,
int  listenDuringEOF 
)

Set a tag handler. This is called when a tag is first detected by the reader.

Parameters:
phidAn attached phidget rfid handle.
fptrCallback function pointer.
userPtrA pointer for use by the user - this value is passed back into the callback function. Set a tag lost handler. This is called when a tag is no longer detected by the reader.
phidAn attached phidget rfid handle.
fptrCallback function pointer.
userPtrA pointer for use by the user - this value is passed back into the callback function.

Definition at line 2241 of file cphidgetrfid.c.



pedal_monitor
Author(s): Pedro Mendes
autogenerated on Fri Jun 6 2014 18:37:22