37 VER_FAMILY_MASK = 0xF0,
38 VER_POWERMON_WIFI_5W = 0x00,
53 static uint32_t decode(
const std::vector<char> &data, std::vector<Sample> &samples);
58 POWER_VOLTAGE_SOURCE = (1 << 0)
85 VOLTAGE_SOURCE = (1 << 31)
102 static uint32_t getSamplePeriodInSeconds(uint8_t mode)
106 case PowermonConfig::LOG_MODE_1_SEC:
return 1;
107 case PowermonConfig::LOG_MODE_2_SEC:
return 2;
108 case PowermonConfig::LOG_MODE_5_SEC:
return 5;
109 case PowermonConfig::LOG_MODE_10_SEC:
return 10;
110 case PowermonConfig::LOG_MODE_20_SEC:
return 20;
111 case PowermonConfig::LOG_MODE_30_SEC:
return 30;
112 case PowermonConfig::LOG_MODE_60_SEC:
return 60;