System to manage inventory for a cooler. Allows real time check in of products via RFID, as well as check out. Also includes a scale to weigh products upon check out, and has a real time temperature tracking system that sounds an alert if the cooler gets too hot.
Dependencies: DHT11 HX711 MFRC522 SDFileSystemEditied mbed
functions.h@0:ad334aa4c7c4, 2018-03-07 (annotated)
- Committer:
- vincentrc
- Date:
- Wed Mar 07 17:52:23 2018 +0000
- Revision:
- 0:ad334aa4c7c4
Initial commit.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
vincentrc | 0:ad334aa4c7c4 | 1 | #ifndef functions_H |
vincentrc | 0:ad334aa4c7c4 | 2 | #define functions_H |
vincentrc | 0:ad334aa4c7c4 | 3 | |
vincentrc | 0:ad334aa4c7c4 | 4 | #include "HX711.h" |
vincentrc | 0:ad334aa4c7c4 | 5 | |
vincentrc | 0:ad334aa4c7c4 | 6 | struct product* addproduct(struct product *head); |
vincentrc | 0:ad334aa4c7c4 | 7 | struct product* sortlist(struct product *head); |
vincentrc | 0:ad334aa4c7c4 | 8 | struct product* displaylist(struct product *head); |
vincentrc | 0:ad334aa4c7c4 | 9 | void freelist(struct product *head); |
vincentrc | 0:ad334aa4c7c4 | 10 | void savelist(struct product *head); |
vincentrc | 0:ad334aa4c7c4 | 11 | struct product* loadlist(); |
vincentrc | 0:ad334aa4c7c4 | 12 | struct product* findbyname(char name[50], struct product *head); |
vincentrc | 0:ad334aa4c7c4 | 13 | struct product* findbyid(int id[10], struct product *head); |
vincentrc | 0:ad334aa4c7c4 | 14 | struct product* checkin(struct product *head); |
vincentrc | 0:ad334aa4c7c4 | 15 | struct product* checkout(struct product *head, HX711 scale1); |
vincentrc | 0:ad334aa4c7c4 | 16 | float scale(HX711 scale); |
vincentrc | 0:ad334aa4c7c4 | 17 | void timer_temp_hum_isr(); |
vincentrc | 0:ad334aa4c7c4 | 18 | void getstatus(); |
vincentrc | 0:ad334aa4c7c4 | 19 | void setmax(); |
vincentrc | 0:ad334aa4c7c4 | 20 | struct product* findrfid(int rfid[4], struct product *head); |
vincentrc | 0:ad334aa4c7c4 | 21 | |
vincentrc | 0:ad334aa4c7c4 | 22 | |
vincentrc | 0:ad334aa4c7c4 | 23 | #endif |