/* * Copyright (c) 2022 Grinn * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_DRIVERS_SENSOR_INA23X_TRIGGER_H_ #define ZEPHYR_DRIVERS_SENSOR_INA23X_TRIGGER_H_ #include #include #include struct ina23x_trigger { struct gpio_callback gpio_cb; struct k_work conversion_work; sensor_trigger_handler_t handler_alert; }; int ina23x_trigger_mode_init(struct ina23x_trigger *trigg, const struct gpio_dt_spec *alert_gpio); #endif /* ZEPHYR_DRIVERS_SENSOR_INA23X_TRIGGER_H_ */