Lines Matching defs:ui16
152 { "ACDI", "ui16", SENSOR_INDICATOR, 1, "power supply" },
153 { "B0RM", "ui16", SENSOR_AMPHOUR, 1000, "remaining battery capacity",
155 { "B0FC", "ui16", SENSOR_AMPHOUR, 1000, "last full battery capacity" },
156 { "B0DC", "ui16", SENSOR_AMPHOUR, 1000, "battery design capacity" },
157 { "B0AV", "ui16", SENSOR_VOLTS_DC, 1000, "battery" },
158 { "B0CT", "ui16", SENSOR_INTEGER, 1, "battery discharge cycles" },
159 { "B0TF", "ui16", SENSOR_INTEGER, 1, "battery time-to-full",
161 { "B0TE", "ui16", SENSOR_INTEGER, 1, "battery time-to-empty",
609 } else if (strcmp(sensor->key_type, "ui16") == 0) {
610 uint16_t ui16;
612 error = aplsmc_read_key(sc, key, &ui16, sizeof(ui16));
614 ui16 = betoh16(ui16);
615 value = (int64_t)ui16 * sensor->scale;