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: NaturalTinyShell_ice libmDot-12Sept mbed-rtos mbed
Fork of ICE by
Diff: inc/global.h
- Revision:
- 63:0ded43237b22
- Parent:
- 58:a4422d19b2ea
- Child:
- 67:49f266601d83
- Child:
- 68:dbe39d83eb98
--- a/inc/global.h Thu Sep 15 16:17:08 2016 +0000 +++ b/inc/global.h Thu Sep 15 21:36:05 2016 +0000 @@ -45,12 +45,19 @@ ON = 1 } State; +typedef enum output_action { + ACTION_NEW, + ACTION_CONTROL_REQ +} OutputAction; + // output control request message typedef struct output_control_req_t { - string relay; + OutputAction action; + char controlFile[64]; + string output; State state; unsigned int priority; -} OutputControlReq_t; +} OutputControlMsg_t; // analytics logger request message typedef struct analytics_logger_req_t { @@ -60,7 +67,7 @@ extern Mail<Message_t, 16> MailBox; extern Mail<Message_t, 16> ModbusMasterMailBox; -extern Mail<OutputControlReq_t, 16> OutputMasterMailBox; +extern Mail<OutputControlMsg_t, 16> OutputMasterMailBox; extern Mail<AnalyticsLoggerReq_t, 16> AnalyticsLoggerMailBox; extern ntshell_t ntshell;