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/ModbusMaster/ModbusMasterApi.h@1:b2e90cda7a5a, 2017-01-24 (annotated)
- Committer:
- jmarkel44
- Date:
- Tue Jan 24 19:06:45 2017 +0000
- Revision:
- 1:b2e90cda7a5a
- Parent:
- 0:61364762ee0e
Port from IAR F412 project
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| jmarkel44 | 0:61364762ee0e | 1 | #ifndef MODBUSMASTERAPI_H |
| jmarkel44 | 0:61364762ee0e | 2 | #define MODBUSMASTERAPI_H |
| jmarkel44 | 0:61364762ee0e | 3 | |
| jmarkel44 | 0:61364762ee0e | 4 | #include <string> |
| jmarkel44 | 0:61364762ee0e | 5 | #include "global.h" |
| jmarkel44 | 0:61364762ee0e | 6 | |
| jmarkel44 | 0:61364762ee0e | 7 | struct ModbusValue { |
| jmarkel44 | 0:61364762ee0e | 8 | float value; |
| jmarkel44 | 0:61364762ee0e | 9 | uint32_t errflag; |
| jmarkel44 | 0:61364762ee0e | 10 | }; |
| jmarkel44 | 0:61364762ee0e | 11 | |
| jmarkel44 | 0:61364762ee0e | 12 | bool ModbusMasterReadRegister( const std::string &io_tag, ModbusValue *value ); |
| jmarkel44 | 0:61364762ee0e | 13 | bool ModbusMasterWriteRegister( const std::string &io_tag, float value ); |
| jmarkel44 | 0:61364762ee0e | 14 | void ModbusMasterExecCmd( ThreadName_t replyTo, char *cmd ); |
| jmarkel44 | 0:61364762ee0e | 15 | |
| jmarkel44 | 0:61364762ee0e | 16 | bool ScriptWriteRegister( const char *io_tag, double value ); |
| jmarkel44 | 0:61364762ee0e | 17 | double ScriptReadRegister( const char *io_tag ); |
| jmarkel44 | 0:61364762ee0e | 18 | |
| jmarkel44 | 0:61364762ee0e | 19 | #endif |
| jmarkel44 | 0:61364762ee0e | 20 |