![]() |
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 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.
#define RFID_4097_DefaultON (RFID_4097_AmpDemod | RFID_4097_Active | RFID_4097_DataOut | RFID_4097_IntPLL | RFID_4097_FastStart | RFID_4097_Gain960) |
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 struct _CPhidgetRFID_Tag CPhidgetRFID_Tag |
typedef struct _CPhidgetRFID_Tag * CPhidgetRFID_TagHandle |
Definition at line 212 of file cphidgetrfid.h.
RFID encoding protocols supported by the PhidgetRFID Read-Write
Definition at line 22 of file cphidgetrfid.h.
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.
phid | An attached phidget rfid handle. |
count | The output count. Gets the state of an output. |
phid | An attached phidget rfid handle. |
index | The output index. |
outputState | The output state. Possible values are PTRUE and PFALSE. Sets the state of an output. |
phid | An attached phidget rfid handle. |
index | The output index. |
outputState | The output state. Possible values are PTRUE and PFALSE. Set an output change handler. This is called when an output changes. |
phid | An attached phidget rfid handle. |
fptr | Callback function pointer. |
userPtr | A pointer for use by the user - this value is passed back into the callback function. Gets the state of the antenna. |
phid | An attached phidget rfid handle. |
antennaState | The 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. |
phid | An attached phidget rfid handle. |
antennaState | The antenna state. Possible values are PTRUE and PFALSE. Gets the state of the onboard LED. |
phid | An attached phidget rfid handle. |
LEDState | The LED state. Possible values are PTRUE and PFALSE. Sets the state of the onboard LED. |
phid | An attached phidget rfid handle. |
LEDState | The 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. |
phid | An attached phidget rfid handle. |
tagString | A pointer which will be set to point to a char array containing the tag string. |
protocol | The tag protocol. Gets the tag present status. This is whether or not a tag is being read by the reader. |
phid | An attached phidget rfid handle. |
status | The tag status. Possible values are PTRUE and PFALSE. Program a tag. This requires a T5577 tag. |
phid | An attached phidget rfid handle. |
tagString | The 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" |
protocol | The tag protocol to write |
lock | Lock 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.
phid | An attached phidget rfid handle. |
fptr | Callback function pointer. |
userPtr | A 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. |
phid | An attached phidget rfid handle. |
fptr | Callback function pointer. |
userPtr | A pointer for use by the user - this value is passed back into the callback function. |
Definition at line 2241 of file cphidgetrfid.c.