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.
Dependencies: Adafruit_GFX Adafruit_ST7735 INA219 MODSERIAL MbedJSONValue mbed-rtos mbed
MailBoxes.h
- Committer:
- OHstin
- Date:
- 2017-03-22
- Revision:
- 4:c7b0670f96b2
File content as of revision 4:c7b0670f96b2:
#ifndef MAILBOXES_H
#define MAILBOXES_H
// this is file defines all mail boxes for inter thread comminication
//////////////// data transfer from User Interface to Serial Port ///////////////////////
typedef struct{
bool activateSerial; // this allows the user interface to start/stop serial comms
} ui_serial_letter;
//////////////////////////////////////////////////////////////////////////////////////
/////////////////// data transfer from Serial Port to User Interface /////////////////
Mail<ui_serial_letter,2> ui_serial_mail;
typedef struct{
bool piStat; // status of the serial connection
bool camStat; // determines whether the camera is active
bool cloudStat; // detemines when the pi is connected to the cloud
bool detectionStat; // determines whether the object detection system is functional
} serial_ui_letter;
Mail<serial_ui_letter,2> serial_ui_mail;
//////////////////////////////////////////////////////////////////////////////////
#endif