Home
last modified time | relevance | path

Searched refs:power_state (Results 1 – 6 of 6) sorted by relevance

/Zephyr-latest/subsys/bluetooth/services/bas/
Dbas_bls.c74 bls.power_state = 0; in bt_bas_bls_init()
112 .power_state = sys_cpu_to_le16(bls.power_state), in bt_bas_bls_update_battery_level_status()
148 .power_state = sys_cpu_to_le16(bls.power_state), in bt_bas_bls_read_blvl_status()
166 bls.power_state &= ~BATTERY_MASK; in bt_bas_bls_set_battery_present()
167 bls.power_state |= (present << BATTERY_SHIFT) & BATTERY_MASK; in bt_bas_bls_set_battery_present()
173 bls.power_state &= ~WIRED_POWER_MASK; in bt_bas_bls_set_wired_external_power_source()
174 bls.power_state |= (source << WIRED_POWER_SHIFT) & WIRED_POWER_MASK; in bt_bas_bls_set_wired_external_power_source()
180 bls.power_state &= ~WIRELESS_POWER_MASK; in bt_bas_bls_set_wireless_external_power_source()
181 bls.power_state |= (source << WIRELESS_POWER_SHIFT) & WIRELESS_POWER_MASK; in bt_bas_bls_set_wireless_external_power_source()
187 bls.power_state &= ~BATTERY_CHARGE_STATE_MASK; in bt_bas_bls_set_battery_charge_state()
[all …]
Dbas_internal.h74 uint16_t power_state; member
/Zephyr-latest/tests/bsim/bluetooth/samples/battery_service/src/
Dcentral_test.c177 uint16_t power_state = sys_get_le16(&data[1]); in parse_battery_level_status() local
179 LOG_INF("Parsed Power State: 0x%04x", power_state); in parse_battery_level_status()
181 LOG_INF(" Battery Present: %s", (power_state & BIT(0)) ? "Yes" : "No"); in parse_battery_level_status()
183 uint8_t wired_power = (power_state >> 1) & 0x03; in parse_battery_level_status()
200 uint8_t wireless_power = (power_state >> 3) & 0x03; in parse_battery_level_status()
217 uint8_t charge_state = (power_state >> 5) & 0x03; in parse_battery_level_status()
234 uint8_t charge_level = (power_state >> 7) & 0x03; in parse_battery_level_status()
251 uint8_t charging_type = (power_state >> 9) & 0x07; in parse_battery_level_status()
274 uint8_t charging_fault = (power_state >> 12) & 0x07; in parse_battery_level_status()
/Zephyr-latest/tests/drivers/uart/uart_pm/src/
Dmain.c123 enum pm_device_state power_state; \
124 int error = pm_device_state_get(dev, &power_state); \
126 zassert_equal(power_state, exp_state); \
/Zephyr-latest/drivers/disk/nvme/
Dnvme.h334 struct nvme_power_state power_state[32]; member
/Zephyr-latest/drivers/sdhc/
Dintel_emmc_host.c94 bool power_state = regs->power_ctrl & EMMC_HOST_POWER_CTRL_SD_BUS_POWER ? true : false; in emmc_set_voltage() local
97 if (power_state) { in emmc_set_voltage()
149 if (power_state) { in emmc_set_voltage()