Yuval Peress | 94dc05b | 2023-06-05 20:26:19 -0600 | [diff] [blame] | 1 | /* |
| 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 | |
| 15 | struct sensor_shell_processing_context { |
| 16 | const struct device *dev; |
| 17 | const struct shell *sh; |
| 18 | }; |
| 19 | |
| 20 | extern struct rtio sensor_read_rtio; |
| 21 | |
| 22 | int cmd_sensor_stream(const struct shell *shell_ptr, size_t argc, char *argv[]); |
| 23 | |
| 24 | void sensor_shell_processing_callback(int result, uint8_t *buf, uint32_t buf_len, void *userdata); |
| 25 | |
| 26 | #endif /* ZEPHYR_DRIVERS_SENSOR_SENSOR_SHELL_H */ |