Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
qnode.h@0:aaca51fb4854, 2018-07-28 (annotated)
- Committer:
- alejo5214416
- Date:
- Sat Jul 28 01:29:39 2018 +0000
- Revision:
- 0:aaca51fb4854
Comunicacion maestro esclavo con confirmacion de 1S 1Y 1N para solicitudes y respuestas
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| alejo5214416 | 0:aaca51fb4854 | 1 | #include "mbed.h" |
| alejo5214416 | 0:aaca51fb4854 | 2 | |
| alejo5214416 | 0:aaca51fb4854 | 3 | #ifndef QNODE_H |
| alejo5214416 | 0:aaca51fb4854 | 4 | #define QNODE_H |
| alejo5214416 | 0:aaca51fb4854 | 5 | |
| alejo5214416 | 0:aaca51fb4854 | 6 | typedef struct QNode{ |
| alejo5214416 | 0:aaca51fb4854 | 7 | uint8_t uid[4]; |
| alejo5214416 | 0:aaca51fb4854 | 8 | struct QNode *next; |
| alejo5214416 | 0:aaca51fb4854 | 9 | } QNode; |
| alejo5214416 | 0:aaca51fb4854 | 10 | |
| alejo5214416 | 0:aaca51fb4854 | 11 | // The queue, front stores the front node of LL and rear stores ths |
| alejo5214416 | 0:aaca51fb4854 | 12 | // last node of LL |
| alejo5214416 | 0:aaca51fb4854 | 13 | struct Queue |
| alejo5214416 | 0:aaca51fb4854 | 14 | { |
| alejo5214416 | 0:aaca51fb4854 | 15 | struct QNode *front, *rear; |
| alejo5214416 | 0:aaca51fb4854 | 16 | }; |
| alejo5214416 | 0:aaca51fb4854 | 17 | |
| alejo5214416 | 0:aaca51fb4854 | 18 | |
| alejo5214416 | 0:aaca51fb4854 | 19 | struct QNode* newNode(uint8_t* k); |
| alejo5214416 | 0:aaca51fb4854 | 20 | struct Queue *createQueue(); |
| alejo5214416 | 0:aaca51fb4854 | 21 | void enQueue(struct Queue *q, uint8_t *k); |
| alejo5214416 | 0:aaca51fb4854 | 22 | struct QNode *deQueue(struct Queue *q); |
| alejo5214416 | 0:aaca51fb4854 | 23 | |
| alejo5214416 | 0:aaca51fb4854 | 24 | |
| alejo5214416 | 0:aaca51fb4854 | 25 | #endif |