blob: cfc8b2489db3cfc29feda110c633809eb4e11b5d [file] [log] [blame]
Yuval Peress94dc05b2023-06-05 20:26:19 -06001/*
2 * Copyright (c) 2023 Google LLC
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#ifndef ZEPHYR_DRIVERS_SENSOR_SENSOR_SHELL_H
8#define ZEPHYR_DRIVERS_SENSOR_SENSOR_SHELL_H
9
10#include <zephyr/device.h>
11#include <zephyr/drivers/sensor.h>
12#include <zephyr/rtio/rtio.h>
13#include <zephyr/shell/shell.h>
14
15struct sensor_shell_processing_context {
16 const struct device *dev;
17 const struct shell *sh;
18};
19
20extern struct rtio sensor_read_rtio;
21
22int cmd_sensor_stream(const struct shell *shell_ptr, size_t argc, char *argv[]);
23
24void sensor_shell_processing_callback(int result, uint8_t *buf, uint32_t buf_len, void *userdata);
25
26#endif /* ZEPHYR_DRIVERS_SENSOR_SENSOR_SHELL_H */