Uses an ID20 RFID Reader to create a tag list with a few functions that include: printing the current list, checking if a tag exists in the list, adding a tag to the list, and deleting a tag from the list
Dependencies: ID12RFID TextLCD mbed
Code to create an RFID Tag List. Page is located at http://mbed.org/users/memsterjr09/notebook/rfid-tag-list-builder/
Diff: RFID_Functions.h
- Revision:
- 0:fa3fe200c570
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/RFID_Functions.h Wed Oct 16 03:14:09 2013 +0000 @@ -0,0 +1,28 @@ +#ifndef MBED_RFID_FUNCTIONS_H +#define MBED_RFID_FUNCTIONS_H + +#include <stdio.h> +#include <stdlib.h> + +/* structure for the Linked List Node */ +typedef struct llnode_t { + int data; + struct llnode_t *next; + struct llnode_t *prev; +} LLNode; + +/* header for a linked List */ +typedef struct linkedlist_t { + LLNode *head; + LLNode *tail; +} LinkedList; + +/* Function Prototypes*/ +LinkedList emptyList(); // Create Initial List +void showList(LinkedList theList); // Print the whole list +void addToList(LinkedList *pLL, int data); // Adds a ID to the list +void deleteFromList(LinkedList *pll, int data); //Delete a list +void addPhantom(LinkedList *pLL); //Put an empty node in the LL +int lookUp(LinkedList IDList, int ID); // Sees if ID is in list (for adding/deleting purposes) + +#endif \ No newline at end of file