PropWare
3.0.0.229
C++ objects and CMake build system for Parallax Propeller
|
Simplifies reading Parallax Serial RFID Card Reader. More...
Go to the source code of this file.
Functions | |
rfidser * | rfid_open (int soutPin, int enablePin) |
Runs the RFID card reading process in another cog. More... | |
void | rfidser_close (rfidser *device) |
End RFID card monitoring/reading process and recover cog and stack memory for other purposes. More... | |
void | rfid_reset (rfidser *device) |
Reset the RFID reader. More... | |
void | rfid_disable (rfidser *device) |
Disable RFID reading process. Reader will ignore any cards swiped. More... | |
void | rfid_enable (rfidser *device) |
Enable RFID reading process. Reader will actively scan cards swiped. More... | |
char * | rfid_get (rfidser *device, int timeoutms) |
Get RFID code from serial buffer. More... | |
Simplifies reading Parallax Serial RFID Card Reader.
Definition in file rfidser.h.
void rfid_disable | ( | rfidser * | device | ) |
void rfid_enable | ( | rfidser * | device | ) |
char* rfid_get | ( | rfidser * | device, |
int | timeoutms | ||
) |
Get RFID code from serial buffer.
*device | Device identifier returned by rfid_open. |
timeoutms | number of milliseconds to wait before returning. |
rfidser* rfid_open | ( | int | soutPin, |
int | enablePin | ||
) |
Runs the RFID card reading process in another cog.
soutPin | Propeller I/O pin connected to RFID reader's SOUT pin. |
enablePin | Propeller I/O pin connected to RFID reader's /ENABLE pin. |
Definition at line 20 of file rfidser.c.
void rfid_reset | ( | rfidser * | device | ) |