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
26 typedef uint16_t menuid_t;
29 #define INVALID_MENU_ID 0xffff
33 #define NAME_SIZE_T 20
42 #define NO_CALLBACK NULL
228 #define MENUITEM_ALL_REMOTES 0xFC00
229 #define MENUITEM_ALL_CHANGE 0x0003
355 menuid_t
getId()
const;
371 void setChanged(
int num,
bool changed) { bitWrite(flags, (num & 3), changed); }
373 bool isChanged(
int num = 0)
const {
return bitRead(flags, (num & 3)); }
426 uint16_t currentValue;
431 this->currentValue = defaultVal;
448 this->whole = this->fraction = this->negative = 0;
452 this->whole = that.whole;
453 this->fraction = that.fraction;
454 this->negative = that.negative;
459 this->fraction = fract;
460 this->negative = negative;
463 uint32_t fraction: 16;
464 uint32_t negative: 1;
513 void copyValue(
char* buffer, uint8_t bufferSize)
const;
529 int getIntValueIncludingOffset() {
return (
int)currentValue + (int)
getOffset(); }
714 if(item ==
nullptr)
return false;
Definition: MenuItems.h:445