blob: 4c858bf72da5c788449f1c8ec4ec8599e3471519 [file] [log] [blame]
/*
* 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 <zephyr/drivers/gpio.h>
#include <zephyr/drivers/sensor.h>
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 *gpio_alert);
#endif /* ZEPHYR_DRIVERS_SENSOR_INA23X_TRIGGER_H_ */