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.
ICE-Application/src/DataHandler/DataHandler.h@0:61364762ee0e, 2017-01-24 (annotated)
- Committer:
- jmarkel44
- Date:
- Tue Jan 24 19:05:33 2017 +0000
- Revision:
- 0:61364762ee0e
Port from IAR to Nucleo-F412 board
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
jmarkel44 | 0:61364762ee0e | 1 | #ifndef DATAHANDLER_H |
jmarkel44 | 0:61364762ee0e | 2 | #define DATAHANDLER_H |
jmarkel44 | 0:61364762ee0e | 3 | |
jmarkel44 | 0:61364762ee0e | 4 | #ifdef __cplusplus |
jmarkel44 | 0:61364762ee0e | 5 | #define EXTERNC extern "C" |
jmarkel44 | 0:61364762ee0e | 6 | #else |
jmarkel44 | 0:61364762ee0e | 7 | #define EXTERNC |
jmarkel44 | 0:61364762ee0e | 8 | #endif |
jmarkel44 | 0:61364762ee0e | 9 | |
jmarkel44 | 0:61364762ee0e | 10 | EXTERNC void DataHandler(const void *args); |
jmarkel44 | 0:61364762ee0e | 11 | |
jmarkel44 | 0:61364762ee0e | 12 | #undef EXTERNC |
jmarkel44 | 0:61364762ee0e | 13 | |
jmarkel44 | 0:61364762ee0e | 14 | #ifdef MDOT_ICE |
jmarkel44 | 0:61364762ee0e | 15 | #include "mDot.h" |
jmarkel44 | 0:61364762ee0e | 16 | #endif |
jmarkel44 | 0:61364762ee0e | 17 | #include <string> |
jmarkel44 | 0:61364762ee0e | 18 | |
jmarkel44 | 0:61364762ee0e | 19 | #define HEARTBEAT_MSG_MTYPE 20 // heartbeat (out) |
jmarkel44 | 0:61364762ee0e | 20 | |
jmarkel44 | 0:61364762ee0e | 21 | #define SETPOINT_CONTROL_MTYPE 100 // setpoint control config |
jmarkel44 | 0:61364762ee0e | 22 | #define TIMER_CONTROL_MTYPE 101 // timer control config |
jmarkel44 | 0:61364762ee0e | 23 | #define PID_CONTROL_MTYPE 102 // PID control config |
jmarkel44 | 0:61364762ee0e | 24 | #define MANUAL_CONTROL_MTYPE 103 // manual control config |
jmarkel44 | 0:61364762ee0e | 25 | #define COMPOSITE_CONTROL_MTYPE 104 // composite control config |
jmarkel44 | 0:61364762ee0e | 26 | #define SEQUENCE_CONTROL_MTYPE 105 // sequence control |
jmarkel44 | 0:61364762ee0e | 27 | #define FAILSAFE_CONTROL_MTYPE 106 // failsafe conrol |
jmarkel44 | 0:61364762ee0e | 28 | |
jmarkel44 | 0:61364762ee0e | 29 | #define INPUT_CONFIG_MTYPE 200 // input config |
jmarkel44 | 0:61364762ee0e | 30 | #define OUTPUT_CONFIG_MTYPE 201 // output config |
jmarkel44 | 0:61364762ee0e | 31 | #define VINPUT_CONFIG_MTYPE 203 // virtual input config |
jmarkel44 | 0:61364762ee0e | 32 | #define VOUTPUT_CONFIG_MTYPE 204 // virtual output config |
jmarkel44 | 0:61364762ee0e | 33 | #define HOLDING_CONFIG_MTYPE 205 // holding config |
jmarkel44 | 0:61364762ee0e | 34 | |
jmarkel44 | 0:61364762ee0e | 35 | #define VIRTUAL_COMMAND_MTYPE 250 // virtual command |
jmarkel44 | 0:61364762ee0e | 36 | #define EQUATION_COMMAND_MTYPE 251 // equation command |
jmarkel44 | 0:61364762ee0e | 37 | |
jmarkel44 | 0:61364762ee0e | 38 | #define DESTROY_SETPOINT_MTYPE 300 // destroys a setpoint control |
jmarkel44 | 0:61364762ee0e | 39 | #define DESTROY_TIMER_MTYPE 301 // destroys a timer control |
jmarkel44 | 0:61364762ee0e | 40 | #define DESTROY_PID_MTYPE 302 // destroys a PID control |
jmarkel44 | 0:61364762ee0e | 41 | #define DESTROY_MANUAL_MTYPE 303 // destroys a manual control |
jmarkel44 | 0:61364762ee0e | 42 | |
jmarkel44 | 0:61364762ee0e | 43 | #define EVENT_LOG_MTYPE 300 // event log [out], pump actuation, etc. |
jmarkel44 | 0:61364762ee0e | 44 | #define DEVICE_CONN_MTYPE 301 // device connected |
jmarkel44 | 0:61364762ee0e | 45 | #define LIVE_DATA_MTYPE 400 // live data [out] |
jmarkel44 | 0:61364762ee0e | 46 | |
jmarkel44 | 0:61364762ee0e | 47 | |
jmarkel44 | 0:61364762ee0e | 48 | // BLE requests |
jmarkel44 | 0:61364762ee0e | 49 | #define BT_MODBUS_HOLD_COMMAND_MTYPE 1000 |
jmarkel44 | 0:61364762ee0e | 50 | #define BT_MODBUS_RAW_COMMAND_MTYPE 1002 |
jmarkel44 | 0:61364762ee0e | 51 | #define BT_MODBUS_COMMAND_REPLY_MTYPE 1001 |
jmarkel44 | 0:61364762ee0e | 52 | |
jmarkel44 | 0:61364762ee0e | 53 | #define BT_GETLOG_COMMAND_MTYPE 1100 |
jmarkel44 | 0:61364762ee0e | 54 | #define BT_GETLOG_COMMAND_REPLY_MTYPE 1101 |
jmarkel44 | 0:61364762ee0e | 55 | #define BT_GETLIVE_COMMAND_MTYPE 1200 |
jmarkel44 | 0:61364762ee0e | 56 | |
jmarkel44 | 0:61364762ee0e | 57 | #define BT_START_CAL_COMMAND_MTYPE 1300 |
jmarkel44 | 0:61364762ee0e | 58 | #define BT_1PT_CAL_COMMAND_MTYPE 1301 |
jmarkel44 | 0:61364762ee0e | 59 | |
jmarkel44 | 0:61364762ee0e | 60 | #define SETPOINT_CONTROL_REPLY_MTYPE 500 |
jmarkel44 | 0:61364762ee0e | 61 | #define TIMER_CONTROL_REPLY_MTYPE 501 |
jmarkel44 | 0:61364762ee0e | 62 | #define MANUAL_CONTROL_REPLY_MTYPE 503 |
jmarkel44 | 0:61364762ee0e | 63 | #define COMPOSITE_CONTROL_REPLY_MTYPE 504 |
jmarkel44 | 0:61364762ee0e | 64 | #define SEQUENCE_CONTROL_REPLY_MTYPE 505 |
jmarkel44 | 0:61364762ee0e | 65 | #define FAILSAFE_CONTROL_REPLY_MTYPE 506 |
jmarkel44 | 0:61364762ee0e | 66 | |
jmarkel44 | 0:61364762ee0e | 67 | #define INPUT_CONFIG_REPLY_MTYPE 550 |
jmarkel44 | 0:61364762ee0e | 68 | #define OUTPUT_CONFIG_REPLY_MTYPE 551 |
jmarkel44 | 0:61364762ee0e | 69 | |
jmarkel44 | 0:61364762ee0e | 70 | #ifdef MDOT_ICE |
jmarkel44 | 0:61364762ee0e | 71 | bool StoreReceivedFile( mDot *dot, std::string &payload_string ); |
jmarkel44 | 0:61364762ee0e | 72 | #endif |
jmarkel44 | 0:61364762ee0e | 73 | |
jmarkel44 | 0:61364762ee0e | 74 | #endif |