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:
- 15:a6ee32969e8e
- Parent:
- 9:ef0ca2f8a8a6
- Child:
- 31:4b1587034318
--- a/inc/global.h Wed Sep 07 14:51:00 2016 +0000 +++ b/inc/global.h Wed Sep 07 18:26:56 2016 +0000 @@ -1,7 +1,7 @@ /****************************************************************************** - * + * * File: global.h - * Desciption: global data + * Desciption: global data * *****************************************************************************/ #ifndef GLOBAL_H @@ -12,7 +12,7 @@ #include "ntshell.h" #include "mDot.h" -#define SUPPRESS_OUTPUT +#define SUPPRESS_OUTPUT extern int sig_continue; extern osThreadId mainThreadId; @@ -58,9 +58,21 @@ int reg; int rtype; int type; + int size; + int order; std::string fmt; + float float_value; + uint32_t uint32_value; + uint16_t uint16_value; }; - extern std::map<std::string,ModbusRegister> ModbusRegisterMap; +typedef enum byte_order { + BigEndian = 0, + LittleEndian = 1, + BigEndianReverseWord = 2, + LittleEndianReversWord = 3, +} Byte_Order; -#endif \ No newline at end of file +extern std::map<std::string,ModbusRegister> ModbusRegisterMap; + +#endif