Augustine Kizito / Mbed 2 deprecated Solar_Powered_Smart_Camera

Dependencies:   Adafruit_GFX Adafruit_ST7735 INA219 MODSERIAL MbedJSONValue mbed-rtos mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers MailBoxes.h Source File

MailBoxes.h

00001 #ifndef MAILBOXES_H
00002 #define MAILBOXES_H
00003 
00004 
00005 // this is file defines all mail boxes for inter thread comminication
00006 
00007 //////////////// data transfer from User Interface to Serial Port ///////////////////////
00008 typedef struct{
00009     
00010     bool activateSerial;    // this allows the user interface to start/stop serial comms
00011     
00012 } ui_serial_letter;
00013 //////////////////////////////////////////////////////////////////////////////////////
00014 
00015 /////////////////// data transfer from Serial Port to User Interface /////////////////
00016 Mail<ui_serial_letter,2> ui_serial_mail;
00017 
00018 typedef struct{
00019     
00020     bool piStat;          // status of the serial connection
00021     bool camStat;           // determines whether the camera is active
00022     bool cloudStat;         // detemines when the pi is connected to the cloud
00023     bool detectionStat;     // determines whether the object detection system is functional    
00024 } serial_ui_letter;
00025 
00026 Mail<serial_ui_letter,2> serial_ui_mail;
00027 
00028 //////////////////////////////////////////////////////////////////////////////////
00029 
00030 #endif