Alejandro Giraldo Martinez / qnode
Revision:
0:aaca51fb4854
diff -r 000000000000 -r aaca51fb4854 qnode.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/qnode.h	Sat Jul 28 01:29:39 2018 +0000
@@ -0,0 +1,25 @@
+#include "mbed.h"
+
+#ifndef QNODE_H
+#define QNODE_H
+
+typedef struct QNode{
+    uint8_t uid[4];
+    struct QNode *next;
+} QNode;
+
+// The queue, front stores the front node of LL and rear stores ths
+// last node of LL
+struct Queue
+{
+    struct QNode *front, *rear;
+};
+
+
+struct QNode* newNode(uint8_t* k);
+struct Queue *createQueue();
+void enQueue(struct Queue *q, uint8_t *k);
+struct QNode *deQueue(struct Queue *q);
+
+
+#endif
\ No newline at end of file