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/

RFID_Functions.h

Committer:
memsterjr09
Date:
2013-10-16
Revision:
1:867cf1706b42
Parent:
0:fa3fe200c570

File content as of revision 1:867cf1706b42:

#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