Home
last modified time | relevance | path

Searched refs:backend_api (Results 1 – 11 of 11) sorted by relevance

/Zephyr-latest/include/zephyr/drivers/
Demul_fuel_gauge.h61 const struct fuel_gauge_emul_driver_api *backend_api = in z_impl_emul_fuel_gauge_set_battery_charging() local
62 (const struct fuel_gauge_emul_driver_api *)target->backend_api; in z_impl_emul_fuel_gauge_set_battery_charging()
64 if (backend_api->set_battery_charging == 0) { in z_impl_emul_fuel_gauge_set_battery_charging()
68 return backend_api->set_battery_charging(target, uV, uA); in z_impl_emul_fuel_gauge_set_battery_charging()
83 const struct fuel_gauge_emul_driver_api *backend_api = in z_impl_emul_fuel_gauge_is_battery_cutoff() local
84 (const struct fuel_gauge_emul_driver_api *)target->backend_api; in z_impl_emul_fuel_gauge_is_battery_cutoff()
86 if (backend_api->is_battery_cutoff == 0) { in z_impl_emul_fuel_gauge_is_battery_cutoff()
89 return backend_api->is_battery_cutoff(target, cutoff); in z_impl_emul_fuel_gauge_is_battery_cutoff()
Demul_sensor.h56 return target && target->backend_api; in emul_sensor_backend_is_supported()
75 if (!target || !target->backend_api) { in emul_sensor_backend_set_channel()
79 struct emul_sensor_driver_api *api = (struct emul_sensor_driver_api *)target->backend_api; in emul_sensor_backend_set_channel()
108 if (!target || !target->backend_api) { in emul_sensor_backend_get_sample_range()
112 struct emul_sensor_driver_api *api = (struct emul_sensor_driver_api *)target->backend_api; in emul_sensor_backend_get_sample_range()
135 if (!target || !target->backend_api) { in emul_sensor_backend_set_attribute()
139 struct emul_sensor_driver_api *api = (struct emul_sensor_driver_api *)target->backend_api; in emul_sensor_backend_set_attribute()
170 if (!target || !target->backend_api) { in emul_sensor_backend_get_attribute_metadata()
174 struct emul_sensor_driver_api *api = (struct emul_sensor_driver_api *)target->backend_api; in emul_sensor_backend_get_attribute_metadata()
Demul_bbram.h52 if (target == NULL || target->backend_api == NULL) { in emul_bbram_backend_set_data()
56 struct emul_bbram_driver_api *api = (struct emul_bbram_driver_api *)target->backend_api; in emul_bbram_backend_set_data()
79 if (target == NULL || target->backend_api == NULL) { in emul_bbram_backend_get_data()
83 struct emul_bbram_driver_api *api = (struct emul_bbram_driver_api *)target->backend_api; in emul_bbram_backend_get_data()
Demul.h103 const void *backend_api; member
159 .backend_api = (_backend_api), \
/Zephyr-latest/include/zephyr/drivers/usb/
Demul_bc12.h59 const struct bc12_emul_driver_api *backend_api = in bc12_emul_set_charging_partner() local
60 (const struct bc12_emul_driver_api *)target->backend_api; in bc12_emul_set_charging_partner()
62 return backend_api->set_charging_partner(target, partner_type); in bc12_emul_set_charging_partner()
82 const struct bc12_emul_driver_api *backend_api = in bc12_emul_set_pd_partner() local
83 (const struct bc12_emul_driver_api *)target->backend_api; in bc12_emul_set_pd_partner()
85 return backend_api->set_pd_partner(target, connected); in bc12_emul_set_pd_partner()
/Zephyr-latest/subsys/debug/coredump/
Dcoredump_core.c18 *backend_api = &coredump_backend_logging; variable
22 *backend_api = &coredump_backend_flash_partition; variable
26 *backend_api = &coredump_backend_intel_adsp_mem_window; variable
30 *backend_api = &coredump_backend_other; variable
66 backend_api->buffer_output((uint8_t *)&hdr, sizeof(hdr)); in dump_header()
195 backend_api->start(); in z_coredump_start()
200 backend_api->end(); in z_coredump_end()
210 backend_api->buffer_output(buf, buflen); in coredump_buffer_output()
249 if (backend_api->query == NULL) { in coredump_query()
252 ret = backend_api->query(query_id, arg); in coredump_query()
[all …]
/Zephyr-latest/tests/subsys/emul/src/
Demul_tester.h20 (const struct emul_tester_backend_api *)target->backend_api; in emul_tester_backend_set_action()
28 (const struct emul_tester_backend_api *)target->backend_api; in emul_tester_backend_get_action()
/Zephyr-latest/tests/subsys/logging/log_backend_init/src/
Dmain.c87 static const struct log_backend_api backend_api = { variable
102 LOG_BACKEND_DEFINE(backend1, backend_api, true, &context1);
103 LOG_BACKEND_DEFINE(backend2, backend_api, true, &context2);
/Zephyr-latest/tests/subsys/logging/log_custom_header/src/
Dlog_custom_header.c45 static const struct log_backend_api backend_api = { variable
49 LOG_BACKEND_DEFINE(backend, backend_api, false);
/Zephyr-latest/tests/drivers/bbram/generic/src/
Dfixture.c21 if (emul == NULL || emul->backend_api == NULL) { in get_and_check_emul()
/Zephyr-latest/drivers/sensor/bosch/bmi160/
Demul_bmi160.c577 static const struct emul_sensor_driver_api backend_api = { variable
605 &bmi160_emul_cfg_##n, &bus_api, &backend_api)