diff options
| author | GUI <[email protected]> | 2024-11-21 20:44:25 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-11-21 20:44:25 +0800 |
| commit | f797eccbf1d084262b547a9bcba13ec006aed445 (patch) | |
| tree | a3abd9c8a493bc7fe3a8b65faa5fb177f327ca1b /components/drivers/include | |
| parent | 4a3fa385cb4e1e08141da230fe9095da284b9841 (diff) | |
[DM/FEATURE] Support IIO (Industrial I/O) (#9598)
[DM/FEATURE] Support IIO (Industrial I/O)
Signed-off-by: GuEe-GUI <[email protected]>
Diffstat (limited to 'components/drivers/include')
| -rw-r--r-- | components/drivers/include/drivers/iio.h | 17 | ||||
| -rw-r--r-- | components/drivers/include/rtdevice.h | 2 |
2 files changed, 19 insertions, 0 deletions
diff --git a/components/drivers/include/drivers/iio.h b/components/drivers/include/drivers/iio.h new file mode 100644 index 0000000000..c69f507ea8 --- /dev/null +++ b/components/drivers/include/drivers/iio.h @@ -0,0 +1,17 @@ +/* + * Copyright (c) 2006-2022, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2022-3-08 GuEe-GUI the first version + */ + +#ifndef __IIO_H__ +#define __IIO_H__ + +void *rt_iio_channel_get_by_index(struct rt_device *dev, int index, int *out_channel); +void *rt_iio_channel_get_by_name(struct rt_device *dev, const char *name, int *out_channel); + +#endif /* __IIO_H__ */ diff --git a/components/drivers/include/rtdevice.h b/components/drivers/include/rtdevice.h index 21ad8cb2a6..ff7a17734f 100644 --- a/components/drivers/include/rtdevice.h +++ b/components/drivers/include/rtdevice.h @@ -49,6 +49,8 @@ extern "C" { #include "drivers/blk.h" #endif +#include "drivers/iio.h" + #ifdef RT_USING_OFW #include "drivers/ofw.h" #include "drivers/ofw_fdt.h" |
