From 7c9b3627050ce940ada89fd93fe3e3ba8814865c Mon Sep 17 00:00:00 2001 From: Xuxingliang Date: Sun, 29 Jan 2023 16:07:15 +0800 Subject: [PATCH] sensors/ioctl: add common cmd for accelerators Signed-off-by: Xuxingliang --- include/nuttx/sensors/ioctl.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/nuttx/sensors/ioctl.h b/include/nuttx/sensors/ioctl.h index 403bac1a28..6433313861 100644 --- a/include/nuttx/sensors/ioctl.h +++ b/include/nuttx/sensors/ioctl.h @@ -234,6 +234,13 @@ #define SNIOC_READROMCODE _SNIOC(0x0067) /* Arg: uint64_t* pointer */ #define SNIOC_SETALARM _SNIOC(0x0068) /* Arg: struct ds18b20_alarm_s* */ +/* IOCTL commands for accelerators */ + +#define SNIOC_SIMPLE_CHECK _SNIOC(0x0069) /* Simple check */ +#define SNIOC_FULL_CHECK _SNIOC(0x006a) /* Full check */ +#define SNIOC_FEAT_MANAGE _SNIOC(0x006b) /* Feature manage command */ +#define SNIOC_SET_SCALE_XL _SNIOC(0x006c) /* Set accelerator scale command */ + /* Command: SNIOC_GET_STATE * Description: Get state for all subscribers, include min_interval, * min_latency and the number of subscribers.