Can Opener - ME 507
shares.h
Go to the documentation of this file.
1 
6 #ifndef SHARES_H
7 #define SHARES_H
8 
9 #include <Arduino.h>
10 #include <STM32FreeRTOS.h>
11 #include "taskshare.h"
12 #include "taskqueue.h"
13 
15 extern Share<float> currentTemp;
16 
18 extern Share<bool> canDetected;
19 
21 extern Share<bool> canTopDetected;
22 
24 extern Share<bool> canTabDetected;
25 
27 extern Share<int64_t> enc1;
28 
30 extern Share<int64_t> enc2;
31 
33 extern Share<bool> kill;
34 
35 #endif
Share< bool > kill
The share for the kill switch.
Share< int64_t > enc2
The share that holds the current encoder 2 position.
Share< bool > canDetected
The share which indicates whether or not the can is in the device.
Share< bool > canTopDetected
The share which indicates whether or not the can top has been detected.
Share< int64_t > enc1
The share that holds the current encoder 1 position.
Share< bool > canTabDetected
The share which indicates whether or not the can tab has been detected.
Share< float > currentTemp
The share into which the current temperature from taskTemp is placed.