41 #ifndef YOCTO_MULTICELLWEIGHSCALE_H 42 #define YOCTO_MULTICELLWEIGHSCALE_H 57 #ifndef _Y_EXCITATION_ENUM 58 #define _Y_EXCITATION_ENUM 66 #define Y_CELLCOUNT_INVALID (YAPI_INVALID_UINT) 67 #define Y_COMPTEMPADAPTRATIO_INVALID (YAPI_INVALID_DOUBLE) 68 #define Y_COMPTEMPAVG_INVALID (YAPI_INVALID_DOUBLE) 69 #define Y_COMPTEMPCHG_INVALID (YAPI_INVALID_DOUBLE) 70 #define Y_COMPENSATION_INVALID (YAPI_INVALID_DOUBLE) 71 #define Y_ZEROTRACKING_INVALID (YAPI_INVALID_DOUBLE) 72 #define Y_COMMAND_INVALID (YAPI_INVALID_STRING) 87 #pragma option push -w-8022 141 int set_unit(
const string& newval);
143 {
return this->set_unit(newval); }
152 int get_cellCount(
void);
155 {
return this->get_cellCount(); }
166 int set_cellCount(
int newval);
168 {
return this->set_cellCount(newval); }
181 {
return this->get_excitation(); }
195 {
return this->set_excitation(newval); }
209 int set_compTempAdaptRatio(
double newval);
211 {
return this->set_compTempAdaptRatio(newval); }
223 double get_compTempAdaptRatio(
void);
226 {
return this->get_compTempAdaptRatio(); }
235 double get_compTempAvg(
void);
238 {
return this->get_compTempAvg(); }
248 double get_compTempChg(
void);
251 {
return this->get_compTempChg(); }
260 double get_compensation(
void);
263 {
return this->get_compensation(); }
274 int set_zeroTracking(
double newval);
276 {
return this->set_zeroTracking(newval); }
287 double get_zeroTracking(
void);
290 {
return this->get_zeroTracking(); }
292 string get_command(
void);
295 {
return this->get_command(); }
297 int set_command(
const string& newval);
299 {
return this->set_command(newval); }
370 virtual int tare(
void);
383 virtual int setupSpan(
double currWeight,
double maxWeight);
398 {
return this->nextMultiCellWeighScale();}
double _compTempAdaptRatio
int setUnit(const string &newval)
YMultiCellWeighScale * yFindMultiCellWeighScale(const string &func)
static const double COMPENSATION_INVALID
static const double COMPTEMPADAPTRATIO_INVALID
static YMultiCellWeighScale * FindMultiCellWeighScale(string func)
static const double COMPTEMPAVG_INVALID
YMultiCellWeighScale * next(void)
void(* YMultiCellWeighScaleTimedReportCallback)(YMultiCellWeighScale *func, YMeasure measure)
static const string COMMAND_INVALID
int setCompTempAdaptRatio(double newval)
YMultiCellWeighScaleTimedReportCallback _timedReportCallbackMultiCellWeighScale
#define YAPI_INVALID_UINT
static const double COMPTEMPCHG_INVALID
void(* YMultiCellWeighScaleValueCallback)(YMultiCellWeighScale *func, const string &functionValue)
double compensation(void)
virtual int registerTimedReportCallback(YSensorTimedReportCallback callback)
int setExcitation(Y_EXCITATION_enum newval)
virtual int _invokeTimedReportCallback(YMeasure value)
virtual int _invokeValueCallback(string value)
static YMultiCellWeighScale * Find(string func)
static const double ZEROTRACKING_INVALID
int setZeroTracking(double newval)
virtual int _parseAttr(YJSONObject *json_val)
virtual int registerValueCallback(YSensorValueCallback callback)
double zeroTracking(void)
Y_EXCITATION_enum excitation(void)
#define YOCTO_CLASS_EXPORT
double compTempAdaptRatio(void)
int setCellCount(int newval)
int setCommand(const string &newval)
Y_EXCITATION_enum _excitation
YMultiCellWeighScaleValueCallback _valueCallbackMultiCellWeighScale
YMultiCellWeighScale * yFirstMultiCellWeighScale(void)
static YMultiCellWeighScale * First(void)
static YMultiCellWeighScale * FirstMultiCellWeighScale(void)