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/CommandParser/cmd_utils.h
- Committer:
- jmarkel44
- Date:
- 2017-01-24
- Revision:
- 0:61364762ee0e
File content as of revision 0:61364762ee0e:
#ifndef CMDUTILS_H #define CMDUTILS_H #include "global.h" #include <string> #include <stdio.h> #include <stdint.h> typedef struct vregFile_tag { std::string fname; std::string id; float value; } VregFile_t; typedef struct ioFile_tag { std::string fname; std::string id; std::string name; float min; float max; unsigned char node; unsigned char rtype; unsigned char type; unsigned char size; unsigned char order; unsigned char rfreq; unsigned char argc; uint32_t reg; RegisterType_t regType; } IOFile_t; typedef struct setpointControlFile_tag { std::string controlFile; std::string id; // control identifier int priority; // control priority std::string input; // control input std::string output; // control output double setpoint; // setpoint value double productFactor; // unused bool actingDir; // acting direction double tolerance; } SetpointControlFile_t; typedef struct timerControlFile_tag { std::string controlFile; // file containing control data std::string id; // timer identifier std::string output; // output to control unsigned int priority; // control priority unsigned int day; unsigned int startHour; // start hour (0-23) unsigned int startMin; // start minute (0-59) unsigned int startSec; // start second (0-59) unsigned int duration; // duration in seconds unsigned int week; // every week, first week, ... } TimerControlFile_t; void createVregFile(VregFile_t&); void createIOFile(IOFile_t&); void createSetpointControlFile(SetpointControlFile_t&); void createTimerControlFile(TimerControlFile_t&); #endif