likun17
703bb7e7b3
sensor.c: Added new interface for obtaining and setting sensor device information.
...
When there is an actual physical sensor, the driver must implement the get info interface. The upper layer can obtain the actual physical sensor information through SNIOC_GET_INFO.
SNIOC_SET_INFO can only set the information of the local virtual sensor, which means it is bound to the local advertisement. Remote subscribers cannot set the information.
Usage:
struct sensor_device_info dev_info;
orb_ioctl(fd, SNIOC_GET_INFO, (unsigned long)(uintptr_t)&dev_info);
or:
ret = orb_set_info(fd, &dev_info);
ret = orb_get_info(fd, &dev_info);
Signed-off-by: likun17 <likun17@xiaomi.com>
2024-09-19 03:44:49 +08:00
..
2023-01-04 00:32:13 +02:00
2020-11-25 05:13:46 -08:00
2023-08-29 08:58:07 +02:00
2021-03-13 05:56:43 -08:00
2021-03-13 05:56:43 -08:00
2022-10-17 15:59:46 +09:00
2024-04-28 13:21:54 +08:00
2024-04-28 13:21:54 +08:00
2024-08-25 19:22:15 +08:00
2023-08-30 14:34:20 +08:00
2024-05-09 23:44:40 +08:00
2024-09-07 12:03:38 +08:00
2024-08-26 10:21:03 +08:00
2024-08-25 19:22:15 +08:00
2024-08-26 10:21:03 +08:00
2023-08-30 14:34:20 +08:00
2023-08-30 14:34:20 +08:00
2024-08-25 19:22:15 +08:00
2024-05-20 10:13:42 +08:00
2024-05-20 10:13:42 +08:00
2024-05-20 10:13:42 +08:00
2023-08-30 14:34:20 +08:00
2023-09-21 20:30:08 +08:00
2023-08-30 14:34:20 +08:00
2024-08-25 19:22:15 +08:00
2024-02-27 13:01:32 +01:00
2024-04-21 18:57:33 +08:00
2024-01-31 05:00:23 -08:00
2024-06-17 16:22:15 +08:00
2024-04-21 19:06:18 +08:00
2024-08-25 19:22:15 +08:00
2024-04-21 19:06:18 +08:00
2024-05-20 10:13:42 +08:00
2024-08-25 19:22:15 +08:00
2023-09-06 08:02:52 +02:00
2023-09-06 08:02:52 +02:00
2023-09-06 08:02:52 +02:00
2024-08-11 03:09:14 +08:00
2024-09-15 10:29:21 +08:00
2023-08-30 14:34:20 +08:00
2024-03-05 22:25:28 +08:00
2024-08-25 19:22:15 +08:00
2023-07-31 18:56:40 -07:00
2024-08-14 22:36:57 +08:00
2024-08-14 22:36:57 +08:00
2024-09-19 03:44:49 +08:00
2023-01-04 00:32:13 +02:00
2024-08-25 19:22:15 +08:00
2024-08-25 19:22:15 +08:00
2024-08-25 19:22:15 +08:00
2024-03-05 22:25:28 +08:00
2023-08-30 14:34:20 +08:00
2023-08-30 14:34:20 +08:00
2023-01-04 00:32:13 +02:00
2023-01-04 00:32:13 +02:00
2024-09-19 03:44:49 +08:00
2024-08-25 19:22:15 +08:00
2023-09-21 20:30:08 +08:00
2024-08-25 19:22:15 +08:00
2023-08-30 14:34:20 +08:00
2023-08-30 14:34:20 +08:00
2023-01-04 00:32:13 +02:00
2021-04-01 12:13:12 -05:00
2023-08-30 14:34:20 +08:00
2024-08-25 19:22:15 +08:00
2024-08-25 19:22:15 +08:00
2023-08-30 14:34:20 +08:00
2024-03-09 11:53:57 +08:00
2024-03-09 11:53:57 +08:00
2024-08-25 19:22:15 +08:00
2024-03-09 11:53:57 +08:00
2023-08-30 14:34:20 +08:00
2023-08-30 14:34:20 +08:00
2023-01-04 00:32:13 +02:00
2024-08-25 19:22:15 +08:00
2024-07-22 14:24:20 -03:00
2023-01-04 00:32:13 +02:00
2023-01-04 00:32:13 +02:00
2024-08-26 10:21:03 +08:00
2024-08-25 19:22:15 +08:00
2024-08-25 19:22:15 +08:00
2023-08-30 14:34:20 +08:00
2023-01-04 00:32:13 +02:00
2024-08-25 19:22:15 +08:00
2023-01-04 00:32:13 +02:00
2024-08-25 19:22:15 +08:00
2024-08-25 19:22:15 +08:00
2024-03-05 22:25:28 +08:00
2024-08-25 19:22:15 +08:00
2023-08-30 14:34:20 +08:00
2023-01-04 00:32:13 +02:00
2023-08-30 14:34:20 +08:00
2023-08-30 14:34:20 +08:00
2024-09-19 03:44:49 +08:00
2024-09-19 03:44:49 +08:00
2023-08-30 14:34:20 +08:00
2023-08-30 14:34:20 +08:00
2024-08-25 19:22:15 +08:00
2023-08-30 14:34:20 +08:00
2023-08-30 14:34:20 +08:00
2023-08-30 14:34:20 +08:00
2024-09-19 03:44:49 +08:00
2023-08-30 14:34:20 +08:00
2024-08-25 19:22:15 +08:00
2023-10-25 15:46:03 +08:00
2024-08-25 19:22:15 +08:00
2022-10-17 15:59:46 +09:00
2023-08-30 14:34:20 +08:00