Go to the documentation of this file.
17#define INFO_LOCATION_PGM true
18#define INFO_LOCATION_RAM false
20#include <PlatformDetermination.h>
21#include <IoAbstraction.h>
24#define MAXIMUM_ID_ALLOWED 32000
26typedef uint16_t menuid_t;
29#define INVALID_MENU_ID 0xffff
42#define NO_CALLBACK NULL
237#define MENUITEM_ALL_REMOTES 0xFC00
238#define MENUITEM_ALL_CHANGE 0x0003
372 menuid_t
getId()
const;
388 void setChanged(
int num,
bool changed) { bitWrite(flags, (num & 3), changed); }
390 bool isChanged(
int num = 0)
const {
return bitRead(flags, (num & 3)); }
443 uint16_t currentValue;
448 this->currentValue = defaultVal;
462struct WholeAndFraction {
465 this->whole = this->fraction = this->negative = 0;
468 WholeAndFraction(
const WholeAndFraction& that) {
469 this->whole = that.whole;
470 this->fraction = that.fraction;
471 this->negative = that.negative;
474 WholeAndFraction(uint16_t whole, uint16_t fract,
bool negative) {
476 this->fraction = fract;
477 this->negative = negative;
480 uint32_t fraction: 16;
481 uint32_t negative: 1;
530 void copyValue(
char* buffer, uint8_t bufferSize)
const;
546 int getIntValueIncludingOffset() {
return (
int)currentValue + (int)
getOffset(); }
731 if(item ==
nullptr)
return false;